Error Inserting Event into Calendar with Intent

后端 未结 4 1607
离开以前
离开以前 2021-01-20 19:14

I\'m trying to insert events to the calendar from a fragment, but I keep getting an error that no activity is found to handle Intent.

Here\'s the error

4条回答
  •  不思量自难忘°
    2021-01-20 20:02

    Check if there is any activity that resolves this intent

    if (intent.resolveActivity(getPackageManager()) == null) {
    }
    

提交回复
热议问题