App not working in Android

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
newpie
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 155
Joined: Sat Jun 29, 2013 11:24 pm

App not working in Android

Post by newpie » Fri Sep 09, 2016 10:00 pm

Hello, I was researching the forum and I found a 2013 app (called seaFauna) from page:

http://forums.livecode.com/viewtopic.ph ... 98&p=74145

I tested in android emulator and it works fine. When I upload it to my android tablet it just shows blank app page with no pictures.

Does anyone know how I can diagnose the problem or if you know the issue please let me know. Thanks

My tablet has Android version 4.4.2

Thanks
Attachments
seaFauna.zip
(82.02 KiB) Downloaded 205 times

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7393
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: App not working in Android

Post by jacque » Sat Sep 10, 2016 4:07 pm

Are the images embedded in the stack or stored separately on disk? If on disk, be sure they are included in the Copy Files pane of the standalone settings.

Otherwise, what Android version are you building for? Try changing the minimum build to honeycomb or later. Make sure the build tools in the Android SDK are up to date.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

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

Re: App not working in Android

Post by Klaus » Sat Sep 10, 2016 4:34 pm

Hi newpie,

I think you have added the folder "theContent" via the "Copy files" tab in the standalone builder settings?
If yes, then this is not correct and causes the missing images:

Code: Select all

...
##  if the environment is "mobile" then
##      put specialFolderPath("cache") into tLoc
##   else
...
Instead you'll find you data here:

Code: Select all

...
  if the environment is "mobile" then
      put specialFolderPath("resources") into tLoc
   else
...
Best

Klaus

newpie
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 155
Joined: Sat Jun 29, 2013 11:24 pm

Re: App not working in Android

Post by newpie » Sat Sep 10, 2016 5:07 pm

Hello,

@jacque - Thanks for replying. The zip file I attached was how it came to me from download. It seems the images are stored separately and in the "copy files" pane. The Android version was the lowest selection in the settings. Other apps I created do work so I believe the SDK is ok.

@Klause -Yes the theContent was in the copy files tab. From what I can tell the initial goal of the script is to copy the data into the cache memory so the user could submit to apple as the other way was being denied due to space issues.

I will look at your suggestion, thanks.

Post Reply