[android-developers] Re: How to dynamically apply themes in Android

2013-01-25 Thread Dmitry
As I know, the only way to achieve it is to recreate your activity like this: final Intent intent = getIntent(); overridePendingTransition(0, 0); intent.addFlags(Intent.FLAG_ACTIVITY_NO_ANIMATION); finish(); overridePendingTransition(0, 0); startActivity(intent); and set your theme every time dur

[android-developers] Re: How to dynamically apply themes in Android

2013-01-20 Thread satyaandroid
Hi.. I need the same task to change the theme of the application throughout the app(all activities) by choose the theme via context menu or dialog in Jellybean.. can u give any solution u got.. Thank you.. -- You received this message because you are subscribed to the Google Groups "Android D

[android-developers] Re: How to dynamically apply themes in Android

2009-12-06 Thread kirti kaul
Thanks,I tried with setTheme(android.R.style.Theme_Light); super.onCreate(savedInstanceState); setContentView(R.layout.main); and this seems t owork,but my question is how do we change the Theme of the whole system Dynamically?I mean the user should be able to change the themes dyn

[android-developers] Re: How to dynamically apply themes in Android

2009-12-06 Thread Nithin
Hi, Its not working in java code. Its working when put theme in manifest only. In 1.1 SDK, i used setTheme() and it worked perfectly, but now its not working. http://code.google.com/p/android/issues/detail?id=4394 http://code.google.com/p/android/issues/detail?id=3793 On Dec 7, 8:07 am, kirti ka

[android-developers] Re: How to dynamically apply themes in Android

2009-12-06 Thread kirti kaul
Thanks,Have u tried it?I mean are you able to change the theme on runtime?I mean dynamically in the emulator? On Dec 4, 6:06 pm, Nithin wrote: > Hi, > > We candynamicallyset using setTheme(). The constant you need to put > is android.R.style.Theme_X > > Thanks > > On Dec 4, 5:24 pm, kirti kau

[android-developers] Re: How to dynamically apply themes in Android

2009-12-04 Thread Nithin
Hi, We can dynamically set using setTheme(). The constant you need to put is android.R.style.Theme_X Thanks On Dec 4, 5:24 pm, kirti kaul wrote: > Hi, > > My query is regarding on whether we can apply dynamically themes in > android,like what we do with our phones in which we can select a t