Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

twitter plugin android error #132

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import twitter4j.TwitterFactory;
import twitter4j.User;
import twitter4j.auth.AccessToken;
import twitter4j.conf.ConfigurationBuilder;
import android.app.ProgressDialog;
import android.content.Context;
import android.os.Handler;
Expand Down Expand Up @@ -56,8 +57,12 @@ protected static void LogD(String msg) {

public TwitterApp(Context context, String consumerKey, String secretKey) {
this.context = context;

// ssl
ConfigurationBuilder configBuilder = new ConfigurationBuilder();
configBuilder.setUseSSL(true);

mTwitter = new TwitterFactory().getInstance();
mTwitter = new TwitterFactory(configBuilder.build()).getInstance();
mSession = new TwitterSession(context);
mProgressDlg = new ProgressDialog(context);
mProgressDlg.setCancelable(false);
Expand Down Expand Up @@ -232,4 +237,4 @@ public interface TwDialogListener {
public void onError(int flag, String value);
}

}
}