react-native-send-intent
react-native-send-intent copied to clipboard
Crash when adding calendar event
I get an edge-case crash when adding a calendar event (device was reported as an un-rooted LENNY3 in Europe):
Fatal Exception: android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.INSERT dat=content://com.android.calendar/events flg=0x10000000 (has extras) }
at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:1809)
at android.app.Instrumentation.execStartActivity(Instrumentation.java:1523)
at android.app.ContextImpl.startActivity(ContextImpl.java:682)
at android.app.ContextImpl.startActivity(ContextImpl.java:664)
at android.content.ContextWrapper.startActivity(ContextWrapper.java:331)
at android.content.ContextWrapper.startActivity(ContextWrapper.java:331)
at com.burnweb.rnsendintent.RNSendIntentModule.addCalendarEvent(RNSendIntentModule.java:190)
Strange, since the sendintent code is checking resolveActivity. I suspect it's an instance of https://stackoverflow.com/questions/22479211/intent-resolveactivity-null-but-launching-the-intent-throws-an-activitynotfou , since not sure how else this could happen.