Adding android resources
in
Android Processing
•
2 years ago
Hello Everyone,
Is there a way to add an android resource to a processing sketch? i am working on a library and it will require that the sketch include an android resource (an xml file specifically) as part of information in the manifest (part of an intent declaration). When i run the code in eclipse it works fine but in processing i am unaware of how to add this resource to the res/ folder. i tried adding the xml file to the code/data/assets folder to no avail. The build dies as follows:
=========
-aidl:
[echo] Compiling aidl files into Java classes...
-renderscript:
[echo] Compiling RenderScript files into Java classes and RenderScript bytecode...
-resource-src:
[echo] Generating R.java / Manifest.java from the resources...
[aapt] /var/folders/t2/t2h-pBkrHhuIChHebq5gxU+++TU/-Tmp-/android8298999321686356417.pde/AndroidManifest.xml:14: error: Error: No resource found that matches the given name (at 'resource' with value '@xml/filter').
BUILD FAILED
/
=======
Any ideas or suggestions?
thanks you,
cg
Is there a way to add an android resource to a processing sketch? i am working on a library and it will require that the sketch include an android resource (an xml file specifically) as part of information in the manifest (part of an intent declaration). When i run the code in eclipse it works fine but in processing i am unaware of how to add this resource to the res/ folder. i tried adding the xml file to the code/data/assets folder to no avail. The build dies as follows:
=========
-aidl:
[echo] Compiling aidl files into Java classes...
-renderscript:
[echo] Compiling RenderScript files into Java classes and RenderScript bytecode...
-resource-src:
[echo] Generating R.java / Manifest.java from the resources...
[aapt] /var/folders/t2/t2h-pBkrHhuIChHebq5gxU+++TU/-Tmp-/android8298999321686356417.pde/AndroidManifest.xml:14: error: Error: No resource found that matches the given name (at 'resource' with value '@xml/filter').
BUILD FAILED
/
=======
Any ideas or suggestions?
thanks you,
cg
3