This question already has answers here:
Is there a unique Android device ID?
(54 answers)
Closed 9 years ago.
I was working on an app (server-android client) that allow user to sign in from multiple android devices. When user logged in on a device, that device will be registered on server side, but I don't know how to avoid duplicate, so I was wondering that are there any chances to uniquely identify an android device? I think Google Play and Facebook can do that.
There are several options available, but there is no 100% guarantee that they will always work. See the android developer blog post: http://android-developers.blogspot.in/2011/03/identifying-app-installations.html
Best method mentioned is Settings.Secure.ANDROID_ID
You can check the IMEI or MAC address of the device.
for IMEI
TelephonyManager.getDeviceId will work
for MAC
WifiInfo.getMacAddress will work
Related
This question already has answers here:
Unique ID of Android device
(13 answers)
Closed 5 years ago.
A developer is building an app for me and he need my ID so that he can send the APK file so that I can test the app. The developer need my UDID so that he can send me the APK file. So how do I go about finding my UDID from my android?
Android phones don't use a udid. That is something for iPhones and apples provisioning system. In this case you need to find in your advanced options where you can allow the install of unknown APK's and then the file your developer sends can be installed.
This question already has answers here:
How android app can detect what store installed it?
(3 answers)
Closed 9 years ago.
Is it possible to find out which store my app was installed from? I have it available on Samsung store, Amazon and Google Play and I want to be able to determine which of these stores my app was installed from and prompt the user with a message like "Thank you for downloading the app from (store)..."
The method linked by FD_, sadly, is not reliable as the information it returns can be edited, and may be null in some cases.
The best way would be to have an enum, or some sort of flag in your application, and flipping that flag before building a new release for each store. Simply check the status of that flag at runtime, to determine which store the apk came from.
This question already has answers here:
Uninstallation password
(3 answers)
Closed 9 years ago.
I have requirement in my Project i.e prevent application uninstall using password.is it possible, if yes could you suggest how it is.
May this Help you
I think the closest thing to what your looking for is the Device Administration feature introduced in 2.2.
Once the application is registered as a Device Administrator, it can't be uninstalled unless its unregistered. This will prevent the app from being uninstalled.
While the Device Admin API doesn't allow for password protection of this particular feature, you can password protect your application to prevent someone from tampering with the Device Admin features in the app.
OR:
You can make your application as System Application.. But for that you need to Root your Device first....
No, this is not possible on Android for security reasons.
This question already has an answer here:
To protect the apk
(1 answer)
Closed 9 years ago.
I want to make my android app apk to be install only once and it should not run on other device if it is copied from first device.Is it possible to do this in android?
Thanks in advance.
No, it is not possible. Apps can be installed and removed as many times the users want them to. Also our code comes into control only after our application gets installed. Hence we cannot determine whether we are getting installed or removed.
You don't have any way to do that if you want your user to be able to install the application
A possible workaround would be to test the DeviceID, and allow the app to proceed only if the DeviceID has been authorized.
Obviously you would have to manage this in your code, and that could become quite cumbersome if you need to authorize numerous devices. Plus I am not sure every device has a DeviceID
see Is there a unique Android device ID? for more information about this
and even take a look at licensing
Its not possible in android ,By using application signature you can't install same signature app if a same signature app is already there.but you can't restrict it to getting installed in other devices.
Just think about it. The application doesn't know whether it is installed already or not.
If you are using an web based application, then assign a value to the database after the installation. (This value should only be known by the device inserting the value at database)
So when your application open next time on another device check the value and prohibit the user. This is the way you can block it.
This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
Facebook API - How to get user’s address, phone #?
Is it still possible to get the user Phone or Mobile number using Graph Api? I already read a lot of forum regarding this issue and the other said the facebook removed the permission to get the mobile or phone number.
So I just asking if there is someone can tell if there is still way to get it?
any thought will be highly appreciated.
A pretty scary feature. It seems that Facebook has retracted these features of the API due to privacy concerns.
For more details read this.
Actually i have the same issue when i am trying with facebook.I read lots of forums but no use.I came to know it is not possible to get the "Phone no".But instead of that i took "mail id" and "user name" and i managed with that..