I got this 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 probably 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"));
}
On Tuesday, December 31, 2013 4:50:37 PM UTC+1, MobileVisuals wrote:
>
> Thanks for that useful information! I found this guide on how to implement
> a share intent:
>
>
> http://mobile.tutsplus.com/tutorials/android/android-sdk-implement-a-share-intent/
>
> On Monday, December 30, 2013 6:16:47 PM UTC+1, Parikshit Tomar wrote:
>>
>> What I understand from that you need a button by which you can share some
>> info to their facebook friends.
>>
>> For that you have three options 1. Use share intent to share any thing on
>> social sites. you can also filter these intents.
>> 2. use a third party library which will provide not facebook but also
>> another social site sdk integration such as till I remember is social auth.
>> 3. Use facebook sdk for better and best approach and you can TAGs friends.
>>
>> I apply all three options as i need.
>>
>> On Saturday, 28 December 2013 21:51:08 UTC+5:30, MobileVisuals wrote:
>>>
>>> I want to add a button, where people can share the link of the app on
>>> Google play to their Facebook friends. How can I implement the "share
>>> on Facebook" feature? Nebula galaxy live wallpaper is an app, which
>>> already have implemented this.
>>>
>>
--
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.