看一下这个:http://www.developer.com/ws/article.php/3850276/Working-with-the-Android-Calendar.htm http://www.developer.com/ws/article.php/3850276/Working-with-the-Android-Calendar.htm
EDIT:
要从按钮单击事件打开日历,请将此代码添加到 onClick 方法中:
Intent i = new Intent();
//Froyo or greater (mind you I just tested this on CM7 and the less than froyo one worked so it depends on the phone...)
cn = new ComponentName("com.google.android.calendar", "com.android.calendar.LaunchActivity");
//less than Froyo
cn = new ComponentName("com.android.calendar", "com.android.calendar.LaunchActivity");
i.setComponent(cn);
startActivity(i);
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)