有关Android ROM的库存,我们可以通过以下方式启动Google日历应用: Intent intent = new Intent(Intent.ACTION_EDIT);在Android上启动Calendar应用程序的通用意图?
intent.setType(“vnd.android.cursor.item/event”);
intent.putExtra(“title”,“Some title”);
intent.putExtra(“description”,“Some description”);
startActivity(intent); 但是,它看起来像制造商与自定义用户界面实现了自己的日历,如HTC Sense UI。 我不确定MotoBlur和三星TouchWiz,但我认为他们也是这样做的。
所以问题是:是否有一个通用的意图,我们可以使用在Android手机上启动日历应用程序(无论是股票的Android或自定义用户界面)?或者我们需要编写一个包装类来检查并启动适当的日历?