RecordDialog

Additional

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

RecordDialog

A Simple Wav audio recorder dialog

Releases:

Current release: 1.2.3.

You can see all the library releases here.


Usage:

Permissions

Add these permissions into your AndroidManifest.xml and request for them in Android 6.0+ Min API: 18

<uses-permission android:name="android.permission.RECORD_AUDIO"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>

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


Gradle

compile 'com.ivansotelo.RecordDialog:1.2.3'
Maven
<dependency>
  <groupId>com.ivansotelo</groupId>
  <artifactId>RecordDialog</artifactId>
  <version>1.2.3</version>
  <type>aar</type>
</dependency>

License

The MIT License (MIT)

Copyright (c) 2017 Ivan Sotelo Vargas

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.