Csound Csound-dev Csound-tekno Search About

Android Studio

Date2015-09-16 03:16
FromSteven Yi
SubjectAndroid Studio
Hi All,

I'm working on getting Csound for Android working with Android Studio.
I've posted a zip of the current structure:

https://drive.google.com/file/d/0B9MbxBSB3eNjNHQ1OURHWlE3ZEk/view?usp=sharing

The way it is setup at the moment is the main project has two modules.
The first is the example application (just called app in this test
zip), and the second is the CsoundAndroid library module.  The library
module contains the compiled .so libraries, which means it does not
require the NDK to use.

At this point, I'm still working out what should be the workflow in
how to include CsoundAndroid for new projects.  I'm also learning the
Csound Android/Gradle setup, so I'm happy for any suggestions.

My current thought is to release the Csound for Android SDK similarly
to how it has been, and similarly to his test project, where
CsoundAndroid is provided as a library module in the SDK.  In
parallel, CsoundAndroid would be packaged as an AAR and pushed to
JCenter.

This would provide two ways to build Csound-based Android
applications. First, the user can use the library module, which would
mean they can keep an exact copy together with their application
source. The other path is adding Csound as a dependency to your
project's gradle config.  That would automatically download the
version from JCenter.

I imagine the latter would be the simpler and preferred way to create
a project moving forward.  The former would be easier for those who
are building CsoundAndroid locally and using it.

Well, that's the latest with where I am.  I'm still learning the
conventions and expectations for Android Studio-based development, so
again, any feedback very much appreciated.

Thanks!
steven

------------------------------------------------------------------------------
Monitor Your Dynamic Infrastructure at Any Scale With Datadog!
Get real-time metrics from all of your servers, apps and tools
in one place.
SourceForge users - Click here to start your Free Trial of Datadog now!
http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140
_______________________________________________
Csound-users mailing list
Csound-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-users
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2015-09-16 09:24
FromJacques Leplat
SubjectRe: Android Studio
Sounds very interesting. I’ll have a look at your zip file. Moving from Eclipse to Android Studio is not a triviality, unfortunately there is no alternative since Google have dropped support for future releases of ADT in Eclipse.

For my projects, I would like to use CSound as a local library. 

The distribution you propose sounds ideal to me: a library module, and an example project. That is how I have always worked with new CSound releases for Android: download the zip, and attempt to run the example project (CSD Player). If that works, it implies that I have overcome all potential problems in my setup, and I can test out the library in my own projects, with the knowledge that any problems there are probably my own doing.

There is the issue of versioning releases of CSound, when considering users of JCenter, or any other centralised repository: every release once released should never be overwritten by another with the same release number, whether it’s due to a build error/ missing file in the original, or important fix to the original version. The reason being there could be several users who believe to be running the same version of CSound, but are not. In my opinion, it’s easy enough to ask someone to download the current zip from sourceforge or github, asking someone to clear out their local library cache to achieve the same goal is a bit more complicated.

Thanks again for all your efforts on CSound, hopefully I can find the time to at the very least try out what you post.

All the best,

Jacques

> On 16 Sep 2015, at 03:16, Steven Yi  wrote:
> 
> Hi All,
> 
> I'm working on getting Csound for Android working with Android Studio.
> I've posted a zip of the current structure:
> 
> https://drive.google.com/file/d/0B9MbxBSB3eNjNHQ1OURHWlE3ZEk/view?usp=sharing
> 
> The way it is setup at the moment is the main project has two modules.
> The first is the example application (just called app in this test
> zip), and the second is the CsoundAndroid library module.  The library
> module contains the compiled .so libraries, which means it does not
> require the NDK to use.
> 
> At this point, I'm still working out what should be the workflow in
> how to include CsoundAndroid for new projects.  I'm also learning the
> Csound Android/Gradle setup, so I'm happy for any suggestions.
> 
> My current thought is to release the Csound for Android SDK similarly
> to how it has been, and similarly to his test project, where
> CsoundAndroid is provided as a library module in the SDK.  In
> parallel, CsoundAndroid would be packaged as an AAR and pushed to
> JCenter.
> 
> This would provide two ways to build Csound-based Android
> applications. First, the user can use the library module, which would
> mean they can keep an exact copy together with their application
> source. The other path is adding Csound as a dependency to your
> project's gradle config.  That would automatically download the
> version from JCenter.
> 
> I imagine the latter would be the simpler and preferred way to create
> a project moving forward.  The former would be easier for those who
> are building CsoundAndroid locally and using it.
> 
> Well, that's the latest with where I am.  I'm still learning the
> conventions and expectations for Android Studio-based development, so
> again, any feedback very much appreciated.
> 
> Thanks!
> steven
> 


------------------------------------------------------------------------------
Monitor Your Dynamic Infrastructure at Any Scale With Datadog!
Get real-time metrics from all of your servers, apps and tools
in one place.
SourceForge users - Click here to start your Free Trial of Datadog now!
http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140
_______________________________________________
Csound-users mailing list
Csound-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-users
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2015-09-16 10:35
Fromebmtranceboy
SubjectRe: Android Studio
Hi Steven,
this is my feedback on Android Studio 1.3.2 for linux

* This is now api 23 : I changed it in compileSdkVersion and
targetSdkVersion in build.gradle (Module: CsoundAndroid)
*  warnings : I moved all permissions (WRITE, MODIFY,
RECORD) before the application tag in AndroidManifest.xml (app)
* the closing > of the application tag is after android:label : I removed an
extra > after 

The app compiles fine but I've noticed that:
* Waveview : no display
* Accelerometer : no sound change 
both on my Android4.1 phone and my Android4.3 tablet.

Thanks for the migration



--
View this message in context: http://csound.1045644.n5.nabble.com/Android-Studio-tp5743663p5743668.html
Sent from the Csound - General mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Monitor Your Dynamic Infrastructure at Any Scale With Datadog!
Get real-time metrics from all of your servers, apps and tools
in one place.
SourceForge users - Click here to start your Free Trial of Datadog now!
http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140
_______________________________________________
Csound-users mailing list
Csound-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-users
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2015-09-16 11:26
FromJacques Leplat
SubjectRe: Android Studio
Hello Steven,

Just downloaded and tried it. Excellent: unzipped, opened the project (Android Studio 1.4 Beta 4, mac os) built and runs fine on a Nexus 4 (Android 5.1.1), no manual changes needed.

On first loading, Android studio displayed a warning for the location of the Android SDK, the path was the one on your computer for Android SDK, but Studio fixed the gradle file to point to my installation folder.

The waveview example creates a sound, but the display is totally dark (nothing displayed).

It is really great to have a working example Android Studio project, now I can look into what the necessary configurations (modules / libraries) you setup for this.

Many thanks!

Jacques

> On 16 Sep 2015, at 03:16, Steven Yi  wrote:
> 
> Hi All,
> 
> I'm working on getting Csound for Android working with Android Studio.
> I've posted a zip of the current structure:
> 
> https://drive.google.com/file/d/0B9MbxBSB3eNjNHQ1OURHWlE3ZEk/view?usp=sharing
> 
> The way it is setup at the moment is the main project has two modules.
> The first is the example application (just called app in this test
> zip), and the second is the CsoundAndroid library module.  The library
> module contains the compiled .so libraries, which means it does not
> require the NDK to use.
> 


------------------------------------------------------------------------------
Monitor Your Dynamic Infrastructure at Any Scale With Datadog!
Get real-time metrics from all of your servers, apps and tools
in one place.
SourceForge users - Click here to start your Free Trial of Datadog now!
http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140
_______________________________________________
Csound-users mailing list
Csound-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-users
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2015-09-16 11:52
FromRory Walsh
SubjectRe: Android Studio
AttachmentsNone  None  
Steven, you're a hero! Thanks for this, it's going to make my next venture to Android land a skip in the park!  

On 16 September 2015 at 11:26, Jacques Leplat <jleplat@j3ltd.com> wrote:
Hello Steven,

Just downloaded and tried it. Excellent: unzipped, opened the project (Android Studio 1.4 Beta 4, mac os) built and runs fine on a Nexus 4 (Android 5.1.1), no manual changes needed.

On first loading, Android studio displayed a warning for the location of the Android SDK, the path was the one on your computer for Android SDK, but Studio fixed the gradle file to point to my installation folder.

The waveview example creates a sound, but the display is totally dark (nothing displayed).

It is really great to have a working example Android Studio project, now I can look into what the necessary configurations (modules / libraries) you setup for this.

Many thanks!

Jacques

> On 16 Sep 2015, at 03:16, Steven Yi <stevenyi@gmail.com> wrote:
>
> Hi All,
>
> I'm working on getting Csound for Android working with Android Studio.
> I've posted a zip of the current structure:
>
> https://drive.google.com/file/d/0B9MbxBSB3eNjNHQ1OURHWlE3ZEk/view?usp=sharing
>
> The way it is setup at the moment is the main project has two modules.
> The first is the example application (just called app in this test
> zip), and the second is the CsoundAndroid library module.  The library
> module contains the compiled .so libraries, which means it does not
> require the NDK to use.
>


------------------------------------------------------------------------------
Monitor Your Dynamic Infrastructure at Any Scale With Datadog!
Get real-time metrics from all of your servers, apps and tools
in one place.
SourceForge users - Click here to start your Free Trial of Datadog now!
http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140
_______________________________________________
Csound-users mailing list
Csound-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-users
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here


Date2015-09-16 21:39
FromSteven Yi
SubjectRe: Android Studio
Hi All,

Thanks for the feedback.  I applied Joel's comments to the XML.  Also,
I ran through the tests and I also got broken examples. It looks to me
that modifications to CsoundObj having to do with some isAsync flag
broke the examples and as it is circumventing the bindings systems.
I'll ask Victor about it offline and we can get that part sorted out.

It seems that the base project layout is working out alright. I'll do
a bit of analysis now to see if it's possible to modify what is in the
git repo to get it to work with both Eclipse and Android Studio.

steven

On Wed, Sep 16, 2015 at 6:52 AM, Rory Walsh  wrote:
> Steven, you're a hero! Thanks for this, it's going to make my next venture
> to Android land a skip in the park!
>
> On 16 September 2015 at 11:26, Jacques Leplat  wrote:
>>
>> Hello Steven,
>>
>> Just downloaded and tried it. Excellent: unzipped, opened the project
>> (Android Studio 1.4 Beta 4, mac os) built and runs fine on a Nexus 4
>> (Android 5.1.1), no manual changes needed.
>>
>> On first loading, Android studio displayed a warning for the location of
>> the Android SDK, the path was the one on your computer for Android SDK, but
>> Studio fixed the gradle file to point to my installation folder.
>>
>> The waveview example creates a sound, but the display is totally dark
>> (nothing displayed).
>>
>> It is really great to have a working example Android Studio project, now I
>> can look into what the necessary configurations (modules / libraries) you
>> setup for this.
>>
>> Many thanks!
>>
>> Jacques
>>
>> > On 16 Sep 2015, at 03:16, Steven Yi  wrote:
>> >
>> > Hi All,
>> >
>> > I'm working on getting Csound for Android working with Android Studio.
>> > I've posted a zip of the current structure:
>> >
>> >
>> > https://drive.google.com/file/d/0B9MbxBSB3eNjNHQ1OURHWlE3ZEk/view?usp=sharing
>> >
>> > The way it is setup at the moment is the main project has two modules.
>> > The first is the example application (just called app in this test
>> > zip), and the second is the CsoundAndroid library module.  The library
>> > module contains the compiled .so libraries, which means it does not
>> > require the NDK to use.
>> >
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Monitor Your Dynamic Infrastructure at Any Scale With Datadog!
>> Get real-time metrics from all of your servers, apps and tools
>> in one place.
>> SourceForge users - Click here to start your Free Trial of Datadog now!
>> http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140
>> _______________________________________________
>> Csound-users mailing list
>> Csound-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-users
>> Send bugs reports to
>>         https://github.com/csound/csound/issues
>> Discussions of bugs and features can be posted here
>
>
>
> ------------------------------------------------------------------------------
> Monitor Your Dynamic Infrastructure at Any Scale With Datadog!
> Get real-time metrics from all of your servers, apps and tools
> in one place.
> SourceForge users - Click here to start your Free Trial of Datadog now!
> http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140
> _______________________________________________
> Csound-users mailing list
> Csound-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-users
> Send bugs reports to
>         https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here
>

