Created
May 12, 2020 20:44
-
-
Save javieranton-zz/42b50a83890b1d5938e4351c1aa2e769 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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