R/W external sdcard?
Posted: Wed Jul 10, 2013 2:00 am
Hi all,
I already had JKD and ADT up and running. I sort of enjoyed configuring LiveCode to use the android emulator from Eclipse, and that's when the fun began.
I'm able to read/write files to Windows desktop but not my Samsung Moment sdcard.
'As is' the the code listed below launches on my phone but no files open, a path related issue.
When I replace each instance of 'desktop' with '/sdcard/documents' I get a blank black screen on the phone and the emulator.
Yes, 'Write External Storage' is checked in Standalone Application Settings.
Any and all Android specific pointers will be appreciated.
LiveCode Lessons » How To - Step-By-Step Guides To Tasks In LiveCode » File Input/Output excerpt:
on preOpenStack
put empty into fld "Shakespeare" -- initializes empty field
end preOpenStack
on openStack -- This creates the text file on the desktop that we will later read into a stack's text field.
open file specialFolderPath("desktop") & "/SetUp.txt" for write
put "Let me not to the marriage of true minds admit impediments." into myText
write myText to file specialFolderPath("desktop") & "/SetUp.txt"
close file specialFolderPath("desktop") & "/SetUp.txt"
end openStack
I already had JKD and ADT up and running. I sort of enjoyed configuring LiveCode to use the android emulator from Eclipse, and that's when the fun began.
I'm able to read/write files to Windows desktop but not my Samsung Moment sdcard.
'As is' the the code listed below launches on my phone but no files open, a path related issue.
When I replace each instance of 'desktop' with '/sdcard/documents' I get a blank black screen on the phone and the emulator.
Yes, 'Write External Storage' is checked in Standalone Application Settings.
Any and all Android specific pointers will be appreciated.
LiveCode Lessons » How To - Step-By-Step Guides To Tasks In LiveCode » File Input/Output excerpt:
on preOpenStack
put empty into fld "Shakespeare" -- initializes empty field
end preOpenStack
on openStack -- This creates the text file on the desktop that we will later read into a stack's text field.
open file specialFolderPath("desktop") & "/SetUp.txt" for write
put "Let me not to the marriage of true minds admit impediments." into myText
write myText to file specialFolderPath("desktop") & "/SetUp.txt"
close file specialFolderPath("desktop") & "/SetUp.txt"
end openStack