Image / Video paths in database for Android tablet 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
jim1001
Posts: 143
Joined: Fri Jan 29, 2016 6:25 pm

Image / Video paths in database for Android tablet app

Post by jim1001 » Mon Mar 21, 2016 2:05 am

I've been asked by a researcher to develop an Android tablet application that allows users to view images & videos they have taken with the tablet and optionally label them as a favourite or as “special”.

The researcher also wants to pre-load videos onto the tablet from an external source which will be displayed as a separate “album” to the images & videos taken by the user. The user should also be able to label these pre-loaded videos as favourite or “special”.

I was thinking to create the app using a database & rather than storing the full binary data of each image/video in the database (as in LiveCode App Building Course Photos App #9) only store the paths to the images/videos there.

Does that sound reasonable/possible?

Any help/advice appreciated.

Thanks,
Jim

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

Re: Image / Video paths in database for Android tablet app

Post by MaxV » Wed Mar 23, 2016 2:00 am

Livecode Wiki: http://livecode.wikia.com
My blog: https://livecode-blogger.blogspot.com
To post code use this: http://tinyurl.com/ogp6d5w

jim1001
Posts: 143
Joined: Fri Jan 29, 2016 6:25 pm

Re: Image / Video paths in database for Android tablet app

Post by jim1001 » Thu Mar 24, 2016 7:04 pm

Thank you MaxV. Looks like a lot of useful information on this Livecode Wiki - sure I"ll be using it again :D

Best wishes,
Jim

okk
Posts: 178
Joined: Wed Feb 04, 2015 11:37 am

Re: Image / Video paths in database for Android tablet app

Post by okk » Sun Mar 27, 2016 5:58 pm

Hi,
is there a special folderpath to images that were taken with different camera applications? If I understood correctly in Android images are in most cases stored in a special image folder? Let's assume I want to make an app which can browse all image files on that phone, where should i start looking? In an android forum it was suggested: "For internal phone storage, the directory is /mnt/sdcard/DCIM/Camera. For the external SD card, the directory is /mnt/sdcard-ext/DCIM/Camera." In other forums I read that the filepath for external SD card is /mnt/sdcard2/DCIM/Camera. It feels always risky to hardcode filepaths into the app, so something like specialFolderPath("images") and specialFolderPath("imagesexternal") would be great.

Thanks!
Oliver

Post Reply