Hi i am working with Gestures and i need to import but i m getting error
com.android.internal.R;
The import com.android.internal.R cannot be resolved
kindly help me , please
You don't say why you need access to com.android.internal.R
, but the sad fact is that you simply cannot import it (the "internal" is a clue that it's not part of the public API). Google doesn't expose this because it is subject to change.
It is possible to get to the internal resources by calling Resources.getSystem()
. To get the value of a particular resource identifier, you have to know its name and then use code like the following to find the value:
Resources res = Resources.getSystem();
int id = res.getIdentifier("resource name", "resource type", "android");
Be aware that any name that you use could disappear in future versions of Android.