How to launch Android Calendar application using Intent (Froyo)

后端 未结 6 1383
被撕碎了的回忆
被撕碎了的回忆 2020-12-01 02:00

I want to open up the Calendar application from an android application. When i searched online, all i got is to create new events using intent. I could find Intents to open

6条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-01 02:07

    Intent intent = new Intent(Intent.ACTION_EDIT);  
    intent.setType("vnd.android.cursor.item/event");
    intent.putExtra("title", "Some title");
    intent.putExtra("description", "Some description");
    intent.putExtra("beginTime", eventStartInMillis);
    intent.putExtra("endTime", eventEndInMillis);
    startActivity(intent);
    

提交回复
热议问题