in fact there is nothing new has been invented-To receive context, without the resources of the Public still will not get (at least I do not know of such an option, uv.ivan-68 wrote something about the resources for LL, but I do not go, there may be even simpler)
-Full version prescribes the name of this id'a itself, its type and package, where you need to get it (actually you can see, for example, Dialers get the id of sistemui not tested, in theory yes, praktike- do not know who is interested, the can check myself)
-Full version gets himself going
Well and the last: You should add a check that the id is obtained, if still not, without checking will NullPointerExeption
iget-object v0, p0, NAME / Smal / WHERE / NEED / RESOURCE ->mContext: Landroid / content / Context;
invoke-virtual {v0}, Landroid / content / Context; ->getResources () Landroid / content / res / Resources;
move-result-object v0
const-string v1, "slider_setting "# Name of the resource" name "
const-string v2, "xml "# Resource type" type "
const-string v3, "com.android.phone " #package " package "
invoke-virtual {v0, v1, v2, v3}, Landroid / content / res / Resources; ->getIdentifier (Ljava / lang / String; Ljava / lang / String; Ljava / lang / String;) I
move-result v0 # If everything is correct, then there0x7f06001f
if-eqz v0,: cond_0 # condition, if the id is not received
actual resource itself:
<publictype =" xml " name =" slider_setting "id =" 0x7f06001f " />
name of the package to look in the manifest:
package =" com.android.phone "