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. Service Intent Filter Action String Resource

I have a Service defined in the manifest with an intent filter that
refuses to match when specified as a String resource but works when
the literal action is entered in the manifest.  Is there any reason I
should not be able to use a String resource with an action in an
intent filter?

For example:

Manifest Snippet

<service android:name=".subpackage.MyService">
        <intent-filter>
                <action android:name="com.company.application.subpackage.RUN"></
action>
                <!-- This does not work at all, but I expect it to
                <action android:name="@string/actionMyServiceRun"></action>
                -->
        </intent-filter>
</service>

Resource Snippet:
        <string
name="actionMyServiceRun">com.company.application.subpackage.RUN</
string>

Code Snippet:
Intent i = new Intent();
// Either of the below lines work
i.setAction(getString(R.string.actionMyServiceRun));
// i.setAction("com.company.application.subpackage.RUN");
i.putExtra(SitewerxService.EXTRA_RUN_CONTINUOUS, b);

startService(i);

-- 

2. Getting TabWidget.setDividerDrawable() to work?

Hi,

I've got a TabHost/TabWidget, I'm supplying custom views for each of
the tabs, works great. I'm not sure if setting the divider drawable
and the left and right strips is working as I'm assuming. Basically I
supply a drawable, and no divider is drawn, nor is the left/right
strips. Are those methods meant to be used for this? When I look at
the tab drawables in the project, it looks like they have the dividers
and strips baked into the tab drawable resources themselves. Does
anyone have this working?:

    // The drawable is a dummy png that is 1px wide and 65px tall:
    mTabHost.getTabWidget().setDividerDrawable(
        R.drawable.mydividerdrawable);

Thanks

-- 

3. wakelocks required for USB mouse (HID) to work properly?

4. AsyncTask and screen rotation - a manifesto

5. how to know an opengl method is implemented?

6. Building 64-bit x86

7. How to cast Bitmap to Keyboard ?