Android Question intent based camera under Android 8

peacemaker

Expert
Licensed User
Longtime User
HI, All

Camera's intent under Android 7 works OK.
Some Asus v.7 phone was updated to Android 8 official ROM and now no returned result from the camera's intent. And no errors. Remote system log from logcat is errorless.
B4X:
Mf=asus; Model=ZE552KL; Product=WW_Phone; SdkVersion=26
--------- beginning of system
--------- beginning of main
~i:*** Service (starter) Create ***
~i:** Service (starter) Start **
~i:** Activity (main) Create, isFirst = true **
~i:** Activity (main) Resume **
Starting Camera....
~i:** Activity (main) Pause, UserClosed = false **
~i:*** Service (starter) Create ***
~i:** Service (starter) Start **
~i:** Activity (main) Create, isFirst = true **
~i:** Activity (main) Resume **
~i:** Activity (main) Pause, UserClosed = false **
~i:** Activity (webb) Create, isFirst = true **
~i:** Activity (webb) Resume **
Clicked: BugReport
~i:** Activity (webb) Pause, UserClosed = false **
~i:** Activity (main) Resume **
~i:** Activity (main) Pause, UserClosed = false **
~i:** Activity (webb) Create, isFirst = false **
~i:** Activity (webb) Resume **

Android 8 emulator with dummy camera picture under debugger works OK, photo is returned OK.

Maybe anyone tried the intent based camera under Android 8 ?
 
Last edited:

peacemaker

Expert
Licensed User
Longtime User
I always compile with targetSdkVersion="22" and used RemovePermission(android.permission.CAMERA).
The app uses Vision text recognition, but as by the intent camera, so permission is removed.

But seems, force close (in the Android 8 emulator) is due to the system requests for camera permission at the very first app start. After restart - no any trouble.
But why ...
 
Upvote 0
Top