My app can share a link on Facebook, but the shared link opens Google
play on the browser, not the Google play app directly. This get more
difficult for the user and will not generate much downloads. How can I get
the shared link to open the Google play app instead of the browser? This is
my code:
private void shareIt() {
Intent sharingIntent = new Intent(android.content.Intent.ACTION_SEND);
sharingIntent.setType("text/plain");
sharingIntent.putExtra(android.content.Intent.EXTRA_SUBJECT, "The app");
sharingIntent.putExtra(android.content.Intent.EXTRA_TEXT, "
https://play.google.com/store/apps/details?id=morph.galaxytt");
startActivity(Intent.createChooser(sharingIntent, "Share via"));
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
---
You received this message because you are subscribed to the Google Groups
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.