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
dx22
Posts: 402
Registered: ‎11-26-2010
My Device: Torch

net.rim.device.api.ui.decor.Background not found

I am getting this error report on Blackberry Curve 9300 with OS 6 installed. Is it possible and if yes why and how to fix it?

Class Background is available since 4.6.

 

The app is compiled with jde 4.6.

----------------------------------------------------------------------
Press the button to give kudos if I helped you :smileyhappy:
Please use plain text.
Developer
superdirt
Posts: 541
Registered: ‎05-17-2009
My Device: Not Specified

Re: net.rim.device.api.ui.decor.Background not found

Try compiling with OS6 and see if you get errors at compile time or runtime.

 

Scott

Please use plain text.
Developer
dx22
Posts: 402
Registered: ‎11-26-2010
My Device: Torch

Re: net.rim.device.api.ui.decor.Background not found

I compiled with jde6.0 and no errors were found. I also thought that some class/method might be deprecated but it compiles without problems.
----------------------------------------------------------------------
Press the button to give kudos if I helped you :smileyhappy:
Please use plain text.
Developer
superdirt
Posts: 541
Registered: ‎05-17-2009
My Device: Not Specified

Re: net.rim.device.api.ui.decor.Background not found

Does it run after you compile it with 6.0?
Please use plain text.
Developer
dx22
Posts: 402
Registered: ‎11-26-2010
My Device: Torch

Re: net.rim.device.api.ui.decor.Background not found

Yes it does...this is very strange
----------------------------------------------------------------------
Press the button to give kudos if I helped you :smileyhappy:
Please use plain text.
Developer
superdirt
Posts: 541
Registered: ‎05-17-2009
My Device: Not Specified

Re: net.rim.device.api.ui.decor.Background not found

Great! Sounds to me like it's a bug in the framework. Consider doing a separate release for os 6.

Scott
Please use plain text.
Developer
peter_strange
Posts: 19,601
Registered: ‎07-14-2008
My Device: Not Specified

Re: net.rim.device.api.ui.decor.Background not found

Can you give us the OS levels and Simulator/device details that apply in this case.  I am concerned that every application that uses a Background needs to be recompiled if this bug is as described. 

Please use plain text.
Developer
dx22
Posts: 402
Registered: ‎11-26-2010
My Device: Torch

Re: net.rim.device.api.ui.decor.Background not found

I think there was a misunderstanding in the previous posts. I misread superdirt's previous post.

What I meant is that the app compiles with both 4.6 and 6.0 and runs on other 6.0 devices such as torch and bold 9780.

I got report that the Background class was missing on 9300 with os 6.

It is very strange error - I found somewhere on the forum that if your res folder exceeds some size limit you might end up with errors for missing classes. I tried on the 9300 simulator and it runs ok.
----------------------------------------------------------------------
Press the button to give kudos if I helped you :smileyhappy:
Please use plain text.
Developer
peter_strange
Posts: 19,601
Registered: ‎07-14-2008
My Device: Not Specified

Re: net.rim.device.api.ui.decor.Background not found

It would surprise me if

" Background class was missing on 9300 with os 6"

is generally true.  It might be that there is an OS level was built without it.  So can you tell us the specific OS level that you see on the 9300 device that reports this error?

Please use plain text.
Developer
dx22
Posts: 402
Registered: ‎11-26-2010
My Device: Torch

Re: net.rim.device.api.ui.decor.Background not found

Well I didn't test it myself but the info I have is that the platform version is 6.3 but i don't know whether that info is correct.
I will just build it without the usage of the Background class and try again
----------------------------------------------------------------------
Press the button to give kudos if I helped you :smileyhappy:
Please use plain text.