0

I have developed application for BlackBerry OS 5 and now I want to port it to BB OS 6

While porting app, I am facing following issue --

I have added separate org.json.me package in OS 5 which is inbuilt in OS 6

When I add BB OS 6 library instead of OS 5 in the app it gives me error

Please suggest possible solution to run same app on both platforms

silwar
  • 6,470
  • 3
  • 46
  • 66
  • 2
    your OS 5.0 build will work in OS 6.0's devices.But when u tried to work with os 6 than u have to remove external json file and used inbuilt json. so just install .cod file in OS 6.0's simulator and test. – Hitarth May 09 '12 at 08:50
  • Thanx Coder for prompt reply Do I have to post two different .cod files on BlackBerry AppWorld? I also want to distribute this app on BB OS 7 platform. Then i have to post 3 different .cod files on AppWorld – silwar May 09 '12 at 09:06
  • 1
    yes @Silwar we can distrubute different .cod file for different OS version in app world. When we are upload app to app world there is option to publish different cod files for different different OS version . – Hitarth May 09 '12 at 10:35
  • Thanx Coder this will definitely help me lot in my future apps – silwar May 09 '12 at 10:38

2 Answers2

0

You can rename the package name of your json package to com.yourcompany.json instead of leaving it as org.json.me. This is a simple solution to your problem, there might be better solutions as well.

rfsk2010
  • 8,571
  • 4
  • 32
  • 46
-1

I have got answer to my question

I used BlackBerry OS 5 library to compile my application which is running excellent in OS 6 device also

silwar
  • 6,470
  • 3
  • 46
  • 66