LoginSignup
7
6

More than 5 years have passed since last update.

Android端末でopenFileOutputで作成したファイルの確認

Posted at

AndroidアプリでPDFを作成して保存するという処理を書いた時に確認する方法を調査したのでメモ。

使用ツール adb shell

Android実機を接続して

SDKパス/platform-tools/
./adb shell

実行できたら

run-as アプリのパッケージ名

/data/data/パッケージ名がカレントディレクトリになります。

あとはfile/をご確認ください。

ちなみにrun-asをやらないとパーミッションの問題でエラーでます。

参考サイト

Android実機で/data以下のファイルを確認する openFileOutputでファイル作成したらこの方法でチェックしよう | サクッとJava研修室
http://saku-java.be-ourselves.jp/2014/05/13/android-openfileoutput-file-check/

7
6
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
7
6