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);

Need Your Help

Share a Kohana install between sites

php kohana kohana-3 hmvc

Hey all, kind of new at Kohana and I have a quick question.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.