getting data out, from app running on Android

Originally this post was about iOS, but now I need to get data out of an Android phone (not the simulator)

what’s the best way to get that 30KB file out of my HTC Desire and examine it on my computer ?

Are there tools for Android that will let me see the contents of the file on the Android ?

[import]uid: 97524 topic_id: 19362 reply_id: 319362[/import]

You can FTP it to a file server
Set up a web page that can take POST requests and send it to a server that way.
Once you subscribe to Corona, the latest daily build supports email with attachments.

In theory, you can put the right key’s in your build.settings plist area that would turn on the ability for iTunes to be able to see the system.DocumentsDirectory, though when I tried that, it didn’t work. Doesn’t mean I didn’t make a mistake.

And in theory, if you’re running Xcode’s organizer while tethered, you should be able to access the apps sandbox folder.
[import]uid: 19626 topic_id: 19362 reply_id: 74738[/import]

use xcode organiser… it’s no problem.
just navigate to the app in the list of apps on your device and click the arrow next to it.
Then it will copy the sandbox folder to your desktop.

[import]uid: 13632 topic_id: 19362 reply_id: 74748[/import]

@ojnab, that will work if the poster has access to the device and can tether it. But if the goal is to get data from someone else’s device running the app, one of the other options will need to be implemented.
[import]uid: 19626 topic_id: 19362 reply_id: 74754[/import]

perfect thanks all!
[import]uid: 97524 topic_id: 19362 reply_id: 74773[/import]

run into another issue - I need to get data out of my application running on an Android phone. It has to be the Android phone version and nothing else, as the data is specific to that alone.

The data is in the form of a 20KB text file, which I can save to the documentsDirectory

If I buy Corona, will I be able to email out of my application and send the text file that way ? Or is there a better way ?

I run both a Snow Leopard machine and a Windows7 machine. My Android is an HTC Desire running Android 2.2

[import]uid: 97524 topic_id: 19362 reply_id: 75867[/import]

One of the daily builds after 704 (the last public release) contains the ability to send email with attachments which you should be able to read from the documents directory.
[import]uid: 19626 topic_id: 19362 reply_id: 75868[/import]

ojnab

Re Xcode Organizer…

Daft question - Will that work for an Android phone ? [import]uid: 97524 topic_id: 19362 reply_id: 75869[/import]

Rob, I’ll need to buy Corona to get that feature.

That’s not a problem, as I would’ve bought it anyway, when my app was ready for deployment. [import]uid: 97524 topic_id: 19362 reply_id: 75870[/import]

In daily build 714:

Android: Added e-mail and file attachment support via native.showPopup(“mail”). casenum: 8406

[import]uid: 19626 topic_id: 19362 reply_id: 75871[/import]

Well Xcode won’t work with android, but Android’s toolset should have a similar feature set. [import]uid: 19626 topic_id: 19362 reply_id: 75877[/import]

Rob, that’s a good point - you say “Android’d toolset”

I’m really new to Android, having borrowed my first Android late last week, and HTC Desire, Android 2.2

I simply plug it into my PC and the phone asks me which mode to talk to the PC with - I use “disk drive” , then copy and paste my build onto the phone.

I’ll google Android tools and see what I can find.

The Corona Simulator is no good in this instance - like I say I specifically need the data the Android phone generates. [import]uid: 97524 topic_id: 19362 reply_id: 75880[/import]