Android Images not showing

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
MikeLima
Posts: 4
Joined: Sun Jun 18, 2017 3:28 pm

Android Images not showing

Post by MikeLima » Sun Jun 18, 2017 3:33 pm

Hi
I use local files in my puzzle app to be loaded dynamically (set filename). It works great in IDE, but on Android I get only empty images.
I read something about specific folders, but can't make it work. I also set "copy referenced files" to true, but I can't make it.

Can someone point me to the right tutorial, document or whatever to help me solve this ?

Help appreciated
MikeLima

Klaus
Posts: 13820
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: Android Images not showing

Post by Klaus » Sun Jun 18, 2017 4:14 pm

Hi Mike,

1. welcome to the forum! :D

2. What did you try/script so far to set the filename?

3. Do you add your images via the standalone builder settings "Copy files..." tab?
If yes, you will find all your files/images in -> specialfolderpath("resources")
...
set the filename of img 1 to (specialfolderpath("resources") & "/cool_image.jpg")
...


Best

Klaus

capellan
Posts: 654
Joined: Wed Aug 15, 2007 11:09 pm

Re: Android Images not showing

Post by capellan » Sun Jun 18, 2017 10:57 pm

Hi Mike,

Check if these APK and Compressed stack files (posted in a previous forum message)
could help in your Android development:
http://forums.livecode.com/viewtopic.php?f=53&t=29207

Tell me if these files works fine in your own setup.

Al

RamaVerma
Posts: 4
Joined: Mon Nov 06, 2017 1:24 pm

Re: Android Images not showing

Post by RamaVerma » Mon Nov 06, 2017 2:08 pm

Hi Mike,

I faced a similar issue, as earlier the image was not showing.
Please check the size of the image, and incase its too large, ensure to cut it short to fit in the right pixel dimensions. Or else change your imageview. Recheck your XML file. You may check out various android tutorial and search for the right tutorial, which can answer your query definitely. There are some tutorials which answer the image related problem you mention.
- Private Consultant (Technology)

MaxV
Posts: 1579
Joined: Tue May 28, 2013 2:20 pm
Location: Italy
Contact:

Re: Android Images not showing

Post by MaxV » Fri Dec 01, 2017 1:43 pm

MikeLima wrote:
Sun Jun 18, 2017 3:33 pm
Can someone point me to the right tutorial, document or whatever to help me solve this ?
http://livecode.wikia.com/wiki/Saving_files_on_Android
Livecode Wiki: http://livecode.wikia.com
My blog: https://livecode-blogger.blogspot.com
To post code use this: http://tinyurl.com/ogp6d5w

Post Reply

Return to “Getting Started with LiveCode - Complete Beginners”