我找不到我的书面文件

时间:2017-09-01 12:01:25

标签: javascript java android

我写了一个文件到手机的SD卡(外部存储器)。我无法在创建的文件夹中看到这些文件,但我可以在应用程序中使用它们。 这是我写给我的SD卡的证据:

if (!isExternalStorageAvailable() || isExternalStorageReadOnly()) {
        b3.setEnabled(false);
    } else {
        myExternalFile = new File(getExternalFilesDir(filepath), file_namea);
    }

然后我宣布文件:

 FileOutputStream fos = new FileOutputStream(myExternalFile);
 ObjectOutputStream of = new ObjectOutputStream(fos);

这可以作为我创建的文件夹,我可以在应用程序中使用该文件,但为什么我在看到我的SD卡时看不到或触摸它?我希望能够通过电子邮件发送/移动文本文件到我的主电脑,但我不能。 关于我怎么做的任何想法?

private String filepath = "MyFileStorage";
File myExternalFile;
String myData = "";
  

09-01 13:58:04.255 1579-5528 /? E / ActivityManager:从系统4389发送未受保护的广播com.motorola.motocare.INTENT_TRIGGER:com.motorola.process.system / 1000 pkg com.motorola.motgeofencesvc                                                     java.lang.Throwable中                                                         在com.android.server.am.ActivityManagerService.broadcastIntentLocked(ActivityManagerService.java:18226)                                                         在com.android.server.am.ActivityManagerService.broadcastIntent(ActivityManagerService.java:18826)                                                         在android.app.ActivityManagerNative.onTransact(ActivityManagerNative.java:512)                                                         在com.android.server.am.ActivityManagerService.onTransact(ActivityManagerService.java:2906)                                                         在android.os.Binder.execTransact(Binder.java:565)   09-01 13:58:04.319 1579-5293 /? E / ActivityManager:从系统4389发送未受保护的广播com.motorola.motocare.INTENT_TRIGGER:com.motorola.process.system / 1000 pkg com.motorola.motgeofencesvc                                                     java.lang.Throwable中                                                         在com.android.server.am.ActivityManagerService.broadcastIntentLocked(ActivityManagerService.java:18226)                                                         在com.android.server.am.ActivityManagerService.broadcastIntent(ActivityManagerService.java:18826)                                                         在android.app.ActivityManagerNative.onTransact(ActivityManagerNative.java:512)                                                         在com.android.server.am.ActivityManagerService.onTransact(ActivityManagerService.java:2906)                                                         在android.os.Binder.execTransact(Binder.java:565)   09-01 13:58:07.239 579-690 /? E / ThermalEngine:override_notify:SS模式0覆盖   09-01 13:58:08.791 5148-5153 /? E / ANDR-PERF-MPCTL:无效的配置文件号。 0,仅限总数0   09-01 13:58:17.529 4412-4412 /? E / PhoneInterfaceManager:[PhoneIntfMgr] getIccId:ICC ID为null或为空。   09-01 13:58:24.424 5148-5153 /? E / ANDR-PERF-MPCTL:无效的配置文件号。 0,仅限总数0   09-01 13:58:24.425 579-690 /? E / ThermalEngine:override_notify:SS模式1覆盖   09-01 13:58:24.451 1579-6929 /? E / ActivityManager:从系统4389发送未受保护的广播com.motorola.motocare.INTENT_TRIGGER:com.motorola.process.system / 1000 pkg com.motorola.motgeofencesvc                                                     java.lang.Throwable中                                                         在com.android.server.am.ActivityManagerService.broadcastIntentLocked(ActivityManagerService.java:18226)                                                         在com.android.server.am.ActivityManagerService.broadcastIntent(ActivityManagerService.java:18826)                                                         在android.app.ActivityManagerNative.onTransact(ActivityManagerNative.java:512)                                                         在com.android.server.am.ActivityManagerService.onTransact(ActivityManagerService.java:2906)                                                         在android.os.Binder.execTransact(Binder.java:565)   09-01 13:58:24.480 1579-4775 /? E / ActivityManager:从系统4389发送未受保护的广播com.motorola.motocare.INTENT_TRIGGER:com.motorola.process.system / 1000 pkg com.motorola.motgeofencesvc                                                     java.lang.Throwable中                                                         在com.android.server.am.ActivityManagerService.broadcastIntentLocked(ActivityManagerService.java:18226)                                                         在com.android.server.am.ActivityManagerService.broadcastIntent(ActivityManagerService.java:18826)                                                         在android.app.ActivityManagerNative.onTransact(ActivityManagerNative.java:512)                                                         在com.android.server.am.ActivityManagerService.onTransact(ActivityManagerService.java:2906)                                                         在android.os.Binder.execTransact(Binder.java:565)   09-01 13:58:27.426 579-690 /? E / ThermalEngine:override_notify:SS模式0覆盖   09-01 13:58:29.139 1579-5454 /? E / LocSvc_libulp:E / int ulp_brain_transition_all_providers(),由于两个引擎都关闭,因此没有QUIPC / GNSS转换逻辑运行   09-01 13:58:30.336 1579-4147 /? E / MotoSensors:rearprox readEvents   09-01 13:58:30.336 1579-4147 /? E / MotoSensors:RearProxSensor:未知事件(类型= 3,代码= 25,值= 1)   09-01 13:58:30.336 1579-4147 /? E / MotoSensors:RearProxSensor:未知事件(类型= 3,代码= 16,值= 1504270710)   09-01 13:58:30.336 1579-4147 /? E / MotoSensors:RearProxSensor:未知事件(类型= 3,代码= 17,值= 336310)   09-01 13:58:30.336 1579-4147 /? E / MotoSensors:RearProxSensor:未知事件(类型= 3,代码= 18,值= 18)   09-01 13:58:30.336 1579-4147 /? E / MotoSensors:RearProxSensor:未知事件(类型= 3,代码= 20,值= 822272)   09-01 13:58:30.336 1579-4147 /? E / MotoSensors:RearProxSensor:未知事件(类型= 3,代码= 21,值= 5120)   09-01 13:58:30.336 1579-4147 /? E / MotoSensors:RearProxSensor:未知事件(类型= 3,代码= 22,值= 333519)   09-01 13:58:47.702 4412-4412 /? E / PhoneInterfaceManager:[PhoneIntfMgr] getIccId:ICC ID为null或为空。

0 个答案:

没有答案