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. Open a HTML file

How can I open a HTML file in the SDCARD of Tmobile G1 using a browser
or any other application? Please help.

Thanks,
Siva G
--~--~---------~--~----~------------~-------~--~----~

2. Can i write android code without activity (just with service)

Hi All,

Can anyone tell , is it possible compile or run android program which
doesnt have any activity class but has a service class to interact
with network. if it is possible let me know the way to invoke that
console program on emulator as it will not have any UI.

Thanks and regards
Suhail

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

3. Minimum PC Requirement for Using Android SDK

4. Keeping network connection alive when paused - Service?

5. Porting android to omap 2430

6. How does the Java code connect to the C code

7. Howto take value for android:textSize from resources?