在进入正文前先说一下怎么获取手机内存和SDcard的目录,第一种是用绝对路径获取手机内存为/data/data/包名/文件名.后缀context.getFilesDir(); /data/data/包名/files
<pre name="code" class="java" style="font-size: 14px; font-weight: bold; color: rgb(255, 0, 0);">context<span style="font-family: SimSun;">.getCacheDir(); /data/data/包名/cache</span>
v老婆,
context.getFilesDir(); /data/data/包名/files
<pre name="code" class="java" style="font-size: 14px; font-weight: bold; color: rgb(255, 0, 0);">context<span style="font-family: SimSun;">.getCacheDir(); /data/data/包名/cache</span>