Android Question Android will not let me upload my app

Shivito1

Active Member
Licensed User
requires new api
however if i use new api my permissions are all messed up.
is there away to ask for overlay permission via if java???
I don't want to update my version of b4a just to change a permission...
Please help thanks.

B4X:
** Service (notify_builder) Start **
PanelMain
PanelMain
PanelMain
PanelMain
PanelMain
** Service (standout) Create **
** Service (standout) Start **
--------- beginning of crash
java.lang.RuntimeException: Unable to start service [email protected] with Intent { cmp=com.subreader/b4a.example.standout }: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
    at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:3701)
    at android.app.ActivityThread.-wrap21(Unknown Source:0)
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1806)
    at android.os.Handler.dispatchMessage(Handler.java:105)
    at android.os.Looper.loop(Looper.java:164)
    at android.app.ActivityThread.main(ActivityThread.java:6949)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:327)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1374)
Caused by: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:216)
    at anywheresoftware.b4a.BA.raiseEvent(BA.java:163)
    at b4a.example.standout.handleStart(standout.java:113)
    at b4a.example.standout.onStartCommand(standout.java:81)
    at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:3684)
    ... 8 more
Caused by: java.lang.reflect.InvocationTargetException
    at java.lang.reflect.Method.invoke(Native Method)
    at anywheresoftware.b4j.object.JavaObject.RunMethod(JavaObject.java:131)
    at b4a.example.standout._init_elements(standout.java:314)
    at b4a.example.standout._service_start(standout.java:552)
    at java.lang.reflect.Method.invoke(Native Method)
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:179)
    ... 12 more
Caused by: android.view.WindowManager$BadTokenException: Unable to add window [email protected] -- permission denied for window type 2002
    at android.view.ViewRootImpl.setView(ViewRootImpl.java:982)
    at android.view.WindowManagerGlobal.addView(WindowManagerGlobal.java:381)
    at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:100)
    at b4a.example.standout$CustomImageView.sharedConstructing(standout.java:633)
    at b4a.example.standout$CustomImageView.<init>(standout.java:604)
    at b4a.example.standout.newInstance2(standout.java:771)
    ... 18 more
 
Top