Here is my code
[lua]–Function to handle button events
local function handleExportButtonEvent(event)
dataReadyExport()
local phase = event.phase
if “ended” == phase and teamInputBox.text ~= “” and matchInputBox.text ~= “” then
local filePath = system.pathForFile( “Team”… teamInputBox.text … “Match”… matchInputBox.text … “.txt”, system.DocumentsDirectory)
local file, errorString = io.open(filePath, “a”)
if not file then
–error occured; output the cause
print("File error: " … errorString)
else
–write data to file
file:write(
roundedRectBoolText1.text, “\n”,
roundedRectBoolText2.text, “\n”,
roundedRectBoolText3.text, “\n”,
roundedRectBoolText4.text, “\n”,
“\n”,
roundedRectBoolText5.text, “\n”,
roundedRectBoolText6.text, “\n”,
roundedRectBoolText7.text, “\n”,
roundedRectBoolText8.text, “\n”,
“\n”,
roundedRectVarible1.text, “\n”,
roundedRectVarible2.text, “\n”,
“\n”,
roundedRectVarible5.text, “\n”,
roundedRectVarible6.text, “\n”,
“\n”,
roundedRectVarible3.text, “\n”,
roundedRectVarible4.text, “\n”,
“\n”,
commentInputBox.text, “\n”)
–close the file handle
io.close(file)
end
file = nil
resetAllFunction()
print(“Pressed and released!”)
end
handleBackButtonEvent(event)
end
local exportButton = widget.newButton
{
left = sWidth*0.80,
top = sHeight*0.90+sHeight,
width = sWidth*0.15,
height = sHeight*0.07,
defaultFile = “whiteButtonOff.png”,
overFile = “whiteButtonPressed.png”,
label = “Export”,
labelColor =
{
default = {0, 0 , 255},
over = {0, 0, 255},
},
onEvent = handleExportButtonEvent,
}
teleOpGroup:insert(exportButton)
[/lua]
I was wondering where my files are being stored on my android phone. I cant find them anywhere. If there is an alternate way to save files and then be able to open them up either by some sort of file directory app or something that would be great. I want to be able to export this file onto the phone. Find that file in the phone (preferably in the documents folder of my files) and then share that file via bluetooth to my computer. Hopefully I can get a conclusive answer because I really need something and I have been frustrated with it.
Thanks in advance!