Intent intent = getIntent();
// Prevent SDL sending filedropped event. Let us do that instead.
setIntent(null);
handleIntent(intent, true);
setIntent(null) will lead to crash on HarmonyOS,I commented out this line of code and it works well for now on HarmonyOS and other different customized android system.
Crash result intent.getHWflags() throw NullPointerException,this method are not native android framework,is from HarmonyOS's customized framework,I'm not very familiar with this,so that's all I can offer.
setIntent(null)
will lead to crash on HarmonyOS,I commented out this line of code and it works well for now on HarmonyOS and other different customized android system.Crash result
intent.getHWflags()
throw NullPointerException,this method are not native android framework,is from HarmonyOS's customized framework,I'm not very familiar with this,so that's all I can offer.