views:

11

answers:

0

Hi
I tried following code to arrest landscape orientation in blackberry widget in vain I altered widget.java file found under Widget SDK packager/device_templates

 int directions = net.rim.device.api.system.Display.DIRECTION_PORTRAIT;         
 net.rim.device.api.ui.Ui.getUiEngineInstance().setAcceptableDirections(directions);

But still i couldnt get the desired result.I could appreciate if someone help me to find the correct solution.

Thanks