Welcome! Log In Create A New Profile

Advanced

WM24

Posted by jtadebruin 
WM24
January 06, 2021 11:52AM
Hey, my friends.

I have a windev mobile app that runs on 2 tablets
Both tablets run Android 7.1.1.

On one tablet I get this error.
Does anyone have any idea what this could be?

===== Error =====
Date and time=06/01/2021 09:43:24
Message=Internal error.
System message=Unable to add window -- token android.os.BinderProxy@b197be9 is not valid; is your activity running?
Process=Left-clicking WIN_SychNaarDevice.BTN_START
WLanguage stack=Left-clicking WIN_SychNaarDevice.BTN_START
Java stack=android.view.ViewRootImpl.setView(ViewRootImpl.java:922)
android.view.WindowManagerGlobal.addView(WindowManagerGlobal.java:377)
android.view.WindowManagerImpl.addView(WindowManagerImpl.java:105)
Re: WM24
January 08, 2021 01:09AM
Hi jtadebruin,

Some code or a bit more explanation of what you are doing would help us to help you, like; what are you doing in your btn_start code? You might be trying to reference something that doesn't exist any more?

From stackoverflow:

Unable to add window -- token is not valid; is your activity running?

This crash is usually caused by your app trying to display a dialog using a previously-finished Activity as a context. For example, this can happen if an Activity triggers an AsyncTask that tries to display a dialog when it is finished, but the user navigates back from the Activity before the task is completed.

Regards,
Darren.
Re: WM24
January 09, 2021 07:20PM
Hi Darren,

You're absolutely right !!!thumbs up

More information would be desirable but at that time I didn't have time for that.

On one screen I give several instructions to synchronize data.
Each instruction must show text in the form of:
Synchronize data Count = x from y.
This must be shown on the screen where the instructions are given.
Already at the first instruction I get the error message

I want to give a control as a parameter to a global procedure , so the procedure can show the progress


Jan
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: