53214

Unity Android created CSV file visible on device, not on PC via USB

Question:

I have a unity application that does a simple file creation and save on a CSV file.

public void WriteDataToCsv() { StreamWriter outStream = File.CreateText (Application.persistentDataPath + "/" + path); // GameObject.Find ("DebugText").GetComponent<Text> ().text = "Saved file to: " + Application.persistentDataPath + "/" + path; outStream.WriteLine (sb); outStream.Close (); }

Using any file explorer app off the Play store (both File Manager and X-Plore) I am able to see the file, and even edit it if i want. Its listed under Internal Storage\Android\data\com.test.app\files\data.csv

On the PC side, i can mount my Google Pixel, navigate to the same location (Internal Storage\Android\data\com.test.app\files) but the folder is empty.

I've tried plugging and unplugging in the phone, changing the USB file transfer mode on the phone, etc...

Anyone have any ideas? Windows 10, and the phone is a Google Pixel 128gb. Again, i can find the file and see the data there on the phone, but not on the PC. Are there permissions i need to be setting?!

Answer1:

I'm doing something like that and I've been able to see the file changing right away. After restarting your phone, the folder turns available. So if you change something in the file when you plug your phone, the file should be updated.

Recommend

  • How to loop and get the values from all the components in a repeat when saving
  • Unity3d script losing AudioClip reference when using AddComponent()
  • All bodies have rigidbody 2d and boxcollider2d and there's no collision
  • HTML code to upload images
  • NSMutableArray Access Issue
  • Nodejs bluebird promise fails while processing image
  • VB.NET 2012 Property Set on Property Get
  • Unzip archive in .Net CORE 1.0
  • What is corresponding c++ data type to SQL numeric(18,0) data type?
  • Retrieve IP address of device
  • How to get data from **Realm database** using **date object**?
  • Owin Authentication and claims in asp.net how to access user data
  • Clarification on min distance on LocationManager.requestLocationUpdates method, min Distance paramet
  • Sending HTML Form Data to Spring REST Web Service
  • Conversion from string “a” to type 'Boolean' is not valid
  • How can I sort a a table with VBA with given text condition?
  • Use of this Javascript
  • MongoDB in PHP using aggregate to group by _id is null not working
  • How do I change content of ComboFieldEditor?
  • AES padding and writing the ciphertext to a disk file
  • How to convert from System.Drawing.Color to Excel.ColorFormat in C#? Change comment color
  • Why doesn't :active or :focus work on text links in webkit? (safari & chrome)
  • Validaiting emails with Net.Mail MailAddress
  • MySQL WHERE-condition in procedure ignored
  • Weird JavaScript statement, what does it mean?
  • Web-crawler for facebook in python
  • Do I've to free mysql result after storing it?
  • SQL merge duplicate rows and join values that are different
  • trying to dynamically update Highchart column chart but series undefined
  • How to get Windows thread pool to call class member function?
  • IndexOutOfRangeException on multidimensional array despite using GetLength check
  • python draw pie shapes with colour filled
  • Is there any way to bind data to data.frame by some index?
  • costura.fody for a dll that references another dll
  • Observable and ngFor in Angular 2
  • How can i traverse a binary tree from right to left in java?
  • How to Embed XSL into XML
  • UserPrincipal.Current returns apppool on IIS
  • Conditional In-Line CSS for IE and Others?
  • java string with new operator and a literal