How to Change the Terminal's Time Zone Setting: Difference between revisions
(Created page with "=== By auto update === Insert a SIM card, after it connect to network, the time zone will be auto updated. === By manual === Go to menu Settings, At Q2/K2, Click on top right...") |
No edit summary |
||
Line 7: | Line 7: | ||
AlarmManager mAlarmManager = (AlarmManager)getSystemService(Context.ALARM_SERVICE);mAlarmManager.setTimeZone("GMT+08:00"); | AlarmManager mAlarmManager = (AlarmManager)getSystemService(Context.ALARM_SERVICE);mAlarmManager.setTimeZone("GMT+08:00"); | ||
and add permission "<uses-permission android:name="android.permission.SET_TIME_ZONE" />" at manifest file. | and add permission "<uses-permission android:name="android.permission.SET_TIME_ZONE" />" at manifest file. | ||
=== By TF Card=== | |||
Write an xml file, named is possystemsettings.xml, put it the the folder \cloudpos\ of TF Card, the process is same with using TF Card to install apk and update firmware. | |||
<?xml version="1.0" encoding="utf-8"?> | |||
// change the timezone value. | |||
<terminal timezone = "GMT+08:00"> | |||
</terminal> |
Revision as of 06:30, 5 December 2018
By auto update
Insert a SIM card, after it connect to network, the time zone will be auto updated.
By manual
Go to menu Settings, At Q2/K2, Click on top right,you will see the whole menu, Click Date & time, close "Automatic time zone" ,and then you can click "Select time zone", to set your timezone.
By API
Snippet code:
AlarmManager mAlarmManager = (AlarmManager)getSystemService(Context.ALARM_SERVICE);mAlarmManager.setTimeZone("GMT+08:00");
and add permission "<uses-permission android:name="android.permission.SET_TIME_ZONE" />" at manifest file.
By TF Card
Write an xml file, named is possystemsettings.xml, put it the the folder \cloudpos\ of TF Card, the process is same with using TF Card to install apk and update firmware.
<?xml version="1.0" encoding="utf-8"?> // change the timezone value. <terminal timezone = "GMT+08:00"> </terminal>