2016年9月6日

12 外部存储和内部存储

摘要: 获取在data下对应包名的文件夹路径内部包内文件(data/data/包名/)获取内部的 data/data/包名/files FileOutputStream openFileOutput = Context.openFileOutput(文件名, 模式); 模式选择如下 Co... 阅读全文

posted @ 2016-09-06 21:28 木鱼哥 阅读(288) 评论(0) 推荐(0) 编辑

12 获取外部存储卡大小

摘要: package com.fmy.state;import java.text.Format;import android.app.Activity;import android.app.AlertDialog.Builder;import android.os.Build;impo... 阅读全文

posted @ 2016-09-06 20:38 木鱼哥 阅读(105) 评论(0) 推荐(0) 编辑

12 PopupWindow

摘要: PopupWindow创建方式PopupWindow pop = new PopupWindow()PopupWindow pop = new PopupWindow(上下文, 填充宽, 填充高);PopupWindow pop = new PopupWindow()案例1: j... 阅读全文

posted @ 2016-09-06 13:14 木鱼哥 阅读(98) 评论(0) 推荐(0) 编辑

调用MediaScannerConnection 发生内存泄露的解决方法

摘要: 调用MediaScannerConnection发起扫描时经常会发生内存泄露,例如: E ActivityThread: Activity FolderListActivity has leaked ServiceConnection android.media.MediaScannerConne... 阅读全文

posted @ 2016-09-06 11:19 木鱼哥 阅读(500) 评论(0) 推荐(0) 编辑

导航