This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I have an application that successfully dials numbers (using the platformRequest() method). However I have it coded to do that in response to a command. The command is invoked by selecting a menu option (labeled "Dial"). That all works fine.
In addition, I would like my MIDlet to be able to detect that the dial button on the phone was pressed, and then invoke my command as a result of that event. Does anybody know how to detect the physical pressing of the dial button?
All cell phones that I have ever seen seem to have a dial button, so this code should work pretty universally.