LoginSignup
1
0

More than 5 years have passed since last update.

Androidアプリで作ったファイルがPCに接続すると見えない場合

Last updated at Posted at 2013-03-01

機種によっては、Androidアプリで作ったファイルが、PCから見れない場合がある。
(adb接続をすると見える)

sample.java
sendBroadcast(new Intent(Intent.ACTION_MEDIA_MOUNTED, Uri.parse("file://" + Environment.getExternalStorageDirectory())));

とやると見える。
が、マウントのBroadcastが走るため、ウイルススキャンアプリが入っているとスキャンが走ってしまう諸刃の剣。

参考
https://groups.google.com/forum/#!topic/android-group-japan/_cVr-BwVHPo

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0