------------------------------------------------------------------------------
Monitor Your Dynamic Infrastructure at Any Scale With Datadog!
Get real-time metrics from all of your servers, apps and tools
in one place.
SourceForge users - Click here to start your Free Trial of Datadog now!
http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140
_______________________________________________
Csound-users mailing list
Csound-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-users
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2015-09-16 22:06
FromSteven Yi
SubjectRe: Android Studio
Okay, I emailed with Victor and the root cause was simple, the
CsoundBaseActivity was just set to have its second argument as false,
when it should have been true. Changing that got accelerometer and
other examples working, with the exception of Waveview which crashes
for me here.  It looks a simple enough thing to fix though.  I will
continue on with the module changes and come back to fix the Waveview
afterwards.

On Wed, Sep 16, 2015 at 4:39 PM, Steven Yi  wrote:
> Hi All,
>
> Thanks for the feedback.  I applied Joel's comments to the XML.  Also,
> I ran through the tests and I also got broken examples. It looks to me
> that modifications to CsoundObj having to do with some isAsync flag
> broke the examples and as it is circumventing the bindings systems.
> I'll ask Victor about it offline and we can get that part sorted out.
>
> It seems that the base project layout is working out alright. I'll do
> a bit of analysis now to see if it's possible to modify what is in the
> git repo to get it to work with both Eclipse and Android Studio.
>
> steven
>
> On Wed, Sep 16, 2015 at 6:52 AM, Rory Walsh  wrote:
>> Steven, you're a hero! Thanks for this, it's going to make my next venture
>> to Android land a skip in the park!
>>
>> On 16 September 2015 at 11:26, Jacques Leplat  wrote:
>>>
>>> Hello Steven,
>>>
>>> Just downloaded and tried it. Excellent: unzipped, opened the project
>>> (Android Studio 1.4 Beta 4, mac os) built and runs fine on a Nexus 4
>>> (Android 5.1.1), no manual changes needed.
>>>
>>> On first loading, Android studio displayed a warning for the location of
>>> the Android SDK, the path was the one on your computer for Android SDK, but
>>> Studio fixed the gradle file to point to my installation folder.
>>>
>>> The waveview example creates a sound, but the display is totally dark
>>> (nothing displayed).
>>>
>>> It is really great to have a working example Android Studio project, now I
>>> can look into what the necessary configurations (modules / libraries) you
>>> setup for this.
>>>
>>> Many thanks!
>>>
>>> Jacques
>>>
>>> > On 16 Sep 2015, at 03:16, Steven Yi  wrote:
>>> >
>>> > Hi All,
>>> >
>>> > I'm working on getting Csound for Android working with Android Studio.
>>> > I've posted a zip of the current structure:
>>> >
>>> >
>>> > https://drive.google.com/file/d/0B9MbxBSB3eNjNHQ1OURHWlE3ZEk/view?usp=sharing
>>> >
>>> > The way it is setup at the moment is the main project has two modules.
>>> > The first is the example application (just called app in this test
>>> > zip), and the second is the CsoundAndroid library module.  The library
>>> > module contains the compiled .so libraries, which means it does not
>>> > require the NDK to use.
>>> >
>>>
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> Monitor Your Dynamic Infrastructure at Any Scale With Datadog!
>>> Get real-time metrics from all of your servers, apps and tools
>>> in one place.
>>> SourceForge users - Click here to start your Free Trial of Datadog now!
>>> http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140
>>> _______________________________________________
>>> Csound-users mailing list
>>> Csound-users@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-users
>>> Send bugs reports to
>>>         https://github.com/csound/csound/issues
>>> Discussions of bugs and features can be posted here
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Monitor Your Dynamic Infrastructure at Any Scale With Datadog!
>> Get real-time metrics from all of your servers, apps and tools
>> in one place.
>> SourceForge users - Click here to start your Free Trial of Datadog now!
>> http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140
>> _______________________________________________
>> Csound-users mailing list
>> Csound-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-users
>> Send bugs reports to
>>         https://github.com/csound/csound/issues
>> Discussions of bugs and features can be posted here
>>

------------------------------------------------------------------------------
Monitor Your Dynamic Infrastructure at Any Scale With Datadog!
Get real-time metrics from all of your servers, apps and tools
in one place.
SourceForge users - Click here to start your Free Trial of Datadog now!
http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140
_______________________________________________
Csound-users mailing list
Csound-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-users
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2015-09-17 20:20
FromSteven Yi
SubjectRe: Android Studio
Hi All,

So here is a new build of Csound for Android (Studio).  I have
committed all project files and build/release scripts to Csound's Git
develop branch.  The build is available at:

https://drive.google.com/file/d/0B9MbxBSB3eNjTTRhV0l2a0ZfcXc/view?usp=sharing

The CsoundForAndroid folder is the main Android Studio project.  If
you load it, it will show two modules: one application module called
"CsoundAndroidExamples" and a library module called "CsoundAndroid".
>From here, you can use the CsoundAndroidExamples target to build the
examples and run on your device.

To use CsoundAndroid in your own project, you can do:

1. Create your project in Android Studio
2. Use File->New->Import Module.  Select the CsoundAndroid folder from
the CsoundForAndroid release.  This will make a copy of CsoundAndroid
in your own project.
3. At this point, you should have two modules within your project:
your app, and CsoundAndroid.  Select your app in the project view,
right click, then choose "Open Module Settings."  On the left hand
side, select your app module.
4. Click on the Dependencies tab, then use the + button to add a new
dependency.  Choose "Add Module Dependency," then choose
"CsoundAndroid."

At this point, you should now have CsoundAndroid working within your
application.
If others can give this a try, I'd appreciate it to make sure it is
working for others.

For the release, there are a few things left:
* Csound6 - I'm going to look into setting up a second app module
within the CsoundForAndroid project
* Waveview - this example is still crashing. I looked into this and
there's something funny going on where it's trying to get a double**
but the API is compiled with floats.  It's not apparent yet what is
going on.
* AAR - I still need to investigate building and deploying
CsoundAndroid as an AAR releas to JCenter.  This would provide the
second way for building apps.

All feedback appreciated. Thanks!

steven

On Wed, Sep 16, 2015 at 5:06 PM, Steven Yi  wrote:
> Okay, I emailed with Victor and the root cause was simple, the
> CsoundBaseActivity was just set to have its second argument as false,
> when it should have been true. Changing that got accelerometer and
> other examples working, with the exception of Waveview which crashes
> for me here.  It looks a simple enough thing to fix though.  I will
> continue on with the module changes and come back to fix the Waveview
> afterwards.
>
> On Wed, Sep 16, 2015 at 4:39 PM, Steven Yi  wrote:
>> Hi All,
>>
>> Thanks for the feedback.  I applied Joel's comments to the XML.  Also,
>> I ran through the tests and I also got broken examples. It looks to me
>> that modifications to CsoundObj having to do with some isAsync flag
>> broke the examples and as it is circumventing the bindings systems.
>> I'll ask Victor about it offline and we can get that part sorted out.
>>
>> It seems that the base project layout is working out alright. I'll do
>> a bit of analysis now to see if it's possible to modify what is in the
>> git repo to get it to work with both Eclipse and Android Studio.
>>
>> steven
>>
>> On Wed, Sep 16, 2015 at 6:52 AM, Rory Walsh  wrote:
>>> Steven, you're a hero! Thanks for this, it's going to make my next venture
>>> to Android land a skip in the park!
>>>
>>> On 16 September 2015 at 11:26, Jacques Leplat  wrote:
>>>>
>>>> Hello Steven,
>>>>
>>>> Just downloaded and tried it. Excellent: unzipped, opened the project
>>>> (Android Studio 1.4 Beta 4, mac os) built and runs fine on a Nexus 4
>>>> (Android 5.1.1), no manual changes needed.
>>>>
>>>> On first loading, Android studio displayed a warning for the location of
>>>> the Android SDK, the path was the one on your computer for Android SDK, but
>>>> Studio fixed the gradle file to point to my installation folder.
>>>>
>>>> The waveview example creates a sound, but the display is totally dark
>>>> (nothing displayed).
>>>>
>>>> It is really great to have a working example Android Studio project, now I
>>>> can look into what the necessary configurations (modules / libraries) you
>>>> setup for this.
>>>>
>>>> Many thanks!
>>>>
>>>> Jacques
>>>>
>>>> > On 16 Sep 2015, at 03:16, Steven Yi  wrote:
>>>> >
>>>> > Hi All,
>>>> >
>>>> > I'm working on getting Csound for Android working with Android Studio.
>>>> > I've posted a zip of the current structure:
>>>> >
>>>> >
>>>> > https://drive.google.com/file/d/0B9MbxBSB3eNjNHQ1OURHWlE3ZEk/view?usp=sharing
>>>> >
>>>> > The way it is setup at the moment is the main project has two modules.
>>>> > The first is the example application (just called app in this test
>>>> > zip), and the second is the CsoundAndroid library module.  The library
>>>> > module contains the compiled .so libraries, which means it does not
>>>> > require the NDK to use.
>>>> >
>>>>
>>>>
>>>>
>>>> ------------------------------------------------------------------------------
>>>> Monitor Your Dynamic Infrastructure at Any Scale With Datadog!
>>>> Get real-time metrics from all of your servers, apps and tools
>>>> in one place.
>>>> SourceForge users - Click here to start your Free Trial of Datadog now!
>>>> http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140
>>>> _______________________________________________
>>>> Csound-users mailing list
>>>> Csound-users@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-users
>>>> Send bugs reports to
>>>>         https://github.com/csound/csound/issues
>>>> Discussions of bugs and features can be posted here
>>>
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> Monitor Your Dynamic Infrastructure at Any Scale With Datadog!
>>> Get real-time metrics from all of your servers, apps and tools
>>> in one place.
>>> SourceForge users - Click here to start your Free Trial of Datadog now!
>>> http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140
>>> _______________________________________________
>>> Csound-users mailing list
>>> Csound-users@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-users
>>> Send bugs reports to
>>>         https://github.com/csound/csound/issues
>>> Discussions of bugs and features can be posted here
>>>

------------------------------------------------------------------------------
Monitor Your Dynamic Infrastructure at Any Scale With Datadog!
Get real-time metrics from all of your servers, apps and tools
in one place.
SourceForge users - Click here to start your Free Trial of Datadog now!
http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140
_______________________________________________
Csound-users mailing list
Csound-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-users
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2015-09-17 20:52
FromMichael Gogins
SubjectRe: Android Studio
Thanks for this work.

I take it that the Csound for Android app, which used to be the
CSDPlayer, is not included at this time, but will be what you call a
"second app module?"

Best,
Mike

-----------------------------------------------------
Michael Gogins
Irreducible Productions
http://michaelgogins.tumblr.com
Michael dot Gogins at gmail dot com


