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
Contributor
mario_n
Posts: 13
Registered: ‎05-31-2012
My Device: 9360
My Carrier: Vip
Accepted Solution

Blackberry OS 5 - OS 7 compatibility issue

Hi,

 

My Blackberry app is finished and works fine on Blackberry devices with OS 6, or OS 7.

But, my client wants app to be functional on Blackberry devices with OS 5.

 

When app is downloaded and started on device with OS 5, (example Blackberry 9550), then following message in debugger appears:

 

Thread [net_rim_bb_ribbon_app(85)id=126808064] (Suspended (exception RuntimeException))
ApplicationEntryPoint.run() line: 401
ApplicationEntry.invoke() line: 559

 

[0.0] Class 'net.rim.device.api.ui.menu.ContextMenuProvider' not found.[0.0]
[0.0] Linker error: 'VerifyError' for app
[0.0] VM:CLRCv=0
[0.0] Error starting app: Class 'net.rim.device.api.ui.menu.ContextMenuProvider' not found.

 

 

Where to start, and how to fix this backward incompatibility?

Thanks

Please use plain text.
Developer
Dionysus
Posts: 152
Registered: ‎07-28-2011
My Device: Bold 9900
My Carrier: MTN

Re: Blackberry OS 5 - OS 7 compatibility issue

You are going to have to preprocess your code as contextmenuprovider is only supported in OS6 and up.

Please use plain text.
Developer
Dionysus
Posts: 152
Registered: ‎07-28-2011
My Device: Bold 9900
My Carrier: MTN

Re: Blackberry OS 5 - OS 7 compatibility issue

Have a look at the following link:

 

http://docs.blackberry.com/en/developers/deliverables/21065/Specifying_preprocessor_directives_65763...

 

and search the forum for examples.

Please use plain text.
Developer
simon_hain
Posts: 15,814
Registered: ‎07-29-2008
My Device: Z10 LE
My Carrier: O2 Germany

Re: Blackberry OS 5 - OS 7 compatibility issue

In addition, note that an application should be compiled with a JRE version the same or smaller than the OS it should run on.

For OS 5, you have to compile it with JRE 5 (or lower).
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Please use plain text.
Contributor
mario_n
Posts: 13
Registered: ‎05-31-2012
My Device: 9360
My Carrier: Vip

Re: Blackberry OS 5 - OS 7 compatibility issue

Thank you all..

Please use plain text.