/*If they need to be copied as-is into the .apk, I thought that setting the
.jar's Build action to AndroidJavaLibrary would do that already. If it
doesn't, please file a bug. */

It doesn't. At least for library attached. Create empty monodroid project,
add this .jar file as "AndroidJavaLibrary" and build to reproduce. Using
Mono for Android: 4.0.6.52253989


/*If you do this, you'll need to ensure that you run zipalign afterward.
(Zipalign needs to be run after signing the .apk as well.) 

My guess is that when you add files with aapt, it might be compressing data
that was previously stored within the .apk. If the assemblies get
compressed, things break. */

This helped, thanks. Now I can add files to apk manually. This is not very
fine, as long as I should do aapt+sign+zipalign after every build, but it
works. (=

--
View this message in context: 
http://mono-for-android.1047100.n5.nabble.com/Adding-custom-resources-to-apk-tp5687687p5694951.html
Sent from the Mono for Android mailing list archive at Nabble.com.
_______________________________________________
Monodroid mailing list
[email protected]

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid

Reply via email to