Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Edit data with new Device File Explorer in Android Studio 3.1

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

enter image description here

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?

like image 456
Vitalii Avatar asked Apr 17 '18 19:04

Vitalii


People also ask

What is device file explorer in Android Studio?

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.

How do I open device Explorer in Visual Studio?

Hi, You can access to the Device File Explorer in Android Studio via `View > Tool Windows > Device File Explorer`.

How can I access Android system files from PC?

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.

How do I open file manager in Android programmatically?

Intent intent = new Intent(Intent. ACTION_GET_CONTENT); intent. setType("*/*"); Intent i = Intent. createChooser(intent, "View Default File Manager"); startActivityForResult(i, CHOOSE_FILE_REQUESTCODE);


1 Answers

You have to save the file on your computer, edit it and upload back the file on the device.

like image 170
William Avatar answered Oct 30 '22 22:10

William