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.recorder; //from ww w.j ava 2 s . co m import android.annotation.SuppressLint; import android.media.MediaRecorder; import android.os.Build; /** * @author Nikolai Doronin {@literal <lassana.nd@gmail.com>} * @since 8/25/13 */ public class ApiHelper { public static final boolean HAS_EXECUTE_ON_EXECUTOR_METHOD = Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB; @SuppressLint("InlinedApi") public static final int DEFAULT_AUDIO_ENCODER = Build.VERSION.SDK_INT >= Build.VERSION_CODES.GINGERBREAD_MR1 ? MediaRecorder.AudioEncoder.AAC : MediaRecorder.AudioEncoder.DEFAULT; }