Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Web and WebWorks Development

Reply
Contributor
harshadkale
Posts: 10
Registered: ‎06-22-2010
My Device: all

Widget size limit

Hi all,

 

I'm developing an app for BlackBerry using Visual Studio with the plugin.

 

As I observed when the size of thew .zip file goes beyond 6.5MB or something around it, the app does not run.

 

Is there any such size limit?

 

My app has many multimedia contents. Can I put the contents somewhere else and access them as per needed through the code?

 

Please let me know. If you need more clarification, you can mail me too.

harshad.kale@gmail.com

 

Thanks in advance.

 

- Harshad.

Retired
tneil
Posts: 3,708
Registered: ‎10-16-2008
My Device: Z10
My Carrier: Rogers

Re: Widget size limit

A BlackBerry application has a file size limit of 7MB

 

You can dynamically download the multi-media files to the device via wireless if that works for your situation.

Tim Neil
Director, Application Platform & Tools Product Management
Follow me on Twitter
Contributor
harshadkale
Posts: 10
Registered: ‎06-22-2010
My Device: all

Re: Widget size limit

I am creating an offline application. It will not be using web based resources.

And thus, I need to have all those resources on the device.

 

Can i access the resources on the memory card in the widget?

IF yes, how can i do that?

 

Please guide, it is very urgent!

 

TIA.

Harshad.

 

Retired
tneil
Posts: 3,708
Registered: ‎10-16-2008
My Device: Z10
My Carrier: Rogers

Re: Widget size limit

you can load content to the SD card of the device outside of your application and then access it through the file IO API

 

http://www.blackberry.com/developers/docs/widgetapi/Summary_io.html

Tim Neil
Director, Application Platform & Tools Product Management
Follow me on Twitter
Contributor
harshadkale
Posts: 10
Registered: ‎06-22-2010
My Device: all

Re: Widget size limit

Thanks a lot for the prompt reply, as always u do.

 

What i'm doing is creating an HTML page and i need to assign an image to the html <image> tag. Now this image will be residing on the Memory card.

 

How this can be achieved?

I know i'm demanding more but please help me, i'm a complete newbie in the world of BB.

 

Any help will be appreciated.

 

Thanks again,

Harshad.

Retired
tneil
Posts: 3,708
Registered: ‎10-16-2008
My Device: Z10
My Carrier: Rogers

Re: Widget size limit

 

<img src="file:///your_path/your_image.png"/>

 

Just make sure that the file:///your_path is added to the whitelist of the widget in an access element so that it can be brought into the application

 

Tim Neil
Director, Application Platform & Tools Product Management
Follow me on Twitter
Contributor
harshadkale
Posts: 10
Registered: ‎06-22-2010
My Device: all

Re: Widget size limit

How is the path to the file in the memory card written?

 

I have memory card structure as follows 

 

Memory Card -> Blackberry -> Apps -> Images/imagefile.jpg

 

how do i mention it in the 'src' propert of the <image> tag?

 

One more thing, how the directory is added to the whitelist of the bb?

 

I'm using Visual Studio for the widget development.

 

Thanks a lot,

Harshad

Retired
tneil
Posts: 3,708
Registered: ‎10-16-2008
My Device: Z10
My Carrier: Rogers

Re: Widget size limit

Hi Harshad,

 

When you say "Memory Card" are you referring to an inserted SD Card?  Or the built in memory storage of the device?

Tim Neil
Director, Application Platform & Tools Product Management
Follow me on Twitter
Contributor
harshadkale
Posts: 10
Registered: ‎06-22-2010
My Device: all

Re: Widget size limit

I'm referring to the inserted card.

 

By the way, you can share both the considerations.

 

Thanks

Retired
tneil
Posts: 3,708
Registered: ‎10-16-2008
My Device: Z10
My Carrier: Rogers

Re: Widget size limit

I believe the root for the onboard memory is :

 

file:///store/home/

 

 

And for the SD card it is:

 

file:///SDCard/
Tim Neil
Director, Application Platform & Tools Product Management
Follow me on Twitter