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
yosoh
Posts: 213
Registered: ‎07-18-2008
My Device: Not Specified

Re: NullPointerException on HomeScreen.updateIcon()

Hi all,

 

I too confirm the same on OS 4.5.0.18 but it works perfectly in below versions.

 

regards,

 

yosoh. 

--------------------------------------------------
problemSolved() ? kudosPlease():kudosPlease();
Developer
akirekadu
Posts: 52
Registered: ‎07-17-2008
My Device: Not Specified

Re: NullPointerException on HomeScreen.updateIcon()

What I have is 4.5.0.18.   Won't have a chance to try this on other versions for next couple of days.  Mark Sohm, do you still need to sample code to reproduce it?  I can't share the entire app, so I am gonna have to extract just enough code to share with you.  Let me know.

 

 

-Ashwath

BlackBerry Development Advisor
MSohm
Posts: 14,757
Registered: ‎07-09-2008
My Device: BlackBerry Passport

Re: NullPointerException on HomeScreen.updateIcon()

I haven't been able to reproduce this in 4.3.0.  Can you post a sample application that triggers the exception?
Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
Developer
akirekadu
Posts: 52
Registered: ‎07-17-2008
My Device: Not Specified

Re: NullPointerException on HomeScreen.updateIcon()

Following yosoh's comment, I downgraded my device to 4.5.0.10 and the problem went away.  Originally I had 4.5.0.18.

 

I still don't have a 4.3x device to try this.  I am working on getting you the code.

Retired
bzubert
Posts: 86
Registered: ‎07-11-2008
My Device: Not Specified

Re: NullPointerException on HomeScreen.updateIcon()

This issue was reported in early bundles of 4.5 and 4.6 and is confirmed to be resolved in 4.5.0.42 (and above) and 4.6.0.61 (and above). 

Brian Zubert
Technical Partnership Manager
Research In Motion
Developer
akirekadu
Posts: 52
Registered: ‎07-17-2008
My Device: Not Specified

Re: NullPointerException on HomeScreen.updateIcon()

Just tried my code on 4.5.0.55 & 4.6.0.65, working fine on both.  Thank you!
Developer
myraddin
Posts: 412
Registered: ‎09-12-2008
My Device: 9000 9810

Re: NullPointerException on HomeScreen.updateIcon()

Hi all. 

 

Uh :smileysad:

 

I like my apps to be as 'OS version transparent' as possible :smileyhappy: (how could I ever convince all my customers to update their OSs' ? :smileywink: )

 

I have checked the mentioned KB article but the fix seems to have something to do with 

 

ApplicationManager.getApplicationManager().inStartup()

 

So I conclude that the bug was related to startup.

 

But I would like to change app's name/icon on a particular event -> in a phoneLog listener, for instance. So, my app already has an icon set, but if there are any unanswered calls, my app icon and/or name would change.

 

I got an  IllegalArgumentException  thrown  message ;(

 

Is it allowed to change the app icon/name after the initial icon/name are set?

If yes, what am I doing wrong? 

 

 

 

 

 



"Listen carefully, I shall say this only once"
Developer
myraddin
Posts: 412
Registered: ‎09-12-2008
My Device: 9000 9810

Re: NullPointerException on HomeScreen.updateIcon()

[ Edited ]

I am sorry.

 

After reading through thread: Setting a rollover icon I found out two things:

 

1) Drawing  on the screen must be made in a separate thread (invokeLater)

2) The icon must be set for the non-system project  (in my case the second entry point -> how intelligently disinclined of me :smileysad:

 

Point 2) solved my problem.

But since now I am aware of the bug, Is it safe to assume that by using invokeLater older OSs won't have problems ?

Edit: typo
Message Edited by myraddin on 10-24-2008 02:43 PM


"Listen carefully, I shall say this only once"