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 988917
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T05:42:24+00:00 2026-05-16T05:42:24+00:00

I wrote a code to record audio of call conversation using MediaRecorder. how can

  • 0

I wrote a code to record audio of call conversation using MediaRecorder.

how can i know whether a MediaRecorder is in running state or not, to stop the recording.
like

boolean running;
MediaRecorder mr;
//what should i assign to running?        
if(running){
   mr.stop()
}

Above code is just an example.. If you do not understand my question, please tell me.. i will explain clearly with actual code..

What all i want to know is “In which state the MediaRecorder is?” -> recording/released/prepared/initial/etc..

  • 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-16T05:42:25+00:00Added an answer on May 16, 2026 at 5:42 am

    You cannot get the state directly, see the open enhancement request at http://code.google.com/p/android/issues/detail?id=800

    You need to set a variable manually in the listeners when the mediaplayer reaches a certain state in order to remember the current state.

    Also this this discussion:
    http://www.mail-archive.com/android-developers@googlegroups.com/msg35320.html

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a very simple Activity to record audio using MediaRecorder . Basic start/stop
Basic doubt...If QTP generates vbscript code as we record actions, can't we directly write
I wrote code first without using functions to prototype, and of course, it worked
I wrote two code both are same Using NSURLConnection and Using AFNetworking. My NSURLConnection
In the code below is using getLevel() . where can I find it (it
This is a code that will attempt to record an audio sample : but
I got 0.3-0.5 sec latency while record audio (live monitoring). Here's my code: code
Here is the code to recognize flac file. But how can I record that
I'm using AudioRecorder to record short audio clips but I'm getting IllegalStateException when calling
I wrote code to get name of printer which is installed in my system.but

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.