On Thu, Sep 17, 2015 at 3:20 PM, Steven Yi  wrote:
> Hi All,
>
> So here is a new build of Csound for Android (Studio).  I have
> committed all project files and build/release scripts to Csound's Git
> develop branch.  The build is available at:
>
> https://drive.google.com/file/d/0B9MbxBSB3eNjTTRhV0l2a0ZfcXc/view?usp=sharing
>
> The CsoundForAndroid folder is the main Android Studio project.  If
> you load it, it will show two modules: one application module called
> "CsoundAndroidExamples" and a library module called "CsoundAndroid".
> >From here, you can use the CsoundAndroidExamples target to build the
> examples and run on your device.
>
> To use CsoundAndroid in your own project, you can do:
>
> 1. Create your project in Android Studio
> 2. Use File->New->Import Module.  Select the CsoundAndroid folder from
> the CsoundForAndroid release.  This will make a copy of CsoundAndroid
> in your own project.
> 3. At this point, you should have two modules within your project:
> your app, and CsoundAndroid.  Select your app in the project view,
> right click, then choose "Open Module Settings."  On the left hand
> side, select your app module.
> 4. Click on the Dependencies tab, then use the + button to add a new
> dependency.  Choose "Add Module Dependency," then choose
> "CsoundAndroid."
>
> At this point, you should now have CsoundAndroid working within your
> application.
> If others can give this a try, I'd appreciate it to make sure it is
> working for others.
>
> For the release, there are a few things left:
> * Csound6 - I'm going to look into setting up a second app module
> within the CsoundForAndroid project
> * Waveview - this example is still crashing. I looked into this and
> there's something funny going on where it's trying to get a double**
> but the API is compiled with floats.  It's not apparent yet what is
> going on.
> * AAR - I still need to investigate building and deploying
> CsoundAndroid as an AAR releas to JCenter.  This would provide the
> second way for building apps.
>
> All feedback appreciated. Thanks!
>
> steven
>
> On Wed, Sep 16, 2015 at 5:06 PM, Steven Yi  wrote:
>> Okay, I emailed with Victor and the root cause was simple, the
>> CsoundBaseActivity was just set to have its second argument as false,
>> when it should have been true. Changing that got accelerometer and
>> other examples working, with the exception of Waveview which crashes
>> for me here.  It looks a simple enough thing to fix though.  I will
>> continue on with the module changes and come back to fix the Waveview
>> afterwards.
>>
>> On Wed, Sep 16, 2015 at 4:39 PM, Steven Yi  wrote:
>>> Hi All,
>>>
>>> Thanks for the feedback.  I applied Joel's comments to the XML.  Also,
>>> I ran through the tests and I also got broken examples. It looks to me
>>> that modifications to CsoundObj having to do with some isAsync flag
>>> broke the examples and as it is circumventing the bindings systems.
>>> I'll ask Victor about it offline and we can get that part sorted out.
>>>
>>> It seems that the base project layout is working out alright. I'll do
>>> a bit of analysis now to see if it's possible to modify what is in the
>>> git repo to get it to work with both Eclipse and Android Studio.
>>>
>>> steven
>>>
>>> On Wed, Sep 16, 2015 at 6:52 AM, Rory Walsh  wrote:
>>>> Steven, you're a hero! Thanks for this, it's going to make my next venture
>>>> to Android land a skip in the park!
>>>>
>>>> On 16 September 2015 at 11:26, Jacques Leplat  wrote:
>>>>>
>>>>> Hello Steven,
>>>>>
>>>>> Just downloaded and tried it. Excellent: unzipped, opened the project
>>>>> (Android Studio 1.4 Beta 4, mac os) built and runs fine on a Nexus 4
>>>>> (Android 5.1.1), no manual changes needed.
>>>>>
>>>>> On first loading, Android studio displayed a warning for the location of
>>>>> the Android SDK, the path was the one on your computer for Android SDK, but
>>>>> Studio fixed the gradle file to point to my installation folder.
>>>>>
>>>>> The waveview example creates a sound, but the display is totally dark
>>>>> (nothing displayed).
>>>>>
>>>>> It is really great to have a working example Android Studio project, now I
>>>>> can look into what the necessary configurations (modules / libraries) you
>>>>> setup for this.
>>>>>
>>>>> Many thanks!
>>>>>
>>>>> Jacques
>>>>>
>>>>> > On 16 Sep 2015, at 03:16, Steven Yi  wrote:
>>>>> >
>>>>> > Hi All,
>>>>> >
>>>>> > I'm working on getting Csound for Android working with Android Studio.
>>>>> > I've posted a zip of the current structure:
>>>>> >
>>>>> >
>>>>> > https://drive.google.com/file/d/0B9MbxBSB3eNjNHQ1OURHWlE3ZEk/view?usp=sharing
>>>>> >
>>>>> > The way it is setup at the moment is the main project has two modules.
>>>>> > The first is the example application (just called app in this test
>>>>> > zip), and the second is the CsoundAndroid library module.  The library
>>>>> > module contains the compiled .so libraries, which means it does not
>>>>> > require the NDK to use.
>>>>> >
>>>>>
>>>>>
>>>>>
>>>>> ------------------------------------------------------------------------------
>>>>> Monitor Your Dynamic Infrastructure at Any Scale With Datadog!
>>>>> Get real-time metrics from all of your servers, apps and tools
>>>>> in one place.
>>>>> SourceForge users - Click here to start your Free Trial of Datadog now!
>>>>> http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140
>>>>> _______________________________________________
>>>>> Csound-users mailing list
>>>>> Csound-users@lists.sourceforge.net
>>>>> https://lists.sourceforge.net/lists/listinfo/csound-users
>>>>> Send bugs reports to
>>>>>         https://github.com/csound/csound/issues
>>>>> Discussions of bugs and features can be posted here
>>>>
>>>>
>>>>
>>>> ------------------------------------------------------------------------------
>>>> Monitor Your Dynamic Infrastructure at Any Scale With Datadog!
>>>> Get real-time metrics from all of your servers, apps and tools
>>>> in one place.
>>>> SourceForge users - Click here to start your Free Trial of Datadog now!
>>>> http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140
>>>> _______________________________________________
>>>> Csound-users mailing list
>>>> Csound-users@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-users
>>>> Send bugs reports to
>>>>         https://github.com/csound/csound/issues
>>>> Discussions of bugs and features can be posted here
>>>>
>
> ------------------------------------------------------------------------------
> Monitor Your Dynamic Infrastructure at Any Scale With Datadog!
> Get real-time metrics from all of your servers, apps and tools
> in one place.
> SourceForge users - Click here to start your Free Trial of Datadog now!
> http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140
> _______________________________________________
> Csound-users mailing list
> Csound-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-users
> Send bugs reports to
>         https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here

------------------------------------------------------------------------------
Monitor Your Dynamic Infrastructure at Any Scale With Datadog!
Get real-time metrics from all of your servers, apps and tools
in one place.
SourceForge users - Click here to start your Free Trial of Datadog now!
http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140
_______________________________________________
Csound-users mailing list
Csound-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-users
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2015-09-17 21:03
FromSteven Yi
SubjectRe: Android Studio
Yes that is what I was referring to as the Csound6 app module. You can
have multiple apps within a project and choose the target to build in
the studio.

Studio doesn't seem to do links to library modules like in Eclipse.
Instead, when you import, it makes a whole copy.  Also, the concept of
"Project" in Android Studio is similar to the concept of "Workspace"
in Eclipse, and modules map to Eclipse's projects.  The other way to
get libraries as dependencies is to add a dependency to the gradle
config to have it pull down the library from JCenter.

The beta release I put up and the importing of the module into your
own project matches most closely to the Eclipse workflow.  Once the
Csound6 app is a module in the CsoundForAndroid folder, what will
happen is when you open the CsoundForAndroid folder as a project,
studio will show you all three modules (2 app, 1 library).




On Thu, Sep 17, 2015, 3:53 PM Michael Gogins  wrote:
>
> Thanks for this work.
>
> I take it that the Csound for Android app, which used to be the
> CSDPlayer, is not included at this time, but will be what you call a
> "second app module?"
>
> Best,
> Mike
>
> -----------------------------------------------------
> Michael Gogins
> Irreducible Productions
> http://michaelgogins.tumblr.com
> Michael dot Gogins at gmail dot com
>
>
> On Thu, Sep 17, 2015 at 3:20 PM, Steven Yi  wrote:
> > Hi All,
> >
> > So here is a new build of Csound for Android (Studio).  I have
> > committed all project files and build/release scripts to Csound's Git
> > develop branch.  The build is available at:
> >
> > https://drive.google.com/file/d/0B9MbxBSB3eNjTTRhV0l2a0ZfcXc/view?usp=sharing
> >
> > The CsoundForAndroid folder is the main Android Studio project.  If
> > you load it, it will show two modules: one application module called
> > "CsoundAndroidExamples" and a library module called "CsoundAndroid".
> > >From here, you can use the CsoundAndroidExamples target to build the
> > examples and run on your device.
> >
> > To use CsoundAndroid in your own project, you can do:
> >
> > 1. Create your project in Android Studio
> > 2. Use File->New->Import Module.  Select the CsoundAndroid folder from
> > the CsoundForAndroid release.  This will make a copy of CsoundAndroid
> > in your own project.
> > 3. At this point, you should have two modules within your project:
> > your app, and CsoundAndroid.  Select your app in the project view,
> > right click, then choose "Open Module Settings."  On the left hand
> > side, select your app module.
> > 4. Click on the Dependencies tab, then use the + button to add a new
> > dependency.  Choose "Add Module Dependency," then choose
> > "CsoundAndroid."
> >
> > At this point, you should now have CsoundAndroid working within your
> > application.
> > If others can give this a try, I'd appreciate it to make sure it is
> > working for others.
> >
> > For the release, there are a few things left:
> > * Csound6 - I'm going to look into setting up a second app module
> > within the CsoundForAndroid project
> > * Waveview - this example is still crashing. I looked into this and
> > there's something funny going on where it's trying to get a double**
> > but the API is compiled with floats.  It's not apparent yet what is
> > going on.
> > * AAR - I still need to investigate building and deploying
> > CsoundAndroid as an AAR releas to JCenter.  This would provide the
> > second way for building apps.
> >
> > All feedback appreciated. Thanks!
> >
> > steven
> >
> > On Wed, Sep 16, 2015 at 5:06 PM, Steven Yi  wrote:
> >> Okay, I emailed with Victor and the root cause was simple, the
> >> CsoundBaseActivity was just set to have its second argument as false,
> >> when it should have been true. Changing that got accelerometer and
> >> other examples working, with the exception of Waveview which crashes
> >> for me here.  It looks a simple enough thing to fix though.  I will
> >> continue on with the module changes and come back to fix the Waveview
> >> afterwards.
> >>
> >> On Wed, Sep 16, 2015 at 4:39 PM, Steven Yi  wrote:
> >>> Hi All,
> >>>
> >>> Thanks for the feedback.  I applied Joel's comments to the XML.  Also,
> >>> I ran through the tests and I also got broken examples. It looks to me
> >>> that modifications to CsoundObj having to do with some isAsync flag
> >>> broke the examples and as it is circumventing the bindings systems.
> >>> I'll ask Victor about it offline and we can get that part sorted out.
> >>>
> >>> It seems that the base project layout is working out alright. I'll do
> >>> a bit of analysis now to see if it's possible to modify what is in the
> >>> git repo to get it to work with both Eclipse and Android Studio.
> >>>
> >>> steven
> >>>
> >>> On Wed, Sep 16, 2015 at 6:52 AM, Rory Walsh  wrote:
> >>>> Steven, you're a hero! Thanks for this, it's going to make my next venture
> >>>> to Android land a skip in the park!
> >>>>
> >>>> On 16 September 2015 at 11:26, Jacques Leplat  wrote:
> >>>>>
> >>>>> Hello Steven,
> >>>>>
> >>>>> Just downloaded and tried it. Excellent: unzipped, opened the project
> >>>>> (Android Studio 1.4 Beta 4, mac os) built and runs fine on a Nexus 4
> >>>>> (Android 5.1.1), no manual changes needed.
> >>>>>
> >>>>> On first loading, Android studio displayed a warning for the location of
> >>>>> the Android SDK, the path was the one on your computer for Android SDK, but
> >>>>> Studio fixed the gradle file to point to my installation folder.
> >>>>>
> >>>>> The waveview example creates a sound, but the display is totally dark
> >>>>> (nothing displayed).
> >>>>>
> >>>>> It is really great to have a working example Android Studio project, now I
> >>>>> can look into what the necessary configurations (modules / libraries) you
> >>>>> setup for this.
> >>>>>
> >>>>> Many thanks!
> >>>>>
> >>>>> Jacques
> >>>>>
> >>>>> > On 16 Sep 2015, at 03:16, Steven Yi  wrote:
> >>>>> >
> >>>>> > Hi All,
> >>>>> >
> >>>>> > I'm working on getting Csound for Android working with Android Studio.
> >>>>> > I've posted a zip of the current structure:
> >>>>> >
> >>>>> >
> >>>>> > https://drive.google.com/file/d/0B9MbxBSB3eNjNHQ1OURHWlE3ZEk/view?usp=sharing
> >>>>> >
> >>>>> > The way it is setup at the moment is the main project has two modules.
> >>>>> > The first is the example application (just called app in this test
> >>>>> > zip), and the second is the CsoundAndroid library module.  The library
> >>>>> > module contains the compiled .so libraries, which means it does not
> >>>>> > require the NDK to use.
> >>>>> >
> >>>>>
> >>>>>
> >>>>>
> >>>>> ------------------------------------------------------------------------------
> >>>>> Monitor Your Dynamic Infrastructure at Any Scale With Datadog!
> >>>>> Get real-time metrics from all of your servers, apps and tools
> >>>>> in one place.
> >>>>> SourceForge users - Click here to start your Free Trial of Datadog now!
> >>>>> http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140
> >>>>> _______________________________________________
> >>>>> Csound-users mailing list
> >>>>> Csound-users@lists.sourceforge.net
> >>>>> https://lists.sourceforge.net/lists/listinfo/csound-users
> >>>>> Send bugs reports to
> >>>>>         https://github.com/csound/csound/issues
> >>>>> Discussions of bugs and features can be posted here
> >>>>
> >>>>
> >>>>
> >>>> ------------------------------------------------------------------------------
> >>>> Monitor Your Dynamic Infrastructure at Any Scale With Datadog!
> >>>> Get real-time metrics from all of your servers, apps and tools
> >>>> in one place.
> >>>> SourceForge users - Click here to start your Free Trial of Datadog now!
> >>>> http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140
> >>>> _______________________________________________
> >>>> Csound-users mailing list
> >>>> Csound-users@lists.sourceforge.net
> >>>> https://lists.sourceforge.net/lists/listinfo/csound-users
> >>>> Send bugs reports to
> >>>>         https://github.com/csound/csound/issues
> >>>> Discussions of bugs and features can be posted here
> >>>>
> >
> > ------------------------------------------------------------------------------
> > Monitor Your Dynamic Infrastructure at Any Scale With Datadog!
> > Get real-time metrics from all of your servers, apps and tools
> > in one place.
> > SourceForge users - Click here to start your Free Trial of Datadog now!
> > http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140
> > _______________________________________________
> > Csound-users mailing list
> > Csound-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/csound-users
> > Send bugs reports to
> >         https://github.com/csound/csound/issues
> > Discussions of bugs and features can be posted here
>
> ------------------------------------------------------------------------------
> Monitor Your Dynamic Infrastructure at Any Scale With Datadog!
> Get real-time metrics from all of your servers, apps and tools
> in one place.
> SourceForge users - Click here to start your Free Trial of Datadog now!
> http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140
> _______________________________________________
> Csound-users mailing list
> Csound-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-users
> Send bugs reports to
>         https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here

