On Thu, Aug 19, 2010 at 5:26 PM, Moto <[email protected]> wrote:
> One way to do it would be to have a custom Activity class that does these > checks and all my activities can just implement it? would that be slow is > it recommended? > It wouldn't be slow (at least it shouldn't be), but would only work if you only ever extend Activity. If you use ListActivity, MapActivity, etc, this would not work. An option is to make an Activity "proxy" class that takes a reference to an Activity and then forwards calls on to it as necessary. Then each of your Activities has a proxy and forwards calls to it and let's the proxy do the common work. A little more verbose since you need to inject it in every Activity, but a decent tradeoff given how Android is designed. On Fri, Aug 20, 2010 at 12:27 AM, Kantesh <[email protected]> wrote: > this may help u.. try it out..i am not sure..:) > > getApplicationContext().setTheme(android.R.style.Theme_NoTitleBar_Fullscreen); > OP would still have to check each time to see if the user had the setting. ------------------------------------------------------------------------------------------------- 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 [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

