Implement Android Share - android

I've seen plenty of example where people are sharing content from their application but I want to be able to share content with my application e.g. Users can press share via then Twitter.
Does anybody know any tutorials or guides? Also would you be able to share with a service? Would be a great feature to include :) Thanks
P.S. I dont want to share with Twitter/ Facebook, I want to share from apps like the browser to my app.

Have you looked at these Developer docs?
It has an example code snippet.

You can either use the SDK's / API's available for Facebook and Twitter or else you could use Intent.ACTION_SEND to share text and images to the walls at Facebook and Twitter...

Related

Receiving multiple share targets on the same Android app

I want to allow people to share images and text to my app. When someone shares an image, they have the choice to share it to Page A or Page B. It's similar to what Facebook does below:
I have looked at Android's official documentation on sharing. It doesn't seem to explain anything on multiple share targets, unless I'm missing something.

Standard way to share and print items in PhoneGap

I'm writing mobile application using PhoneGap.
This app intent to be installed on Ipad and Android Tablets.
I've HTML page which I need to implement two features on it:
Share (with other apps - such email, WhatsApp, Facebook, Twitter etc) and Print.
I would like to know what is the best way to do it.
In addition which format is the best to use in order to Share and Print (PDF? Other?)
Thank you,
Moshe
heres the plugin for printing, and theres plugin for sharing

Facebook sharing without any dialog

Is it possible to share facebook stat from my app instantly without any dialog? This is because I don't want the user to edit the post. Thanks in advance.
It is possible by using Facebook Login and then making Graph API calls to share links, photos, etc.
Make sure people have clear sharing experiences, though, and that the app follows Platform Policies wrt not surprising people / etc.

Is there a way in which Pinterest can be integrated with an android Application

I wish to drop pins or view the photo's which are of my interest in my Android Application, do we have any SDK by pinterest , as I would want to integrate the same inside my Android Application.
Any suggestions would be like a boon
http://developers.pinterest.com/android/
This is for others who might want to get started with pinterest and land in this page.
It seems like the answer is "not yet"... But go and sign up with them, I'm sure it's on their radar and will come soon enough if it's in their basic FAQ.
https://support.pinterest.com/entries/21151603-i-m-a-developer-does-pinterest-have-a-public-api
Another option (or just for the meantime before they release an official API) may be if the official pinterest app offers an intent for sharing? Plenty of other social web entities like twitter, facebook, etc give intent based access in their official apps, that let you dump media, links, etc into them from other apps in the system, and have the information posted to your accounts.

Best way for social sharing in Android

I've been looking for a way to share information to social networks. I've found 2 possible solutions:
Look for installed apps and sent an intent (like android uses in it's gallery)
Use the socials network api
When looking for quick ways to implements i say use the installed apps for that but if it goes customization and generalization i think the second option is the best.
I've a hard time deciding if one outweighs the other or not.
So my question is: What is the best approach? One of the ones i suggested or a whole different way?
The Android OS uses intents to do this...
While searching for an answer to this question I came across:
Social sharing on mobile
Quoting #NewProggie
Intent share = new Intent(Intent.ACTION_SEND);
share.setType("image/jpeg") // might be text, sound, whatever
share.putExtra(Intent.EXTRA_STREAM, pathToPicture);
startActivity(Intent.createChooser(share, "share"));
Depending on the MIME type you put in for setType, the chooser will show email, gmail, SMS, twitter, facebook, flickr, or whatever!
This is the easiest way to share content for the developer, and a proven method.
I have worked with the Facebook API and I know that it's a really good one. It looks if a native Facebook app is installed, if not it pops a little popup on your screen where it does it things, if yes, it uses that app to do your things.
I think you have to take the same approach for all your Social Networks: check if app exist. if yes, use. if no, use own implementation
You might also check Socialize out http://www.GetSocialize.com . Full feature list at http://go.GetSocialize.com/features It'll let you share social actions in the app out to social networks (currently Facebook; Twitter coming this month, then likely Google+ after that).
What about the case when user does not have specific social network API installed? Then you are left with only using the API. Some might argue that if user doesn't have facebook app installed, he should not be able to share stuff on facebook, but I for example use facebook throught their mobile site, I won't waste precious space on my G1 for the hefty facebook app.
I'd go with using the API.

Categories

Resources