SoundRecordingAPISample to save audio in Internal Storage

by haig » Fri, 12 Sep 2008 07:31:48 GMT


Sponsored Links
 I have looked at the SoundRecording API example, and it can save audio
to an sdcard.

I would like to save the audio in internal storage, like /data/data/
<package>/files/.

Is there a reason why this might not be possible? Any tips will help

--~--~---------~--~----~------------~-------~--~----~



SoundRecordingAPISample to save audio in Internal Storage

by Megha Joshi » Fri, 12 Sep 2008 07:35:52 GMT


 The recommended practice is to only store : ringtones, alarm and
notification sound audio files in internal storage. Rest of the media files
should be stored on sdcard.

2008/9/11 haig <[EMAIL PROTECTED]>


--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


SoundRecordingAPISample to save audio in Internal Storage

by haig » Fri, 12 Sep 2008 14:28:10 GMT


 Thank you that clears things up




--~--~---------~--~----~------------~-------~--~----~



SoundRecordingAPISample to save audio in Internal Storage

by blindfold » Fri, 12 Sep 2008 20:37:55 GMT


 Which is expected to be faster: internal storage or sdcard?
I'm currently temporarily saving content to internal storage
because MediaPlayer cannot play generated content from memory,
but the speed and power penalty of doing so on physical phones
remains unclear.




--~--~---------~--~----~------------~-------~--~----~



SoundRecordingAPISample to save audio in Internal Storage

by Megha Joshi » Sat, 13 Sep 2008 02:36:54 GMT


 2008/9/12 blindfold <[EMAIL PROTECTED]>



Could you clarify what you count as generated content and memory?




--~--~---------~--~----~------------~-------~--~----~



SoundRecordingAPISample to save audio in Internal Storage

by blindfold » Sat, 13 Sep 2008 03:00:14 GMT


 Hi Megha,

Yes, by generated media content I mean content that is not some fixed
material that is already stored somewhere on the device or on some
remote server, but that is created on-the-fly in response to user
actions or sensor inputs (e.g., camera input). One may typically think
of a byte array or its corresponding stream being filled with
calculated (synthesized) content, meant to played by MediaPlayer. This
is not possible with the MediaPlayer APIs in Android SDK 0.9 beta. The
problem was reported and discussed as issue 739. Additionally, I have
today on android-internals posted concern about possible detrimental
effects on device lifetime for media-intensive processing of generated
content that currently requires this temporary storage on (flash) SD
card or (flash) internal memory.

Regards




--~--~---------~--~----~------------~-------~--~----~



SoundRecordingAPISample to save audio in Internal Storage

by Megha Joshi » Sat, 13 Sep 2008 07:31:23 GMT


 2008/9/12 blindfold <[EMAIL PROTECTED]>


The sdcard access might be faster, but it depends on the particular sdcard.
Only way to know for sure is to measure it.




--~--~---------~--~----~------------~-------~--~----~



SoundRecordingAPISample to save audio in Internal Storage

by blindfold » Sat, 13 Sep 2008 18:33:11 GMT


 Thanks Megha, I'll check it out once I have the opportunity, or maybe
turn it into a user option.




--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. TextView setTextAppearance bugged?

Hi,

i started developing with a droid a few days ago and noticed some
weird behaviour with the TextView.setTextAppearance function. If i use
it with a attr style parameter, it wont work. But if i put the same
ressource in the constructor, it works.

For example:
// Works

TextViw title = new TextView(context, null,
android.R.attr.textAppearanceLarge);

// Works not
TextView title = new TextView(context);
title.setTextAppearance(context, android.R.attr.textAppearanceLarge);

Am i doing something wrong?

Well in my case, doing it via constructor works fine (as i only need
to set it once) but in some cases where you change want to change it
dynamicly, it could cause some problems.

Any ideas what's wrong?

--~--~---------~--~----~------------~-------~--~----~

2. How to compile the open sourced bundled apps

I would like to compile the bundled apps (such as Camera).

I created a new Android project with the code from the Camera project
downloaded from git.  It uses private APIs such as
android.pim.DateFormat so it wouldn't compile.  Now, I pull in the
whole source code for java.android.pim package but this again depends
on a bunch of other packages.

What is the recommended way to compile such project?
--~--~---------~--~----~------------~-------~--~----~

3. Hi, please help with installing an .apk

4. What is the intent to launch the image gallery?

5. Browsing G1 from Windows

6. (Another) h/w accelerated OpenGL|ES question

7. service stops when phone goes idle