specialfolderpath() SOLVED!. :))

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

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
snop21
Posts: 90
Joined: Mon Jan 20, 2014 2:54 pm

specialfolderpath() SOLVED!. :))

Post by snop21 » Thu Mar 06, 2014 9:57 am

Good Day livecoders,

Guys, I am trying to create a database on my android device "Acer iconia B1" I used this script    

------ > put specialFolderPath("/storage/sdcard1") & "/cbms.db" into tDatabasePath

but I got error message, I can't create the database

I already checked the application permission in the standalone setting.

what's wrong with my code, guys?

Thank you.

Regards
-snop21
Last edited by snop21 on Thu Mar 20, 2014 10:18 am, edited 1 time in total.

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: specialpathfolder()

Post by Simon » Thu Mar 06, 2014 11:08 am

Hi snop21,
There are only a few specialFolderPath/s and you cannot just create them. :)
Look in the dictionary.

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

snop21
Posts: 90
Joined: Mon Jan 20, 2014 2:54 pm

Re: specialpathfolder()

Post by snop21 » Thu Mar 06, 2014 11:13 am

Hello Simon,

Thanks for the reply.. :))

I checked it already in the dictionary.. Can't use that..! :(

is there any other way to make a sqlite database on the SD card..?

Thank you.

Regards

-snop21

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: specialpathfolder()

Post by Simon » Thu Mar 06, 2014 11:51 am

Hi snop21,
Have you tested what happens when you just use specialFolderPath("documents") and the user moves the app to the sd card?? :)
Install Location>Allow External Storage

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

Klaus
Posts: 14199
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: specialpathfolder()

Post by Klaus » Thu Mar 06, 2014 1:44 pm

snop21 wrote:I checked it already in the dictionary.. Can't use that..! :(
:shock:

Could you please explain this a little more, thanks. 8)

snop21
Posts: 90
Joined: Mon Jan 20, 2014 2:54 pm

Re: specialpathfolder()

Post by snop21 » Wed Mar 19, 2014 6:24 pm

Simon,

I tried it to install it with my andriod device. I set Allow external but I can't still find the database file which is .db.. :(

Klaus,

I was using specialfolder("documents") I want to save my database file into the sd card but i still can't see it.. :(

Klaus
Posts: 14199
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: specialfolderpath() ##specialpathfolder()

Post by Klaus » Thu Mar 20, 2014 8:52 am

Just changed the subject! 8)

Post Reply