Launch Time Zone list in Android for pick/result -


I think it is possible through an intent in Android, but what I want to do is launch this list only Click the time zone (click on "Select Time Zone") and modify the user's date to get the selected value without & amp; To set the time. Any idea how to do this?

If you are talking about a spinner then you can do something like this:

  Arrayadapter & lt; Foursensane & gt; Adapter = new array adapter & lt; Foursmain & gt; (This, android.R.layout.simple_spinary_item); Adapter.setDropDownViewResource (android.R.layout.simple_spinner_dropdown_item); String [] tz = timezone.getavfid (); ArrayList & LT; String & gt; TZ1 = new arreelist & lt; String & gt; (); For (int i = 0; i & lt; TZ.length; i ++) {if (! (TZ1.contains (timezone.getmeMozone (TZ [i]). GetDisplayName ()) {TZ1.add (timezone .gatemezone (.tz [i]) for getDisplayName ());}} (int i = 0; i & lt; TZ1.size (); i ++) {adapter.add (TZ1.get (i)) ;} Find the final spinner tezon = (spinner) for VVBIID (RID Tymozonentry); TZone.setAdapter (adapter); (Int I = 0; i & lt; TZ1.size (); i ++) {if (TZ1.get (i). Ammons (Timezone.Get Default). GetDisplayName ())) {TZone.setSelection (i); }}  

Take a look for more literature on the timezone


Comments

Popular posts from this blog

Eclipse CDT variable colors in editor -

AJAX doesn't send POST query -

wpf - Custom Message Box Advice -