10 2016 档案

摘要:http://www.jb51.net/article/73591.htm http://www.cnblogs.com/xuemaxiongfeng/archive/2013/08/04/3236420.html 阅读全文
posted @ 2016-10-24 09:42 黑色秋梨膏 阅读(85) 评论(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 黑色秋梨膏 阅读(5280) 评论(0) 推荐(1)
摘要:public class CacheUtil { /** * 获取文件缓存数据的大小 */ public static String getFileCacheSize(String imagePath,String soundPath) { float cacheSize = 0; String c 阅读全文
posted @ 2016-10-19 10:24 黑色秋梨膏 阅读(180) 评论(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 黑色秋梨膏 阅读(1660) 评论(0) 推荐(0)
摘要:/** * 检测程序运行时,当前网络是否连接 * * @return */public static boolean isNetworkConnected(Context context) { if (context != null) { ConnectivityManager mConnectiv 阅读全文
posted @ 2016-10-19 10:21 黑色秋梨膏 阅读(138) 评论(0) 推荐(0)
摘要:public class RecorderMnifestUtil { // 音频获取源 public static int audioSource = MediaRecorder.AudioSource.MIC; // 设置音频采样率,44100是目前的标准,但是某些设备仍然支持22050,1600 阅读全文
posted @ 2016-10-19 10:07 黑色秋梨膏 阅读(298) 评论(0) 推荐(0)