On Fri, Oct 8, 2010 at 7:12 AM, parag <parag.shetgaon...@gmail.com> wrote: > i am facing a problem with resulcode onActivityResult(); > > i have an activity, which opens up the system date and time activity.. > > startActivityForResult(new Intent( > android.provider.Settings.ACTION_DATE_SETTINGS), 0); > > when i make any change, consider i change the date format, > and i come back to my activity, using the back button! > > my OnActivityResult method callback, > the result code is always RESULT_CANCELLED.
That activity does not support startActivityForResult(). > HOW CAN I GET THE FORMAT CHANGE? First, by not shouting. Your activity, in onStart() or onResume(), can get the current date format via the DATE_FORMAT system setting: http://developer.android.com/reference/android/provider/Settings.System.html#DATE_FORMAT -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, One Low Price! -- 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 android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en