This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
Perform a task on uninstall in android
My android app creates some folders on sd card when it is installed on device.
Now If user uninstall the application, I would like to clean up these folders created at the time of creation...so is it possible to implement it in the android OS?
You can not manage the things when your application gets uninstalled from the device. still if you want to delete your folders there is one way(NOT RECOMMENDED), you can make one other application that will watch on your application so when your application gets uninstalled, that app will delete your folders that were created by your app. But it is not the way to achieve this. there are unfortunately no other way to handle things at the time of uninstalling the application.
Related
This question already has answers here:
When I uninstall my app , Can we remove my folder which is created through my app?
(4 answers)
Closed 5 years ago.
Is this possible to know that user is going to uninstalling my application. Because I want to delete the folder that is created by my application. So for the task, I am not getting how to do that? Please help me.
Because I want to delete the folder that is created by my application
Save your data in the location returned by getFilesDir(). It will get cleared automatically by android system when your app got uninstalled. So you don't have to worry.
see the official doc
This question already has an answer here:
Is it possible to intercept app uninstall?
(1 answer)
Closed 8 years ago.
I understand that this question has been asked a number of times. But I would like to know if I can open a webpage after my app is uninstalled.
Before you say no, Please note that there are some apps like apus launcher which can detect when their app is uninstalled and can open a webpage after uninstall.
Thanks a lot
Not sure about Apus Launcher's uninstall bahavior, but this provides a pretty definitive no to your question...
'The package that is being installed does not receive this Intent.'
http://developer.android.com/reference/android/content/Intent.html#ACTION_PACKAGE_REMOVED
Just installed Apus Launcher, ran it, and then uninstalled it. As I expected, it doesn't put up any webpage after uninstall - I fear you have been misinformed.
(Apus is however doing some clever things, such as placing an overlay around the chooser dialog to encourage you to choose Apus if your system has multiple apps capable of handling a particular intent).
I notice that there are multiple Apus produced apps - if you have multiple of these installed, then it's very possible to write two apps that each detect the other app being uninstalled - but not the case that any one of the apps can detect its own uninstallation.
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:
Is it possible to prevent user from uninstalling application in Android?
Thanks in advance for paying attention on this problem...!!
Is this possible to install an application that no one can uninstall it. I just mean that by going
setting --> Apps --> Manage Applications --> by selecting an app and click on UnInstall.
I want that If I install an application in a device, then no one can uninstall it.
Yes, it's possible. You just have to write/modify your own custom rom. If you're in a large corporation/organization. Your corporation/organization may want to have its own rom for its own employees' company-owned phones.
Or if you're in the consumer space, the other option is to convince a cell phone carrier to make your app a default one (and to prevent the user from uninstalling it). This is not a technical challenge. It's just a commercial one. Be prepared to pay them lots of money to have you installed by default on their phones.
And be prepared for some serious backlash in your ratings in the Google Play/Market. Two years ago, I was incredibly frustrated at having the NASCAR application on my phone, that I couldn't uninstall (despite the fact that I couldn't care less about NASCAR), and of course, I wasn't the only one. The app's rating went down to 1 star because of this and created lots of ill-will towards NASCAR.
This question already has answers here:
Updating an application OTA
(3 answers)
Closed 9 years ago.
I have created a simple application and I wonder what are method of updating it directly from its interface. I want to create a script that checks for new updates and if any are found a button saying "Download new update" should be displayed. If the user clicks on it either the new version is downloaded from the server, the running instance is closed and the downloaded file (.apk) is executed (to be installed), or update the existing one as the application is running (maybe the Android API has something for that).
Well, I am asking for some references, links or some clues. I also must specify that I don't want the settings and other local data to be deleted when installing the new version.
A much simpler way to do that is have to host the apk on your server and having a button in your app that opens the apk in the browser were the user can install it.