Saturday, August 14, 2010

Nokia On Screen D-pad - enabling and disabling

Interestingly, I decided to develop an application on my Nokia phone. This is a touch phone and its for the first time I was trying to develop an application. The application was simple and it has a splashscreen to start with. I tried on the WTK and loaded the application onto the phone. Interestingly, on launching the application, it started to display a Game D pad and Game action keys and my application was getting displayed only around half of the screen. I wanted to take a screenshot of this but neither my Nokia PC suite had this facility nor I tried to search for a utility for doing this.
I tried to search in forums and find out the reason for this and avoid this. My search ended with Nokia developer forum and it has good collection of explanation of why this happens and ways to avoid this. These eventually turned to be a setting which need to be specified in the MIDlet jad file. The setting was with the key ‘Nokia-MIDlet-On-Screen-Keypad’. The following are the possible values for this property.

Nokia-MIDlet-On-Screen-Keypad: no
Nokia-MIDlet-On-Screen-Keypad: gameactions
Nokia-MIDlet-On-Screen-Keypad: navigationkeys

I made the setting to take the value ‘no’ and it served my purpose. My application started displaying the splashscreen without onscreen D-pad and gameactions. Interesting!