I need to display the path of layout used in setContentView(R.layout.main);. So if the mobile phone is normal-mdpi, I need to display “Path is: /res/layout-normal-mdpi” or if the mobile phone is normal-hdpi, I need a text “Path is: /res/layout-normal-hdpi”.
I basically need to know which layout file was loaded and its path.
You can add a Hidden Text View with corresponding Folder names in the xml
Get the String in the text view by
Make sure that all the id’s of the text view are same
Example