External zip file for photos

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

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
jessamy99
Posts: 103
Joined: Thu Oct 25, 2012 3:23 pm

External zip file for photos

Post by jessamy99 » Tue Aug 13, 2013 6:13 pm

Dear Ender and team,

I have built an app for iphone, and am now ready to complete the build for Android.
I tried to upload the app to the Google play store, but I got the error that it was too large.
So, the photos need to be uploaded in a separate zip file.

Has anyone done this, and if so, please could you give me a simple step by step on how to do it.

I have uploaded another smaller app successfully, so there is no problem in that respect.

I always appreciate how helpful you guys are.

Thanking you in advance,
Jessamy.

PS. Do the old soldiers like myself who already bought LiveCode before open source get "Veteran" by our names? :)

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: External zip file for photos

Post by Mark » Thu Aug 15, 2013 9:53 am

Hi,

You might want to download the photos as the user watches them. Add a circular progress indicator to your interface, which indicates that the photos are being downloaded. Save the photos in the documents folder on the device. This way, the user only needs to wait a short time once for each photo.

Only those who work with xTalk languages since before 1987 get the predicate "veteran" ;-)

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

jessamy99
Posts: 103
Joined: Thu Oct 25, 2012 3:23 pm

Re: External zip file for photos

Post by jessamy99 » Sun Aug 18, 2013 8:24 pm

Thankyou Mark!

I might try that.
At the moment I am still working on an expansion media file which is copied to the device.
It probably ends up the same.

I will post any success I have with the expansion file.

All the best,
Jessamy.

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

Re: External zip file for photos

Post by Simon » Sun Aug 18, 2013 9:11 pm

Zipping an image file probably wont save you much space. jpg png are already compressed :)
I'd go with downloading and storing them in the documents folder.

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

jessamy99
Posts: 103
Joined: Thu Oct 25, 2012 3:23 pm

Re: External zip file for photos

Post by jessamy99 » Fri Aug 23, 2013 3:14 pm

Thankyou Simon.

Do you know whether I have to sign my photo folder with keytool, or can I just make it into an obb file with the jobb.bat tool?

Best wishes,

Jessamy.

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

Re: External zip file for photos

Post by Simon » Fri Aug 23, 2013 6:11 pm

I haven't seen a direct request for keytool signing.
Have you tested that LC can decode a obb file? They will take just plain zip files.
And have you optimized your images? Over 50 MB is a lot for a mobile device.
This is the fish thing right? How many images do you have?

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

jessamy99
Posts: 103
Joined: Thu Oct 25, 2012 3:23 pm

Re: External zip file for photos

Post by jessamy99 » Sat Aug 24, 2013 12:21 am

Dear Simon,

I have 189 images.

I have built the app with LiveCode and it runs beautifully on iphone, ipad, windows and mac.
My difficulty is just finding out how to upload the photo folder as an external to Google play store, for Android.

I am sure there is a way.

I have solved the keystore, and signed the main program.
I have zipaligned it successfully.

But, although I have found out how to work the jobb.bat tool, I am having difficulty uploading the photo folder.

There was no problem in uploading version 1, and then uploading version 2, which gave me the option of adding an expansion file.

That is as far as I have got!!

I hope to solve this in the next few days.

If you have any good ideas I would really appreciate them.

All the best,
Jessamy.

Update...

Dear Simon and Mark,

I have solved the problem by using jpgs instead of pngs.
This has made my program much smaller and I will not need an expansion file. :)

Thankyou for your support!

With best wishes,
Jessamy.

JackD
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 28
Joined: Sat Mar 14, 2009 3:17 am
Location: Olympia, WA USA

Re: External zip file for photos

Post by JackD » Tue May 06, 2014 8:41 pm

Has anyone had success with loading an expansion file? I am trying to port an iOS app that has 1200 pictures and there is no way to get it below the 50 MB limit. I had not realized this was a problem until today. :(
27" iMac, OS X 10.13
iPad 3, iPad Pro, iPhone 4s, iPhone 6, LG Optimus L9 phone, Samsung Galaxy Camera
LiveCode 8.1.9

Post Reply

Return to “Android Deployment”