HBRecorder
Lightweight screen and audio recording Android library Requires API level 21>
If you are using this library in one of your applications and would like to thank me:
Lightweight screen and audio recording Android library Requires API level 21>
If you are using this library in one of your applications and would like to thank me:
Implement library in your app level build.gradle:
dependencies {
implementation 'com.github.HBiSoft:HBRecorder:0.1.15'
}
Activity
, first implement HBRecorder
, as shown below:public class MainActivity extends AppCompatActivity implements HBRecorderListener {
Alt+Enter
to implement the following methods:@Override
public void HBRecorderOnStart() {
//When the recording starts
}
@Override
public void HBRecorderOnComplete() {
//After file was created
}
@Override
public void HBRecorderOnError(int errorCode) {
//When an error occurs
}
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);
}
<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" />
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
That's it, HBRecorder
is now ready to be used.