jar - Android Library Project - Resources$NotFoundException -


i'm trying create library project use unity3d plugin. correct when i'm trying show custom progressdialog example i'm doing this, getting resources$notfoundexception

    layoutinflater inflater = (layoutinflater)getsystemservice(context.layout_inflater_service);             view layout = inflater.inflate(com.myapp.test.r.layout.loading, null);             layout.setminimumwidth((int)(displayrectangle.width() * 0.9f));             layout.setminimumheight((int)(displayrectangle.height() * 0.9f));              progress.setview(layout); 

i'm doing wrong? library project ( jar file ) seems not contains layouts or resources... have put in preferences of eclipse library true.

you cannot package resources jar file. suggest make library project , refer same in android project.

for more information check link below

http://developer.android.com/tools/projects/index.html

right click on project, goto properties, choose android, choose library (tick).

enter image description here

to refer library project in yout android project

right click on android project, goto properties, choose android, click add, browse , add library project. click apply , ok.

snap shot of adding actionbaesherlock library project. note green tick.

enter image description here

clean , build.

http://developer.android.com/tools/projects/projects-eclipse.html


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -