Now I've got stuck!
I can not save a text file on my Android phone, I use:
set the defaultFolder to specialFolderPath ("documents")
put theList into URL ("file:kkguid3.txt")
But nothing happens, I can not see any file created on my phone, so I'm trying to load the file with:
set the defaultFolder to specialFolderPath ("documents")
put URL ("file:file:kkguid3.txt") into x
answer x
Then I get "false" in return
I have also tried to build a stand alone with LC 9 to use the remote debugger but that build crashes immediately at start up.
Is there anyone else who has had this problem with LC9 and Android?
What am I doing wrong?
///Peter
SpecialFolderPath on android
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- Posts: 136
- Joined: Fri Oct 14, 2011 6:53 am
SpecialFolderPath on android
/*Whats all the fuss with c# ?*/
-
- VIP Livecode Opensource Backer
- Posts: 2718
- Joined: Sat Dec 22, 2007 5:35 pm
- Location: Genève
- Contact:
Re: SpecialFolderPath on android
Hi Peter,
I'm not an androïd expert but probably
Best regards
Jean-Marc
I'm not an androïd expert but probably
Code: Select all
put specialFolderPath ("documents") & "/" & "kkguid3.txt" into tMyPath
put theList into URL ("file:" & tMyPath)
Jean-Marc
https://alternatic.ch
Re: SpecialFolderPath on android
On the loading part, you only need one file statement, like your first url -Peter@multidesk.se wrote:...
But nothing happens, I can not see any file created on my phone, so I'm trying to load the file with:Then I get "false" in returnCode: Select all
set the defaultFolder to specialFolderPath ("documents") put URL ("file:file:kkguid3.txt") into x answer x
Code: Select all
set the defaultFolder to specialFolderPath ("documents")
put URL ("file:kkguid3.txt") into x
answer x
-
- Posts: 136
- Joined: Fri Oct 14, 2011 6:53 am
Re: SpecialFolderPath on android
Thanks, to both of you
It is so self-explanatory that the entire pathway must be declared. Why could not I see that?
///Peter
It is so self-explanatory that the entire pathway must be declared. Why could not I see that?
///Peter
/*Whats all the fuss with c# ?*/
Re: SpecialFolderPath on android
Since this technique (setting the defaultfolder first) works on desktop it also SHOULD work on mobile, too!
If it doesn't, I would consider this a bug.
However, why messing around with the defaultfolder when we can provide an absolute pathname?
At least that is the maxim I am acting upon from the very beginning.
If it doesn't, I would consider this a bug.
However, why messing around with the defaultfolder when we can provide an absolute pathname?
At least that is the maxim I am acting upon from the very beginning.