------------------------------------------------------------------------------
Monitor Your Dynamic Infrastructure at Any Scale With Datadog!
Get real-time metrics from all of your servers, apps and tools
in one place.
SourceForge users - Click here to start your Free Trial of Datadog now!
http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140
_______________________________________________
Csound-users mailing list
Csound-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-users
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2015-09-17 21:41
FromMichael Gogins
SubjectRe: Android Studio
Sounds good, thanks.

Mike

-----------------------------------------------------
Michael Gogins
Irreducible Productions
http://michaelgogins.tumblr.com
Michael dot Gogins at gmail dot com


On Thu, Sep 17, 2015 at 4:03 PM, Steven Yi  wrote:
> Yes that is what I was referring to as the Csound6 app module. You can
> have multiple apps within a project and choose the target to build in
> the studio.
>
> Studio doesn't seem to do links to library modules like in Eclipse.
> Instead, when you import, it makes a whole copy.  Also, the concept of
> "Project" in Android Studio is similar to the concept of "Workspace"
> in Eclipse, and modules map to Eclipse's projects.  The other way to
> get libraries as dependencies is to add a dependency to the gradle
> config to have it pull down the library from JCenter.
>
> The beta release I put up and the importing of the module into your
> own project matches most closely to the Eclipse workflow.  Once the
> Csound6 app is a module in the CsoundForAndroid folder, what will
> happen is when you open the CsoundForAndroid folder as a project,
> studio will show you all three modules (2 app, 1 library).
>
>
>
>
> On Thu, Sep 17, 2015, 3:53 PM Michael Gogins  wrote:
>>
>> Thanks for this work.
>>
>> I take it that the Csound for Android app, which used to be the
>> CSDPlayer, is not included at this time, but will be what you call a
>> "second app module?"
>>
>> Best,
>> Mike
>>
>> -----------------------------------------------------
>> Michael Gogins
>> Irreducible Productions
>> http://michaelgogins.tumblr.com
>> Michael dot Gogins at gmail dot com
>>
>>
>> On Thu, Sep 17, 2015 at 3:20 PM, Steven Yi  wrote:
>> > Hi All,
>> >
>> > So here is a new build of Csound for Android (Studio).  I have
>> > committed all project files and build/release scripts to Csound's Git
>> > develop branch.  The build is available at:
>> >
>> > https://drive.google.com/file/d/0B9MbxBSB3eNjTTRhV0l2a0ZfcXc/view?usp=sharing
>> >
>> > The CsoundForAndroid folder is the main Android Studio project.  If
>> > you load it, it will show two modules: one application module called
>> > "CsoundAndroidExamples" and a library module called "CsoundAndroid".
>> > >From here, you can use the CsoundAndroidExamples target to build the
>> > examples and run on your device.
>> >
>> > To use CsoundAndroid in your own project, you can do:
>> >
>> > 1. Create your project in Android Studio
>> > 2. Use File->New->Import Module.  Select the CsoundAndroid folder from
>> > the CsoundForAndroid release.  This will make a copy of CsoundAndroid
>> > in your own project.
>> > 3. At this point, you should have two modules within your project:
>> > your app, and CsoundAndroid.  Select your app in the project view,
>> > right click, then choose "Open Module Settings."  On the left hand
>> > side, select your app module.
>> > 4. Click on the Dependencies tab, then use the + button to add a new
>> > dependency.  Choose "Add Module Dependency," then choose
>> > "CsoundAndroid."
>> >
>> > At this point, you should now have CsoundAndroid working within your
>> > application.
>> > If others can give this a try, I'd appreciate it to make sure it is
>> > working for others.
>> >
>> > For the release, there are a few things left:
>> > * Csound6 - I'm going to look into setting up a second app module
>> > within the CsoundForAndroid project
>> > * Waveview - this example is still crashing. I looked into this and
>> > there's something funny going on where it's trying to get a double**
>> > but the API is compiled with floats.  It's not apparent yet what is
>> > going on.
>> > * AAR - I still need to investigate building and deploying
>> > CsoundAndroid as an AAR releas to JCenter.  This would provide the
>> > second way for building apps.
>> >
>> > All feedback appreciated. Thanks!
>> >
>> > steven
>> >
>> > On Wed, Sep 16, 2015 at 5:06 PM, Steven Yi  wrote:
>> >> Okay, I emailed with Victor and the root cause was simple, the
>> >> CsoundBaseActivity was just set to have its second argument as false,
>> >> when it should have been true. Changing that got accelerometer and
>> >> other examples working, with the exception of Waveview which crashes
>> >> for me here.  It looks a simple enough thing to fix though.  I will
>> >> continue on with the module changes and come back to fix the Waveview
>> >> afterwards.
>> >>
>> >> On Wed, Sep 16, 2015 at 4:39 PM, Steven Yi  wrote:
>> >>> Hi All,
>> >>>
>> >>> Thanks for the feedback.  I applied Joel's comments to the XML.  Also,
>> >>> I ran through the tests and I also got broken examples. It looks to me
>> >>> that modifications to CsoundObj having to do with some isAsync flag
>> >>> broke the examples and as it is circumventing the bindings systems.
>> >>> I'll ask Victor about it offline and we can get that part sorted out.
>> >>>
>> >>> It seems that the base project layout is working out alright. I'll do
>> >>> a bit of analysis now to see if it's possible to modify what is in the
>> >>> git repo to get it to work with both Eclipse and Android Studio.
>> >>>
>> >>> steven
>> >>>
>> >>> On Wed, Sep 16, 2015 at 6:52 AM, Rory Walsh  wrote:
>> >>>> Steven, you're a hero! Thanks for this, it's going to make my next venture
>> >>>> to Android land a skip in the park!
>> >>>>
>> >>>> On 16 September 2015 at 11:26, Jacques Leplat  wrote:
>> >>>>>
>> >>>>> Hello Steven,
>> >>>>>
>> >>>>> Just downloaded and tried it. Excellent: unzipped, opened the project
>> >>>>> (Android Studio 1.4 Beta 4, mac os) built and runs fine on a Nexus 4
>> >>>>> (Android 5.1.1), no manual changes needed.
>> >>>>>
>> >>>>> On first loading, Android studio displayed a warning for the location of
>> >>>>> the Android SDK, the path was the one on your computer for Android SDK, but
>> >>>>> Studio fixed the gradle file to point to my installation folder.
>> >>>>>
>> >>>>> The waveview example creates a sound, but the display is totally dark
>> >>>>> (nothing displayed).
>> >>>>>
>> >>>>> It is really great to have a working example Android Studio project, now I
>> >>>>> can look into what the necessary configurations (modules / libraries) you
>> >>>>> setup for this.
>> >>>>>
>> >>>>> Many thanks!
>> >>>>>
>> >>>>> Jacques
>> >>>>>
>> >>>>> > On 16 Sep 2015, at 03:16, Steven Yi  wrote:
>> >>>>> >
>> >>>>> > Hi All,
>> >>>>> >
>> >>>>> > I'm working on getting Csound for Android working with Android Studio.
>> >>>>> > I've posted a zip of the current structure:
>> >>>>> >
>> >>>>> >
>> >>>>> > https://drive.google.com/file/d/0B9MbxBSB3eNjNHQ1OURHWlE3ZEk/view?usp=sharing
>> >>>>> >
>> >>>>> > The way it is setup at the moment is the main project has two modules.
>> >>>>> > The first is the example application (just called app in this test
>> >>>>> > zip), and the second is the CsoundAndroid library module.  The library
>> >>>>> > module contains the compiled .so libraries, which means it does not
>> >>>>> > require the NDK to use.
>> >>>>> >
>> >>>>>
>> >>>>>
>> >>>>>
>> >>>>> ------------------------------------------------------------------------------
>> >>>>> Monitor Your Dynamic Infrastructure at Any Scale With Datadog!
>> >>>>> Get real-time metrics from all of your servers, apps and tools
>> >>>>> in one place.
>> >>>>> SourceForge users - Click here to start your Free Trial of Datadog now!
>> >>>>> http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140
>> >>>>> _______________________________________________
>> >>>>> Csound-users mailing list
>> >>>>> Csound-users@lists.sourceforge.net
>> >>>>> https://lists.sourceforge.net/lists/listinfo/csound-users
>> >>>>> Send bugs reports to
>> >>>>>         https://github.com/csound/csound/issues
>> >>>>> Discussions of bugs and features can be posted here
>> >>>>
>> >>>>
>> >>>>
>> >>>> ------------------------------------------------------------------------------
>> >>>> Monitor Your Dynamic Infrastructure at Any Scale With Datadog!
>> >>>> Get real-time metrics from all of your servers, apps and tools
>> >>>> in one place.
>> >>>> SourceForge users - Click here to start your Free Trial of Datadog now!
>> >>>> http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140
>> >>>> _______________________________________________
>> >>>> Csound-users mailing list
>> >>>> Csound-users@lists.sourceforge.net
>> >>>> https://lists.sourceforge.net/lists/listinfo/csound-users
>> >>>> Send bugs reports to
>> >>>>         https://github.com/csound/csound/issues
>> >>>> Discussions of bugs and features can be posted here
>> >>>>
>> >
>> > ------------------------------------------------------------------------------
>> > Monitor Your Dynamic Infrastructure at Any Scale With Datadog!
>> > Get real-time metrics from all of your servers, apps and tools
>> > in one place.
>> > SourceForge users - Click here to start your Free Trial of Datadog now!
>> > http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140
>> > _______________________________________________
>> > Csound-users mailing list
>> > Csound-users@lists.sourceforge.net
>> > https://lists.sourceforge.net/lists/listinfo/csound-users
>> > Send bugs reports to
>> >         https://github.com/csound/csound/issues
>> > Discussions of bugs and features can be posted here
>>
>> ------------------------------------------------------------------------------
>> Monitor Your Dynamic Infrastructure at Any Scale With Datadog!
>> Get real-time metrics from all of your servers, apps and tools
>> in one place.
>> SourceForge users - Click here to start your Free Trial of Datadog now!
>> http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140
>> _______________________________________________
>> Csound-users mailing list
>> Csound-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-users
>> Send bugs reports to
>>         https://github.com/csound/csound/issues
>> Discussions of bugs and features can be posted here
>
> ------------------------------------------------------------------------------
> Monitor Your Dynamic Infrastructure at Any Scale With Datadog!
> Get real-time metrics from all of your servers, apps and tools
> in one place.
> SourceForge users - Click here to start your Free Trial of Datadog now!
> http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140
> _______________________________________________
> Csound-users mailing list
> Csound-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-users
> Send bugs reports to
>         https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here

