Cara Ganti TimeZone Android Studio Programatical


Tech Antuzia - Step to step cara Cara Ganti TimeZone Android dengan android studio
pertama atur perizinan merubah timezone di android manifest

<uses-permission android:name="android.permission.SET_TIME_ZONE"    tools:ignore="ProtectedPermissions" />
Seterusnya di activity 
AlarmManager alarm = (AlarmManager) getSystemService(Context.ALARM_SERVICE);
alarm.setTimeZone(data.Timezone);
//data.Timezone is equal "Asia/Jakarta"
Oke Fix;

0 Response to "Cara Ganti TimeZone Android Studio Programatical"

Posting Komentar