Storm - how MIDP canvas can capture Screeen.touchEvent (message TouchEvent)?

Hi all

I tried to capture TouchEvent.CLICK with an application that uses the MIDP canvas: alias for the end user by pressing the touch screen - notice I am referring to the same 'click' which occurs when the user selects the "Browser" icon in the main screen and pushes down the entire screen to make it click.

I can receive and process all the pointer events from MIDP perfectly (pointerPressed, pointerReleased and pointerDragged).

In the past, we were able to capture the special keys by using the following:

class AppCanvas extends Canvas implemens TrackwheelListener, {KeyListener

public AppCanvas() {}

...

If (Ui.getUiEngine () .getActiveScreen ()! = null) {}
Ui.getUiEngine () .getActiveScreen () .addTrackwheelListener (this);
Ui.getUiEngine () .getActiveScreen () .addKeyListener (this);
}
}

{} public boolean touchEvent (TouchEvent msg)

is never called

...

}

Canvas.keyPressed and keyReleased would get a few keys, so that the listeners TrackwheelListener and KeyListener would get others.

However, it seems like there is no way to make it Screen.touchEvent (message TouchEvent) except if you extend the Screen class, which is something that we do not expect to do - since our application uses MIDP canvas.

Here's the main problem in terms of feeling of native BB app and midlet:

A storm for the end user would expect that touching a UI widget will assign the focus but who would NOT fire the action of this widget. Instead, the end user expects that the action of this widget would fire when the widget is "clicked".

Obviously, there is no way to tell a 'touch' of a "clicked" using canvas MIDP pointer-events.

Any suggestions?

Thank you

I come to know BlackBerryCanvas of this thread:

http://supportforums.BlackBerry.com/Rim/Board/message?board.ID=java_dev&thread.ID=8345

Why a Midlet would have problems using TrackwheelListener?

Tags: BlackBerry Developers

