/** * Triggers the last deep link licensing URL returned from the server, which redirects users to a * page which enables them to gain access to the app. If no such URL is returned by the server, it * will go to the details page of the app in the Play Store. */ public void followLastLicensingUrl(Context context) { String licensingUrl = mPolicy.getLicensingUrl(); if (licensingUrl == null) { licensingUrl = "https://play.google.com/store/apps/details?id=" + context.getPackageName(); } Intent marketIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(licensingUrl)); context.startActivity(marketIntent); }