get drawable with string android java
Context context = imageView.getContext();
int id = context.getResources().getIdentifier("picture0001", "drawable", context.getPackageName());
imageView.setImageResource(id);
Also in Java:
- how to append to a string in java
- taking date as input in java
- java square a number
- java hashmap size
- enumerated data types in java
- how to pass parameters to xsl file
- check java version
- creating random color in java
- set preference value android
- java
- Gson write json to file
- java final modifier on method
- spigot get player from UUID
- java "->"
- java android edit text set value
- how to cut a certion part from a string in java
- how to compare current date and time with another date and time in android
- create instance object java
- java string to byte array utf8
- java read file text
- java jaxb unmarshall xml to map
- palindrome function java
- what it means when create final variable in java
- processing sound android