I'm Developing an Android Package.
I'm trying to integrate a Framework(AQuery) into my project.
I'm always getting this error. Is there any work around for this?
Please refer to the screenshot:
Try to pass Context
of your activity . if you declaring it in an initialiser or innerclass use YOURCLASSNAME.this
instead of this
for example :
AQuery aq= new AQuery(MyActivity.this)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.