Posts

Showing posts from January 29, 2019

1682

Image
XVI secolo  · XVII secolo  · XVIII secolo Anni 1660  · Anni 1670  · Anni 1680  · Anni 1690  · Anni 1700 1678  · 1679  · 1680  · 1681  · 1682  · 1683  · 1684  · 1685  · 1686 Il 1682 (MDCLXXXII in numeri romani) è un anno del XVII secolo. 1682 negli altri calendari Calendario gregoriano 1682 Ab Urbe condita 2435 (MMCDXXXV) Calendario armeno 1130 — 1131 Calendario bengalese 1088 — 1089 Calendario berbero 2632 Calendario bizantino 7190 — 7191 Calendario buddhista 2226 Calendario cinese 4378 — 4379 Calendario copto 1398 — 1399 Calendario ebraico 5441 — 5442 Calendario etiopico 1674 — 1675 Calendario induista Vikram Samvat Shaka Samvat Kali Yuga 1737 — 1738 1604 — 1605 4783 — 4784 Calendario islamico 1093 — 1094 Calendario persiano 1060 — 1061 Indice 1 Eventi 1.1 Per luogo 1.1.1 Africa 1.1.2 America 1.1.3 Europa 1.2 Per argomento...

Close application by alarm in dozen mode

Image
0 I'm trying to solve strange problem. This device work only with my Application. Application is always opened. Every night i application should been closed. I added alarm for different SDK-case and it work: AlarmManager alarmManager = (AlarmManager) context.getSystemService(Context.ALARM_SERVICE); if (SDK_INT < Build.VERSION_CODES.KITKAT) alarmManager.set(AlarmManager.RTC, time, pendingIntent); else if (SDK_INT < Build.VERSION_CODES.M) alarmManager.setExact(AlarmManager.RTC, time, pendingIntent); else alarmManager.setExactAndAllowWhileIdle(AlarmManager.RTC, time, pendingIntent); On alarm receiver i try to kill application: android.os.Process.killProcess(android.os.Process.myPid()); System.exit(0); In finnaly application closed only when tablet doesn't sleep. When tablet ...