title: How to find the current theme in any page of Drupal 7
body: <p>As the title says,</p>
  
  <p>I need to know the name of the theme being used in any drupal page.</p>
  
  <p>For example we can set a default theme and a admin theme for our drupal site basically. For now lets consider only this part and don't get into user specific themes.</p>
  
  <p>So in the above case the home page will load using default_theme and when you do to any admin pages, they will load in admin_theme(seven/bartik).</p>
  
  <p>Now my question is I need to know what theme is being loaded when I navigate to any page of the site. May it be a node/add or node/edit or admin/* or page/* or any page.</p>
  
  <p>Simply when I go to any page I shoudl know the theme name being used in that page and in which hook I can write my conditions.</p>
  
  <p>Based on that I want to do some changes.</p>
  
  <p>I tried using globals $theme, path_to_theme, drupal_get_path etc</p>
  
  <p>When I use them ,they always return the default theme name and not the theme being used in a specific page.</p>
  
  <p>I wrote exit statement for $variables in hook_preprocess_html and it returns value by exiting only if the page is normal users page. But not in admin pages like sitename/admin/content etc.,</p>
  
  <p>Any one who can help.</p>
  
  <p>Thanks in advance</p>