58258

How to Make custome record view Meter?

Question:

i want make custome view meter which is spred when the user record the voice??

Does anyone know of any coding examples of a digital VU Meter for recording audio?

Does anyone know of any coding examples for showing feedback when a recording is being made?

<img alt="enter image description here" class="b-lazy" data-src="https://i.stack.imgur.com/UbFY2.jpg" data-original="https://i.stack.imgur.com/UbFY2.jpg" src="https://etrip.eimg.top/images/2019/05/07/timg.gif" />

Answer1:

This is a Mediastore file means Audio Recording .just like click the button and start the recording

public class MediastoreActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); Button btn = (Button)findViewById(R.id.recordBtn); btn.setOnClickListener(new OnClickListener(){ @Override public void onClick(View view) { startRecording(); }}); } public void startRecording() { Intent intt = new Intent("android.provider.MediaStore.RECORD_SOUND"); startActivityForResult(intt, 0); } @Override protected void onActivityResult(int requestCode, int resultCode, Intent data) { switch (requestCode) { case 0: if (resultCode == RESULT_OK) { Uri recordedAudioPath = data.getData(); } } } }

This is a mail.xml file create only one button

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" > <Button android:id="@+id/recordBtn" android:text="Record Audio" android:layout_width="wrap_content" android:layout_height="wrap_content" /> </LinearLayout>

Recommend

  • Android in-app-billing. When to unregister the ResponseHandler?
  • How to display video after getting from json?
  • Get the clicked item in android list
  • How to add an item to a ListView with each Button click
  • Is Android's ARGB_8888 Bitmap internal format always RGBA?
  • How to process binary stream in Wicket like Servlet?
  • OnItemSelectedListener for Spinner that was added programmatically does not trigger
  • How to change placeholder text in an autocomplete activity of android google place?
  • Replace Fragment with another on back button
  • EditText is covered by Keyboard
  • Avoid registering duplicate broadcast receivers in Android
  • How to get listview position?
  • URLConnection doesn't work since API 10 and higher?
  • How to disable all widgets inside Panel or inside Composite?
  • how to avoid repetitive constructor in children
  • onBackPressed() not being executed
  • Unity3D & Android: Difference between “UnityMain” and “main” threads?
  • Android fill_parent issue
  • Jetty Server not starting: Unable to establish loopback connection
  • Highlight and Bold text in JTextPane
  • Debugging ASP.NET on a built-in web server suddenly stops
  • how to do an event when i swipe from fragment to the other
  • Can I display google adwords (AdView) in javafx on android
  • Validaiting emails with Net.Mail MailAddress
  • sending/ receiving email in Java
  • jquery mobile loadPage not working
  • Properly structure and highlight a GtkPopoverMenu using PyGObject
  • Akka Routing: Reply's send to router ends up as dead letters
  • Cannot Parse HTML Data Using Android / JSOUP
  • using conditional logic : check if record exists; if it does, update it, if not, create it
  • python regex in pyparsing
  • How can I get HTML syntax highlighting in my editor for CakePHP?
  • JTable with a ScrollPane misbehaving
  • Exception on Android 4.0 `android.os.StrictMode$AndroidBlockGuardPolicy.onNetwork(StrictMode)`
  • Android Google Maps API OnLocationChanged only called once
  • unknown Exception android
  • EntityFramework adding new object to nested object collection
  • Checking variable from a different class in C#
  • failed to connect to specific WiFi in android programmatically
  • How can I use threading to 'tick' a timer to be accessed by other threads?