How to easily post tweet without authentication in Android

All tutorials I have found on Google lead to me create a Twitter application, then integrate it in Android using consumer key/secret. Here is a simple method if you simply need to post a tweet using the installed twitter application or the browser.

 

String url ="http://www.twitter.com/intent/tweet?url=ANYURL&text=ANYTEXT";
Intent i = new Intent(Intent.ACTION_VIEW);
i.setData(Uri.parse(url));
MagentoActivity.getContext().startActivity(i);

Leave a comment