Viewing Large Images - Android

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

Moderators: Klaus, FourthWorld, heatherlaine, kevinmiller, robinmiller

Post Reply
Googie85
Posts: 147
Joined: Tue Aug 05, 2014 10:07 am

Viewing Large Images - Android

Post by Googie85 » Wed Jun 03, 2020 12:58 pm

Hi Guys,

I have solved my last problem and I am unsure of how to delete the post as it is now unnecessary. I'm just going to throw this next question out there to see what my options are. I have a large image resolution size (1920 X 1080) and I want to display it on a mobile phone display. Could I use a Browser widget so that I can "pinch to zoom"? Or could I launch the Gallery viewer on my phone so that I could pinch to zoom with that app?

Just after a few suggestions on which route I could take to view the file on a smaller screen...

Many Thanks,

Googie.

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

Re: Viewing Large Images - Android

Post by Klaus » Wed Jun 03, 2020 1:02 pm

Hi Googie,

yes, using a browser for this should automatically supply the "pinch zoom" feature on mobile!


Best

Klaus

Googie85
Posts: 147
Joined: Tue Aug 05, 2014 10:07 am

Re: Viewing Large Images - Android

Post by Googie85 » Wed Jun 03, 2020 1:10 pm

Thanks Klaus!!!

How would I load it into the browser?

File:specialfolderpath(resources) & slash & "image.jpeg"

or just,

specialfolderpath(resources) & slash & "image.jpeg"

or is there another way I should be aware of, because I'm pretty sure I have tried both of those. Will be home soon and will try again.

Many Thanks,

Googie.

Googie85
Posts: 147
Joined: Tue Aug 05, 2014 10:07 am

Re: Viewing Large Images - Android

Post by Googie85 » Wed Jun 03, 2020 1:13 pm

I'm thinking that the browser can only access the files in the phone's storage file system and not "specialfolderpath(resources) & slash & "image.jpeg"" would I be correct?

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

Re: Viewing Large Images - Android

Post by Klaus » Wed Jun 03, 2020 1:15 pm

Hii Googie,

create a browser and set its URL:

Code: Select all

...
## we need to create a valid URL for the file:
put "file://" & specialfolderpath(resources) & "/image.jpeg" into tImage

## URLS do not like SPACES, so we need to avoid them:
replace " " with "%20" in tImage
set the url of browser "your browser widget here..." to tImage
...
I'm thinking that the browser can only access the files in the phone's storage file system and not "specialfolderpath(resources) & slash & "image.jpeg"" would I be correct?
No. :-)
Otherwise we could not use any files/folders that we add via the "Copy files" tab in the "Standalone Application Settings" in our runtimes!

Best

Klaus

Googie85
Posts: 147
Joined: Tue Aug 05, 2014 10:07 am

Re: Viewing Large Images - Android

Post by Googie85 » Wed Jun 03, 2020 1:22 pm

Thanks Klaus your awesome!!!

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

Re: Viewing Large Images - Android

Post by Klaus » Wed Jun 03, 2020 1:31 pm

My awesome? :shock:

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

Re: Viewing Large Images - Android

Post by Klaus » Wed Jun 03, 2020 1:37 pm

Oh, you mean you ARE, right? Isn't that abbreviated correctly to -> you're
Or did they change that recently? 8)

Post Reply

Return to “Android Deployment”