Skip to content

Instantly share code, notes, and snippets.

@esmasui
Created January 22, 2014 09:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save esmasui/8555828 to your computer and use it in GitHub Desktop.
Save esmasui/8555828 to your computer and use it in GitHub Desktop.
Resources.getIdentifier()
String packageName = "com.example.app"; // アプリケーションのパッケージ名(AndroidManifestに書くやつ)
int identifier = context.getResources()
.getIdentifier("foo", "id", packageName);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment