In your MainPreferences file you should be able to enable/disable the preferences based on your global variable...
Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Mon, May 14, 2012 at 8:35 AM, Giuseppe <[email protected]>wrote: > I have multiple PreferenceScreen in my Main Preferences and for some of > them I need to check from a global variable if the user is enable to open > this. > > How can I conditionally block the opening of a PreferenceScreen during the > onClick Event? > > Return false don't work. > > Thank you. > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

