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?
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...
MapAction API docs for BB 6 - setCentre is there, setCenter is not there
MapAction API docs for BB 7 - setCentre is declared deprecated, setCenter is there
BB 9780 specification declares support for BB OS 6
BB 9930 specification declares support for BB OS 7