How to pass argument to Context in android -
i new android , times application works fine if pass
if use,
this context // gets error if use,
classname.this context // gets error android.view.windowmanager$badtokenexception: unable add window -- token android.app.localactivitymanager$localactivityrecord@40537450 not valid; activity running? if use,
getapplicationcontext() android.view.windowmanager$badtokenexception: unable add window -- token null not application if use,
classname.this.getparent() i confused when use what.
please explain
Comments
Post a Comment