简体   繁体   中英

Android java framework integration

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:

http://s7.postimg.org/jxbuxkojv/Pics_Art_1371463536409.jpg

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM