Android Write and Read Files from stack
Posted: Sat Apr 22, 2017 6:33 pm
I'm trying to develop an app that runs on android and I'm testing the application on an Android Yoga Book.
I've problems to create files from the stack.
Each time I try I get in the result "can't open file".
I have downloaded the attached example from "How do I read/write to files on Mobile?" in livecode lessons.
But also with this stack I always get the same error.
the code for the button of the example is:
I have added the "answer the result" line to check the error.
What i am doing wrong ?
I've problems to create files from the stack.
Each time I try I get in the result "can't open file".
I have downloaded the attached example from "How do I read/write to files on Mobile?" in livecode lessons.
But also with this stack I always get the same error.
the code for the button of the example is:
Code: Select all
on mouseUp
set the defaultFolder to specialFolderPath("documents")
put field "write" into URL ("file:iphonetest.txt")
answer the result
end mouseUp
What i am doing wrong ?