Unity: Building for ios and accessing the CSV file - c#

I have a simple app that collects user info such as name, email , job etc.. Im saving all of this info on the machine locally in this case the IPAD. This app will not be published as all uses will only work on 1 tablet. My questions is, How can i access this CSV file and open it manually after all users are done? I basically want to open the file and look at the info, but i can't find the csv file anywhere. Im using Application.datapersistantdatapath on Unity. Im using Unity and building to MAC, it's working perfectly on a windows machine.
The debug on the IPAD returns for me the path where the file is saved, now i need to open the file manually but i can't get to the path. How is it possible? the path is something like /var/mobile/containers/Data....

Application.persistantDataPath is a string, what does it tell you if you try and print it?

Related

How to allow app user to select a folder location where in app documents can be saved

I have a xamarin.forms app, I would like to allow users of app (android/ iOS/ windows) to be able to select a folder location at the start of the app and all the app related documents should be saved in that particular folder.
For now when I try to build a simple app which reads a xml file from the folder I create and display data on a list-view. I browsed through the file manager in android to see where the file is located physically on android device, but could not find any folder with app name.
In simple words I want a folder on the device to be created, which will be selected by the user. And accessible from file manager.
The reason behind this requirement is, the app is going to record a mp3 file and save a recording to a selected folder. So whenever the user wants to change his mobile he can always copy the recording to the new mobile and not loose any of the recordings.
To be able to use any of the possibilities below you will have to write platform-specific code in Xamarin.Forms and then expose some interface that you can use back in your PCL project.
Android:-
There is a post Choose File Dialog on how to create a file dialog selector (with directory changer), although not in Xamarin.
You will want to point the starting location to a shared folder of some kind.
There is a Xamarin tutorial here that walks you through how to create a simple file browser.
iOS:-
For iOS you may be interested in the iOS Document Picker View Controller, here.
There is an extensive tutorial of how to complete this using Xamarin here.
(pictures are from Xamarin website)

C# UWP LiveSKD and OneDrive access using FileOpenPicker

I'm developing a Universal Windows Platform app that allows a user to open and edit files using the FileOpenPicker. The idea is that the user can choose any file on their computer, including files located in their OneDrive folders. On Windows 10 Desktop, this is working perfectly.
However, on a Windows Phone 10 device, the result is very different. When a user chooses a file with the picker, the file is downloaded to a local storage folder, and the user is able to edit the file. But when the file is edited, it is not synced back to OneDrive.
According to https://dev.onedrive.com/
Picker SDKs enable your app to open and save files on OneDrive with hardly any code.
And also here https://dev.onedrive.com/sdks.htm, it says
Add OneDrive to your app in minutes with a few lines of code.
Get a link from OneDrive for sharing or downloading the contents of a file.
Save a file on the user's local device to OneDrive so it's available on all your users' devices.
This is a little confusing to me. From what I understand, I should be able to open files from OneDrive using the picker, and also save them. But is seems to only be able to open the file, and when I edit it, only the local copy is modified. It's never synced back to OneDrive
Has anyone else experienced this issue? Does anyone know how to use the FileOpenPicker to open and modify a file on OneDrive, and have it synced back to OneDrive?
By the way, I have also looked at this stackoverflow question and answer, but this doesn't seem to address the same issue I am having:
How to open a file from OneDrive with FileOpenPicker?
I really appreciate any help or guidance on this. Thanks!
I'm having the same issue and it has been like this with the OneDrive app since the API's were introduced with WP 8.1. The API's work fine because the Dropbox app supports them and it works as expected. You can do testing with that and hopefully Microsoft will get their act together.
There's a post on the msdn forums back in July of 2014 about it and other issues with no answers.

How to add photo to iPhone from desktop?

Recently, i want to create an application to sync photos between iphone and desktop by using C# language. I use Manzana library to copy image from PC to iphone.
As my understanding, the image file should be put under to /private/var/mobile/Media/PhotoData/Sync folder. But this does not work, i cannot see imported file when browse iphone photos although the file is copy to the location correctly.
Then i try to update the database file /private/var/mobile/Media/PhotoData/Photos.sqlite. To add a new entry to represent the imported photo file. Then i can see photo in iphone, but without thumbnails. And i have to restart the album application (close the application and start it again) so that to see the new imported photo.
But i found other tools can sync photo to iphone and can see the change immediately without restart the album application.
I want to know how this function is implemented?
Manzana is a C# wrapper of iTunesMobileDevice.dll. the main functionality is deal with iphone file system. and this is quite a old library which is not updated for a long time. I am not sure if there are any APIs to allow user to select an folder or photo file and sync it to iphone just like we do it in itunes, so that we don't need to process the db and thumbnails.
Does anyone have such experience before?
Im using desktop Dropbox as a buffer between mobile app and desktop.
Before this, you need a DropBox registered account and install the application.
After that, simple create a new folder from desktop Dropbox, drag-and-drop all
your photos into the new folder
Then, return to your iphone and retrieve them from DropBox mobile app.

SaveDialog in Flex passes FileName and Path to Server Side C#

So I've got a flex project that runs on the desktop. I've also got server side C# code that I run to export some data into a PDF when ever I click a button on the flex application. Currently I just auto save the files to the temp folder inside of the C:\ directory, but I was wondering how I would go about opening up a Save File dialog box in Flex so I can select a location and name for my file and then pass the full file path string over to the server to do the exporting. My research brought me to a "Filereference" class in Flex, however it looks like that actually saves some sort of file, where all I want to do is get the chosen file path from it.
EDIT: I'm working with a project that has both an Adobe AIR Application side and a Web Application side, both being run by common code, so it'd be best to have a method that is supported by both.
Since you said you're building a Desktop application, I assume you are using Adobe AIR. You can use the File.browseForDirectory() method.

Fileupload into WP7 application

I just have a "short" Question. I did a lot of research the last few hours and found out, that a Wp7 application has access to his own directory and the IsolatedStorage. So if I want to work with a file in my application I either have to load it into the project using the Solutionexplorer in VS, or create a file manually by code, load it into the Isolated Storage and then read out of it.
So i come to the result that it isnt possible to load a specific file, which is in an unknown directory or folder and has an unknown name from my mobile Phone (or WP7 emulator) into the App directly, right? Because there is no browsing feature or something like e.g. in the ASP.NET Webform,the FileUploadControl.
Is my understanding correct or do I miss something?
you cannot access anything that is on the phone (except music and photo lib etc) other than whats included with the app and its isolated storage area.
you can't browse the local device like you can on windows. however you can download files from the net.

Categories

Resources