With a new Device File Explorer
in Android Studio 3.1
I can open file from the device and see it's contents in Android Studio
File opens in edit
mode and when I add some lines, save it and restart Android Studio
and open this file again it's still empty.
Is there a way to save my changes to the device without clicking upload, locate and manually enter this file path?
The Device File Explorer allows you to view, copy, and delete files on an Android device. This is useful when examining files that are created by your app or if you want to transfer files to and from a device.
Hi, You can access to the Device File Explorer in Android Studio via `View > Tool Windows > Device File Explorer`.
With a USB cable, connect your phone to your computer. On your phone, tap the "Charging this device via USB" notification. Under "Use USB for," select File Transfer. A file transfer window will open on your computer.
Intent intent = new Intent(Intent. ACTION_GET_CONTENT); intent. setType("*/*"); Intent i = Intent. createChooser(intent, "View Default File Manager"); startActivityForResult(i, CHOOSE_FILE_REQUESTCODE);
You have to save the file on your computer, edit it and upload back the file on the device.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With