java – Automatic download of the application after payment

Question:

There is a mobile application version "LITE", and there is a version of it "FULL" (paid).

How to make a purchase directly in the LITE application so that when you click on the button, the Billing form opens, and after payment, the FULL version is downloaded?

I googled the manuals – all some separate lines: I can’t make a complete picture. Please describe it.

Answer:

Wouldn't a slightly modified version suit you?

  1. Publish a FULL application for the appropriate price (with a bonus – they can buy it immediately and directly).
  2. In the LITE application, press the button to call the installation procedure for the FULL version:

     try { startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("market://details?id=" + PACKAGE_NAME))); } catch (android.content.ActivityNotFoundException e) { startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("https://play.google.com/store/apps/details?id=" + PACKAGE_NAME))); }
Scroll to Top