views:

48

answers:

2

I would like to have two apps. One to do the real job and another one to carry the payment on a monthly basis (licensing app).

Users must download the licensing app each month from Market. But, should they have to uninstall the last month's app before that?

Can an app auto destroy itself (uninstall itself)?

+1  A: 

You have to create a complete new app each month, because a once payed app stays payed even if you uninstall your device and/or reset it. The information which app you have bought is tied to the account you use.

To get a monthly fee, you need to work with another system then the android market... I cant think about a user who want to download a new "payed" app each month...

WarrenFaith
+2  A: 

You have three options.

Option 1 - Your solution, where the user must install a new payed app every month (code on how to uninstall an app follows).

Option 2 - Make a server/authentication solution, where the app pings a server to ensure the user has payed for that month.

Option 3 - Make your own version on Apple's in-app purchases, where the user can say, pay via Paypal every month to keep the app running.

Code to uninstall apps:

Intent intent = new Intent(Intent.ACTION_DELETE);
String packageName = "com.example.app.package";
Uri uri = Uri.fromParts("package", packageName, null);
intent.setData(uri);
startActivity(intent);

Your app would need the android.permission.DELETE_PACKAGES permission to run the above code.

h0b0
Thanks for the code. Yes I have a licensing server (my app needs a server anyway, its a news-push system). But I would like to obey the Market ToS and sell inside the market every month.The comment from WarrenFaith need to be checked out before any attemp to sell the app.
Juanin
PayPal solution works well, but not for Google's Market. We have implemented in our SlideME version for the app (http://slideme.org/application/forex-calendar). Now we have 3 versions for our app( 2 for Market and 1 for rest of the world). But things goes wrong while we try to submit for Motorola's ShopForApps. The paypal version has been rejected. We are considering to change the full aproach to have one version that shifts from trial to paid with the installation of another licensing app in the same terminal.
Juanin