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.
Related
This question already has answers here:
Kiosk mode in Android
(11 answers)
Closed 7 years ago.
Is there a way to hide all apps installed on the device and make only one app available to the user? In a way that the app automatically starts as soon as the screen is unlocked?
What I basically want to do is to have a device that's dedicated to the use of a single app. Can this somehow be accomplished? What options are available?
Since this app won't be distributed through google play or any other official channel, any even undocumented hacks would be an option. Any advise is welcome.
The only way that I think this can be implemented is by creating an custom launcher and include your app inside that launcher.
This question already has answers here:
Android APK file: Re-activate older APK file in Google Play Store
(4 answers)
Closed 7 years ago.
I want to know that when an user updates an app from Google playstore, Is there any way to go back to the older version of that app ?
No, once you launch the apk on Play Store whether or not it's accepted by Google you must upload a higher version or change the app configuration, I mean package name.
This question already has an answer here:
Android: app licensing, copy protection
(1 answer)
Closed 9 years ago.
I want to prevent my app from copying from device, ie that would be impossible to pull apk from file system.
Any ideas?
It is not possible. Users with their phones rooted will have the access to your app and they can do what they want with it - you must store your secret data on external servers and use other ways to access it - i.e. require user to log in.
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:
Android: Notify user of a newer version
(3 answers)
Closed 9 years ago.
Is there a way I can programmatically check if there is an update of my app on google play so I notify users? I know android google play has an automatic notifications but I would like to use my own notification/pop up message for update availability (sort of like what Viber app does).
Thank you
You could have a JSON file on your server containing the android:versionCode of the last version of you app. Retrieveng and comparing the version code will not be really complicated.
This information is not displayed on the Google Play Store. So a hacky script will not be able to retrieve this. Only the android:versionName is displayed.
There is no API that provides this information. If your application has INTERNET permission
<uses-permission android:name="android.permission.INTERNET" />
in your Manifest, then you could create a server which returns your current version number. If it differs from the installed version, then you could create the custom Notification.