This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
How to start a Service when .apk is Installed for the first time
Is there a way to auto launch an android app after it's installed for the first time? Everything I've found online indicates that this is a no but there is one app that seems to be doing it, it's called 'Plan B'.
Any help is appreciated.
Check this out, it addresses the exact problem that you wish to solve: How to start a Service when .apk is Installed for the first time
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 answers here:
How to prevent an application from being uninstalled?
(2 answers)
Closed 9 years ago.
I have developed Android Application and even I installed into the Devices. But how to prevent the application/apk not to uninstall by the others/user of the Device.
Regards
Anand
You CAN'T.
Until your application is a part of Framework, user of your application can uninstall the app and this is right of user.
Although you can track the uninstallation of app by implementing Device Admin API
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.
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.
This question already has answers here:
Closed 11 years ago.
Possible Duplicate:
How to ensure an Android app can only be run on a tablet?
Hi Is there any way to restrict the application so that It can only be installed in tablet?
Thanks
Sunil Kumar Sahoo
Yes go into the android market publisher page.
Make sure your app is uploaded.
Click on your app name.
Scroll down to where it says 'Show devices'.
Click that and you can exlude all mobile phones from downloading your
app.
Failing that you can set some parameters in your manifest for screen size etc, but this is less reliable.