OpenNoteScanner icon indicating copy to clipboard operation
OpenNoteScanner copied to clipboard

Create bitmap in background

Open cataloque opened this issue 4 years ago • 0 comments

Dear developers, In the position of OpenNoteScanner's code: (1)com.ortiz.touchview.TouchImageView: void setImageURI(); (2)com.todobom.opennotescanner.helpers.Utils: android.graphics.Bitmap decodeSampledBitmapFromUri()

bitmap object is created with the invocation of setImageURI() and decodeStream(). However, these methods are slow operation and they are in the UI thread. Maybe you can process bitmaps in a background thread using AsyncTask.

cataloque avatar Apr 18 '20 10:04 cataloque