HBRecorder

Additional

Language
Java
Version
0.1.3 (Sep 25, 2019)
Created
Aug 14, 2019
Updated
Sep 25, 2019
Owner
Hagen Brooks (HBiSoft)
Contributor
Hagen Brooks (HBiSoft)
1
Activity
Badge
Generate
Download
Source code
APK file

Show card

HBRecorder

Lightweight screen and audio capturing Android library

Requires API level 21>

Demo:

Download the demo app here



Implement library in your app level build.gradle:

dependencies {
    implementation 'com.github.HBiSoft:HBRecorder:0.1.3'
}

Implementing the library:

  1. In your Activity, first implement HBRecorder, as shown below:
public class MainActivity extends AppCompatActivity implements HBRecorderListener {
  1. Alt+Enter to implement the following method:
@Override
public void HBRecorderOnComplete() {
    //This is called once the file was created
}
  1. Init HBRecorder as shown below:
public class MainActivity extends AppCompatActivity implements HBRecorderListener {
    HBRecorder hbRecorder;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);     

        //Init HBRecorder
        hbRecorder = new HBRecorder(this, this);        

}
  1. Add the following permissions in your manifest:
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.WRITE_INTERNAL_STORAGE" />
<uses-permission android:name="android.permission.RECORD_AUDIO" />
<!--This is only necessary if you are displaying notifications-->
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />