Groups
Groups
Sign in
Groups
Groups
日本Androidの会
Conversations
About
Send feedback
Help
時刻を設定する方法
1,370 views
Skip to first unread message
mayu
unread,
Jun 25, 2010, 2:16:12 PM
6/25/10
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to 日本Androidの会
はじめまして、こんにちは。
既出でしたら申し訳ありません。
Androidの時刻や日付を設定する方法はありますでしょうか?
時刻や日付の取得に関しては方法を探して見つけることができましたが、
時刻、日付の設定について見つけることができませんでした。
android.provider.Settingsより
24時間表記(TIME_12_24)ON/OFFや自動取得設定(AUTO_TIME)ON/OFFの変更はできたのですが・・・・。
初歩的な質問で申し訳ありませんが、簡略的でもかまいませんのでソースも載せて頂けると助かります。
よろしくお願い致します。
以上
magpad
unread,
Jun 25, 2010, 10:58:19 PM
6/25/10
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to 日本Androidの会
こんにちは
システム時刻を設定する「SystemClock.setCurrentTimeMillis(msec)」ってメソッドがありますが、こいつは
root権限でしか実行できません。
実行すると「WARN/SystemClock(1046): Unable to open alarm driver: Permission
denied」で怒られちゃいます。
http://developer.android.com/intl/ja/reference/android/os/SystemClock.html
アプリ内から直で日時の設定ってのはできないんじゃなかろうかと・・・。
mayu
unread,
Jun 28, 2010, 8:29:37 AM
6/28/10
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to 日本Androidの会
こんにちは、ご回答有難うございます。
やはり直で時刻設定はできなんですね。
通りで方法を見かけないわけですね・・・・。
早急な回答ありがとうございました!
On 6月26日, 午前11:58, magpad <
takashi.murama...@gmail.com
> wrote:
> こんにちは
>
> システム時刻を設定する「SystemClock.setCurrentTimeMillis(msec)」ってメソッドがありますが、こいつは
> root権限でしか実行できません。
> 実行すると「WARN/SystemClock(1046): Unable to open alarm driver: Permission
> denied」で怒られちゃいます。
http://developer.android.com/intl/ja/reference/android/os/SystemClock.
..
Reply all
Reply to author
Forward
0 new messages