2) Start with a Processing project using Proclipse ?
3) Start with a new Java project and pointed to the core.jar in your build path ?
4) Start with a new Android project and pointed to the core.jar in your build path ?
5) Modify an existing project from the libpd examples and pointed to the core.jar in your build path ?
Just saw this on the Wiki...
The best way to make an Android application is to use Subclipse to check out the source for processing/android/core as its own project in Eclipse. Call that project android-core. Then create a new Android project using the Eclipse ADT, and include android-core as a 'required project'.
not sure if this is filed as answered, but I coincidentally just posted on my blog about this very thing http://ghostandthemachine.github.com/ . There is a pretty thorough explanation about setting up eclipse and processing for android as well as some tools I have found to be very useful.
I am about to make a more formal post about a library I have been working on, but to get people started when i do, I had to start from eclipse + android so it should still be helpful still if you or anyone needs a place to get up and running with processing + android + eclipse
Although the importing core.jar will work, you probably want to go with the SVN approach (like @Jesse mentioned a couple posts ago) via Subclipse or Subversive so that you can get the most up to date android support for processing since it is being updated often. It has been the best method for me
Not sure why we're instructed to not use Eclipse. I switched to Eclipse for my Android Processing + libpd projects after my first app was released and it made things a WHOLE lot simpler, especially since I was used to writing in Visual Studio. Sure, it was fairly weird to setup (it took me at least a full day of figuring out how to properly compile libpd, where to put it, etc), and it made me switch to Linux for good, but it's very very useful. I use SVN approach for new projects and it works great. Another solution is to start your Android Processing projects in the PDE, lay out some basic stuff and then export it as an Android project and import it in Eclipse, it will work right away.
Just getting curious about libpd for Android. I'm guessing from the above posts that it doesn't work at all in the PDE and you need to use Eclipse. I'm then wondering if this is something anyone has done under Windows?
Have not heard of libpd, but have a similar issue to the one posted in this thread...
I have an Android application I've written in Eclipse and an Android application I've written in Processing. I'm looking to merge the two/get them to talk to one another somehow and at this point I'm stuck. Would it be easier to port the Eclipse bits to Processing or vice versa? Is there a wrapper of some sort I can put around my Processing sketch in Eclipse so I can pass data to my sketch and render it through Eclipse? It's all java so it has to be able to work somehow, I just don't know where to start.
I tried following the instructions you gave and it worked perfectly.
" Another solution is to start your Android Processing projects in the PDE, lay out some basic stuff and then export it as an Android project and import it in Eclipse, it will work right away." You have to add the processing-Core jar file, but it was surprisingly easy.
Hiiii, I have the same probleme, i can't execute a processing Sketch in eclipse, it's look a good idea to import the android project in Eclipse. But at that moment Eclipse should be in Java mode or Processing mode ?
I'd like to know exactly how to make the import of the android project.
I have Eclipse Indigo version and what works is to go via File -> New -> Android Project, then select "Create project from existing source" and point it to the Android folder of your processing sketch. It should work. The processing code ends up in a .java file in the src directory. I can then run the code in emulators or devices from Eclipse.
and have everything ready to build. however, when i try to reference PApplet anywhere (as in main()...), i get a compile error that "The type java.applet.Applet cannot be resolved. It is indirectly referenced from required .class files."
like others above on this thread, i put core.jar on my build path; using processing 2.0b6, i don't see any android-core.jar (though i do see an android-core.zip, which contains a bunch of class files).
might try jarring up the contents of android-core.zip and using that instead...any suggestions in the meantime?