I'm launching an activity using shortcut and performing some operations. I want to set empty value to getIntent().getAction()
private static final String SHORT_CUT_MY_BARCODE = "android.intent.action.VIEW.myBarCode";
if (SHORT_CUT_MY_BARCODE.equals(getIntent().getAction())) {
//do something
}
// todo need to clear getIntent().getAction() here.
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
23 次 |
| 最近记录: |