------------------------------------------------------------------------------
Monitor Your Dynamic Infrastructure at Any Scale With Datadog!
Get real-time metrics from all of your servers, apps and tools
in one place.
SourceForge users - Click here to start your Free Trial of Datadog now!
http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140
_______________________________________________
Csound-users mailing list
Csound-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-users
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2015-09-17 23:25
FromSteven Yi
SubjectRe: Android Studio
Update: I've put the Csound6 application as "CsoundApplication" into
the Android Studio project:

https://drive.google.com/open?id=0B9MbxBSB3eNjTTRhV0l2a0ZfcXc

I modified the source for the structure for Android Studio.  I also
made a copy and updated the install-libs.sh script within the
CsoundApplication folder.  Everything should be setup to build and run
on phone as it was for the Eclipse project.

If you are building from the git repo, you can run build-all.sh, then
update-android-studio.sh to get the native libraries built, then run
install-libs.sh within the CsoundForAndroid/CsoundApplication if you
want to build that app.  I compiled the Csound app and ran it here on
my Nexus 4, and was able to use the examples folder to run Xanadu and
other examples.

The only major things left are the Waveview and updating
documentation.  I will look at the AAR stuff afterwards as that can be
separately done from the SDK release.

On Thu, Sep 17, 2015 at 4:41 PM, Michael Gogins
 wrote:
> Sounds good, thanks.
>
> Mike
>
> -----------------------------------------------------
> Michael Gogins
> Irreducible Productions
> http://michaelgogins.tumblr.com
> Michael dot Gogins at gmail dot com
>
>
> On Thu, Sep 17, 2015 at 4:03 PM, Steven Yi  wrote:
>> Yes that is what I was referring to as the Csound6 app module. You can
>> have multiple apps within a project and choose the target to build in
>> the studio.
>>
>> Studio doesn't seem to do links to library modules like in Eclipse.
>> Instead, when you import, it makes a whole copy.  Also, the concept of
>> "Project" in Android Studio is similar to the concept of "Workspace"
>> in Eclipse, and modules map to Eclipse's projects.  The other way to
>> get libraries as dependencies is to add a dependency to the gradle
>> config to have it pull down the library from JCenter.
>>
>> The beta release I put up and the importing of the module into your
>> own project matches most closely to the Eclipse workflow.  Once the
>> Csound6 app is a module in the CsoundForAndroid folder, what will
>> happen is when you open the CsoundForAndroid folder as a project,
>> studio will show you all three modules (2 app, 1 library).
>>
>>
>>
>>
>> On Thu, Sep 17, 2015, 3:53 PM Michael Gogins  wrote:
>>>
>>> Thanks for this work.
>>>
>>> I take it that the Csound for Android app, which used to be the
>>> CSDPlayer, is not included at this time, but will be what you call a
>>> "second app module?"
>>>
>>> Best,
>>> Mike
>>>
>>> -----------------------------------------------------
>>> Michael Gogins
>>> Irreducible Productions
>>> http://michaelgogins.tumblr.com
>>> Michael dot Gogins at gmail dot com
>>>
>>>
>>> On Thu, Sep 17, 2015 at 3:20 PM, Steven Yi  wrote:
>>> > Hi All,
>>> >
>>> > So here is a new build of Csound for Android (Studio).  I have
>>> > committed all project files and build/release scripts to Csound's Git
>>> > develop branch.  The build is available at:
>>> >
>>> > https://drive.google.com/file/d/0B9MbxBSB3eNjTTRhV0l2a0ZfcXc/view?usp=sharing
>>> >
>>> > The CsoundForAndroid folder is the main Android Studio project.  If
>>> > you load it, it will show two modules: one application module called
>>> > "CsoundAndroidExamples" and a library module called "CsoundAndroid".
>>> > >From here, you can use the CsoundAndroidExamples target to build the
>>> > examples and run on your device.
>>> >
>>> > To use CsoundAndroid in your own project, you can do:
>>> >
>>> > 1. Create your project in Android Studio
>>> > 2. Use File->New->Import Module.  Select the CsoundAndroid folder from
>>> > the CsoundForAndroid release.  This will make a copy of CsoundAndroid
>>> > in your own project.
>>> > 3. At this point, you should have two modules within your project:
>>> > your app, and CsoundAndroid.  Select your app in the project view,
>>> > right click, then choose "Open Module Settings."  On the left hand
>>> > side, select your app module.
>>> > 4. Click on the Dependencies tab, then use the + button to add a new
>>> > dependency.  Choose "Add Module Dependency," then choose
>>> > "CsoundAndroid."
>>> >
>>> > At this point, you should now have CsoundAndroid working within your
>>> > application.
>>> > If others can give this a try, I'd appreciate it to make sure it is
>>> > working for others.
>>> >
>>> > For the release, there are a few things left:
>>> > * Csound6 - I'm going to look into setting up a second app module
>>> > within the CsoundForAndroid project
>>> > * Waveview - this example is still crashing. I looked into this and
>>> > there's something funny going on where it's trying to get a double**
>>> > but the API is compiled with floats.  It's not apparent yet what is
>>> > going on.
>>> > * AAR - I still need to investigate building and deploying
>>> > CsoundAndroid as an AAR releas to JCenter.  This would provide the
>>> > second way for building apps.
>>> >
>>> > All feedback appreciated. Thanks!
>>> >
>>> > steven
>>> >
>>> > On Wed, Sep 16, 2015 at 5:06 PM, Steven Yi  wrote:
>>> >> Okay, I emailed with Victor and the root cause was simple, the
>>> >> CsoundBaseActivity was just set to have its second argument as false,
>>> >> when it should have been true. Changing that got accelerometer and
>>> >> other examples working, with the exception of Waveview which crashes
>>> >> for me here.  It looks a simple enough thing to fix though.  I will
>>> >> continue on with the module changes and come back to fix the Waveview
>>> >> afterwards.
>>> >>
>>> >> On Wed, Sep 16, 2015 at 4:39 PM, Steven Yi  wrote:
>>> >>> Hi All,
>>> >>>
>>> >>> Thanks for the feedback.  I applied Joel's comments to the XML.  Also,
>>> >>> I ran through the tests and I also got broken examples. It looks to me
>>> >>> that modifications to CsoundObj having to do with some isAsync flag
>>> >>> broke the examples and as it is circumventing the bindings systems.
>>> >>> I'll ask Victor about it offline and we can get that part sorted out.
>>> >>>
>>> >>> It seems that the base project layout is working out alright. I'll do
>>> >>> a bit of analysis now to see if it's possible to modify what is in the
>>> >>> git repo to get it to work with both Eclipse and Android Studio.
>>> >>>
>>> >>> steven
>>> >>>
>>> >>> On Wed, Sep 16, 2015 at 6:52 AM, Rory Walsh  wrote:
>>> >>>> Steven, you're a hero! Thanks for this, it's going to make my next venture
>>> >>>> to Android land a skip in the park!
>>> >>>>
>>> >>>> On 16 September 2015 at 11:26, Jacques Leplat  wrote:
>>> >>>>>
>>> >>>>> Hello Steven,
>>> >>>>>
>>> >>>>> Just downloaded and tried it. Excellent: unzipped, opened the project
>>> >>>>> (Android Studio 1.4 Beta 4, mac os) built and runs fine on a Nexus 4
>>> >>>>> (Android 5.1.1), no manual changes needed.
>>> >>>>>
>>> >>>>> On first loading, Android studio displayed a warning for the location of
>>> >>>>> the Android SDK, the path was the one on your computer for Android SDK, but
>>> >>>>> Studio fixed the gradle file to point to my installation folder.
>>> >>>>>
>>> >>>>> The waveview example creates a sound, but the display is totally dark
>>> >>>>> (nothing displayed).
>>> >>>>>
>>> >>>>> It is really great to have a working example Android Studio project, now I
>>> >>>>> can look into what the necessary configurations (modules / libraries) you
>>> >>>>> setup for this.
>>> >>>>>
>>> >>>>> Many thanks!
>>> >>>>>
>>> >>>>> Jacques
>>> >>>>>
>>> >>>>> > On 16 Sep 2015, at 03:16, Steven Yi  wrote:
>>> >>>>> >
>>> >>>>> > Hi All,
>>> >>>>> >
>>> >>>>> > I'm working on getting Csound for Android working with Android Studio.
>>> >>>>> > I've posted a zip of the current structure:
>>> >>>>> >
>>> >>>>> >
>>> >>>>> > https://drive.google.com/file/d/0B9MbxBSB3eNjNHQ1OURHWlE3ZEk/view?usp=sharing
>>> >>>>> >
>>> >>>>> > The way it is setup at the moment is the main project has two modules.
>>> >>>>> > The first is the example application (just called app in this test
>>> >>>>> > zip), and the second is the CsoundAndroid library module.  The library
>>> >>>>> > module contains the compiled .so libraries, which means it does not
>>> >>>>> > require the NDK to use.
>>> >>>>> >
>>> >>>>>
>>> >>>>>
>>> >>>>>
>>> >>>>> ------------------------------------------------------------------------------
>>> >>>>> Monitor Your Dynamic Infrastructure at Any Scale With Datadog!
>>> >>>>> Get real-time metrics from all of your servers, apps and tools
>>> >>>>> in one place.
>>> >>>>> SourceForge users - Click here to start your Free Trial of Datadog now!
>>> >>>>> http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140
>>> >>>>> _______________________________________________
>>> >>>>> Csound-users mailing list
>>> >>>>> Csound-users@lists.sourceforge.net
>>> >>>>> https://lists.sourceforge.net/lists/listinfo/csound-users
>>> >>>>> Send bugs reports to
>>> >>>>>         https://github.com/csound/csound/issues
>>> >>>>> Discussions of bugs and features can be posted here
>>> >>>>
>>> >>>>
>>> >>>>
>>> >>>> ------------------------------------------------------------------------------
>>> >>>> Monitor Your Dynamic Infrastructure at Any Scale With Datadog!
>>> >>>> Get real-time metrics from all of your servers, apps and tools
>>> >>>> in one place.
>>> >>>> SourceForge users - Click here to start your Free Trial of Datadog now!
>>> >>>> http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140
>>> >>>> _______________________________________________
>>> >>>> Csound-users mailing list
>>> >>>> Csound-users@lists.sourceforge.net
>>> >>>> https://lists.sourceforge.net/lists/listinfo/csound-users
>>> >>>> Send bugs reports to
>>> >>>>         https://github.com/csound/csound/issues
>>> >>>> Discussions of bugs and features can be posted here
>>> >>>>
>>> >
>>> > ------------------------------------------------------------------------------
>>> > Monitor Your Dynamic Infrastructure at Any Scale With Datadog!
>>> > Get real-time metrics from all of your servers, apps and tools
>>> > in one place.
>>> > SourceForge users - Click here to start your Free Trial of Datadog now!
>>> > http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140
>>> > _______________________________________________
>>> > Csound-users mailing list
>>> > Csound-users@lists.sourceforge.net
>>> > https://lists.sourceforge.net/lists/listinfo/csound-users
>>> > Send bugs reports to
>>> >         https://github.com/csound/csound/issues
>>> > Discussions of bugs and features can be posted here
>>>
>>> ------------------------------------------------------------------------------
>>> Monitor Your Dynamic Infrastructure at Any Scale With Datadog!
>>> Get real-time metrics from all of your servers, apps and tools
>>> in one place.
>>> SourceForge users - Click here to start your Free Trial of Datadog now!
>>> http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140
>>> _______________________________________________
>>> Csound-users mailing list
>>> Csound-users@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-users
>>> Send bugs reports to
>>>         https://github.com/csound/csound/issues
>>> Discussions of bugs and features can be posted here
>>
>> ------------------------------------------------------------------------------
>> Monitor Your Dynamic Infrastructure at Any Scale With Datadog!
>> Get real-time metrics from all of your servers, apps and tools
>> in one place.
>> SourceForge users - Click here to start your Free Trial of Datadog now!
>> http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140
>> _______________________________________________
>> Csound-users mailing list
>> Csound-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-users
>> Send bugs reports to
>>         https://github.com/csound/csound/issues
>> Discussions of bugs and features can be posted here
>
> ------------------------------------------------------------------------------
> Monitor Your Dynamic Infrastructure at Any Scale With Datadog!
> Get real-time metrics from all of your servers, apps and tools
> in one place.
> SourceForge users - Click here to start your Free Trial of Datadog now!
> http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140
> _______________________________________________
> Csound-users mailing list
> Csound-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-users
> Send bugs reports to
>         https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here

