android.view.WindowManager$BadTokenException: Unable to add window — token android.os.BinderProxy@405cab80 is not valid; is your activity running?
android.view.WindowManager$BadTokenException: Unable to add window — token android.os.BinderProxy@405cab80 is not valid; is your activity
Share
The thing is you are trying to use “this” reference to your context which is causing the problem in ActivityGroup. Instead of this, this.Context replace it with the object of Activity Group.
For Example, consider your class which extends ActivityGroup class. You could have created a object for that class.
Example:
As you can see here I have created a object for my Home class as Home_Group.
Now, define the context using this object. Something like this,