java - Call activity located in an external android library (jar) -
java - Call activity located in an external android library (jar) -
i trying phone call activity located in external android library.
i have two projects in eclipse : -superapp (contains mainactivity has "start calculator activity" button) -additionlibrary (contains calculatoractivity has "this calculator activity" textview)
here source code activities : https://gist.github.com/poiuytrez/4714770
if reference application superapp using project properties->android->library http://tinypic.com/r/2v31s8z/6 app works fine.
if export jar of additionlibrary (http://tinypic.com/r/30m9wld/6) add together in libs folder of superapp, , add together jar in java build path (http://tinypic.com/r/2efksk0/6), when launch app i have next issue :
"android.content.res.resources$notfoundexception".
http://tinypic.com/r/2hnbb6q/6
i have looked everywhere not find root cause of issue.
if adding jar file project, need resources used in library project.
including menu, drawable, layout etc..
for illustration :
this used in calculatoractivity.java
file :
getmenuinflater().inflate(r.menu.activity_calculator, menu);
so, need add together menu file called activity_calculator.xml
superapp
application.
java android eclipse jar
Comments
Post a Comment