Crash on getting email id of twitter login

android

#1

Hi,
I am integrated twitter login into my app using fabric plugin. App is working fine on login and authorization screen.

But when i click on allow button, Which is show on share your email address dialog then I got this exception message java.lang.IllegalStateException: Could not execute method for android:onClick.


#2

Can you include the full stack trace and SDK version?


#3

Hello EricFrohnhoefer,

    I used the fabric sdk and i got this error, When I click on the allow button of share email dialog.

   Error: Could not execute method for android:onClick
  
  i used this line of code for getting email addres.

authClient.requestEmail(session, new Callback() {
@Override
public void success(Result result) {
furtherCheck(result.toString(), “”, “”, Constant.loginTypeSocial);
}

@Override
public void failure(TwitterException exception) {
    exception.printStackTrace();
    Toast.makeText(Login.this,exception.getMessage(),Toast.LENGTH_SHORT);
}

});


#4

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.