On Mon, Jul 16, 2012 at 7:28 PM, billb <b...@briskynet.com> wrote: > Do you have any further insights as to how I can get this button to return > the user to the mainactivity screen?
Get the Preference in code: http://developer.android.com/reference/android/preference/PreferenceActivity.html#findPreference%28java.lang.CharSequence%29 Then set the intent programmatically. http://developer.android.com/reference/android/preference/Preference.html#setIntent%28android.content.Intent%29 The intent itself would probably just be an explicit one referencing your main activity, perhaps with the CLEAR_TOP flag (I think that's the one) to wipe your stack. ------------------------------------------------------------------------------------------------- TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago transit tracking app for Android-powered devices -- 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