How to clear the value of getIntent().getAction()

Ven*_*yap 1 android

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)

Com*_*are 5

You cannot modify the Intent that was used to start the activity, sorry.