Android to PC File Sharing

Is there any way to share a text file to a pc in the app itself? I have an export button and I want to share a file it creates within the app to this pc. If it is possible, how do I accomplish. Can I do this with just basic corona sdk, because I cannot get enterprise at the moment. 

Thanks in advance!

You want to run an app on your Android device and share a file to your PC hard drive?

There is no direct way to do this.  

You can however get a file to yourself via:

  • email - Probably the easiest.
  • TCP/IP transfer to another instance of Corona or other Lua environment (AutoLan provides this feature: i.e. Run a listener in the simulator and send the file to it, then let that listening app write the file to disk.
  • DropBox - You’ll have to search for a Lua based dropbox solution.  A few exist.

Are any of these ways, ways that don’t require an Internet connection?

I found a solution to most of my problems. This is how I am tackling the problem I had which was how to send a text file to my computer via bluetooth. Although corona doesn’t have any corona sdk calls that allow me to do bluetooth I got around that. I set up the mail thing to attach the text file to an email, and then i save the email as a draft, go back to the draft, download the file again, then from my documents I can share those files via bluetooth. Even though its alot of work, it’s a solution to my problem because I can’t get enterprise I couldn’t have gotten deeper than this. Thanks for all your help, especially Rob Miracle!

-Velotrixity

You want to run an app on your Android device and share a file to your PC hard drive?

There is no direct way to do this.  

You can however get a file to yourself via:

  • email - Probably the easiest.
  • TCP/IP transfer to another instance of Corona or other Lua environment (AutoLan provides this feature: i.e. Run a listener in the simulator and send the file to it, then let that listening app write the file to disk.
  • DropBox - You’ll have to search for a Lua based dropbox solution.  A few exist.

Are any of these ways, ways that don’t require an Internet connection?

I found a solution to most of my problems. This is how I am tackling the problem I had which was how to send a text file to my computer via bluetooth. Although corona doesn’t have any corona sdk calls that allow me to do bluetooth I got around that. I set up the mail thing to attach the text file to an email, and then i save the email as a draft, go back to the draft, download the file again, then from my documents I can share those files via bluetooth. Even though its alot of work, it’s a solution to my problem because I can’t get enterprise I couldn’t have gotten deeper than this. Thanks for all your help, especially Rob Miracle!

-Velotrixity