Where the heck is Bitmap getByteCount()?

后端 未结 7 2012
时光取名叫无心
时光取名叫无心 2021-01-02 05:46

I know the Android platform is a huge mess, over complicated and over-engineered, but seriously to get the size of a bitmap, is it really necessary to do all those conversio

7条回答
  •  轮回少年
    2021-01-02 05:58

    If you filter by API Level 8 (= SDK 2.2), you'll see that Bitmap#getByteCount() is greyed out, meaning that method is not present in that API level.

    getByteCount() was added in API Level 12.

提交回复
热议问题