I have set the dialog theme for my application in manifest.xml file. Now i would like to programatically set the theme for my application using setTheme(). setTheme is working properly for Theme_Light, if i change the option to Theme_Dialog or Theme_Transulent it is not working where as if i set the same themes in manifest.xml file they are working properly. I am not getting why they are not working if i use the setTheme(). can any one help to solve my problem.
public class SList extends Activity
public void onCreate(Bundle savedInstanceState)
setTheme(android.R.style.Theme_Light); ----> working properly
setTheme(android.R.style.Theme_Dialog); -------> not working
setTheme(android.R.style.Theme_Translucent); -----> not working