Skip to content

Instantly share code, notes, and snippets.

@javieranton-zz
Created May 12, 2020 20:44
Show Gist options
  • Save javieranton-zz/42b50a83890b1d5938e4351c1aa2e769 to your computer and use it in GitHub Desktop.
Save javieranton-zz/42b50a83890b1d5938e4351c1aa2e769 to your computer and use it in GitHub Desktop.
public String getPushIntent()
{
String actionId = null;
if (com.codename1.impl.android.AndroidNativeUtil.getActivity() != null){
Activity activity = com.codename1.impl.android.AndroidNativeUtil.getActivity();
android.os.Bundle extras = activity.getIntent().getExtras();
if (extras != null) {
actionId = extras.getString("pushAction");
extras.remove("pushAction");
activity.setIntent(new Intent());
}
}
return actionId;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment