QR-Code and Writing to File

Good Evening to everyone,

i’m a noob on Corona SDK as i Started less than one week ago to develop using this tool, reading the guide, i’ve started to develop my new app. It’s simply but it’s hard.

I’ve two buttons, the second is already configured, but the first is really shooting me. This App provide to SCAN for a QR, and after wrote to a file.

here the Task:

  • Scan with QR code(completed) i’m scanning the QR and a Native.Show alert appear demostrating me that the QR was scanned correctly, but when i’m going to use the scanned “Text” and then write to a file, it gaves me an error.

  • Write to File, i would like to write a file inside my phone on the Documents Folder(android) however when i’m catching when is scanning the file, the file is the the app is linked is on my computer(the app search for user\xxx\Corona\project

Can anyone have to suggest me the right way, or similar a good guide to follow? i’m really lost.

What specific error are you getting?

Can you post some of your code where you’re trying to save the data?

Rob

Are you trying to access a file on your computer ? Try referring to this guide : 

https://docs.coronalabs.com/api/library/system/DocumentsDirectory.html

What specific error are you getting?

Can you post some of your code where you’re trying to save the data?

Rob

Are you trying to access a file on your computer ? Try referring to this guide : 

https://docs.coronalabs.com/api/library/system/DocumentsDirectory.html