okernel

Results 4 comments of okernel

@vipulasri I think that the problem is @cielantropi invoke your code in one method.Something like above code segment. ``` void submit() { String picName = getRandomString(8); saveBitmap(picName, convertViewToBitmap(cardFrame)); scanPhoto(MainActivity.this, picName);...

@vipulasri In my opnion,used buildDrawingCache method isn't a best way to convert a view to bitmap.If a view like ScrollView that includes lots of views,you will fail in it.

@vipulasri ``` Bitmap bitmap = Bitmap.createBitmap(view.getWidth(), view.getHeight(), Bitmap.Config.ARGB_8888); Canvas canvas = new Canvas(bitmap); view.draw(canvas); ```

Hi, I found a mistake on page 13 > 10 + 20 > > # => 25 10 + 20 = 30 Anyway, thanks for this ebook.