ask/answer file

The place to discuss anything and everything about running your LiveCode on Android

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
MaxV
Posts: 1580
Joined: Tue May 28, 2013 2:20 pm
Contact:

ask/answer file

Post by MaxV »

Hello,
I noticed that ask file and answer file don't work on Android. What's their replacement on Android?
Livecode Wiki: http://livecode.wikia.com
My blog: https://livecode-blogger.blogspot.com
To post code use this: http://tinyurl.com/ogp6d5w
Klaus
Posts: 14324
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: ask/answer file

Post by Klaus »

Hi Max,

just like iOS, Android does not have a filesystem "per se" that you can let the user browse through.
And isn't Android also "sandboxed" somehow? Sorry, don't develop for Android.
That would prohibit this at all!


Best

Klaus
MaxV
Posts: 1580
Joined: Tue May 28, 2013 2:20 pm
Contact:

Re: ask/answer file

Post by MaxV »

:(
Ok, I'll write my file browser inside my app...
Do you know if I can force mobilePickMedia to choose .txt file?
Livecode Wiki: http://livecode.wikia.com
My blog: https://livecode-blogger.blogspot.com
To post code use this: http://tinyurl.com/ogp6d5w
Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: ask/answer file

Post by Mark »

Hi,

On Android, you'd make your own. There is a global property, systemFileSelector, which would apply here, but unfortunately according to the dictionary, you can't use this property on unix based systems, which Android belongs to. I'm not sure that the dictionary entry about the systemFileSelector is actually correct and you might try it, at the risk of wasting your time. I think that creating your own is the best option.

Klaus, Android isn't sandboxed like iOS. You have many more possibilities to access files on the device.

Kind regards,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
Klaus
Posts: 14324
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: ask/answer file

Post by Klaus »

Hi Mark,
Mark wrote:Klaus, Android isn't sandboxed like iOS. You have many more possibilities to access files on the device.
ah, thanks, I was not aware of this fact!


Best

Klaus
Post Reply