photo-editor-android icon indicating copy to clipboard operation
photo-editor-android copied to clipboard

Black screen on Samsung J5

Open mcastro-dev opened this issue 7 years ago • 6 comments

Device: Samsung Galaxy J5 Model number: SM-J500M

Using the lib's app in the above mentioned device, I get a black screen wether I import image from gallery or take a photo using the camera in the app.

Tested also in a Motorola G5 and the app worked fine (no black screen).

mcastro-dev avatar Aug 02 '17 15:08 mcastro-dev

Device: Redmi Model number: Redmi 4A Using this lib's app in the above mentioned device, Even I got a black screen whether I import image from gallery or take a photo using the camera in the app.

nickghodke avatar Nov 08 '17 06:11 nickghodke

Device Samsung s9 using this lib package this app and mobile are fully off screen and not work, then I try to Redmi 4A,and Lenovo till not work at any device.. don't used it

rupesh0895 avatar Nov 26 '18 07:11 rupesh0895

It worked on redmi 4A by changing bitmap sampleInSize to 4 in PhotoEditor Activity.

nickghodke avatar Nov 26 '18 07:11 nickghodke

@nickghodke Any clue on why this magic number 4 worked? and more information about the problem/fix?

sreekanth100khere avatar Mar 25 '19 10:03 sreekanth100khere

Did it worked on your phone i actually dont remeber it but i randomly tried changing bitmap sampleInsize from -1 to any positive number and it worked for me

nickghodke avatar Mar 25 '19 10:03 nickghodke

@nickghodke It will work for any number, but ideally you are supposed use a power of 2. Else the number you are using will be rounded off to the nearest power of 2.

sreekanth100khere avatar Mar 26 '19 11:03 sreekanth100khere