Friday 15 January 2010

android - Is it possible for an application to uninstall itself after a period of time? -


I plan to give an app as a test to the customer, and I will automatically uninstall it after some time I wish to do My app does not require an internet connection, can it be done?

Thank you! First, uninstall the app is not a good way Generally, you need the following algorithm:

1) Get the option () in the first activity (for example, in the first activity) on the start of your app and check the key along with the date The first start (for example "First startup") In addition, the key reads the "lastestartaid"

2) If the key "First Start Magistrate "does not exist - it is the first start of your app, to get the current date and instead continue the normal work of the application, write it as both the key. 3) If the key "First StartDate" is present - then get the current date and check that your case is not being terminated (scrutinizing the days between the first start and the current date). Also, check that the current date has more or similar dates in the "lastestartdate" (protection from the changing date from the device). If the current date is less than "lastestrate" - this date is hack and the user has taken the time. In this case you can end the test (see figure 5).

4) If the test has not expired - OK, continue the normal work and type the current date in the "lastestartate"

5) If the deadline has expired - Check the false and close activity when testing the end of time about the user dialog () - testable = click on the wrong button.

I think this would be better than simply uninstalling the app.

No comments:

Post a Comment