I have checked with this link but there its mentioned about long clicks. but I am facing this after clicking on button of custom dialog. I have pasted my code over here. ca
In my case I was using al this intent flags together to intent the activity:
intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_NEW_TASK);
intent.addFlags(Intent.FLAG_ACTIVITY_NO_HISTORY);
intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK);
Just left the clear_top flag and it solved the problem:
intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
this is not a problem related to your code, but related to S4 android version. Same question has been posed on stackoverflow : sendUserActionEvent() is null
So, just ignore it ;)