flickr, tumblr , instagram share intent in android -


i want share image flickr, tumblr, instagram. want these 3 installed apps.. found instagram

intent shareintent = new intent(intent.action_send); shareintent.settype("image/*"); shareintent.putextra(intent.extra_text, "" + getsharetext()); shareintent.putextra(intent.extra_subject, "" + getsharetext()); shareintent.putextra(intent.extra_stream,                     uri.parse("file://" + file.getabsolutepath())); shareintent.setpackage("com.instagram.android"); 

can have tumblr , flickr also? yes, can oauth process integrating libs. want share via particular installed app.

help!! thanks.

just set correct package name in :

sendintent.setpackage(package_name); 
  • tumblr : com.tumblr
  • flickr : com.yahoo.mobile.client.android.flickr

you can find package names in google play store urls :

https://play.google.com/store/apps/details?id=package_name

ps : better check if app installed on device first :

  try   {     getpackagemanager().getapplicationinfo(package_name, 0);   }   catch (packagemanager.namenotfoundexception e)   {     // twitter not installed   } 

sharing using send_action not require oauth in app, auth managed in targeted app.

thanks


Comments

Popular posts from this blog

.htaccess - First slash is removed after domain when entering a webpage in the browser -

Automatically create pages in phpfox -

c# - Farseer ContactListener is not working -