Created
January 22, 2014 09:22
-
-
Save esmasui/8555828 to your computer and use it in GitHub Desktop.
Resources.getIdentifier()
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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