create the buttons dynamically i.e. at run time and use shared prefrence to store there state
in the on create /on resume method get the variables stored in the shared preference to get the current state while loading you can also do is check the state in any mehtod and then call that method in oncreate and then add then do the setcontent view On Jun 5, 1:10 am, "ronroseman2...@gmail.com" <programmer_...@yahoo.com> wrote: > Hello All, > I'm trying to PreLoad information to my toggle buttons. An example: > > If Bluetooth is enabled I was the Toggle Button to show On. > If Airplane Mode is not enabled then I want the Toggle Button to show > Off. > > I know how to make them turn off/on when the app is loaded, but I > don't know how to get the states and diplay the correct state prior to > the buttons being created. > > Anyone have any idea on this? > > Thanks in advance, > Ron -- 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