Import and Export a data file to a mobile app?

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
DR White
Posts: 686
Joined: Fri Aug 23, 2013 12:29 pm
Location: Virginia, USA

Import and Export a data file to a mobile app?

Post by DR White » Mon May 31, 2021 5:38 pm

Ho do I Import and Export a data file to an iOS and Android mobile app?

Thanks,

David

glenn9
Posts: 223
Joined: Wed Jan 15, 2020 10:45 pm
Location: Europe

Re: Import and Export a data file to a mobile app?

Post by glenn9 » Mon May 31, 2021 10:29 pm

Hi David,

is this of help? viewtopic.php?f=7&t=35355

Kind regards,

Glenn

glenn9
Posts: 223
Joined: Wed Jan 15, 2020 10:45 pm
Location: Europe

Re: Import and Export a data file to a mobile app?

Post by glenn9 » Mon May 31, 2021 10:31 pm


DR White
Posts: 686
Joined: Fri Aug 23, 2013 12:29 pm
Location: Virginia, USA

Re: Import and Export a data file to a mobile app?

Post by DR White » Tue Jun 01, 2021 11:43 am

I still don't understand how to take a data file that was created on my phone app and export it using email (i know how to use email as part of my app).
Also, I still don't understand how to import a data file that was an attachment to an email received on my phone.

Thanks

Mikey
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 755
Joined: Fri Jun 27, 2008 9:00 pm

Re: Import and Export a data file to a mobile app?

Post by Mikey » Tue Jun 01, 2021 2:01 pm

Is email an important part of this workflow, or are you just trying to get a data file to and from your phone?

DR White
Posts: 686
Joined: Fri Aug 23, 2013 12:29 pm
Location: Virginia, USA

Re: Import and Export a data file to a mobile app?

Post by DR White » Tue Jun 01, 2021 4:31 pm

Yes. I would like to save a data file from my phone app to a desktop using email. And then, if I loose my data file on my phone app, I want to be able to import the file from my desktop using email.

Mikey
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 755
Joined: Fri Jun 27, 2008 9:00 pm

Re: Import and Export a data file to a mobile app?

Post by Mikey » Tue Jun 01, 2021 5:27 pm

I can't help with moving it via email, because we don't do it that way.
We typically do file transfers using dropbox.

DR White
Posts: 686
Joined: Fri Aug 23, 2013 12:29 pm
Location: Virginia, USA

Re: Import and Export a data file to a mobile app?

Post by DR White » Tue Jun 01, 2021 6:15 pm

ok let's use dropbox.

How do we do it?

Mikey
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 755
Joined: Fri Jun 27, 2008 9:00 pm

Re: Import and Export a data file to a mobile app?

Post by Mikey » Tue Jun 01, 2021 8:37 pm

LC has a dropbox library. The commands and functions are in the dictionary. When you are building your app, you make sure that it is in the inclusions.
You can use the library on your mobe and your desktop/server for exchanging files.
There are a bunch of examples floating around. There are probably lessons, and there are forum and Use list threads to check out.
I'm sure that there are also multiple wrapper libraries to take it to an even higher level.
If you have the LCG videos from a couple of years ago I'm pretty sure I did a session on using it (if I didn't, then please pretend I didn't just type that).
You have to go into the dropbox portal to generate an app key. Then you or your user(s) will have to authenticate your app's use of the dropbox account.
There are several/many of us that are using and doing this, so you should have no shortage of help as you get further along.

DR White
Posts: 686
Joined: Fri Aug 23, 2013 12:29 pm
Location: Virginia, USA

Re: Import and Export a data file to a mobile app?

Post by DR White » Tue Jun 01, 2021 9:02 pm

I searched for lessons on using dropbox and looked in the dictionary. I didn't find enough info for someone who has never implemented dropbox in an app. Maybe someone can share a simple example. Maybe it is too difficult for a novice programmer.

Thanks,

David

stam
Posts: 2679
Joined: Sun Jun 04, 2006 9:39 pm
Location: London, UK

Re: Import and Export a data file to a mobile app?

Post by stam » Wed Jun 02, 2021 12:04 am

Alternatively have a look at https://liveCloud.io
fairly simple to implement and there is a free tier for testing (and if you don't have a large amount of data you could just stick to that) and reasonable prices for higher capacity...

Post Reply

Return to “Getting Started with LiveCode - Complete Beginners”