03-25-2010 04:40 AM
I want to package my widget app with some images inside so that I can get images from phone to make the app run faster. Is it possible?
Solved! Go to Solution.
03-25-2010 08:49 AM
Are you referring to packaging up local images and then referencing those local images from pages that you remotely load into your widget?
If so, on the external content that you deliver to your widget you can use the "local:///" url for the images.
I'm trying to remember the exact paths, but I believe if you had say an image at the root of your widget called "foo.png", you would then use the image src="local:///foo.png". And if "foo.png" was in a directory in your widget called "images" you would use the image src="local:///images/foo.png"
Notice that there are 3 forward slashes in the local:/// syntax.
03-25-2010 09:23 PM
Thanks for your response..
Packaging means build up the app install this into blackberry phone. This works the same with the native app. Images are stored in the phone, the widget loads html page from web server and loads images from phone. My page looks like:
[ImageA] Item number 1
[ImageB] Item number 2
[ImageA] Item number 3
[ImageC] Item number 4
[ImageB] Item number 5
[ImageB] Item number 6
Note that some items have the same image (icon). Is this possible with widget? Or if there is an alternative way to load images faster, please tell me.
03-25-2010 10:01 PM
Yes, this is possible. The steps I outlined in my previous post for using the "local:///" url for the images in your web pages from the server will accomplish what you want.