How to add calendar events in Android?

前端 未结 10 1345
太阳男子
太阳男子 2020-11-22 13:31

I\'m just getting up to speed on Android, and today in a project meeting someone said that Android has no native calendar app so users just use whatever calendar app they li

10条回答
  •  暖寄归人
    2020-11-22 14:12

    you have to add flag:

    intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
    

    or you will cause error with:

    startActivity() from outside of an Activity context requires the FLAG_ACTIVITY_NEW_TASK

提交回复
热议问题