I am trying to implementing MediaChooser into my app.
I have added SetServiceAttribute(KeepRunningService, android:foregroundServiceType, shortService) to manifest.
Which enabled loading images.
Is there something I need to add to take picture?
I can load images with
But I can not open the camera with, I just get success failed
I do get this in the logs
I have added SetServiceAttribute(KeepRunningService, android:foregroundServiceType, shortService) to manifest.
Which enabled loading images.
Is there something I need to add to take picture?
I can load images with
B4X:
Wait For (Chooser.ChooseImage(btnLoadImage)) Complete (Result As MediaChooserResult)
ShowMedia(Result)
B4X:
Wait For (Chooser.CaptureImage) Complete (Result As MediaChooserResult)
ShowMedia(Result)
I do get this in the logs
(RemoteException) android.os.RemoteException: Remote stack trace:
at com.android.server.wm.ActivityTaskSupervisor.checkStartAnyActivityPermission(ActivityTaskSupervisor.java:1177)
at com.android.server.wm.ActivityStarter.executeRequest(ActivityStarter.java:1144)
at com.android.server.wm.ActivityStarter.execute(ActivityStarter.java:791)
at com.android.server.wm.ActivityTaskManagerService.startActivityAsUser(ActivityTaskManagerService.java:1311)
at com.android.server.wm.ActivityTaskManagerService.startActivityAsUser(ActivityTaskManagerService.java:1256)
** Activity (main) Pause event (activity is not paused). **
sending message to waiting queue (OnActivityResult)
running waiting messages (1)
** Activity (main) Resume **