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: Klaus, FourthWorld, heatherlaine, kevinmiller

Post Reply
MikeLima
Posts: 4
Joined: Sun Jun 18, 2017 3:28 pm

Android Images not showing

Post by MikeLima »

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: 14325
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Android Images not showing

Post by Klaus »

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 »

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 »

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: 1580
Joined: Tue May 28, 2013 2:20 pm
Contact:

Re: Android Images not showing

Post by MaxV »

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