I just created a simple interface with two EditText fields to give Username and Password to log in with Twitter account. I have correctly added jtwitter.jar file in to my project. Then when I try to run the following code;
twitter = new Twitter(givenUsername, givenPassword);
try {
twitter.setStatus("hello");
Toast.makeText(getApplicationContext(), "login success...", Toast.LENGTH_LONG).show();
} catch (Exception e) {
System.out.println("Exception caz of setStatus :" + e);
}
it gives me an error;
Updater.run exception: winterwell.jtwitter.TwitterException: 401 Unauthorized http://twitter.com/statuses/friends_timeline.json
I have given Internet permission in my Manifest file.
Please help me to implement my own Android Twitter app.