设置系统时间

int[] time = {2020,6,12,12,20,0}; //时间{年,月,日,时,分,秒}
Intent mIntent1 = new Intent("android.ido.intent.action.settime");
mIntent1.putExtra("time",time);
sendBroadcast(mIntent1);
文档更新时间: 2021-04-29 18:17   作者:Aeeditor