I use MediaProjectionScreenShot to get screen shot First Time Work Fine But If I ask It again From starter service I get This Error
java.lang.SecurityException: Invalid media projection
The activity was Hiden when permission is granted
The Error is Hier
I change it with
But The Same Error Is their a way To solve it (client & Server)
java.lang.SecurityException: Invalid media projection
The activity was Hiden when permission is granted
B4X:
Sub mp_permissiongranted'screenshot
Log("permissiongranted")
Dim jo As JavaObject
jo.InitializeContext
jo.RunMethod("moveTaskToBack", Array(True)) 'hide activity
end sub
The Error is Hier
B4X:
mp.init(0, 0, 0)
B4X:
mp.init(GetDeviceLayoutValues.Width, GetDeviceLayoutValues.Height, 0)
But The Same Error Is their a way To solve it (client & Server)