android - A boolean value defined in XML. How to reference in Java? -
i'm trying write code reference bool.xml file , reference current value inside bool.
<bool name="enableqaurl">true</bool>
with want able reference in code, if it's set true , if false else. simple if , else statement.
any code references or feedback appreciated.
resources res = getresources(); boolean enableqaurl = res.getboolean(r.bool.enableqaurl);
source:
http://developer.android.com/guide/topics/resources/more-resources.html
Comments
Post a Comment