Im a beginner programmer, and my question is: Which image format shall i use for my android app?
Descripton: I only use illustrations, so the images are mostly background images, and some buttons, and i would like to know which is the best way to do this.
My current progress for images are the next: I use .png file format. I dont know what resolution should I use, now I work with 300x400 px images aproximetly.
Here is my code for using the images:
Bitmap bMap = BitmapFactory.decodeResource(getResources(), MyArray[index].getArtiD());
MyImageView.setImageBitmap(bMap);
So this is the way I use images in Android, pls guys if anyone know issues, tips or a "must know information" to tell pls do it. I dont really understand why should I use this bitmap factory or why should i use png format. I want to do it in the best way I can, and I dont see many things in android documentation.
Thanks, Adam