Access Internal Storage folders on Android device?

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
Kelvin Chua
Posts: 31
Joined: Tue Aug 26, 2014 7:36 am

Access Internal Storage folders on Android device?

Post by Kelvin Chua » Thu Sep 04, 2014 5:14 am

Hi Gurus,

Is it possible to access folders created within the Internal Storage area?

I would like to simply write into the device's Internal Storage from Windows network, updating the deliveries from Windows application into a sqlite database located within Internal Storage folder /dailydeliveries/system.data.

Possible?

Thanks.

Kelvin Chua
SINGAPORE
Last edited by Kelvin Chua on Thu Sep 04, 2014 7:36 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
Location: Palo Alto

Re: Possible to access Internal Storage folders?

Post by Simon » Thu Sep 04, 2014 6:26 am

Hi Kelvin,
Can you drag and drop a file into this Internal Storage area dailydeliveries/system.data?
If so then you can.

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

Kelvin Chua
Posts: 31
Joined: Tue Aug 26, 2014 7:36 am

Re: Possible to access Internal Storage folders?

Post by Kelvin Chua » Thu Sep 04, 2014 6:44 am

Hi Simon,

Yes, I dragged and dropped the system.data into the /dailydeliveries/ folder.

But... unable to read the system.data with all possible specialFolderPath("/mnt/sdcard/dailydeliveries/") & "/System.data"...

What should I place under specialFolderPath?

Thanks.

Kelvin Chua
SINGAPORE

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

Re: Possible to access Internal Storage folders?

Post by Simon » Thu Sep 04, 2014 6:50 am

There is no specialFolderPath("/mnt/sdcard/dailydeliveries/")
From the dictionary;
For Android systems:
• engine - The (virtual) path to the engine and its assets.
• documents - The path to a folder that can be used for per-application data files.
• cache - The path to a folder that can be used for transient per-application data files.
So remove specialFolderPath


Simon
EDIT; And you should say when you are working on mobile and not using the Android or iOS forums.
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

Kelvin Chua
Posts: 31
Joined: Tue Aug 26, 2014 7:36 am

Re: Access Internal Storage folders on Android device?

Post by Kelvin Chua » Thu Sep 04, 2014 7:38 am

Hi Simon,

OK, now I can create, read and write onto the Internal Storage folders.

Using Astro, I can see the System.data created.

But... when accessing the device with Windows explorer, only .APK files are displayed.

If I were to change the System.data to System.apk, it is also displayed.

Wonder what have I missed.

Thanks again.

Kelvin Chua
SINGAPORE

Kelvin Chua
Posts: 31
Joined: Tue Aug 26, 2014 7:36 am

RESOLVED - Access Internal Storage folders on Android device

Post by Kelvin Chua » Thu Sep 04, 2014 8:25 am

Hi Simon,

Now I can access and write according to my needs.

Case closed.

Thanks.

Kelvin Chua
SINGAPORE

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

Re: Access Internal Storage folders on Android device?

Post by Simon » Thu Sep 04, 2014 8:33 am

Good to hear.

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

Post Reply

Return to “Getting Started with LiveCode - Complete Beginners”