My app takes a long time to open

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

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
jorgecaballero
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 32
Joined: Mon Nov 26, 2012 6:07 pm

My app takes a long time to open

Post by jorgecaballero » Sun Feb 15, 2015 8:19 am

My app takes a long time to open and is heavy, 43 MB

It is a book of about 200 pages, with some images and music mp3.

That I can do to make it faster and lighter?



...

SparkOut
Posts: 2943
Joined: Sun Sep 23, 2007 4:58 pm

Re: My app takes a long time to open

Post by SparkOut » Sun Feb 15, 2015 8:42 am

How are the images and music stored? As part of the app file or as referenced assets?

jorgecaballero
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 32
Joined: Mon Nov 26, 2012 6:07 pm

Re: My app takes a long time to open

Post by jorgecaballero » Mon Feb 16, 2015 2:03 am

.

The images are part of the app, import to stack,
and the mp3 music are add in copy files.

Is the only way i know




...

ChrisMukrow
Posts: 73
Joined: Mon Nov 12, 2012 4:13 pm

Re: My app takes a long time to open

Post by ChrisMukrow » Mon Feb 16, 2015 2:21 pm

You can do the same for images, add images in the copy file section. Then create an empty image (ImageHolder) and reference to the "real" image by script:

Code: Select all

set the filename of image "ImageHolder" to specialFolderPath("engine") & "/images/1.jpg"

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

Re: My app takes a long time to open

Post by Klaus » Mon Feb 16, 2015 2:41 pm

Hola jorge,

better directly use relative pathnames for your images, too, no scripting neccessary, check this:
http://forums.livecode.com/viewtopic.ph ... es#p111641


Best

Klaus

Post Reply