i already use this way but it is not give the real size its depend of quality of image
On Wed, Sep 19, 2012 at 1:53 PM, Przemyslaw Wegrzyn <[email protected]>wrote: > On 2012-09-19 08:34, Live Happy wrote: > >> what is the best way to get the size of bitmap image i know there is >> myBitmap.getByteCount() but this method is for api level 12 so it is there >> any other way to get it thx on advance >> > You can use the following instead: myBitmap.getRowBytes() * > myBitmap.getHeight() > > Both methods available in API Level 1 already. And this is exactly what > getByteCound() does internally. > > BR, > Przemek > > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to > android-developers@**googlegroups.com<[email protected]> > To unsubscribe from this group, send email to > android-developers+**[email protected]<android-developers%[email protected]> > For more options, visit this group at > http://groups.google.com/**group/android-developers?hl=en<http://groups.google.com/group/android-developers?hl=en> > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

