点击跳转到日历指定日期:
Intent intent = new Intent(Intent.ACTION_VIEW)
.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK)
.setData(Uri.parse("content://com.android.calendar/time/" + String.valueOf(optLong(KEY_TIMEDATA))));
startActivity(intent);
点击跳转到短信指定联系人:
Intent intent = new Intent(Intent.ACTION_VIEW);
intent.putExtra("address", address);
intent.setType("vnd.android-dir/mms-sms");
startActivity(intent);
Intent intent = new Intent(Intent.ACTION_VIEW)
.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK)
.setData(Uri.parse("content://com.android.calendar/time/" + String.valueOf(optLong(KEY_TIMEDATA))));
startActivity(intent);
点击跳转到短信指定联系人:
Intent intent = new Intent(Intent.ACTION_VIEW);
intent.putExtra("address", address);
intent.setType("vnd.android-dir/mms-sms");
startActivity(intent);