-
moshang
From my side also a huge thanks to Chris! My projects would have been impossible without PdDroidParty. Of course, the same goes for Peter Brinkmann's libpd and Pure Data itself. @ShawnPD I'm lucky to have a designer friend who helped me with the look of the app. Chris has made skinning the app really easy. Just keep in mind that the background .svg seems to be a lot more forgiving than the .svg's for the interface objects - getting the interface ones slightly wrong can cause the app to have no interface. I followed Chris' advice and modified the ones he gave in Inkscape, rather than make my own.
-
moshang
Just a report back. I've finally succeeded in getting my app to function stand-alone and now have it available in the Android Market. The free version is available on the Android Market here: What Comes Around Free. Here are the steps I followed to get it working for me.
After installing Ubuntu on a spare computer (along with the rpl command as detailed before), I managed to get the scripts to run, but still couldn't get the "ant install" to function as expected.
I went back to the Windows 7 PC and tried the Eclipse route again. This time I laid the proper groundwork and resolved a lot of errors by importing everything as per Peter Brinkmann's instructions on the Pd Everywhere forum.
"[...] make sure that you’ve cloned pd-for-android and its dependencies like this:
git clone git://gitorious.org/pdlib/pd-for-android.git
cd pd-for-android
git submodule init
git submodule update
Now you need to import btmidi/BluetoothMidi and pd-for-android/PdCore/jni/libpd into Eclipse (make sure to use
File -> Import… -> General -> Existing project…). Now you can import PdCore. If you see error messages, those are probably due to bugs in Eclipse, and you should be able to sort them out by refreshing and cleaning everything once or twice. (This is the annoying part…)"I had to fix additional Eclipse errors on my system by setting the Java Compiler Compliance Level to 1.6 for each of the imported projects.
Next I tried to import the project I created by running the scripts in Linux into Eclipse on the Windows machine, but it seems as if one of the scripts deletes the Eclipse project. I went back and imported the originally downloaded PdDroidParty project from the MySynthesizer folder. The project imports under the title PatchSelector. Again, I set Java Compiler Compliance Level to 1.6 (right-click PatchSelector in the Package Explorer - it's under Java Compiler). I also had complaints until I set the Project Build Target to Android 2.2 (right-click PatchSelector in the Package Explorer - it's under Android).
This left me with 9 final errors related to the SVGParser. I resolved this by right-clicking PatchSelector in the Package Explorer and going to Build Path/Configure Build Path/Add JARs and selecting svg-android.jar under PatchSelector/libs in my workspace directory. I remember having to restart Eclipse a couple of times to get rid of spurious errors (!)
Next I renamed PatchSelector to my own title (in my case WhatComesAround) by right-clicking in the Package Explorer and choosing Refactor/Rename.
I copied across files that were created when I ran the Linux scrips, notably:
* patch.zip (res/raw folder) - this zip contains a folder called "patch", itself containing your pd patch as a droidparty_main.pd file, as well as a file titled VERSION-169 (in my case) - it doesn't seem to have an extension and simply contains the text 169
* I placed my splash.svg in the same folder (res/raw)
* my icon.png in the folder res/drawable
* the same icon.png in bin/res/drawable
* in the res/values folder, an patch.xml and strings.xmlNext I set about renaming files and occurrences within files with my own names - one of the Linux scripts does this, but I did it by hand on the Windows machine using Windows Grep (http://www.wingrep.com/) to search for all instances, and changing names inside Eclipse. I replaced all occurrences of PdDroidParty with my own name (WhatComesAround), a single instance of PdDroid Party with What Comes Around, as well as any mention of MySynthesizer (again with WhatComesAround).
After testing in the emulator I exported signed .apk's from Eclipse - one for a free and one for a paid version.
-
moshang
Me again. So maybe those scripts run on Mac OS? Either way, I tried again with Cygwin, but it doesn't understand the rpl command. I've also tried running Ubuntu off a CD-Rom, but I couldn't run the scripts successfully that way either.
I thought I might skip the scripts and try to make the required changes in Eclipse, but am stuck importing the source. I downloaded a new clone of the source and ran "android update project --name MySynthesizer --target 2 --path e:/MySynthesizer" on it. In Eclipse I went File/New/Android Project, selected "Create project from existing source" and browsed to the MySynthesizer location. This created a new eclipse project under the title PatchSelector. Everything seems to have been imported, but under the Problems tab I get 80 errors and 83 warnings - obviously very little is the way it should be.
Apologies to those of you facepalming your way through my messages, but like I said, I'm a complete noob. To be honest, I'm running out of ideas here. And the instructions made it sound so easy ;^)
-
moshang
Hey Berenger, thanks for the help, but I'm still stuck. Where do I type in the commands? I'm on Win7 64 here and when I create a command prompt, enter the folder and type the command, I get "'convert-app-name' is not a recognized as an internal or external command, operable program or batch file." In Bazaar I've tried the following/; opened the MySynthesizer location, and typed in "convert-app-name" in the "command" box under Bazaar/All Commands, to get "bzr: ERROR: unknown command "convert-app-name".
-
moshang
I'm at the point where I have my patch working the way I want via droidparty, but I'm stuck creating a standalone app. All due to me being a total noob, no doubt ;^) I've installed Bazaar and have managed the first step (clone the source code). I'm stuck at the second step "Convert the app name to whatever you like". How exactly do I do this `./convert-app-name mysynth "My Synthesizer"`. Is it a Bazaar command? Bazaar doesn't seem to recognize it as such. I'm assuming `./pack-patch` will work along similar lines. Any help would be much appreciated!