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. Problem while Running the App

Hi Friends,

I am trying to run the yahoo messenger code for the new SDK 1.0 version.
(Note the same code is working like a charm with the previous version)

Please suggest me what is wrong?
Am i missing something ?

Thank you for your time.

I included

<uses-permission android:name="android.permission.INTERNET" />

But during the run time i am getting the following errror.

[2008-11-02 23:17:13 - ClientMain] Success!
[2008-11-02 23:17:13 - ClientMain] Starting activity
org.if_itb.ui.ClientLogin on device
[2008-11-02 23:17:15 - ClientMain] ActivityManager: Starting: Intent {
comp={org.if_itb.client/org.if_itb.ui.ClientLogin} }
[2008-11-02 23:17:15 - ClientMain] ActivityManager: [1]
Killed                  am start -n org....


Log File:

11-03 07:17:09.038: ERROR/AndroidRuntime(512): Uncaught handler: thread main
exiting due to uncaught exception
11-03 07:17:09.038: ERROR/AndroidRuntime(512): *** EXCEPTION IN SYSTEM
PROCESS.  System will crash.
11-03 07:17:09.038: ERROR/AndroidRuntime(512): java.lang.SecurityException:
Permission Denial: starting Intent { flags=0x10000000
comp={org.if_itb.client/org.if_itb.ui.ClientLogin} } from null (pid=-1,
uid=-1) requires null
11-03 07:17:09.038: ERROR/AndroidRuntime(512):     at
android.os.Parcel.readException(Parcel.java:1234)
11-03 07:17:09.038: ERROR/AndroidRuntime(512):     at
android.os.Parcel.readException(Parcel.java:1222)
11-03 07:17:09.038: ERROR/AndroidRuntime(512):     at
android.app.ActivityManagerProxy.startActivity(ActivityManagerNative.java:998)
11-03 07:17:09.038: ERROR/AndroidRuntime(512):     at
com.android.commands.am.Am.runStart(Am.java:197)
11-03 07:17:09.038: ERROR/AndroidRuntime(512):     at
com.android.commands.am.Am.run(Am.java:73)
11-03 07:17:09.038: ERROR/AndroidRuntime(512):     at
com.android.commands.am.Am.main(Am.java:51)
11-03 07:17:09.038: ERROR/AndroidRuntime(512):     at
com.android.internal.os.RuntimeInit.finishInit(Native Method)
11-03 07:17:09.038: ERROR/AndroidRuntime(512):     at
com.android.internal.os.RuntimeInit.main(RuntimeInit.java:186)
11-03 07:17:09.038: ERROR/AndroidRuntime(512):     at
dalvik.system.NativeStart.main(Native Method)
11-03 07:17:09.048: ERROR/JavaBinder(512): Unknown binder error code.
0xfffffff7
11-03 07:17:09.058: ERROR/AndroidRuntime(512): Crash logging skipped, no
checkin service


-- 
Dhiwakar (dhiku)
http://www.simori.com/
http://dhiku.tend.10.googlepages.com/

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

2. Tracfone support.

I have been a Tracfone user for a couple of years and am very happy
with the service. However, I must admit to having an occasional bout
of iphone envy. Then I remind myself that I pay only around $8 a month
for my cell phone service. I am thinking that Android might provide
the perfect solution for we pay as you go users who want a more fully
featured phone.

Is anyone out there working on compatibility with Tracfone service?
All I believe that needs to happen is a small bit of programming that
will take care of the Tracfone specific part of their service such as
keeping track of minutes in your call bank and displaying that info to
the user.

In a related note, as I understand it Android handsets can connect to
the web through Wi-fi hot spots rather than having to rely on a
service provider data service. Is this correct?

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

3. https and port 80 problem

4. SimpleCursorAdapter - change the way of binding cursor to view

5. proxy settings for emulator

6. Confusion about "Sorry! The application ____ (process ____) has stopped unexpectedly..." message

7. SDK for Mac Powerbook pre-Intel ?