Skip to content Skip to sidebar Skip to footer

Parse R.java Class

When I'm in an activity, how can I get die complete code of the R.java class to parse it? I want to parse for a resource String. In my R class there's the following entry: public s

Solution 1:

Use getIdentifier()

intid = getResources().getIdentifier("abs__home", "string", getPackageName());

if the name (abs__home) does not exits inside the resources, you will get 0

Post a Comment for "Parse R.java Class"