Android Question Http Utils2 and BadTokenException

ykucuk

Well-Known Member
Licensed User
Longtime User
Hello,

i got this error when i try do some request with httputils2


Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@415e7670 attribute=null

java.lang.NullPointerException

'JobDone:

android.view.WindowManager$BadTokenException: Unable to add window -- token android.os.BinderProxy@41249400 is not valid; is your activity running?

Attempted to add application window with unknown token Token{4171bc88 ActivityRecord{41431258 sentio.digisign/.playertanimlama}}. Aborting.

any idea ?
 

ykucuk

Well-Known Member
Licensed User
Longtime User
if you mean like msgbox then no.

i try to access activity's variables which i define at process globals

i got this error if i open another activity in app . i close this activity (back button or activity finish) no effect and still error

i understand service cannot work because of i opened this activity . how can i solve this.

i need run service and also open this activity some times for set that how service should work (paramaters)

f7u1.png
 
Last edited:
Upvote 0
Top