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

Java Development

Reply
Developer
Posts: 73
Registered: ‎07-16-2009
My Device: Bold

Re: Problems when change background image

How larges are your background images?

 

May be the problem is create the background, not displaying it.

 

Why not take the time for the two operations?  1. createBkg() 2. replacetheBkg()

 

 

Greetings

 

Regular Contributor
Posts: 66
Registered: ‎05-26-2010
My Device: 9000 Bold
My Carrier: SAP NetWeaver Mobile Technology Consultant

Re: Problems when change background image

Hello, laliux


My images have 35,826  bytes in average, i really would like to see a sample of your idea, can you show me ?


So for your understanding, i have a algorithm to load my images before i use when i change my background.


Regards, Rampelotti.

Developer
Posts: 73
Registered: ‎07-16-2009
My Device: Bold

Re: Problems when change background image

Sorry, I don't see your pre-load code..

 

Any way,  I use the following code when I want to known the duration for some operation(s),.. task..

 

 

long t1 = new java.util.Date().getTime();

/* Some long time task */

long t2 = new java.util.Date().getTime();

System.out.println(t2-t1);

 

Greetings

 

Regular Contributor
Posts: 66
Registered: ‎05-26-2010
My Device: 9000 Bold
My Carrier: SAP NetWeaver Mobile Technology Consultant

Re: Problems when change background image

Hello again,

 

Maybe i´m not shine with my problem, the setBackground works fine, ok, i know but the really problem is if you have 7 itens buttons on screen and you change background on focus listener of any button quickly roll the trackwheell quickly, the performance decrease....

 

Any sugestion?

Regular Contributor
Posts: 66
Registered: ‎05-26-2010
My Device: 9000 Bold
My Carrier: SAP NetWeaver Mobile Technology Consultant

Re: Problems when change background image


Someone can help me?

 

Developer
Posts: 1,746
Registered: ‎04-08-2010
My Device: Passport Silver, PRIV
My Carrier: Telekom.de, O2, Vodafone

Re: Problems when change background image

I'm noticing no performance decrease

 

have a navigator screen with 6 focusable bitmaps

if I switch through the bitmaps fast, the background switches also fast

together with the image (I also change the bitmap icon which gets focus)

and I'm using a status field explaining what each tab does

 

all done using java 5 and tested in simulator and on 9700 and 9550

-------------------------------------------------------------------------------
ekke (independent software architect, rosenheim, germany)

BlackBerry Elite Developer
BlackBerry Platinum Enterprise Partner
International Development native Mobile Business Apps
BlackBerry 10 | Qt Mobile (Android, iOS)
Workshops / Trainings / Bootcamps

blog: http://ekkes-corner.org
mobile-development: http://appbus.org Twitter: @ekkescorner
Regular Contributor
Posts: 66
Registered: ‎05-26-2010
My Device: 9000 Bold
My Carrier: SAP NetWeaver Mobile Technology Consultant

Re: Problems when change background image

Hello ekke!

 

On simulator works fine...

 

The problem is on device..

 

Best regards, Rampelotti.

Regular Contributor
Posts: 66
Registered: ‎05-26-2010
My Device: 9000 Bold
My Carrier: SAP NetWeaver Mobile Technology Consultant

Re: Problems when change background image

No more suggestions?

 

Regards, Rampelotti.

Highlighted
Developer
Posts: 1,746
Registered: ‎04-08-2010
My Device: Passport Silver, PRIV
My Carrier: Telekom.de, O2, Vodafone

Re: Problems when change background image

as I already told you: I have no performance problems with my backgrounds in a Navigator screen,

I can switch very fast back and forth

-------------------------------------------------------------------------------
ekke (independent software architect, rosenheim, germany)

BlackBerry Elite Developer
BlackBerry Platinum Enterprise Partner
International Development native Mobile Business Apps
BlackBerry 10 | Qt Mobile (Android, iOS)
Workshops / Trainings / Bootcamps

blog: http://ekkes-corner.org
mobile-development: http://appbus.org Twitter: @ekkescorner