Problem with Simple Audio Recorder Application : Android

by Jason » Sat, 07 Mar 2009 10:53:19 GMT


Sponsored Links
 Hi,

I have written a simple Application to record audio.

SD card is enabled in emulator using "./emulator -sdcard sd_card.img".
when i enter this command, it displays warning saying "Audio output is
failed".

the application runs properly but i cant see the recorded file.

output file is set to "sdcard/test.3gpp" (setOutputFile("/sdcard/test.
3gpp")).

earlier i used "environment.getExternalStorageDirectory()" option to
get the path.. den i could see the recorded contents in "Music - >
Songs" in Emulator. But when i tried to play those, it says format not
supported("sorry, the player doesnot support this kind of audio
file"). i pulled that file using ADB ( "adb pull local_file /sdcard/
remote_file") on to system and tried to play it but unsuccessful.

I have altered the Android manifest file to give the AUDIO permission
aftre the <intent filter >field in the file.

Plesae help me....

Thanks in Advance....

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



Other Threads

1. ActivityNotFoundException on explicit class declared in manifest on G1, emulator OK

Found the problem due to problem with release build scripts.
Diagnosis: pilot error. DOH!



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

2. How to receive callback when press and hold button for a longer time.

I want to add some code when user press and hold the button. I try use
change the focus function. I wrote the similar code like onClick. But it was
never called when I moved curer to button and it was focused.

Button button = (Button) findViewById(R.id.*channel_up*);

button.setOnFocusChangeListener(*new* Button.OnFocusChangeListener() {

*public* *void* onFocusChange(View v, *boolean* hasFocus) {

}

Thanks

Shude

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

3. java.lang.OutOfMemoryError after orientation changed

4. lock_layer() Warnings

5. SlingPlayer Coming To WebOS and Android Phones?

6. Eclipse crashing after update to ADT 0.9.3 and SDK 1.6

7. Problem to open a internal activity(com.android.browser.BrowserDownloadPage) using sharedUserId.