For versions greater than 9 add the following code
if (android.os.Build.VERSION.SDK_INT > 9) {
StrictMode.ThreadPolicy policy = new StrictMode.ThreadPolicy.Builder()
.permitAll().build();
StrictMode.setThreadPolicy(policy);
}
This (http://www.androidhive.info/2012/09/android-twitter-oauth-connect-tutorial/) is a good link for connecting to twitter using twitter4j. you will need to load the authorization url in webview so that you can open the login page in application.