How to share link via twitter in android? -


In my app I need to share the link to the promo site via Facebook and Twitter;

  Request Request = New Request (session.getActivisation (), "me / feeds", bundle, http method.post, new request, callback () {@ Override public zero-zero (response) {...}});  

But there is no Twitter SDK for the Android (the Trily I use Twitter 4g) and there is no way to post the bundle

then Twitter How to tweet through?

If you send text from the link like "our link is:" - Twitter will understand and Get information from the link and show it - as I think you need to see your recognized link in Twitter feed. To post a link, you can create intentions like Adrian Seekro or create your own custom dialogue using asynctask as you mentioned:

  @Override protected bundle doInBackground ( Bundle ... parameter) {bundle arguments = counseling [0]; Bundle result = new bundle (); String Paramazaze = Argus String (message); String Paralink = Arggget String (LINK); Configuration Builder Builder = New Configurable (); Builder.setOAuthConsumerKey ("Your Consumer"); Builder.setOAuthConsumerSecret ("Your Consumer Secret"); String AccessToken = "Your Token"; String accessoconcet = "your secret"; TwitterFactory Factory = New TwitterFactory (builder.bild ()); Mtwitter = factory.getInstance (New AccessToken (AccessToken, AccessTokenSearch)); Try {statusUpdate status = new StatusUpdate (paramMessage); If (paramLink! = Null) {status = new StatusUpdate (paramMessage + paramLink); } MTwitter.updateStatus (status); } Grip (TwitterExpress E) {result.putString (RESULT_ERROR, e.getMessage ()); } Return results; }  

Comments

Popular posts from this blog

java - Can't add JTree to JPanel of a JInternalFrame -

javascript - data.match(var) not working it seems -

javascript - How can I pause a jQuery .each() loop, while waiting for user input? -