[android-developers] Action Bar TAB Context Menu

2013-02-23 Thread Jim Duda
I have the Action Bar working properly with a Tab Listener and multiple tabs as described in the API Demos package. This piece is working well. I would like to add a Context Menu (long click listener) to the Action BAR Tab button itself. I know how to add the longClickListener to the

[android-developers] Re: PreferenceHeaders with GingerBread

2012-12-30 Thread Jim Duda
, December 29, 2012 6:38:32 PM UTC-5, Jim Duda wrote: My application is using modern preference headers. I need to support compatibility with Gingerbread. The PreferenceHeaders work fine with post GingerBread. I am following this guide for legacy compatiblity. http

[android-developers] PreferenceHeaders with GingerBread

2012-12-29 Thread Jim Duda
My application is using modern preference headers. I need to support compatibility with Gingerbread. The PreferenceHeaders work fine with post GingerBread. I am following this guide for legacy compatiblity. http://developer.android.com/guide/topic/ui/settings.html#BackCompatHeaders The

[android-developers] Re: How to create new PreferenceFragment from XML

2012-12-15 Thread Jim Duda
On 12/14/2012 09:05 PM, Jim Duda wrote: When selecting the pref_hosts_title, I want the SettingsActivity$HostsFragment to display. This new fragment does display, however, it doesn't replace the original fragment, it instead overlays the original fragment. The two fragments display

[android-developers] Re: How to create new PreferenceFragment from XML

2012-12-14 Thread Jim Duda
On 12/13/2012 11:03 PM, Jim Duda wrote: I want to launch a new preference screen from my main preference screen. My main preference.xml is this: ?xml version=1.0 encoding=utf-8? PreferenceScreen xmlns:android=http://schemas.android.com/apk/res/android; PreferenceScreen

[android-developers] How to create new PreferenceFragment from XML

2012-12-13 Thread Jim Duda
I want to launch a new preference screen from my main preference screen. My main preference.xml is this: ?xml version=1.0 encoding=utf-8? PreferenceScreen xmlns:android=http://schemas.android.com/apk/res/android; PreferenceScreen android:title=@string/pref_settings_title

[android-developers] Complicated Preference Activity

2012-12-12 Thread Jim Duda
I've learned how to build simple preferences for my application using a separate Activity and PreferenceFragments. So far so good. Part of my application's preferences are to provide a list of HOSTS to select from, where each HOST has a set of data which describes the host (host address, port,

[android-developers] Re: Complicated Preference Activity

2012-12-12 Thread Jim Duda
On 12/12/2012 08:59 PM, TreKing wrote: On Wed, Dec 12, 2012 at 7:27 PM, Jim Duda j...@duda.tzo.com mailto:j...@duda.tzo.com wrote: Use a different SharedPreferences instance for each host, using some name unique to each host: http://developer.android.com/reference/android/content

[android-developers] Activity Life Cycle Issue on Orientation Change

2012-02-07 Thread Jim Duda
I'm developing an application on API 2.2 (Froyo). I'm having a problem with myListActivity when I do an orientation change from Vertical to Horizontal (F11 on emulator). After the orientation change, I go through onDestroy and onCreate as expected. After the onCreate, the application restarts