[Csnd] CsoundAndroidExamples - something wrong?
Date | 2012-09-03 21:02 |
From | Tarmo Johannes |
Subject | [Csnd] CsoundAndroidExamples - something wrong? |
Hi, I loaded CsoundAndroidExamples of csound 5.18.2 to Eclipse and tried them out. The app loaded both to virtual device and real phone nicely but when pressing to the On/off button in any of the test activities, the activity returned immediately to the main menu and made no sound. I don't remember similar behaviour before. To test, I tried it with the android code of csound 5.17.11 and it worked perfectly. I guess, it is probably some one-line mistake that has somehow happened. Victor, Steven can you have a quick look? greetings, tarmo |
Date | 2012-09-03 21:22 |
From | Victor |
Subject | Re: [Csnd] CsoundAndroidExamples - something wrong? |
Hi Tarmo, what OS are you developing on? Victor On 3 Sep 2012, at 21:02, Tarmo Johannes |
Date | 2012-09-03 21:55 |
From | Tarmo Johannes |
Subject | Re: [Csnd] CsoundAndroidExamples - something wrong? |
Hi, linux (opensuse 64 bit). Sorry I closed already the other computer that has eclipse on, I can't check its version. Te ADK was probably version 19, I think. tarmo On Monday, September 03, 2012 09:22:16 PM Victor wrote: > Hi Tarmo, > > what OS are you developing on? > > Victor > > On 3 Sep 2012, at 21:02, Tarmo Johannes |
Date | 2012-09-04 17:25 |
From | Steven Yi |
Subject | Re: [Csnd] CsoundAndroidExamples - something wrong? |
Hi Tarmo, I just tried the projects from the ZIP and they are working here. OSX, 64-bit JVM, Eclipse 4.2 (Juno). I tested using the Android 4.0.3 emulator. Could you paste the output of Logcat when you have a chance? It might explain what the issue is. Thanks! steven On Mon, Sep 3, 2012 at 9:55 PM, Tarmo Johannes |
Date | 2012-09-05 06:36 |
From | Tarmo Johannes |
Subject | Re: [Csnd] CsoundAndroidExamples - something wrong? |
Thanks, might easily be that I am doing something wrong - I am just trying to learn how to write android apps using Csound having no experience with java so might be easily did somehting that I don't notive or understand o. I tired once again,what I did was: - for any case created a new workbench in Eclipse -imported existing projects from csound5/android (sources pulled form git) - got error [CsoundAndroid] Unable to resolve target 'android-9' - since I don't have platform 9 installed. I set Properties->Android->Project Build Target to Android 2.3.3 (opsystem of my phone, API level 10) - CsoundAndroid] Android requires compiler compliance level 5.0 or 6.0. Found '1.4' instead. Please use Android Tools > Fix Project Properties. then I got sutck - I went to Properties -> Java Compiler -> JDK Compliance level and the highest I had in the list was 1.7. Hmm. Maybe something wrong in my installation. Then I deleted the projects form workspace and imported the projects from csound-5.17.11-android and got no compiler compliance error! - ran CsoundAndroidExamples in emulator and it worked perfectly! Maybe it is something I had done or changed in the properties before, But I can't figure it out. For me it is now enough to stick to the version of 5.17.11 code. If noone else reports problems with the one in 5.18, it is probably some mistake in my installation of csound code or something else local. I will report later, if I find out something. OS: opensSuse 12.1, Eclpise 3.7.2, android SDK tools ver 19, android sdk platform-tools rev 12, tested platform android-10 (ver 2.3.3) greetings, tarmo On Tuesday 04 September 2012 17:25:58 Steven Yi wrote: > Hi Tarmo, > > I just tried the projects from the ZIP and they are working here. > OSX, 64-bit JVM, Eclipse 4.2 (Juno). I tested using the Android 4.0.3 > emulator. Could you paste the output of Logcat when you have a > chance? It might explain what the issue is. > > Thanks! > steven > > On Mon, Sep 3, 2012 at 9:55 PM, Tarmo Johannes |
Date | 2012-09-05 20:05 |
From | Steven Yi |
Subject | Re: [Csnd] CsoundAndroidExamples - something wrong? |
Hi Tarmo, Question: when using from git, did you compile the native libraries on the command line using build.sh? Also, when you first tried did you use the 5.18.02 zip release for android? I'll have to check about if the projects are using application settings or project settings and fix if necessary. My guess though going back to the original issue is that you might have used git and had not coiled the native libs. If so that would explain the behavior of it crashing when it tried to run Csound. Steven On Sep 5, 2012 6:39 AM, "Tarmo Johannes" <tarmo.johannes@otsakool.edu.ee> wrote:
Thanks, |
Date | 2012-09-06 05:51 |
From | Tarmo Johannes |
Subject | Re: [Csnd] CsoundAndroidExamples - something wrong? |
On Wednesday 05 September 2012 20:05:39 Steven Yi wrote: My guess though going back to the original issue is that you might have used git and had not coiled the native libs. If so that would explain the behavior of it crashing when it tried to run Csound.
yes, you are right - with 5.18 , I used the projects in folder android and did not compile them. 5.17.11 was downloaded separately from zip, thus already including ready to use libraries, right?
thanks, tarmo |
Date | 2012-09-06 11:43 |
From | Steven Yi |
Subject | Re: [Csnd] CsoundAndroidExamples - something wrong? |
Hi Tarmo, The 5.18.02 zip on sourceforge should also work out of the box. With git, you have to compile the native libraries first to use it. I would recommend using the zip by default if you are not going to be developing the Csound Android library itself. Also, if you are developing your own android project, you can reference the CsoundAndroid project as a library project, and if new releases of Csound android cone out, you can just update what library project you are using to get the latest Csound. Hope that helps! On Sep 6, 2012 5:54 AM, "Tarmo Johannes" <tarmo.johannes@otsakool.edu.ee> wrote:
|
Date | 2012-09-07 20:18 |
From | David |
Subject | Re: [Csnd] CsoundAndroidExamples - something wrong? |
Maybe a little OT, but has anyone tried to port the APK to the Blackberry Playbook? There's supposed to be a tool available to convert APK files to a format that runs on the Playbook. I just picked up a BP (they just lowered the prices here) and thought I'd try it, but if someone else already has, please let me know. Thanks. |