Oops, I'll have to retract that; my test was invalid. The manifest lines I added were incorrect (forgot the <intent-filter> tags), causing my new version not to be installed...
I do indeed find problems in my log now, such as: 09-09 19:28:11.484: WARN/ResourceType(580): No package identifier when getting value for resource number 0x7f060000 -and- 09-09 19:29:18.184: ERROR/AndroidRuntime(3002): Caused by: java.lang.RuntimeException: Your content must have a ListView whose id attribute is 'android.R.id.list' followed by F/C. Sorry for the mix-up! I was also misled by the fact that I could reference the ID's of the resources inside the JAR, suggested by Eclipse's autocomplete behavior. I think the best way to accomplish what I was intending will be to install an entirely separate .apk with the libraries. Karl On Sep 9, 6:32 pm, Mark Murphy <[email protected]> wrote: > kostmo wrote: > >> Bear in mind also that your library cannot package any resources, making > >> activities that much more difficult to package in a library. > > > I'm not sure that is true. > > > I have created a .jar from a project that happens to include some > > layout files. I import this .jar from a second project, and add a few > > lines to the second project's Manifest file: > > > <activity > > android:name="com.googlecode.chartdroid.ChartPanelActivity" > > android:theme="@android:style/Theme.Translucent"> > > <action > > android:name="com.googlecode.chartdroid.intent.action.PLOT" /> > > <category android:name="android.intent.category.DEFAULT" /> > > </activity> > > > When I launch the .jar'd activity from the second activity with an > > implicit intent, it appears to work fine. The layout resources that > > the .jar'd activity uses exist only within the .jar file. > > *blink, blink* > > How do you have the resources packaged in the JAR? > > Thanks! > > -- > Mark Murphy (a Commons > Guy)http://commonsware.com|http://twitter.com/commonsguy > > _Android Programming Tutorials_ Version 1.0 In Print! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

