sendUserActionEvent() is null sendUserActionEvent() is null android android

sendUserActionEvent() is null


I also encuntered the same in S4. I've tested the app in Galaxy Grand , HTC , Sony Experia but got only in s4. You can ignore it as its not related to your app.


I solved this problem on my Galaxy S4 phone by replacing context.startActivity(addAccountIntent);with startActivity(new Intent(Settings.ACTION_ADD_ACCOUNT));


Same issue on a Galaxy Tab and on a Xperia S, after uninstall and install again it seems that disappear.

The code that suddenly appear to raise this problem is this:

public void unlockMainActivity() {    SharedPreferences prefs = getSharedPreferences("CALCULATOR_PREFS", 0);    boolean hasCode = prefs.getBoolean("HAS_CODE", false);    Context context = this.getApplicationContext();    Intent intent = null;    if (!hasCode) {        intent = new Intent(context, WellcomeActivity.class);    } else {        intent = new Intent(context, CalculatingActivity.class);    }    intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);    (context).startActivity(intent);}