------------------------------------------------------------------------------
Monitor Your Dynamic Infrastructure at Any Scale With Datadog!
Get real-time metrics from all of your servers, apps and tools
in one place.
SourceForge users - Click here to start your Free Trial of Datadog now!
http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140
_______________________________________________
Csound-users mailing list
Csound-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-users
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2015-09-18 10:51
Fromebmtranceboy
SubjectRe: Android Studio
Hi Steven,

all is fine for me with CoundAndroidExamples app (including Waveview!)
However I have a couple of issues with CsoundApplication (CsoundPlayer would
be a better namer IMHO):

* line 299 and line 361 of
CsoundApplication/src/main/java/com/csounds/Csound6/SimpleFileDialog I had
to change -12303292 to 0X444444FF in order to suppress 2 errors

* on my phone, I can compile, launch the app and select a .csd file, but as
soon as I hit Start, the app crashes with

09-18 11:45:22.183    5000-5000/com.csounds.Csound6 I/webkit/webview_proxy﹕
WebView() constructor=android.webkit.WebView@424fe4c0
09-18 11:45:22.254    5000-5000/com.csounds.Csound6 I/dalvikvm﹕ Could not
find method android.media.AudioManager.getProperty, referenced from method
com.csounds.Csound6.CsoundAppActivity$8.onClick
09-18 11:45:22.254    5000-5000/com.csounds.Csound6 W/dalvikvm﹕ VFY: unable
to resolve virtual method 716: Landroid/media/AudioManager;.getProperty
(Ljava/lang/String;)Ljava/lang/String;
09-18 11:45:23.534    5000-5000/com.csounds.Csound6 I/SurfaceTextureClient﹕
[0x5166ab60] frames:6, duration:1.005000, fps:5.966790
09-18 11:45:25.621    5000-5000/com.csounds.Csound6 I/SurfaceTextureClient﹕
[0x5166ab60] frames:15, duration:2.085000, fps:7.193125
09-18 11:45:25.731    5000-5000/com.csounds.Csound6 D/~~~~~﹕
dir=/storage/sdcard0
09-18 11:45:25.732    5000-5000/com.csounds.Csound6 D/~~~~﹕
m_dir=/storage/sdcard0
09-18 11:45:27.113    5000-5000/com.csounds.Csound6 I/SurfaceTextureClient﹕
[0x539de6e8] frames:3, duration:1.015000, fps:2.954121
09-18 11:45:27.247    5000-5000/com.csounds.Csound6 I/AbsListView﹕ Fling
from scroll with initialVelocity = -9628,mActivePointerId = 0,mFirstPosition
= 3,firstChildTop = -81,this =
com.android.internal.app.AlertController$RecycleListView@4256ad40
09-18 11:45:28.118    5000-5000/com.csounds.Csound6 I/SurfaceTextureClient﹕
[0x539de6e8] frames:61, duration:1.005000, fps:60.676208
09-18 11:45:28.664    5000-5000/com.csounds.Csound6 D/~~~~﹕
m_dir=/storage/sdcard0
09-18 11:45:30.004    5000-5000/com.csounds.Csound6 I/SurfaceTextureClient﹕
[0x539de6e8] frames:38, duration:1.886000, fps:20.143316
09-18 11:45:30.076    5000-5000/com.csounds.Csound6 D/FILE CHOSEN﹕
/storage/sdcard0/tout.csd
09-18 11:45:30.134    5000-5000/com.csounds.Csound6 I/SurfaceTextureClient﹕
[0x5166ab60] frames:3, duration:4.511000, fps:0.665014
09-18 11:45:31.954    5000-5000/com.csounds.Csound6 I/SurfaceTextureClient﹕
[0x5166ab60] frames:2, duration:1.821000, fps:1.098024
09-18 11:45:32.062    5000-5000/com.csounds.Csound6 I/Csound6﹕ Loading
Csound plugins:
09-18 11:45:32.062    5000-5000/com.csounds.Csound6 I/Csound6﹕
/data/data/com.csounds.Csound6/lib/libfluidOpcodes.so
09-18 11:45:32.063    5000-5000/com.csounds.Csound6 I/Csound6﹕
/data/data/com.csounds.Csound6/lib/libOSC.so
09-18 11:45:32.064    5000-5000/com.csounds.Csound6 I/Csound6﹕
/data/data/com.csounds.Csound6/lib/libsignalflowgraph.so
09-18 11:45:32.064    5000-5000/com.csounds.Csound6 I/Csound6﹕
/data/data/com.csounds.Csound6/lib/libgnustl_shared.so
09-18 11:45:32.065    5000-5000/com.csounds.Csound6 I/Csound6﹕
/data/data/com.csounds.Csound6/lib/libcsoundandroid.so
09-18 11:45:32.066    5000-5000/com.csounds.Csound6 I/Csound6﹕
/data/data/com.csounds.Csound6/lib/libdoppler.so
09-18 11:45:32.066    5000-5000/com.csounds.Csound6 I/Csound6﹕
/data/data/com.csounds.Csound6/lib/libscansyn.so
09-18 11:45:32.067    5000-5000/com.csounds.Csound6 I/Csound6﹕
/data/data/com.csounds.Csound6/lib/libstdutil.so
09-18 11:45:32.069    5000-5000/com.csounds.Csound6 I/Csound6﹕
/data/data/com.csounds.Csound6/lib/libsndfile.so
09-18 11:45:32.070    5000-5000/com.csounds.Csound6 I/Csound6﹕
/data/data/com.csounds.Csound6/lib/libLuaCsound.so
09-18 11:45:32.071    5000-5000/com.csounds.Csound6 D/CsoundObj﹕ creating
new AndroidCsound: 0
09-18 11:45:32.092    5000-5000/com.csounds.Csound6 I/Csound6﹕ Csound is
starting...
09-18 11:45:32.094    5000-5000/com.csounds.Csound6 W/dalvikvm﹕ threadid=1:
thread exiting with uncaught exception (group=0x41c2c908)
09-18 11:45:32.097    5000-5000/com.csounds.Csound6 E/AndroidRuntime﹕ FATAL
EXCEPTION: main
    java.lang.NoSuchMethodError: android.media.AudioManager.getProperty
            at
com.csounds.Csound6.CsoundAppActivity$8.onClick(CsoundAppActivity.java:739)
            at android.view.View.performClick(View.java:4091)
            at
android.widget.CompoundButton.performClick(CompoundButton.java:100)
            at android.view.View$PerformClick.run(View.java:17072)
            at android.os.Handler.handleCallback(Handler.java:615)
            at android.os.Handler.dispatchMessage(Handler.java:92)
            at android.os.Looper.loop(Looper.java:153)
            at android.app.ActivityThread.main(ActivityThread.java:5037)
            at java.lang.reflect.Method.invokeNative(Native Method)
            at java.lang.reflect.Method.invoke(Method.java:511)
            at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:825)
            at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:588)
            at dalvik.system.NativeStart.main(Native Method)

This is not the case on my tablet on which everything works fine however 




--
View this message in context: http://csound.1045644.n5.nabble.com/Android-Studio-tp5743663p5743696.html
Sent from the Csound - General mailing list archive at Nabble.com.

------------------------------------------------------------------------------
_______________________________________________
Csound-users mailing list
Csound-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-users
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2015-09-18 11:33
FromJacques Leplat
SubjectRe: Android Studio
Hello ebm…,

I had a look at the code at line 739 of CsoundAppActivity, especially: AudioManager.PROPERTY_OUTPUT_FRAMES_PER_BUFFER

That property was added in API 17 (Android 4.2), your phone (looking at previous posts) is running Android 4.1. This looks to me why it runs on your tablet and not your phone. 

The next line in CsoundAppActivity has AudioManager.PROPERTY_OUTPUT_SAMPLE_RATE, that is also API 17. All the app does with this is send it to the console (postMessage call). So the offending lines could be commented out.


I tested CsoundApplication on a Nexus 4, Android 5.1.1, works fine.

All the best,

Jacques

