I want to make a custom share menu on which apps stuff can be shared and add some custom options.
I don't like the standard createchooser because apparently nobody knows how to customize this crap: Android - ShareActionProvider Share Menu add particular option
So what would be the code to send text to facebook or any other particular app?
You'd have to implement SDKs provided by each app that you want to share with.
E.g. here's Facebook's Sharing SDK
In this way, you would limit which applications users can share with, to those that you've integrated. This isn't what you want, you should continue using Android's ShareActionProvider as that flips the dependency around, to where third-party apps implement sharing, and you just talk to the Android Sharing API.
Related
i have just started to develop a basic app, and have integrated an SDK for online chat, using which customers could chat with customer support.
I want implement if someone want to share screen shot, it should be done without going into gallelry just like android native shows default apps for sharing like whatsapp,facebook, my app also could be reflected there.
Is it possible??
I want to support deeplinking on clicking on the link shared in any social app. There is a separate steps to support deeplinking from facebook, twitter and Google +. There might be support available for some other apps, but not for all the apps. I want to make it generic. Is there a way to that. I must use meta tags for deeplinking. But for deeplinking, twitter has used googleplay and facebook has used al:android:url to detect our app. If I want to support for other apps , I must use similar tags like this. Does anyone know how this can be achieved ?
Thanks in Advance
...and to make matters worse, Facebook doesn't really support their own AppLinks standard anymore, Google uses two totally different systems depending on whether you're using the standalone Chrome browser or not, and App Links (yes, they're different from AppLinks) are now a thing. You're right: app deep linking is an incredible, huge pain to implement and there truly is no 'generic' option at the moment.
This is why Branch.io (full disclosure, in case it wasn't obvious by now: I'm on the team) exists. We wrap all of these different standards into a single free service, so that all you worry about is one URL that works everywhere. It's the closest you can get to a 'generic standard' with the current realities.
So sharing on social channels is a hot topic these days.
I have done some research on how to share to Facebook, Twitter, LinkedIn and G+.
Lets start with an example.. I want to share text, and an image to 4 social channels (Facebook, Twitter, LinkedIn and G+), but without the user adding more text.
My findings so far:
You can use Intent.ACTION_SEND but there are a lot of limitations like:
You need to make your own chooser if you want to filter the social channels
Sending text and image is not possible without the user adding more text
Using default social channel APIs, but:
Can be overhead, you only want to share.
Are not always stable.
There are some open source libraries you can use, but they are not as complete as you may think
Use paid services (do I need to say more...)
So in conclusion, I need help. What is the way to go?.
You don't need to do anything for the Intent.ACTION_SEND. Specifically because the apps listed are meant to handle this intent.
This should be perfectly fine because you'd rather have the user's choose what they'd like to share it on then constrain them to one. I'd say if you're looking to share then stick with the standard on android and use ACTION_SEND.
You can't expect the user to have Application A when they may prefer using Application B. Don't think in terms of constraint.
Also as your comment about the limitation of ACTION_SEND.. I'd recommend re-reading the documentation because I don't see that limitation anywhere:
http://developer.android.com/reference/android/content/Intent.html#ACTION_SEND
You can use SocialAuthwhich supports 10 social providers and it provides you functionality's like share text , upload image , get albums , feeds etc.
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.
I want to know how to integrate google plus in my app. Currently I am developing news application, in which I would like to have a news sharing option for things like facebook, twitter, gmail, and google plus. How can I achieve this functionality?
Sharing the Android way doesn't involve integrating services one by one. That would require you to update your app any time a new service launches that you might want to integrate with. Instead you use the ACTION_SEND Intent.
This blog post gives a good intro to its use: http://sudarmuthu.com/blog/sharing-content-in-android-using-action_send-intent
When you implement sharing this way your users can share using any app they have installed on their device. If they install a new app that can accept sharing intents your app will immediately be able to integrate with it with no changes from you. The Google+ app accepts these sharing intents.
You can easily share to Google+ with ShareCompat, you only need the support library for that.
http://googleplusplatform.blogspot.co.at/2012/05/sharing-rich-content-from-your-android.html