I try to set bitmap image from drawable that i declare on resource.java. When i click next button,it will show another image that i can draw. Is this right code to call it?
bmp = BitmapFactory.decodeResource(getResources(), Resource.capitalStoke[DrawingActivity.this.position]);
or anymore to add?
this is my resource.java:
public class Resource {
public static String DRAWING_ALPHABET;
public static Integer[] capitalStoke;
Integer[] alphabetCapital;
Integer[] alphabetSound;
Integer[] alphabetImage;
static {
DRAWING_ALPHABET = "alphabet";
capitalStoke = new Integer[]{Integer.valueOf(R.drawable.capital_letters_stroke_01),
Integer.valueOf(R.drawable.capital_letters_stroke_02),
Integer.valueOf(R.drawable.capital_letters_stroke_03),};
}
is that possible to retrieve image from here using bitmapfactory?if possible,how should i do it?