谁能告诉我命令,我们可以跳转到日历中的任何日期?

时间:2015-09-11 09:12:17

标签: android

public void a(查看v)     {         日历startTime = Calendar.getInstance();

    startTime.set(2013,6,25);
    Uri uri = Uri.parse("content://com.android.calendar/time/"
            + String.valueOf(startTime.getTimeInMillis()));

    Intent intent = new Intent(Intent.ACTION_VIEW, uri);
    // Use the Calendar app to view the time.
    startActivity(intent);
}

0 个答案:

没有答案