This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private fun getPowerProfileXml(): String { | |
val resources = Resources.getSystem() | |
val resId = resources.getIdentifier("power_profile", "xml", "android") | |
return getResourceXmlString(resources, resId) | |
} | |
private fun getResourceXmlString(resources: Resources, resId: Int): String { | |
val xml = resources.getXml(resId) | |
val xmlText = StringBuilder() | |
val indent = " " |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<link rel="apple-touch-icon" href="apple-touch-icon-iphone.png" /> | |
<link rel="apple-touch-icon" sizes="72x72" href="apple-touch-icon-ipad.png" /> | |
<link rel="apple-touch-icon" sizes="114x114" href="apple-touch-icon-iphone-retina-display.png" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<link rel="apple-touch-icon" href="my_icons/my_icon_file_path.png" /> |