The default timezone will be automatically detected by the system, so you don't need to call TimeZone.setDefault() explicitly.
Timezone auto detection does not work on the emulator, but you can use the - timezone launch flag to set it. 2008/9/6 samlu <[EMAIL PROTECTED]> > > I added the following code to monitor the timezone changed events. > I can see the ACTION_TIME_TICK every minute, but no > ACTION_TIMEZONE_CHANGED when I called TimeZone.setDefault() > > m_br = new BroadcastReceiver() { > public void onReceive(Context context, Intent intent) > { > Log.d("ac", "IntentReceiver=" + intent.getAction()); > } > }; > > IntentFilter filter = new IntentFilter(); > filter.addAction(Intent.ACTION_TIME_TICK); > filter.addAction(Intent.ACTION_TIMEZONE_CHANGED); > registerReceiver(m_br, filter, null, m_handler); > > On Sep 6, 2:39 am, "Megha Joshi" <[EMAIL PROTECTED]> wrote: > > 2008/9/4 samlu <[EMAIL PROTECTED]> > > > > > I called TimeZone.setDefault() for changing system's timezone, but > > > failed. > > > > Can you give more details about what you mean by "failed".Is it a logcat > > error or exception or is it incorrect result? > > > > > > > > > Is there an API for me to change system's timezone? > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---