Share an image to specific apps

I want to show a dialog with specific apps list and want to share my picture along with text message.

Something like this but I want to add only few e.g Facebook and Twitter.

How can I do that?

Answers


I think to achieve this you need to create your own Alert Dialog with specific application, and share picture with that specific application when user click on it.

Edit : sharingIntent.setType("text/plain"); // for plain text

     sharingIntent.setType("image/jpeg");   // For Jpeg Image

It is possible to target specific applications using the “setType” method, but this can be a risky strategy, potentially causing problems if the user does not have those particular apps installed. By keeping the sharing function as generic as possible, you give your users control over how they want to share your content. Sticking to the standard behaviour for sharing in Android applications also creates an intuitive user experience.

Edit : Look Here for Example .


Need Your Help

backButton of NavigationController don't appear

iphone objective-c

I have already post this question but this time I post code. So I have a uiviewController, and in the viewDidLoad of this viewController I hide the backButton of the navigationController. After tha...

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.