3

私は自分のアプリケーションでこのコードを使用していて、次のページを取得しています。

Intent calendarIntent = new Intent(Intent.ACTION_EDIT);  
            calendarIntent.setType("vnd.android.cursor.item/event");
            calendarIntent.putExtra("title", "Title");
            calendarIntent.putExtra("beginTime", new Date());
            calendarIntent.putExtra("endTime", new Date(2013,7,7));
            calendarIntent.putExtra("description", "Description");

            startActivity(calendarIntent);

ここに画像の説明を入力してください

でもこのページが欲しい

ここに画像の説明を入力してください

コードで何を変更すればよいですか。私を助けてください。

ここに画像の説明を入力してください

4

1 に答える 1

1

これを試して :

    long startMillis;
    ...
    Uri.Builder builder = CalendarContract.CONTENT_URI.buildUpon();
    builder.appendPath("time");   
    ContentUris.appendId(builder, startMillis);
    Intent intent = new Intent(Intent.ACTION_VIEW).setData(builder.build());
    startActivity(intent);
于 2012-07-23T07:23:08.057 に答える