> On 18 Sep 2015, at 10:51, ebmtranceboy  wrote:
> 
> Hi Steven,
> 
> all is fine for me with CoundAndroidExamples app (including Waveview!)
> However I have a couple of issues with CsoundApplication (CsoundPlayer would
> be a better namer IMHO):
> 
> * line 299 and line 361 of
> CsoundApplication/src/main/java/com/csounds/Csound6/SimpleFileDialog I had
> to change -12303292 to 0X444444FF in order to suppress 2 errors
> 
> * on my phone, I can compile, launch the app and select a .csd file, but as
> soon as I hit Start, the app crashes with
> 
> 09-18 11:45:22.183    5000-5000/com.csounds.Csound6 I/webkit/webview_proxy﹕
> WebView() constructor=android.webkit.WebView@424fe4c0
> 09-18 11:45:22.254    5000-5000/com.csounds.Csound6 I/dalvikvm﹕ Could not
> find method android.media.AudioManager.getProperty, referenced from method
> com.csounds.Csound6.CsoundAppActivity$8.onClick
> 09-18 11:45:22.254    5000-5000/com.csounds.Csound6 W/dalvikvm﹕ VFY: unable
> to resolve virtual method 716: Landroid/media/AudioManager;.getProperty
> (Ljava/lang/String;)Ljava/lang/String;
> 09-18 11:45:23.534    5000-5000/com.csounds.Csound6 I/SurfaceTextureClient﹕
> [0x5166ab60] frames:6, duration:1.005000, fps:5.966790
> 09-18 11:45:25.621    5000-5000/com.csounds.Csound6 I/SurfaceTextureClient﹕
> [0x5166ab60] frames:15, duration:2.085000, fps:7.193125
> 09-18 11:45:25.731    5000-5000/com.csounds.Csound6 D/~~~~~﹕
> dir=/storage/sdcard0
> 09-18 11:45:25.732    5000-5000/com.csounds.Csound6 D/~~~~﹕
> m_dir=/storage/sdcard0
> 09-18 11:45:27.113    5000-5000/com.csounds.Csound6 I/SurfaceTextureClient﹕
> [0x539de6e8] frames:3, duration:1.015000, fps:2.954121
> 09-18 11:45:27.247    5000-5000/com.csounds.Csound6 I/AbsListView﹕ Fling
> from scroll with initialVelocity = -9628,mActivePointerId = 0,mFirstPosition
> = 3,firstChildTop = -81,this =
> com.android.internal.app.AlertController$RecycleListView@4256ad40
> 09-18 11:45:28.118    5000-5000/com.csounds.Csound6 I/SurfaceTextureClient﹕
> [0x539de6e8] frames:61, duration:1.005000, fps:60.676208
> 09-18 11:45:28.664    5000-5000/com.csounds.Csound6 D/~~~~﹕
> m_dir=/storage/sdcard0
> 09-18 11:45:30.004    5000-5000/com.csounds.Csound6 I/SurfaceTextureClient﹕
> [0x539de6e8] frames:38, duration:1.886000, fps:20.143316
> 09-18 11:45:30.076    5000-5000/com.csounds.Csound6 D/FILE CHOSEN﹕
> /storage/sdcard0/tout.csd
> 09-18 11:45:30.134    5000-5000/com.csounds.Csound6 I/SurfaceTextureClient﹕
> [0x5166ab60] frames:3, duration:4.511000, fps:0.665014
> 09-18 11:45:31.954    5000-5000/com.csounds.Csound6 I/SurfaceTextureClient﹕
> [0x5166ab60] frames:2, duration:1.821000, fps:1.098024
> 09-18 11:45:32.062    5000-5000/com.csounds.Csound6 I/Csound6﹕ Loading
> Csound plugins:
> 09-18 11:45:32.062    5000-5000/com.csounds.Csound6 I/Csound6﹕
> /data/data/com.csounds.Csound6/lib/libfluidOpcodes.so
> 09-18 11:45:32.063    5000-5000/com.csounds.Csound6 I/Csound6﹕
> /data/data/com.csounds.Csound6/lib/libOSC.so
> 09-18 11:45:32.064    5000-5000/com.csounds.Csound6 I/Csound6﹕
> /data/data/com.csounds.Csound6/lib/libsignalflowgraph.so
> 09-18 11:45:32.064    5000-5000/com.csounds.Csound6 I/Csound6﹕
> /data/data/com.csounds.Csound6/lib/libgnustl_shared.so
> 09-18 11:45:32.065    5000-5000/com.csounds.Csound6 I/Csound6﹕
> /data/data/com.csounds.Csound6/lib/libcsoundandroid.so
> 09-18 11:45:32.066    5000-5000/com.csounds.Csound6 I/Csound6﹕
> /data/data/com.csounds.Csound6/lib/libdoppler.so
> 09-18 11:45:32.066    5000-5000/com.csounds.Csound6 I/Csound6﹕
> /data/data/com.csounds.Csound6/lib/libscansyn.so
> 09-18 11:45:32.067    5000-5000/com.csounds.Csound6 I/Csound6﹕
> /data/data/com.csounds.Csound6/lib/libstdutil.so
> 09-18 11:45:32.069    5000-5000/com.csounds.Csound6 I/Csound6﹕
> /data/data/com.csounds.Csound6/lib/libsndfile.so
> 09-18 11:45:32.070    5000-5000/com.csounds.Csound6 I/Csound6﹕
> /data/data/com.csounds.Csound6/lib/libLuaCsound.so
> 09-18 11:45:32.071    5000-5000/com.csounds.Csound6 D/CsoundObj﹕ creating
> new AndroidCsound: 0
> 09-18 11:45:32.092    5000-5000/com.csounds.Csound6 I/Csound6﹕ Csound is
> starting...
> 09-18 11:45:32.094    5000-5000/com.csounds.Csound6 W/dalvikvm﹕ threadid=1:
> thread exiting with uncaught exception (group=0x41c2c908)
> 09-18 11:45:32.097    5000-5000/com.csounds.Csound6 E/AndroidRuntime﹕ FATAL
> EXCEPTION: main
>    java.lang.NoSuchMethodError: android.media.AudioManager.getProperty
>            at
> com.csounds.Csound6.CsoundAppActivity$8.onClick(CsoundAppActivity.java:739)
>            at android.view.View.performClick(View.java:4091)
>            at
> android.widget.CompoundButton.performClick(CompoundButton.java:100)
>            at android.view.View$PerformClick.run(View.java:17072)
>            at android.os.Handler.handleCallback(Handler.java:615)
>            at android.os.Handler.dispatchMessage(Handler.java:92)
>            at android.os.Looper.loop(Looper.java:153)
>            at android.app.ActivityThread.main(ActivityThread.java:5037)
>            at java.lang.reflect.Method.invokeNative(Native Method)
>            at java.lang.reflect.Method.invoke(Method.java:511)
>            at
> com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:825)
>            at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:588)
>            at dalvik.system.NativeStart.main(Native Method)
> 
> This is not the case on my tablet on which everything works fine however 
> 
> 
> 
> 
> --
> View this message in context: http://csound.1045644.n5.nabble.com/Android-Studio-tp5743663p5743696.html
> Sent from the Csound - General mailing list archive at Nabble.com.
> 
> ------------------------------------------------------------------------------
> _______________________________________________
> Csound-users mailing list
> Csound-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-users
> Send bugs reports to
>        https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here


------------------------------------------------------------------------------
_______________________________________________
Csound-users mailing list
Csound-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-users
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2015-09-18 12:45
Fromebmtranceboy
SubjectRe: Android Studio
Thanks Jacques, I will study your suggestion later today.
Steven, the process of creating my first csound app by importing
CsoundAndroid module seems to work. I will report as soon as possible (I
have no sound yet but stupidly I choose a csd with some FLTK in it!)



--
View this message in context: http://csound.1045644.n5.nabble.com/Android-Studio-tp5743663p5743700.html
Sent from the Csound - General mailing list archive at Nabble.com.

------------------------------------------------------------------------------
_______________________________________________
Csound-users mailing list
Csound-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-users
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2015-09-18 14:01
FromSteven Yi
SubjectRe: Android Studio
Hi Jacques and Joel,

Thanks very much for the feedback and testing, and thanks Jacques for
that research.  It sounds like application needs to be updated to bump
up the minimum version or do some kind of checks before calling that
code.  I'll leave that one to Michael to handle as he's the maintainer
of that program.

As for Waveview, I'm surprised it is working there! I am going to keep
looking into why it is crashing for me.

Thanks all, sounds like from Joel's experience getting Csound for
Android working in a new app, we're pretty close to getting this all
ready for 6.06.0.

steven

On Fri, Sep 18, 2015 at 7:45 AM, ebmtranceboy  wrote:
> Thanks Jacques, I will study your suggestion later today.
> Steven, the process of creating my first csound app by importing
> CsoundAndroid module seems to work. I will report as soon as possible (I
> have no sound yet but stupidly I choose a csd with some FLTK in it!)
>
>
>
> --
> View this message in context: http://csound.1045644.n5.nabble.com/Android-Studio-tp5743663p5743700.html
> Sent from the Csound - General mailing list archive at Nabble.com.
>
> ------------------------------------------------------------------------------
> _______________________________________________
> Csound-users mailing list
> Csound-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-users
> Send bugs reports to
>         https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here

------------------------------------------------------------------------------
_______________________________________________
Csound-users mailing list
Csound-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-users
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2015-09-18 14:07
FromMichael Gogins
SubjectRe: Android Studio
I will be trying to build the Csound application using Android Studio soon.

Regards,
Mike

-----------------------------------------------------
Michael Gogins
Irreducible Productions
http://michaelgogins.tumblr.com
Michael dot Gogins at gmail dot com


On Fri, Sep 18, 2015 at 9:01 AM, Steven Yi  wrote:
> Hi Jacques and Joel,
>
> Thanks very much for the feedback and testing, and thanks Jacques for
> that research.  It sounds like application needs to be updated to bump
> up the minimum version or do some kind of checks before calling that
> code.  I'll leave that one to Michael to handle as he's the maintainer
> of that program.
>
> As for Waveview, I'm surprised it is working there! I am going to keep
> looking into why it is crashing for me.
>
> Thanks all, sounds like from Joel's experience getting Csound for
> Android working in a new app, we're pretty close to getting this all
> ready for 6.06.0.
>
> steven
>
> On Fri, Sep 18, 2015 at 7:45 AM, ebmtranceboy  wrote:
>> Thanks Jacques, I will study your suggestion later today.
>> Steven, the process of creating my first csound app by importing
>> CsoundAndroid module seems to work. I will report as soon as possible (I
>> have no sound yet but stupidly I choose a csd with some FLTK in it!)
>>
>>
>>
>> --
>> View this message in context: http://csound.1045644.n5.nabble.com/Android-Studio-tp5743663p5743700.html
>> Sent from the Csound - General mailing list archive at Nabble.com.
>>
>> ------------------------------------------------------------------------------
>> _______________________________________________
>> Csound-users mailing list
>> Csound-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-users
>> Send bugs reports to
>>         https://github.com/csound/csound/issues
>> Discussions of bugs and features can be posted here
>
> ------------------------------------------------------------------------------
> _______________________________________________
> Csound-users mailing list
> Csound-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-users
> Send bugs reports to
>         https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here

------------------------------------------------------------------------------
_______________________________________________
Csound-users mailing list
Csound-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-users
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2015-09-18 14:13
FromVictor Lazzarini
SubjectRe: Android Studio
It also crashes here on a MotoG phone. Otherwise it is all OK with the examples.
========================
Dr Victor Lazzarini
Dean of Arts, Celtic Studies and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952 

> On 18 Sep 2015, at 14:01, Steven Yi  wrote:
> 
> Hi Jacques and Joel,
> 
> Thanks very much for the feedback and testing, and thanks Jacques for
> that research.  It sounds like application needs to be updated to bump
> up the minimum version or do some kind of checks before calling that
> code.  I'll leave that one to Michael to handle as he's the maintainer
> of that program.
> 
> As for Waveview, I'm surprised it is working there! I am going to keep
> looking into why it is crashing for me.
> 
> Thanks all, sounds like from Joel's experience getting Csound for
> Android working in a new app, we're pretty close to getting this all
> ready for 6.06.0.
> 
> steven
> 
> On Fri, Sep 18, 2015 at 7:45 AM, ebmtranceboy  wrote:
>> Thanks Jacques, I will study your suggestion later today.
>> Steven, the process of creating my first csound app by importing
>> CsoundAndroid module seems to work. I will report as soon as possible (I
>> have no sound yet but stupidly I choose a csd with some FLTK in it!)
>> 
>> 
>> 
>> --
>> View this message in context: http://csound.1045644.n5.nabble.com/Android-Studio-tp5743663p5743700.html
>> Sent from the Csound - General mailing list archive at Nabble.com.
>> 
>> ------------------------------------------------------------------------------
>> _______________________________________________
>> Csound-users mailing list
>> Csound-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-users
>> Send bugs reports to
>>        https://github.com/csound/csound/issues
>> Discussions of bugs and features can be posted here
> 
> ------------------------------------------------------------------------------
> _______________________________________________
> Csound-users mailing list
> Csound-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-users
> Send bugs reports to
>        https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here


------------------------------------------------------------------------------
_______________________________________________
Csound-users mailing list
Csound-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-users
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2015-09-18 14:19
FromSteven Yi
SubjectRe: Android Studio
Thanks for that Victor, that confirms there's an issue to sort out. I
know why it's happening, but not why it's even possible to get into
the state that's causing it.  Hopefully it's a one-line change. ;)

On Fri, Sep 18, 2015 at 9:13 AM, Victor Lazzarini
 wrote:
> It also crashes here on a MotoG phone. Otherwise it is all OK with the examples.
> ========================
> Dr Victor Lazzarini
> Dean of Arts, Celtic Studies and Philosophy,
> Maynooth University,
> Maynooth, Co Kildare, Ireland
> Tel: 00 353 7086936
> Fax: 00 353 1 7086952
>
>> On 18 Sep 2015, at 14:01, Steven Yi  wrote:
>>
>> Hi Jacques and Joel,
>>
>> Thanks very much for the feedback and testing, and thanks Jacques for
>> that research.  It sounds like application needs to be updated to bump
>> up the minimum version or do some kind of checks before calling that
>> code.  I'll leave that one to Michael to handle as he's the maintainer
>> of that program.
>>
>> As for Waveview, I'm surprised it is working there! I am going to keep
>> looking into why it is crashing for me.
>>
>> Thanks all, sounds like from Joel's experience getting Csound for
>> Android working in a new app, we're pretty close to getting this all
>> ready for 6.06.0.
>>
>> steven
>>
>> On Fri, Sep 18, 2015 at 7:45 AM, ebmtranceboy  wrote:
>>> Thanks Jacques, I will study your suggestion later today.
>>> Steven, the process of creating my first csound app by importing
>>> CsoundAndroid module seems to work. I will report as soon as possible (I
>>> have no sound yet but stupidly I choose a csd with some FLTK in it!)
>>>
>>>
>>>
>>> --
>>> View this message in context: http://csound.1045644.n5.nabble.com/Android-Studio-tp5743663p5743700.html
>>> Sent from the Csound - General mailing list archive at Nabble.com.
>>>
>>> ------------------------------------------------------------------------------
>>> _______________________________________________
>>> Csound-users mailing list
>>> Csound-users@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-users
>>> Send bugs reports to
>>>        https://github.com/csound/csound/issues
>>> Discussions of bugs and features can be posted here
>>
>> ------------------------------------------------------------------------------
>> _______________________________________________
>> Csound-users mailing list
>> Csound-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-users
>> Send bugs reports to
>>        https://github.com/csound/csound/issues
>> Discussions of bugs and features can be posted here
>
>
> ------------------------------------------------------------------------------
> _______________________________________________
> Csound-users mailing list
> Csound-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-users
> Send bugs reports to
>         https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here

