method retrieveRequestToken raises “Communication with the service provider failed: null”
问题 I am using twitter4j to send tweet from my application. When I invoke the method retrieveRequestToken, I get the error "Communication with the service provider failed: null". public static void askOAuth(Context context) { try { // Use Apache HttpClient for HTTP messaging consumer = new CommonsHttpOAuthConsumer(CONSUMER_KEY, CONSUMER_SECRET); provider = new CommonsHttpOAuthProvider( "https://api.twitter.com/oauth/request_token", "https://api.twitter.com/oauth/access_token", "https://api