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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T08:32:56+00:00 2026-05-30T08:32:56+00:00

I am doing application with MediaRecorder, i want to display the time limit of

  • 0

I am doing application with MediaRecorder, i want to display the time limit of recording the audio. MediaRecorder is only used to record the voice. anyone know how to display the time while doing MediaRecorder.

  • 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-30T08:32:58+00:00Added an answer on May 30, 2026 at 8:32 am

    If you have the ground work laid for the recording and stopping of audio with MediaRecorder written, obtaining duration of recording isn’t too difficult.

    Displaying duration is simply start_time being set to System.currentTimeMillis(); at start of record.

    Then by using a Runnable we can perform a loop until stop of record.

    final Handler handler = new Handler();
    Runnable update_runnable = new Runnable() {
        public void run() {
            updateTextView();
        }
    };
    

    Then with the updateTextView() you’d do something like this:

    long duration = (int) ((System.currentTimeMillis() - start_time) / 1000);
    // ... set TextView with duration value
    handler.postDelayed(update_runnable, 1000); // handler re-executes the Runnable
                                                // every second; which calls
                                                // updateTextView
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am doing an application in which I want to get the screen shots
I am doing an application where I want to grab the content of div,which
I'm doing one application like raising email intent by time using AlarmManager . In
Iam doing one application .In that i want to find out the x,y,z axis
I am doing one application to read pdf from sdcard through webview. I used
I am doing one application.In that i want to find out the latitude and
I am doing application with parsing XML file. I used TransformerFactory to modify XML
I have an HTML5 offline application doing the following things: display a page check
I am doing an application which is used to clear the Temp files, history
I have seen many application doing voice recognition on the iphone. I have already

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.