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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T16:58:56+00:00 2026-05-23T16:58:56+00:00

I am trying to run the audio recording http://developer.android.com/guide/topics/media/index.html , Its working fine, what

  • 0

I am trying to run the audio recording http://developer.android.com/guide/topics/media/index.html, Its working fine, what I need is to show max amplitude while recording voice continuously. What is the best approach for that.

  • 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-23T16:58:57+00:00Added an answer on May 23, 2026 at 4:58 pm

    Max amplitude gives max amplitude of the given sample, so I taken sample for every 250 milli seconds and calculated max amplitude

    public void run() {
                int i = 0;
                while(i == 0) {
                    Message msg = mHandler.obtainMessage();
                    Bundle b = new Bundle();
                    try {
                        sleep(250);
                    } catch (InterruptedException e) {
                        // TODO Auto-generated catch block
                        e.printStackTrace();
                    }
                    if (mRecorder != null) {
                        amplitude = mRecorder.getMaxAmplitude();
                        b.putLong("currentTime", amplitude);
                        Log.i("AMPLITUDE", new Integer(amplitude).toString());
                    } else {
                        b.putLong("currentTime", 0);
                    }
                    msg.setData(b);
                    mHandler.sendMessage(msg);
                }
            }
    

    I used message handlers to modify front end using background process thread

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

Sidebar

Related Questions

I have written a simple audio player on android(below). And trying to run on
Situation: I'm trying run an https store (xcart) under one domain secure.example.com and I
I'm trying to run a process and do stuff with its input, output and
I'm trying to develop an Audio Capture application using the AudioRecord class from android
I'm trying to follow a tutorial on Tapestry. (http://tapestry.apache.org/tapestry5.1/tutorial1/env.html) The tutorial recommends Jetty 5.1
Im trying to run a VOIP call using built in SIP on android 3.1.
I am a new android developer. Currently I am working on an application which
I am trying to run a query for my media player as follows: audioCursor
I'm working on an android application, as part of me trying to learn android
I am trying run a program from a qmake .pro file which modifies the

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.