摘要: 转自:http://www.jb51.net/article/64806.htm public class AudioRecordDemo { private static final String TAG = "AudioRecord"; static final int SAMPLE_RATE_ 阅读全文
posted @ 2016-10-19 15:49 黑色秋梨膏 阅读(5206) 评论(0) 推荐(1) 编辑
摘要: public class CacheUtil { /** * 获取文件缓存数据的大小 */ public static String getFileCacheSize(String imagePath,String soundPath) { float cacheSize = 0; String c 阅读全文
posted @ 2016-10-19 10:24 黑色秋梨膏 阅读(158) 评论(0) 推荐(0) 编辑
摘要: /** * bitmap转化base64 */public static String bitmapToBase64(Bitmap bitmap) { String result = null; ByteArrayOutputStream baos = null; try { if (bitmap 阅读全文
posted @ 2016-10-19 10:22 黑色秋梨膏 阅读(1645) 评论(0) 推荐(0) 编辑
摘要: /** * 检测程序运行时,当前网络是否连接 * * @return */public static boolean isNetworkConnected(Context context) { if (context != null) { ConnectivityManager mConnectiv 阅读全文
posted @ 2016-10-19 10:21 黑色秋梨膏 阅读(127) 评论(0) 推荐(0) 编辑
摘要: public class RecorderMnifestUtil { // 音频获取源 public static int audioSource = MediaRecorder.AudioSource.MIC; // 设置音频采样率,44100是目前的标准,但是某些设备仍然支持22050,1600 阅读全文
posted @ 2016-10-19 10:07 黑色秋梨膏 阅读(287) 评论(0) 推荐(0) 编辑