Similar Questions

  • How to use the prtsc button please, so I can capture Bank to receive the shipment?

    How to use the prtsc button please, so I can capture Bank to receive the shipment?

    If you can view receipts from the Bank to the screen... just left
    Click on your print screen button to copy the screen of your
    Windows Clipboard. Then... Open Windows Paint and
    Reach... Editing / paste. Then go to... File / save as / JPEG.

    If the file needs cropping... you can use the 'Fix' edition
    option in the Windows Photo Gallery.

    Another option:

    If you run any version of Vista Basic...
    the capture tool can be a better tool for the job:

    Use capture tool to capture screenshots
    http://Windows.Microsoft.com/en-us/Windows-Vista/use-Snipping-Tool-to-capture-screen-shots
    (Vista Home Premium, Business, Ultimate, Enterprise)

    Windows Vista - activate the Vista Snipping Tool
    http://www.PCWorld.com/article/137099/activate_vistas_snipping_tool.html

    Vista tutorial - How to use the tool captures of Vista
    http://www.Vistax64.com/tutorials/148532-how-use-Snipping-Tool-Vista.html

  • How to use the capture and the print button

    I tried to figure out how to use the capture and the "print" button, or add or what you call. I press it and the whole page of a different color changes, so I try to cut the section I want but I don't know how to send it to the printer. Can someone help me with this. I'm not at savvy with tech stuff, but when I find a recipe or something and it doesn't have an option to print a certain area, I can't understand how to use it?

    Thank you

    Andi Starbuck

    That happens to me is, I click and drag to make a rectangle of yellow selection, and as soon as I raise my finger on the mouse button, the part I've selected is captured as an image, a new tab opens and preview before printing, the image display. I can use the installation of the Page or simply print. But if I close the preview, this temporary image vanishes and I'm back on the page where I started. You see something different?

  • How can I get the messages appear when sent even if my phone is locked. I only get messages across when I activate the phone

    How can I get the messages appear when sent even if my phone is locked. I only get messages across when I activate the phone

    Settings > Notifications > Messages > display on the lock screen

  • How can I turn off messages keychain

    How can I turn off messages keychain?  I don't remember password in keychain

    MacBook Air run Classic operating systems, this forum is on, or iOS, what is your signature also says you have.  Classic refers to an emulated operating system available on 1998-2005 Macs and starter on 1998-2003 Macs system.  iOS means on iPad, iPod Touch, and iPhone operating systems.  Keychain are controlled by the control panel to access Keychain on classic OS and utility set Mac OS X 10.0 - 10.11.6 and MACOS Applications 10.12 Sierra-> Utilities folder.  Reset the password instructions vary according to operating systems, usually via Apple menu-> system-> users and groups, or Security Preferences.

    Go to the Apple menu-> about this Mac to tell us what you are running, and someone can redirect you to the correct forum.

  • If I order a new watch how many days can I cancel the order?

    If I order a new watch how many days can I cancel the order?

    Hello

    It would be possible to modify and cancel an order prior to the point when it has reached "Preparation for shipping. After that, you will need to return it after reception.

    By placing an order, you will be informed of the maturity expected for shipping.

    You can also monitor the status of your order online (including any amendment to the end expected).

    More information and instructions:

    http://www.Apple.com/shop/help/viewing_changing_orders

  • Apple devices like iPads don't leave caches in the system? Yes or no.  If yes how system caches can be deleted?

    Apple devices like iPads don't leave caches in the system? Yes or no.  If yes how system caches can be deleted?

    Yes.

    IOS or system caches are called "Documents & Data" or D & D for short and 'others '. They can be seen by plugging your iOS device on iTunes - on the Summary tab down there will be bar display accurately. They cannot be deleted. The only way to reset is to do a system restore. A restore will reduce the size of D & D and others, but they will start to grow again. However, applications have caches that can be deleted. Safari for example > you can delete all Cookies and data. For other applications, it depends on the application.

    The system restore. First save your device via iTunes. Also import your photos on your computer and copy all the data if possible. Reconstruction of the support first test and test. If this does not help, you may need to restore as a new and reconfigure from scratch as the backup may be damaged. It is important to have your photos and your saved data separately from the backup. Here are the steps for a restoration:

    https://support.Apple.com/en-us/HT201252

    These items also help explain the caches:

    http://osxdaily.com/2013/07/24/remove-other-data-storage-iPhone-iPad/

    http://www.IMore.com/how-find-and-remove-other-files-iPhone-and-iPad

    https://support.Apple.com/en-pH/HT201656

    https://discussions.Apple.com/docs/doc-5142

  • How can I retrieve deleted messages

    How can I retrieve deleted messages

    If you have a back up, which contains messages, you can restore your device than upward. Note that all the data added to the phone from the back has been carried out is crushed.

  • How many tracks can be recorded simultaneously in garageband version 10 for mac

    How many tracks can be recorded simultaneously in garageband version 10 for mac?

    You can only record 8 tracks simultaneously in garageband version 10.

  • How many songs can be store in an IPod touch 64GB?

    How many songs can be store in an IPod touch 64GB?

    If you want to just load up on music and do not load on apps and leave about 4 GB of free space for a reliable operation of iOS and depending on the quality of encoding, compression of data or not, of anywhere, at least 4000 songs and, eventually, up to perhaps 8 000 songs or, approx.

    My new, 6th gen iPod Touch, 64 GB of storage (56 GB of usable storage space) has my music library complete on this subject with about 2000 songs that use 16 GB of storage on my device

    I use the best encoding settings formats AIFF or Apple Lossless quality.

    I have about 23 GB of free storage space.

    So I wouldn't be able to get up for another 2500 songs or so, if I use another 20 GB of free space for the music, for a CA.  total of 4500 songs.

  • How can I send a message in my Outbox?

    How can I send a message from my Outbox? I do not see a 'send '.

    any where

    Usually, when you open the message there is a submit button. If not try to move the message to the drafts and try again, or copy and paste the content into a new message.

    TT2

  • How can I get the message from thunderbird to stop coming when I opened my email?

    How can I get the message from thunderbird to stop coming when I opened my email?

    Press the alt key to make the call of menu bar
    Select Tools-Options-general
    Disabled the Start Page

  • How many devices can I have in icloud

    How many devices can I use with iCloud by using the same apple ID?  How can I add new devices to my account?

    Your Apple ID can be associated with up to 10 devices and computers.

    http://www.Apple.com/icloud/Setup/

  • How the sender can resolve this message may be a scam?

    How the sender can resolve this message may be a scam?

    When your question has been answered can mark you the thread as "Solved" Please?
    Thank you.

  • I sent an email to someone by mistake earlier. How can I recall a message if the person has not yet read?

    I sent an email to someone by mistake earlier. How can I recall a message if the person has not yet read?

    Hello sanjaykaul, which would not be possible - once an email leaves your mail server is therefore more under your control.

Maybe you are looking for