Csound Csound-dev Csound-tekno Search About

Re: [Csnd] fout Android

Date2012-08-20 00:47
From"Art Hunkins"
SubjectRe: [Csnd] fout Android
Roger,
 
If you or someone could kindly lead me through the process of changing permissions in a manifest.xml file, I'd be much obliged. I'm clueless.
 
I've ES File Explorer app installed, and have managed in Settings to enable "Up to Root (enable up to Root directory)", and tried to enable "Root Explorer (only for rooted devices) - but am not able to/not allowed to enable this feature on my "phone" (a Samsung Galaxy Tab 2 (7.0).
 
I've apparently access to all Root folders, but can't locate anywhere folders for individual applications, especially any Csound folders. And so, no AndroidManifest.xml files appear. (I've also enabled viewing all hidden files.) I don't even know if the two Csound apps are supposed to be on the sdcard or internal memory (I've supposed the sdcard, but what do I know).
 
The darkness is great. Enlightenment is highly prized.
 
Art Hunkins
----- Original Message -----
Sent: Saturday, August 18, 2012 11:21 PM
Subject: Re: [Csnd] fout Android

Add this to your manifest xml:
  <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />

And you path (assuming you want to write to the sdcard) would be /mnt/sdcard/<your directory>, otherwise it writes to /data/data/yourpackagename

On Sat, Aug 18, 2012 at 7:53 PM, Art Hunkins <abhunkin@uncg.edu> wrote:
Please tell me how you fixed the permissions.
 
And by default where does the file write? Or do you need to specify the complete path?
 
Art Hunkins
----- Original Message -----
Sent: Saturday, August 18, 2012 6:04 PM
Subject: Re: [Csnd] fout Android

Yes it was a permissions issue.  Got it fixed.  Thanks.

On Sat, Aug 18, 2012 at 5:00 PM, Steven Yi <stevenyi@gmail.com> wrote:

If it is a permissions issue, ot would be a one line change to add the permission to the android application that uses csound.

On Aug 18, 2012 2:51 PM, "Art Hunkins" <abhunkin@uncg.edu> wrote:
Victor answered a similar inquiry from me a few days ago by saying that he thought Csound on Android (if I understand correctly) did not have permission to write WAV files.
 
I'd like to know if this is: a current limitation of Android, or a limitation of the Csound implementation on Android? (I'd assume the former - and hope this may change in the near future, as may the lack of MIDI implementation.)
 
Art Hunkins
----- Original Message -----
To: csound
Sent: Saturday, August 18, 2012 5:28 PM
Subject: [Csnd] fout Android

Does anyone know if fout works on Android? If so what directory should I attempt to put the filename into?  I get this error:

08-18 16:23:54.917: I/AndroidCsound(14705): error opening sound file '/sdcard/testaudio/test.wav'




Date2012-08-20 03:19
FromRoger Kelly
SubjectRe: [Csnd] fout Android
I am not sure exactly sure the context of your question, but basically you have to be building an Android application using Eclipse as your build tool.  It sounds like you are possibly trying to run an already built app?  If so you need the source for it.

In the Eclipse project you will see a file called Manifest.xml.  Android uses this to grant permission and do other things related to packaging of the app.

In the top part of the Manifest.xml you will see this:

<?xml version="1.0" encoding="utf-8"?>
    package="aorch.layout"
    android:versionCode="3"
    android:versionName="1.3"
 
  >
            <uses-permission android:name="android.permission.INTERNET"/>
     <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
    <uses-sdk android:minSdkVersion="9" />

    <application     


You want to add the line in bold before the "application" section.  This will allow Csound to be able to write files to the sdcard.

On Sun, Aug 19, 2012 at 6:47 PM, Art Hunkins <abhunkin@uncg.edu> wrote:
Roger,
 
If you or someone could kindly lead me through the process of changing permissions in a manifest.xml file, I'd be much obliged. I'm clueless.
 
I've ES File Explorer app installed, and have managed in Settings to enable "Up to Root (enable up to Root directory)", and tried to enable "Root Explorer (only for rooted devices) - but am not able to/not allowed to enable this feature on my "phone" (a Samsung Galaxy Tab 2 (7.0).
 
I've apparently access to all Root folders, but can't locate anywhere folders for individual applications, especially any Csound folders. And so, no AndroidManifest.xml files appear. (I've also enabled viewing all hidden files.) I don't even know if the two Csound apps are supposed to be on the sdcard or internal memory (I've supposed the sdcard, but what do I know).
 
The darkness is great. Enlightenment is highly prized.
 
Art Hunkins
----- Original Message -----
Sent: Saturday, August 18, 2012 11:21 PM
Subject: Re: [Csnd] fout Android

Add this to your manifest xml:
  <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />

And you path (assuming you want to write to the sdcard) would be /mnt/sdcard/<your directory>, otherwise it writes to /data/data/yourpackagename

On Sat, Aug 18, 2012 at 7:53 PM, Art Hunkins <abhunkin@uncg.edu> wrote:
Please tell me how you fixed the permissions.
 
And by default where does the file write? Or do you need to specify the complete path?
 
Art Hunkins
----- Original Message -----
Sent: Saturday, August 18, 2012 6:04 PM
Subject: Re: [Csnd] fout Android

Yes it was a permissions issue.  Got it fixed.  Thanks.

On Sat, Aug 18, 2012 at 5:00 PM, Steven Yi <stevenyi@gmail.com> wrote:

If it is a permissions issue, ot would be a one line change to add the permission to the android application that uses csound.

On Aug 18, 2012 2:51 PM, "Art Hunkins" <abhunkin@uncg.edu> wrote:
Victor answered a similar inquiry from me a few days ago by saying that he thought Csound on Android (if I understand correctly) did not have permission to write WAV files.
 
I'd like to know if this is: a current limitation of Android, or a limitation of the Csound implementation on Android? (I'd assume the former - and hope this may change in the near future, as may the lack of MIDI implementation.)
 
Art Hunkins
----- Original Message -----
To: csound
Sent: Saturday, August 18, 2012 5:28 PM
Subject: [Csnd] fout Android

Does anyone know if fout works on Android? If so what directory should I attempt to put the filename into?  I get this error:

08-18 16:23:54.917: I/AndroidCsound(14705): error opening sound file '/sdcard/testaudio/test.wav'