RecordDialog

Additional

Language
Java
Version
1.2.3 (Mar 23, 2018)
Created
Feb 24, 2018
Updated
Oct 12, 2018
Owner
Ivan Sotelo (IvanSotelo)
Contributor
Ivan Sotelo (IvanSotelo)
1
Activity
Badge
Generate
Download
Source code

Announcement

RecordDialog

A Simple Wav audio recorder dialog

Releases:

Current release: 1.2.3.

You can see all the library releases here.


Adding the depencency

Add this to your root build.gradle file:

allprojects {
    repositories {
        ...
        maven { url 'https://jitpack.io' }
    }
}

Now add the dependency to your app build.gradle file:

compile 'com.github.IvanSotelo:RecordDialog:1.2.3'

Creating the dialog with Java

Here is a complete snippet of it usage:

        findViewById(R.id.show).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
              recordDialog = RecordDialog.newInstance("Record Audio");
              recordDialog.setMessage("Press for record");
              recordDialog.show(MainActivity.this.getFragmentManager(),"TAG");
              recordDialog.setPositiveButton("Save", new RecordDialog.ClickListener() {
                  @Override
                  public void OnClickListener(String path) {
                      Toast.makeText(MainActivity.this,"Save audio: " + path, Toast.LENGTH_LONG).show();
                  }
              });
            }
        });

Download