views:

56

answers:

1

Hi, I have created a Library Project which I import into another project. In that Library Project at some point I retrieve it's android:versionName To do that you need to supply the package name. The problem arises when that code is executed when the Library Project is included within another project, then it seems that that code throws an exception : 10-04 10:15:36.987: WARN/System.err(1407): getSoftwareVersion(), Caught Exception : android.content.pm.PackageManager$NameNotFoundException: mobilaria.android.LandenPlayerCodeBase.baseplayer

Thats the package name of the package of the Project Library... it seems it cannot find it even though the same code that is executing that call is part of the Library itself...

Does anyone have experienced something like this or has an idea on how to solve this ?

+1  A: 

As far as I know android library project manifest is ignored at the moment, manifest is not merged into end application when you reference a library. Hence you cant extract any data from the library's manifest.

Konstantin Burov
hhmmm ok, that would explain it I guess... But is there any official statement or anyone who knows this for sure ? For example someone who has already worked with a Library Project extensively before ?
TiGer