Eyvind Almqvist
- Forum posts: 3
Jan 10, 2014, 11:43:16 AM via Website
Jan 10, 2014 11:43:16 AM via Website
I got the sharing of the app to work, 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, "XXXX");
startActivity(Intent.createChooser(sharingIntent, "Share via"));
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, "XXXX");
startActivity(Intent.createChooser(sharingIntent, "Share via"));
Recommended editorial content
With your consent, external content is loaded here.
By clicking on the button above, you agree that external content may be displayed to you. Personal data may be transmitted to third-party providers in the process. You can find more information about this in our Privacy Policy.