Images are not displayed
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- Posts: 6
- Joined: Wed Sep 14, 2011 11:15 pm
Images are not displayed
Hi everybody. I have been testing LiveCode v4.6.4 lately and have the problem in the Android Simulator as well as the actual device itself that it doesn't show any images/pictures. I have made a mainstack with all the controls and they show up correctly, except when I use the "Image Area". If i place an image it doesn't show up, I have also tested it making it move across the screen at the press of a button, but still nothing shows up. In the simulator I just see the outline box of where the image should be as it moves, in the device I see nothing. I have also tried it with a static image, but get the same results. Haven't tried yet the "Quick Time Player".
So if anyone has any suggestions of what I could try please let me know.
So if anyone has any suggestions of what I could try please let me know.
-
- Livecode Opensource Backer
- Posts: 1336
- Joined: Sun Jul 12, 2009 10:53 am
- Location: Bordeaux, France
Re: Images are not displayed
Hi...
Do you want to post your code ?
Dixie
Do you want to post your code ?
Dixie
Re: Images are not displayed
Hi newlearning,
are these images imported or referenced?
If the latter then this might be a file path problem, how did you set the filename?
Best
Klaus
are these images imported or referenced?
If the latter then this might be a file path problem, how did you set the filename?
Best
Klaus
-
- Posts: 1201
- Joined: Sun Apr 24, 2011 2:17 am
Re: Images are not displayed
Welcome aboard.
Start here:
How-do-you-embed-an-image-in-a-stack-so-a-path-reference-is-not-needed-
http://lessons.runrev.com/s/lessons/m/4 ... ot-needed-
Then here:
How-do-you-display-an-image-by-dragging-it-on-to-a-stack-
http://lessons.runrev.com/s/lessons/m/4 ... o-a-stack-
Then use the search on the right for say: images
Get used to having a good look around the livecode lessons:
http://lessons.runrev.com/s/lessons
And using the search.
Targeting the novice, you'll find it faster getting the answers than posting on this forum.
---
Its one thing to embed the image into a LiveCode stack.
And another thing to retrieve the image from a file.
And its a different techniques for loading from different file structures
on Windows, OSX, or Android etc.
i.e. you have to understand the differences and not assume anything.
Which leads to different testing environments.
In deveopment, you use the file structure differently than when testing on a mobile device.
Once you want to start using folder structures in the different environments,
you need to have a good understanding of the specialFolderPath function.
You can find it in the LC IDE dictionary.
Its not easy to get you head around a first.
So be prepared to be frustrated.
The specialFolderPath does NOT work like you want it to.
Especially on Android.
Android file structure and how to use it is completely different than any other.
We're here when you need us.
Start here:
How-do-you-embed-an-image-in-a-stack-so-a-path-reference-is-not-needed-
http://lessons.runrev.com/s/lessons/m/4 ... ot-needed-
Then here:
How-do-you-display-an-image-by-dragging-it-on-to-a-stack-
http://lessons.runrev.com/s/lessons/m/4 ... o-a-stack-
Then use the search on the right for say: images
Get used to having a good look around the livecode lessons:
http://lessons.runrev.com/s/lessons
And using the search.
Targeting the novice, you'll find it faster getting the answers than posting on this forum.
---
Its one thing to embed the image into a LiveCode stack.
And another thing to retrieve the image from a file.
And its a different techniques for loading from different file structures
on Windows, OSX, or Android etc.
i.e. you have to understand the differences and not assume anything.
Which leads to different testing environments.
In deveopment, you use the file structure differently than when testing on a mobile device.
Once you want to start using folder structures in the different environments,
you need to have a good understanding of the specialFolderPath function.
You can find it in the LC IDE dictionary.
Its not easy to get you head around a first.
So be prepared to be frustrated.
The specialFolderPath does NOT work like you want it to.
Especially on Android.
Android file structure and how to use it is completely different than any other.
We're here when you need us.
All my best,
Barry G. Sumpter
Deving on WinXP sp3-32 bit. LC 5.5 Professional Build 1477
Android/iOS/Server Add Ons. OmegaBundle 2011 value ROCKS!
2 HTC HD2 Latest DorimanX Roms
Might have to reconsider LiveCode iOS Developer Program.
Barry G. Sumpter
Deving on WinXP sp3-32 bit. LC 5.5 Professional Build 1477
Android/iOS/Server Add Ons. OmegaBundle 2011 value ROCKS!
2 HTC HD2 Latest DorimanX Roms
Might have to reconsider LiveCode iOS Developer Program.
-
- Posts: 6
- Joined: Wed Sep 14, 2011 11:15 pm
Re: Images are not displayed
Thanks to all the people who responded. I see that I still have to learn a lot about LiveCode, but slowly I'm getting there with all your help.
BarrySumpter I appreciate the links you provided they were very helpful and will keep them for future reference, I'll have to get a little used to finding info on the site.
Once again thanks everybody for the help, it really makes a difference when you're new, but know you can ask for help.
BarrySumpter I appreciate the links you provided they were very helpful and will keep them for future reference, I'll have to get a little used to finding info on the site.
Once again thanks everybody for the help, it really makes a difference when you're new, but know you can ask for help.
-
- VIP Livecode Opensource Backer
- Posts: 243
- Joined: Sun Dec 06, 2009 12:24 am
- Location: Fredericktown, MO
- Contact:
Re: Images are not displayed
Barry et al.
Quoting Barry...
Is there something we should know about Android that may not be obvious?
Many thanks,
Todd
Quoting Barry...
How so? I am also running into issues with referenced images... they do not display in Android devices, but do appear in iOS devices and IDE.The specialFolderPath does NOT work like you want it to.
Especially on Android.
Android file structure and how to use it is completely different than any other.
Is there something we should know about Android that may not be obvious?
Many thanks,
Todd
-
- Posts: 1201
- Joined: Sun Apr 24, 2011 2:17 am
Re: Images are not displayed
I'm thinkg you need to first find the actual image on your android device first.
You can use a 3rd party tool like File Expert to browse around to find the file and see its folder.
how-do-i-get-the-path-to-common-folders-on-my-computer:
http://lessons.runrev.com/s/lessons/m/4 ... y-computer
how-can-i-get-the-path-to-the-folder-a-stack-file-resides-in:
http://lessons.runrev.com/s/lessons/m/4 ... resides-in
how-do-i-get-an-image-from-my-mobile-photo-library:
http://lessons.runrev.com/s/lessons/m/4 ... to-library
finding files: I've uploaded a sample app
http://forums.runrev.com/viewtopic.php? ... 143#p45143
I just posted a working project that uses the mobilePickPhoto command that I got to work in only 1 out of 12 test apps.
I see if I can find it. If not I'll return and post it again here.
You can use a 3rd party tool like File Expert to browse around to find the file and see its folder.
how-do-i-get-the-path-to-common-folders-on-my-computer:
http://lessons.runrev.com/s/lessons/m/4 ... y-computer
how-can-i-get-the-path-to-the-folder-a-stack-file-resides-in:
http://lessons.runrev.com/s/lessons/m/4 ... resides-in
how-do-i-get-an-image-from-my-mobile-photo-library:
http://lessons.runrev.com/s/lessons/m/4 ... to-library
finding files: I've uploaded a sample app
http://forums.runrev.com/viewtopic.php? ... 143#p45143
I just posted a working project that uses the mobilePickPhoto command that I got to work in only 1 out of 12 test apps.
I see if I can find it. If not I'll return and post it again here.
Last edited by BarrySumpter on Mon Apr 02, 2012 11:46 pm, edited 2 times in total.
All my best,
Barry G. Sumpter
Deving on WinXP sp3-32 bit. LC 5.5 Professional Build 1477
Android/iOS/Server Add Ons. OmegaBundle 2011 value ROCKS!
2 HTC HD2 Latest DorimanX Roms
Might have to reconsider LiveCode iOS Developer Program.
Barry G. Sumpter
Deving on WinXP sp3-32 bit. LC 5.5 Professional Build 1477
Android/iOS/Server Add Ons. OmegaBundle 2011 value ROCKS!
2 HTC HD2 Latest DorimanX Roms
Might have to reconsider LiveCode iOS Developer Program.
-
- VIP Livecode Opensource Backer
- Posts: 243
- Joined: Sun Dec 06, 2009 12:24 am
- Location: Fredericktown, MO
- Contact:
Re: Images are not displayed
Barry:
Hilarious! Thanks for the link, but I am using this already and feel like I have a pretty good grasp.
You stated that this does NOT work on Android, but you pointed to this resource?
I am referencing images using (specialFolderPath("engine") & "/assets/"), where assets is an added folder in the standalone settings... iOS finds them, the IDE finds them, but Android doesn't...
?
:Todd
Hilarious! Thanks for the link, but I am using this already and feel like I have a pretty good grasp.
You stated that this does NOT work on Android, but you pointed to this resource?
I am referencing images using (specialFolderPath("engine") & "/assets/"), where assets is an added folder in the standalone settings... iOS finds them, the IDE finds them, but Android doesn't...
?
:Todd
-
- Posts: 1201
- Joined: Sun Apr 24, 2011 2:17 am
Re: Images are not displayed
A few questions I've been asking myself over the last few days of working with Android Folders n Files.
Using the File Expert does my assests folder exist?
Do the images exist on that assets folder?
Whats the exact path from File Expert.
Whats the exact path in LC for Android I am using to get to the assests folder.
Whats the exact path in LC for Android I am using to get to the image files.
This one gets me every time:
Don't guess. Don't assume. use Answer myPathAndFileName.
Whats the exact command I am using to do whatever to that image file?
What type of image am I using.
hth and here if you need me.
Using the File Expert does my assests folder exist?
Do the images exist on that assets folder?
Whats the exact path from File Expert.
Whats the exact path in LC for Android I am using to get to the assests folder.
Whats the exact path in LC for Android I am using to get to the image files.
This one gets me every time:
Don't guess. Don't assume. use Answer myPathAndFileName.
Whats the exact command I am using to do whatever to that image file?
What type of image am I using.
hth and here if you need me.
All my best,
Barry G. Sumpter
Deving on WinXP sp3-32 bit. LC 5.5 Professional Build 1477
Android/iOS/Server Add Ons. OmegaBundle 2011 value ROCKS!
2 HTC HD2 Latest DorimanX Roms
Might have to reconsider LiveCode iOS Developer Program.
Barry G. Sumpter
Deving on WinXP sp3-32 bit. LC 5.5 Professional Build 1477
Android/iOS/Server Add Ons. OmegaBundle 2011 value ROCKS!
2 HTC HD2 Latest DorimanX Roms
Might have to reconsider LiveCode iOS Developer Program.
-
- VIP Livecode Opensource Backer
- Posts: 243
- Joined: Sun Dec 06, 2009 12:24 am
- Location: Fredericktown, MO
- Contact:
Re: Images are not displayed
Thanks for the response!
I wasn't able to locate ANYTHING using File Expert that had to do with my app. I know it's there, it shows up in the My Apps section of File Expert.
That said, I did unzip the .apk to take a look inside...
Strange...
Seems there is an "assets" folder into which my "assets" folder has been copied... and yes, all my assets are there, except the fonts folder within my assets folder has been yanked out and placed one level higher, leaving my fonts folder empty... other subfolders remain untouched...
Is this a LC build bug for Android, I wonder?
:Todd
I wasn't able to locate ANYTHING using File Expert that had to do with my app. I know it's there, it shows up in the My Apps section of File Expert.
That said, I did unzip the .apk to take a look inside...
Strange...
Seems there is an "assets" folder into which my "assets" folder has been copied... and yes, all my assets are there, except the fonts folder within my assets folder has been yanked out and placed one level higher, leaving my fonts folder empty... other subfolders remain untouched...
Is this a LC build bug for Android, I wonder?
:Todd
-
- Posts: 1201
- Joined: Sun Apr 24, 2011 2:17 am
Re: Images are not displayed
Sincerest apologies!
Please use File expert or Root Explorer
to browse
phone internal storage/Data/Data path for your
com.yourCompany.yourApp folder (from standlone settings | android | Identifier).
There is also the special folder path to "documents" that should have your assests folder on.
The app folder is protected by android and you can't modify it.
The documents folder you can.
Else in 5.5 set the Install Location to Prefer External Storage.
Which should place everthing on SD card. (test once by me seemed to work ok at the time)
You can also use one of the examples I hyperlinked to above to display the app folder name and documents folder name on android. I uploaded a sample app that you might have to edit as it was a card on another app that I extracted but didn't test.
hth
Please use File expert or Root Explorer
to browse
phone internal storage/Data/Data path for your
com.yourCompany.yourApp folder (from standlone settings | android | Identifier).
There is also the special folder path to "documents" that should have your assests folder on.
The app folder is protected by android and you can't modify it.
The documents folder you can.
Else in 5.5 set the Install Location to Prefer External Storage.
Which should place everthing on SD card. (test once by me seemed to work ok at the time)
You can also use one of the examples I hyperlinked to above to display the app folder name and documents folder name on android. I uploaded a sample app that you might have to edit as it was a card on another app that I extracted but didn't test.
hth
All my best,
Barry G. Sumpter
Deving on WinXP sp3-32 bit. LC 5.5 Professional Build 1477
Android/iOS/Server Add Ons. OmegaBundle 2011 value ROCKS!
2 HTC HD2 Latest DorimanX Roms
Might have to reconsider LiveCode iOS Developer Program.
Barry G. Sumpter
Deving on WinXP sp3-32 bit. LC 5.5 Professional Build 1477
Android/iOS/Server Add Ons. OmegaBundle 2011 value ROCKS!
2 HTC HD2 Latest DorimanX Roms
Might have to reconsider LiveCode iOS Developer Program.
-
- VIP Livecode Opensource Backer
- Posts: 243
- Joined: Sun Dec 06, 2009 12:24 am
- Location: Fredericktown, MO
- Contact:
Re: Images are not displayed
Have verified that it is duplicating my folder structure as mentioned in previous post...
I think this is a build bug!
:Todd
I think this is a build bug!
:Todd
-
- Posts: 1201
- Joined: Sun Apr 24, 2011 2:17 am
Re: Images are not displayed
Perhaps its the way in which the folder structure is being defined in the Standalone Settings | Copy Files?
Last edited by BarrySumpter on Tue Apr 03, 2012 1:13 am, edited 1 time in total.
All my best,
Barry G. Sumpter
Deving on WinXP sp3-32 bit. LC 5.5 Professional Build 1477
Android/iOS/Server Add Ons. OmegaBundle 2011 value ROCKS!
2 HTC HD2 Latest DorimanX Roms
Might have to reconsider LiveCode iOS Developer Program.
Barry G. Sumpter
Deving on WinXP sp3-32 bit. LC 5.5 Professional Build 1477
Android/iOS/Server Add Ons. OmegaBundle 2011 value ROCKS!
2 HTC HD2 Latest DorimanX Roms
Might have to reconsider LiveCode iOS Developer Program.
-
- VIP Livecode Opensource Backer
- Posts: 243
- Joined: Sun Dec 06, 2009 12:24 am
- Location: Fredericktown, MO
- Contact:
Re: Images are not displayed
I have posed the question on the developer list... are you a member there?
Whoa! You have a lot of posts here
:Todd
Whoa! You have a lot of posts here
:Todd
-
- Posts: 1201
- Joined: Sun Apr 24, 2011 2:17 am
Re: Images are not displayed
Just tested my own app that uses copy files with LC 5.5.
All ok.
All ok.
All my best,
Barry G. Sumpter
Deving on WinXP sp3-32 bit. LC 5.5 Professional Build 1477
Android/iOS/Server Add Ons. OmegaBundle 2011 value ROCKS!
2 HTC HD2 Latest DorimanX Roms
Might have to reconsider LiveCode iOS Developer Program.
Barry G. Sumpter
Deving on WinXP sp3-32 bit. LC 5.5 Professional Build 1477
Android/iOS/Server Add Ons. OmegaBundle 2011 value ROCKS!
2 HTC HD2 Latest DorimanX Roms
Might have to reconsider LiveCode iOS Developer Program.