Simple .csv export

Could anybody help me with this. I’m working on an android app and have a need for a “form” of sorts. I have two questions:

  1. How do I send the entered text in a textField to a .csv file? I understand how to create/populate a .csv with regular data, but I can’t figure out how to do it with user input in a textField.

  2. If I save the .csv to the system.DocumentsDirectory where will I be able to find that when the device is connected to a PC? I’ve tried this with a .txt file and can’t seem to locate the folder holding the file.

Any help is much appreciated. [import]uid: 94294 topic_id: 17255 reply_id: 317255[/import]

I don’t think you can. Otherwise you would be able to see everybody’s save files and other things. [import]uid: 5354 topic_id: 17255 reply_id: 66718[/import]

You can achieve what you want using the simulator, since your computer has access to the sand box file area. On device though, you would have to send the file to a server by email or http. Your users will need to approve the sending of data from the device to comply with Apple terms & rules.

-David
[import]uid: 96411 topic_id: 17255 reply_id: 66728[/import]

I know some apps have the ability to transfer files in and out of iTunes as well. I can’t speak for the Android market.

It looks like it might just be a plist entry in build.settings to get iTunes access to the system.DocumentsDirectory.

http://www.raywenderlich.com/1948/how-integrate-itunes-file-sharing-with-your-ios-app
That will address getting the file in and out on iOS devices.

[import]uid: 19626 topic_id: 17255 reply_id: 66753[/import]

Can anyone tell me if this is possible? And how would that actually look?

My issue is … we need to snag a generated data.txt file the app I made made created to keep score … we need email addresses to contact the winners of a contest we used the app we made.

BUT … yeah, you see my issue on this? [import]uid: 97023 topic_id: 17255 reply_id: 66790[/import]

Could you have scores sent to your server and saved there?

For the email address, they would need to enter it and send it to your sever also - any other way would violate Apple T.O.S. - they have to willingly give it you.

Peach :slight_smile: [import]uid: 52491 topic_id: 17255 reply_id: 66866[/import]

I’m going to test my iTunes theory, but since you’re android its probably a moot point.

Peach is right, you should just upload the data to a server somewhere. I’m not exactly sure what you’re trying to do, but you might not even need to save the data locally [import]uid: 19626 topic_id: 17255 reply_id: 66982[/import]

Thanks everybody! The server is the route I went with. I just set up an FTP and spit the information out to that. [import]uid: 94294 topic_id: 17255 reply_id: 67019[/import]

Here’s another quick question. I’m wanting to save user input from text fields. Can anybody help me with this? I’m not really sure how to store the information after the return button is pressed. [import]uid: 94294 topic_id: 17255 reply_id: 67356[/import]