Back to project page continuous-audiorecorder.
The source code is released under:
Copyright (c) 2013, Nikolai Doronin All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:...
If you think the Android project continuous-audiorecorder listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.github.lassana.continuous_audiorecorder; /*from w w w. j a v a2 s. c om*/ import android.app.Application; import android.content.Context; import com.github.lassana.recorder.AudioRecorder; /** * @author Nikolai Doronin {@literal <lassana.nd@gmail.com>} * @since 11/26/14. */ public class RecorderApplication extends Application { public static RecorderApplication getApplication(Context context) { if (context instanceof RecorderApplication) { return (RecorderApplication) context; } return (RecorderApplication) context.getApplicationContext(); } private AudioRecorder mAudioRecorder; public AudioRecorder createRecorder(String targetFileName) { mAudioRecorder = AudioRecorder.build(this, targetFileName); return mAudioRecorder; } public AudioRecorder getRecorder() { return mAudioRecorder; } @Override public void onCreate() { super.onCreate(); } }