| 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 |