Juanin
Juanin

Reputation: 600

Android Market subscription payment model. How to?

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)?

Upvotes: 2

Views: 2829

Answers (3)

RandomNickName42
RandomNickName42

Reputation: 5955

Check out the new in-app billing functionality, you may be able to use it to bill time/subscription renewals.

Upvotes: 1

Doge
Doge

Reputation: 6543

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.

Upvotes: 2

WarrenFaith
WarrenFaith

Reputation: 57672

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...

Upvotes: 1

Related Questions