1

this is a little weird to me, When I center the map with MapAction.setCenterAndZoom(...) or MapDimensions.setCenter(...) on both BB 9780 Device and Simulator, it throws a NoClassDefFoundException but when I try the same code on 9930 simulator it works fine. I've even tried another code (MapActionDemo) on 9780, it thrown the same exception. I also checked the application permissions and they were all fine. so, can you please tell me what I'm missing here?

bharath
  • 14,283
  • 16
  • 57
  • 95
Abed Hawa
  • 1,372
  • 7
  • 18
  • `NoClassDefFoundException` is often a sign that you use some newer API on a device that supports an older version => first thing I'd do in that case would be to check for version compatibility – gnat Dec 14 '11 at 14:37
  • Just to be clear, I think API v6.0 works fine on 9780, and I'm using API v6.0, could the app been built successfully if those functions are not compatible with v6.0? am I missing something? I'm sorry I'm not that good at java configurations – Abed Hawa Dec 14 '11 at 17:19

1 Answers1

1

Per API documentation, MapAction.setCenter... appears available only since version 7.0. This is most likely reason why BB 9780 device and simulator fail to run it while 9930 executes successfully.

As far as I can tell there is a chance to make your code work if you hack method names to setCentre... instead of setCenter...

references

gnat
  • 6,213
  • 108
  • 53
  • 73