Signin


#1

Hi All,

I am describing the requirement given below:

I am android to develop one app. In this App i will 2 text field like Username and password for Twitter and user will click on “Sign in” button this should call the Twitter API by passing the username and password and when user is authenticate and come back to method then save the access token for Twitter and save this access token in Database and show him the recent tweet.

My question is Which i need to call in Twiteer4j by passing the username and password?
I have checked this API
ConfigurationBuilder cb = new ConfigurationBuilder();
cb.setDebugEnabled(true)
.setOAuthConsumerKey(“MYCUSUMERKEY”)
.setOAuthConsumerSecret(“cnds”)
.setOAuthAccessToken(“sdfsd”)
.setOAuthAccessTokenSecret(“sds”);

in above code i can’t pass the username and password.please help me.