use*_*827 5 calendar android-intent android-4.0-ice-cream-sandwich
我有一个应用程序的问题在我测试的所有ICS手机上工作正常,但没有三星与S Planner我正在使用行动选择选择一个事件.调用s计划程序何时返回时崩溃的问题.我决定在手机上安装标准的Google日历,因为这可以解决我的问题.这是代码
public static String ANDROID_CALENDAR_AUTHORITY_1_0 = "calendar";
public static String ANDROID_CALENDAR_AUTHORITY_2_0 = "com.android.calendar";
public static String ANDROID_CALENDAR_PROVIDER_PATH_CALENDARS = "calendars";
public static String ANDROID_CALENDAR_PROVIDER_PATH_EVENTS = "events";
selected_google_calendar_id = getCallPlanCalendar();
Uri uri = new Uri.Builder()
.scheme(ContentResolver.SCHEME_CONTENT)
.authority( CalendarProviderConstants. ANDROID_CALENDAR_AUTHORITY_2_0)
.appendPath(CalendarProviderConstants.ANDROID_CALENDAR_PROVIDER_PATH_EVENTS).build();
Intent intent = new Intent(Intent.ACTION_PICK, uri);
intent.putExtra(EXTRA_CALENDAR_ID, selected_google_calendar_id);
startActivityForResult(intent, 2);
Run Code Online (Sandbox Code Playgroud)
问题是我无法获得打开Google日历应用程序的代码,即使我删除了s planner.如果它被删除它崩溃有没有办法改变默认的应用程序打开或已经sumsung黑客攻击它只有s计划将打开?
| 归档时间: |
|
| 查看次数: |
1844 次 |
| 最近记录: |