Friday, May 6, 2011

[android-developers] Building app with ant, java resource files (not android) are not added...

Hi,

For my app I also use a java eclipse project that uses a embedded .xml
file as resource.
It loads them using: Library.class.getResourceAsStream("file.xml");

This library works ok, when the app is compiled with eclipse. However,
when I compile using ant (debug, so no proguard), it doesn't get added
to the app, and it crashes because of it.

I found out that the build.xml file didn't copied any files like
my .xml file to the output dir classes, so I added a manual copy
action that adds the file to the right folder.

Still, however, the final app can't find the file, and it looks like I
am missing something in the build.xml to make it work correctly.
(Maybe an option for dex?)

Please help,

Peter de Kraker

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate