1. Download our Official Android App: Forums for Android!

Problem with Simple Audio Recorder Application : Android

Discussion in 'Music & Media' started by Jason_bill, Mar 6, 2009.

  1. Jason_bill

    Jason_bill Lurker
    Thread Starter
    Rank:
    None
    Points:
    5
    Posts:
    2
    Joined:
    Mar 6, 2009

    Mar 6, 2009
    2
    0
    5
    Hi ,

    I have written a simple Audio Recorder.

    It compiles and runs properly but the problem is , I cant play back the recorded contents. When i tried to play back the files it said"Sorry, the player does not support this kind of audio files".

    I have enabled the SD card support by "./emulator -sdcard sd_card.img" command in emulator.

    when i enter this command the emulator issues a warning saying "Opening Audio Output failed".

    In my code i have specified the outputfile as "/sdcard/test.3gpp".
    first i have used "Environment.getExternalStorageDirectory()" to specify "setOutputFile()". then my recorded contents poppulated in "Menu->Music->Songs " but i could not play them due to above mentioned problem"Sorry, the player does not support this kind of audio files". If i use "/sdcard/test.3gpp" (Hard coded) i could not see the files on emulator.

    In DDMS if i see logcat it says "Network time out".

    I have altered the Android manifest file also to add the AUDIO permission after the <intent_filter> field.

    Please annyone help me in solving this problem..

    Thanks in Advance.
    Jason.
     

    Advertisement

  2. myEazy55

    myEazy55 Lurker
    Rank:
    None
    Points:
    5
    Posts:
    1
    Joined:
    May 28, 2009

    May 28, 2009
    1
    0
    5
    JASON_BILL TRY -audio oss when running your emulator... so it will be emulator -avd what_ever_the_name -sdcard sdcard_name -audio oss
     

Share This Page

Loading...