tag:blogger.com,1999:blog-3402539703993479534.post7224224206443112332..comments2023-10-25T15:28:35.064+08:00Comments on ysl 的程式天堂 - Android 應用開發 ‧ 研究 ‧ 與諮詢: 在 Android 上更改與取得系統時區及時間Unknownnoreply@blogger.comBlogger2125tag:blogger.com,1999:blog-3402539703993479534.post-29240740885907636002014-05-31T10:07:02.462+08:002014-05-31T10:07:02.462+08:00你們討論的是不是emulator的時間?
emlator的時間可以在emulator啟動後直接在上...你們討論的是不是emulator的時間? <br />emlator的時間可以在emulator啟動後直接在上面調整, 如同在調電話.傻傻https://www.blogger.com/profile/15128723960630463122noreply@blogger.comtag:blogger.com,1999:blog-3402539703993479534.post-79009529218484121752008-09-09T12:07:00.000+08:002008-09-09T12:07:00.000+08:00關於更改系統時區的部份,終於問到答案了。答案如下:Also, the recommended way...關於更改系統時區的部份,終於問到答案了。答案如下:<BR/><BR/>Also, the recommended way to change timezone is through Settings app, which not not included in the current sdk ..<BR/>For now you can use the following:<BR/><BR/>AlarmManager alarm = (AlarmManager) getSystemService(Context.ALARM_SERVICE);<BR/>alarm.setTimeZone(timezone);<BR/><BR/>It works with <uses-permission<BR/>android:name="android.permission.SET_TIME_ZONE"></uses-permission> <BR/><BR/>試了一下,果然沒問題。samluhttps://www.blogger.com/profile/15545436503686128783noreply@blogger.com