摘要: 转自 http://www.2cto.com/kf/201605/506596.html 阅读全文
posted @ 2016-11-09 16:36 黑色秋梨膏 阅读(117) 评论(0) 推荐(0) 编辑
摘要: 转自 http://blog.csdn.net/jerrywu145/article/details/52225898 http://www.jianshu.com/p/3bf125b4917d 阅读全文
posted @ 2016-11-09 11:40 黑色秋梨膏 阅读(95) 评论(0) 推荐(0) 编辑
摘要: http://www.2cto.com/kf/201309/242225.html 阅读全文
posted @ 2016-11-01 13:32 黑色秋梨膏 阅读(61) 评论(0) 推荐(0) 编辑
摘要: http://www.jb51.net/article/73591.htm http://www.cnblogs.com/xuemaxiongfeng/archive/2013/08/04/3236420.html 阅读全文
posted @ 2016-10-24 09:42 黑色秋梨膏 阅读(79) 评论(0) 推荐(0) 编辑
摘要: 转自: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) 编辑
摘要: 开启新线程 new Thread(new Runnable(){ public void run(){ Thread.sleep(XXXX); handler.sendMessage(); //告诉主线程执行任务 } }).start 利用定时器 TimerTask task = new Timer 阅读全文
posted @ 2016-09-07 13:24 黑色秋梨膏 阅读(3636) 评论(0) 推荐(0) 编辑