Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6719087
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T09:03:04+00:00 2026-05-26T09:03:04+00:00

However my app couldn’t record in Samsung Galaxy S 2 from mic, it has

  • 0

However my app couldn’t record in Samsung Galaxy S 2 from mic, it has been recording in other phones from mic.

Recorder.setAudioSource(MediaRecorder.AudioSource.MIC);
Recorder.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP);
Recorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB);

In my code, I select the source type from 0 to 4, select the encoder type as amr-nb, amr-wb, aac or default, select the output format type as .3gp, .mp4 or .amr and also select audio channel as 1 or 2.
I try all of combinations which are up. At least one of the combinations work in many phones. But none of them could work in Samsung Galaxy S 2. It records the file and the duration of the record is true but the voice is only silence!

In my research in web with this problem, i find that it could be derived from the microphone type. Although in my code I select the audio source type as default, mic, voice downlink, voice uplink, voice call, it couldn’t work. Then I set the audio source type as hard by that 0, 1, 2, 3, 4 instead of MediaRecorder.AudioSource.MIC etc. But it also couldn’t work…

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T09:03:04+00:00Added an answer on May 26, 2026 at 9:03 am

    I’ve had issues on the S2 where an app will lock up the microphone and won’t release it, especially if you are doing quick development cycles where you lock and release the mic just as you uninstall the app (and re-install a new version). Sometimes it unlocks after some time has passed, but the sure way to make sure the mic is available is to restart the phone after a failed attempt.

    I’ve been able to record audio using the following settings in the AudioRecord object:

    int buffer_size = 2 * AudioRecord.getMinBufferSize(16000, AudioFormat.CHANNEL_IN_MONO, AudioFormat.ENCODING_PCM_16BIT);
    recorder = new AudioRecord(
      MediaRecorder.AudioSource.MIC,               //audio source
      16000,                                       //16kHz sample rate
      AudioFormat.CHANNEL_IN_MONO,                 //channel
      AudioFormat.ENCODING_PCM_16BIT,              //encoding
      buffer_size );                               //buffer size
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm currently trying to port an app from asp.net to php, however I just
I've written a WPF app, which has been used by us for about a
Currently my app uses just Direct3D9 for graphics, however in the future I' m
My iPhone app formats an NSDecimalNumber as a currency using setCurrencyCode, however another screen
I have an iPhone app that hides the status bar. However, my main view
I am developing a web app for which I plan to use InnoDB. However
I recently configured my app to use the new AppStats feature of GAE. However,
I've got an app that's working pretty flawlessly in Chrome and FF, however, when
I have one web app works perfectly under linux with jetty-6.1.22. However, when I
I've got my Rails (2.1) app setup to send email via Gmail, however whenever

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.