07-09-2013 06:53 PM
I am trying to port the code of a running application from Blackberry Playbook to Blackberry 10 and I am running into problems where the classes or methods are missing or moved. One example is the AlertDialog which on Blackberry 10 was on "import qnx.dialog.AlertDialog" now it is on "import qnx.fuse.ui.dialog.AlertDialog". I can not find the equivalent of "import qnx.input.IMFConnection". Where can I find this information? Where are these classes? What has changed? Why were this classes moved? Thanks for any help that you can provide.
07-09-2013 09:13 PM
Search is not as good as it could be on the API doc pages or on the forums, but yet a quick search for the IMFConnection yielded this thread:
The class was apparently private and undocumented, and so it was removed.
One good way to search the API docs is to use a bit of Google-Fu such as typing e.g. the following into your Google search box:
<name of some class you need info on> site:https://developer.blackberry.com/air/
and then be wary of which platform's API docs you are viewing (review the state of the "Platform" button in the upper left of the page of the API docs).
07-10-2013 02:41 AM
This example shows you how you should use an aletrdialog now:
If you used IMFConnection before, I guess you used it to hide the keyboard (I did so too). I think you can also hide the keyboard by setting the focus of your current stage to null