------------------------------------------------------------------------------
_______________________________________________
Csound-users mailing list
Csound-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-users
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2015-09-18 15:22
FromSteven Yi
SubjectRe: Android Studio
I've sorted out what the cause of the Waveview problem is, and why it
might have worked for Joel.  The problem is that I had the desktop
version of csnd6.jar in my classpath (~/Library/Java/Extensions).
Somehow, Android Studio is picking those classes up when compiling or
building, and using the ones from the project at the same time. The
desktop version is built for doubles, but the Android version is built
for floats.  So when it went to run, it was calling methods for
doubles thought it compiled for floats.  I'll be looking at how to
remedy this now.

On Fri, Sep 18, 2015 at 9:19 AM, Steven Yi  wrote:
> Thanks for that Victor, that confirms there's an issue to sort out. I
> know why it's happening, but not why it's even possible to get into
> the state that's causing it.  Hopefully it's a one-line change. ;)
>
> On Fri, Sep 18, 2015 at 9:13 AM, Victor Lazzarini
>  wrote:
>> It also crashes here on a MotoG phone. Otherwise it is all OK with the examples.
>> ========================
>> Dr Victor Lazzarini
>> Dean of Arts, Celtic Studies and Philosophy,
>> Maynooth University,
>> Maynooth, Co Kildare, Ireland
>> Tel: 00 353 7086936
>> Fax: 00 353 1 7086952
>>
>>> On 18 Sep 2015, at 14:01, Steven Yi  wrote:
>>>
>>> Hi Jacques and Joel,
>>>
>>> Thanks very much for the feedback and testing, and thanks Jacques for
>>> that research.  It sounds like application needs to be updated to bump
>>> up the minimum version or do some kind of checks before calling that
>>> code.  I'll leave that one to Michael to handle as he's the maintainer
>>> of that program.
>>>
>>> As for Waveview, I'm surprised it is working there! I am going to keep
>>> looking into why it is crashing for me.
>>>
>>> Thanks all, sounds like from Joel's experience getting Csound for
>>> Android working in a new app, we're pretty close to getting this all
>>> ready for 6.06.0.
>>>
>>> steven
>>>
>>> On Fri, Sep 18, 2015 at 7:45 AM, ebmtranceboy  wrote:
>>>> Thanks Jacques, I will study your suggestion later today.
>>>> Steven, the process of creating my first csound app by importing
>>>> CsoundAndroid module seems to work. I will report as soon as possible (I
>>>> have no sound yet but stupidly I choose a csd with some FLTK in it!)
>>>>
>>>>
>>>>
>>>> --
>>>> View this message in context: http://csound.1045644.n5.nabble.com/Android-Studio-tp5743663p5743700.html
>>>> Sent from the Csound - General mailing list archive at Nabble.com.
>>>>
>>>> ------------------------------------------------------------------------------
>>>> _______________________________________________
>>>> Csound-users mailing list
>>>> Csound-users@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-users
>>>> Send bugs reports to
>>>>        https://github.com/csound/csound/issues
>>>> Discussions of bugs and features can be posted here
>>>
>>> ------------------------------------------------------------------------------
>>> _______________________________________________
>>> Csound-users mailing list
>>> Csound-users@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-users
>>> Send bugs reports to
>>>        https://github.com/csound/csound/issues
>>> Discussions of bugs and features can be posted here
>>
>>
>> ------------------------------------------------------------------------------
>> _______________________________________________
>> Csound-users mailing list
>> Csound-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-users
>> Send bugs reports to
>>         https://github.com/csound/csound/issues
>> Discussions of bugs and features can be posted here

------------------------------------------------------------------------------
_______________________________________________
Csound-users mailing list
Csound-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-users
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2015-09-18 18:13
Fromebmtranceboy
SubjectRe: Android Studio
Jacques' suggestion solved the crash I had on my phone. Thanks again Jacques!
Now all the examples seems to run fine except 'Lua score generator'  which
is silent and displays:

09-18 19:01:08.003  12898-12898/com.csounds.Csound6 I/Csound6﹕ luaL_dostring
failed with: 1
    [string "..."]:8: module 'Silencio' not found:
    no field package.preload['Silencio']
    no file './Silencio.lua'
    no file '/usr/local/share/luajit-2.0.2/Silencio.lua'
    no file '/usr/local/share/lua/5.1/Silencio.lua'
    no file '/usr/local/share/lua/5.1/Silencio/init.lua'
    no file '/storage/emulated/0/silencio/Silencio.lua'
    no file './Silencio.so'
    no file '/usr/local/lib/lua/5.1/Silencio.so'
    no file '/usr/local/lib/lua/5.1/loadall.so'

on the csound console of both my devices.


About my personal app, all is ok : both on Android4.1 and Android4.3 the
button and slider bindings are recognized. I don't know how to test the
XY-input yet (is it a big button as I understand it?) but this is great so
far. And all seem really stable too. Thank you very much Steven and Michael!



--
View this message in context: http://csound.1045644.n5.nabble.com/Android-Studio-tp5743663p5743711.html
Sent from the Csound - General mailing list archive at Nabble.com.

------------------------------------------------------------------------------
_______________________________________________
Csound-users mailing list
Csound-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-users
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2015-09-20 01:52
FromSteven Yi
SubjectRe: Android Studio
Update: I think I've figured out a solution for avoiding the presence
of csnd6.jar in the system classpath. I've committed a change to
gradle.properties that sets the java.library.path and java.ext.dirs to
"".  This seems to fix things up here, and may be something users will
have to do for their own projects.  The result is that the
WaveviewActivity should now work. I will look to add this to the
documentation.

On Fri, Sep 18, 2015 at 10:22 AM, Steven Yi  wrote:
> I've sorted out what the cause of the Waveview problem is, and why it
> might have worked for Joel.  The problem is that I had the desktop
> version of csnd6.jar in my classpath (~/Library/Java/Extensions).
> Somehow, Android Studio is picking those classes up when compiling or
> building, and using the ones from the project at the same time. The
> desktop version is built for doubles, but the Android version is built
> for floats.  So when it went to run, it was calling methods for
> doubles thought it compiled for floats.  I'll be looking at how to
> remedy this now.
>
> On Fri, Sep 18, 2015 at 9:19 AM, Steven Yi  wrote:
>> Thanks for that Victor, that confirms there's an issue to sort out. I
>> know why it's happening, but not why it's even possible to get into
>> the state that's causing it.  Hopefully it's a one-line change. ;)
>>
>> On Fri, Sep 18, 2015 at 9:13 AM, Victor Lazzarini
>>  wrote:
>>> It also crashes here on a MotoG phone. Otherwise it is all OK with the examples.
>>> ========================
>>> Dr Victor Lazzarini
>>> Dean of Arts, Celtic Studies and Philosophy,
>>> Maynooth University,
>>> Maynooth, Co Kildare, Ireland
>>> Tel: 00 353 7086936
>>> Fax: 00 353 1 7086952
>>>
>>>> On 18 Sep 2015, at 14:01, Steven Yi  wrote:
>>>>
>>>> Hi Jacques and Joel,
>>>>
>>>> Thanks very much for the feedback and testing, and thanks Jacques for
>>>> that research.  It sounds like application needs to be updated to bump
>>>> up the minimum version or do some kind of checks before calling that
>>>> code.  I'll leave that one to Michael to handle as he's the maintainer
>>>> of that program.
>>>>
>>>> As for Waveview, I'm surprised it is working there! I am going to keep
>>>> looking into why it is crashing for me.
>>>>
>>>> Thanks all, sounds like from Joel's experience getting Csound for
>>>> Android working in a new app, we're pretty close to getting this all
>>>> ready for 6.06.0.
>>>>
>>>> steven
>>>>
>>>> On Fri, Sep 18, 2015 at 7:45 AM, ebmtranceboy  wrote:
>>>>> Thanks Jacques, I will study your suggestion later today.
>>>>> Steven, the process of creating my first csound app by importing
>>>>> CsoundAndroid module seems to work. I will report as soon as possible (I
>>>>> have no sound yet but stupidly I choose a csd with some FLTK in it!)
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> View this message in context: http://csound.1045644.n5.nabble.com/Android-Studio-tp5743663p5743700.html
>>>>> Sent from the Csound - General mailing list archive at Nabble.com.
>>>>>
>>>>> ------------------------------------------------------------------------------
>>>>> _______________________________________________
>>>>> Csound-users mailing list
>>>>> Csound-users@lists.sourceforge.net
>>>>> https://lists.sourceforge.net/lists/listinfo/csound-users
>>>>> Send bugs reports to
>>>>>        https://github.com/csound/csound/issues
>>>>> Discussions of bugs and features can be posted here
>>>>
>>>> ------------------------------------------------------------------------------
>>>> _______________________________________________
>>>> Csound-users mailing list
>>>> Csound-users@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-users
>>>> Send bugs reports to
>>>>        https://github.com/csound/csound/issues
>>>> Discussions of bugs and features can be posted here
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> _______________________________________________
>>> Csound-users mailing list
>>> Csound-users@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-users
>>> Send bugs reports to
>>>         https://github.com/csound/csound/issues
>>> Discussions of bugs and features can be posted here

------------------------------------------------------------------------------
_______________________________________________
Csound-users mailing list
Csound-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-users
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2015-09-20 11:33
FromJacques Leplat
SubjectRe: Android Studio
Hello Steven,

The fix you propose works for me too. Waveview now displays the waveform.

I added two lines to the CsoundForAndroid project’s gradle.properties:

systemProp.java.library.path=""
systemProp.java.ext.dirs=""



> On 20 Sep 2015, at 01:52, Steven Yi  wrote:
> 
> Update: I think I've figured out a solution for avoiding the presence
> of csnd6.jar in the system classpath. I've committed a change to
> gradle.properties that sets the java.library.path and java.ext.dirs to
> "".  This seems to fix things up here, and may be something users will
> have to do for their own projects.  The result is that the
> WaveviewActivity should now work. I will look to add this to the
> documentation.
> 


------------------------------------------------------------------------------
_______________________________________________
Csound-users mailing list
Csound-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-users
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2015-09-20 15:47
FromSteven Yi
SubjectRe: Android Studio
Hi Jacques,

Thanks for verifying.  I think all that's left for the main release is
documentation.  I will look at AAR/JCenter stuff probably after iOS
changes.

Thanks!
steven

On Sun, Sep 20, 2015 at 6:33 AM, Jacques Leplat  wrote:
> Hello Steven,
>
> The fix you propose works for me too. Waveview now displays the waveform.
>
> I added two lines to the CsoundForAndroid project’s gradle.properties:
>
> systemProp.java.library.path=""
> systemProp.java.ext.dirs=""
>
>
>
>> On 20 Sep 2015, at 01:52, Steven Yi  wrote:
>>
>> Update: I think I've figured out a solution for avoiding the presence
>> of csnd6.jar in the system classpath. I've committed a change to
>> gradle.properties that sets the java.library.path and java.ext.dirs to
>> "".  This seems to fix things up here, and may be something users will
>> have to do for their own projects.  The result is that the
>> WaveviewActivity should now work. I will look to add this to the
>> documentation.
>>
>
>
> ------------------------------------------------------------------------------
> _______________________________________________
> Csound-users mailing list
> Csound-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-users
> Send bugs reports to
>         https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here

------------------------------------------------------------------------------
_______________________________________________
Csound-users mailing list
Csound-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-users
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here