I want to know which theme is applied for an Activity in an application.
Normally we are setting the theme by using
setTheme(android.R.style.Theme_Light);
Here we are specifying style, As like this can we able to get the specific style type exactly applied for an activity programmatically.
David Miller
07-Nov-2014Context class has a nice method called getThemeResId, however it's private thus you need to use reflection.
Here's an example: