Improvement
Not yet merged but https://github.com/DroidKaigi/conference-app-2020/pull/307/files#diff-2b4a7fcb147ae35e0c939da24e583057R33 will throw ActivityNotFoundException if no calendar app has been installed to your device.
We haven't provided a way to handle such a situation, but I believe that it would be great to show a warning and not to exit from an application.
The base strategy is like the following.
fun openCalendar(calendarImplicitIntent: Intent) {
try {
activity.startActivity(implicitIntent)
} catch (e: ActivityNotFoundException) {
onError(NoCalendarIntegrationFoundException(e))
}
}
Please note that this example may not be compile-able because it's kinda pseudo code.
## Links
I will try this :raising_hand:
@k-tomoyasu
I assigned this issue to you. Thank you so much. Please feel free to ask us if you have any questions.
The warning message would be like below.
No calendar application was found. for Englishγ«γ¬γ³γγΌγ’γγͺγθ¦γ€γγγΎγγγ§γγ for Japanese@k-tomoyasu
For your information, #307 has been merged into master branch.
Thanks for information, sorry for my late reply.
I will try this weekend!