How to get resolution of Image in Android / Java?
How to find resolution of any image in Android. please suggest, thanking you.
you can use something like this, if your image is on your res/drawable
Bitmap bmp = BitmapFactory.decodeResource(res, R.drawable.back); bmp.getWidth(), bmp.getHeight();
You should definitely learn how to phrase a question! Since you didn't provide any information i can only guess what you are doing. Maybe you can try this ...
ImageView iv = new ImageView(this); iv.getDrawable().getIntrinsicWidth(); iv.getDrawable().getIntrinsicHeight();