How to manage send / phone key end / Power key events?

How to follow the sending key event / Phone key (green key) and end / Power (red button) button in the Blackberry device?

You can use this feature to manage key events in red and green button

public boolean keyDown(int keycode, int time)
    {
     switch(keycode)
     {
         case keycode.KEY_END:

             break;
        case keycode.KEY_SEND:

            System.exit(0);
            break;
           }
     return false;
    }

If your problem has been resolved then please mark the thread as "Accepted Solution" and congratulations - your wish.

Tags: BlackBerry Developers

Similar Questions

  • How to simulate sending 'windows' key + L key for the lock screen?

    Dear Sir

    I write the code of provider identification information of the recognition device of vein (usb device) to winlogon in Windows 7. I realized the function XP with Gina.

    There are two parts of the requirement for the function, must be acknowledged the vein information and control the system startup, the other is that the screen of the machine must be locked when the usb device is connected to.

    For the first part, it should be ok with referring to the example provider of microsoft credentials.

    However, I have two problems on Windows 7 for the second part. Please help me.

    In Gina, I can create the timer to monitor the connection status of device with the machine, if the device is not connected with the machine, Gina will send the sas order and lock the screen.

    on Windows 7, the credentials provider dll is load and unload dynamically, I can't create the timer to monition connection of device status, after logon to the system.

    question 1: is there a good way to monitior the device status after login the system?

    question 2: how to send the command to the system of lock screen?

    Thank you

    Shinson Yang

    A forum script would be a much better place to post this question. Here is a VBScript that will detect the arrival or the removal of a USB mass storage device within 10 seconds:

    Set objWMIService = GetObject("winmgmts:\\.\root\cimv2")
    Set colEvents = objWMIService.ExecNotificationQuery _
    ("Select * from __InstanceOperationEvent within 10 where" _)
    & "TargetInstance isa 'Win32_LogicalDisk'")

    Do for real
    Set objEvent = colEvents.NextEvent
    If objEvent.TargetInstance.DriveType = 2 Then
    Select the objEvent.Path_ box. Class
    Case "__InstanceCreationEvent".
    MsgBox objEvent.TargetInstance.DeviceId & "Drive" & "has been added."
    Case "__InstanceDeletionEvent".
    MsgBox objEvent.TargetInstance.DeviceId & "Drive" & "has been deleted."
    Select end
    End If
    Loop
    To lock Windows you must run this command:

    RunDll32.exe user32.dll, LockWorkStation
  • How to capture the Green key event?

    Hello

    I want to detect the number entered by the user via the keyboard... in the BB device.

    I use the following code in the method callInitiated()... Please suggest me how to detect the nuber... While the user presses the green button in the device.

    Please suggest me how to archive in BB device, number input by the user via the keyboard.

     public void callInitiated(int callId)
        {
            System.out.println("Inside Call Initiated...");
            PhoneCall call =  Phone.getCall(callId);
            System.out.println("Outgoing number is :"+call.getDisplayPhoneNumber());
    
        }
    

    Check this thread.

    http://supportforums.BlackBerry.com/Rim/Board/message?board.ID=java_dev&message.ID=21883&query.ID=37...

    Concerning

    Bika

  • How the fire trigger on the end of session/event!

    Is there a way to trigger or some store procedure just before the end of session, but also get information at the end of session (such as Terminal, Machine, user...)?
    create table logoff_tbl (
      who  varchar2(30),
      when date
    );
    
    create trigger trg_logoff
    before logoff on database
    begin
      insert into logoff_tbl values(sys_context('userenv','session_user'), sysdate);
    end;
    /
    
  • I have the genuine product key genuine microsoft windows vista business but I have lost the cd/dvd of the windows disk, how to manage another copy of windows vista professional?

    I have the genuine product key genuine microsoft windows vista business but I have lost the cd/dvd of the windows disk, how to manage another copy of windows vista professional?

    If you bought the retail of Windows 7:

    How to replace Microsoft software
    http://support.Microsoft.com/default.aspx/KB/326246

    If Windows is preinstalled with the computer:

    If you do not install disks:

    Contact the OEM computer manufacturer and ask them to send you an installation to your computer disk - they may charge a small fee. Contact information for the manufacturer of your computer can be found here:

    http://support.Microsoft.com/GP/oemphone/

  • How can I send an e-mail to a smart phone?

    How can I send an email or a hot link for a smart phone? Of course, the smart phone has only a digital set is possible to send it to a smart phone?

    You can use a qrcode, on the computer, copy the link of the site, go to this site:

    Paste the link in the form, select static, click on generate, now save the qrcode and send by e-mail or connect the Mr. smarth phone to your pc, transfer on Mr. smarth phone qr code, then use an application to read the qrcode on Mr. smarth phone

    type the link in an email and send to yourself, then open the email in your smarth phone or send to someone

  • How to manage Windows Vista power management features

    Hi guys

    I searched a bit in the technical knowledge of the Toshiba and found a very interesting article on Windows Vista power management features.

    * [How to manage Windows Vista power management features | http://aps2.toshiba-tro.de/kb0/HTD84026Q0000R01.htm] *.

    The fact is that you will not find one tool of Toshiba Power Saver on Vista as on Windows XP laptops and the parameters energy saver is a bit hidden in Vista power saving settings.

    But you can also control some options as a method of cooling or power saving Mode.

    I think that it could be interesting for some people here in the forum!

    Greetings to all!

    Thanks JayJay.

  • How can I send sms text message from my Windows 7Pro PC to any mobile phone?

    SMS from the mobile phone PCto

    How can I send sms text message from my Windows 7Pro PC to any mobile phone

    By electronic mail.  Exact address depends on the carrier.

  • How can I send a print job on printer outside during the phone app?

    How can I send a print job on printer outside during the phone app?

    banhien is to give you good information, but it is a bit incomplete. You will be able to use the House ePrint and Biz app to print remotely from your android device, but you will need to install ePrint and ePrint Center first account. You can find more information about how to configure and use ePrint here. Once you have done so, you need to add the new e-mail address of your printer in the app. Once you have all that done, then you will be able to use the remote app. I hope this helps.

  • How can I send a monthly invoice in duplicate to my Finance Manager?

    Hi all -

    I have my recurring monthly payments put in place, but I need to send a copy of each monthly invoice to my Finance Director, so he can reconcile the statement.

    I added him as an administrator on the team, but it doesn't seem to matter.

    How to manage team so that a copy of my Bill will go to a different e-mail than on my AdobeID account?

    Thank you

    Aaron

    You will have to send him the Bill on your own bill may only be generated in the main administrator only.

    You can also view. https://helpx.Adobe.com/contact/Creative-cloud-teams.html

    Concerning

    Stéphane

  • How can I send a message to a cell phone from Apple of my iPhone

    I have an iPhone 6, but have friends with a Samsung.  How can I send them a text message.

    same way you send someone else a message text... using the Messages application.

  • I allredy backup data, how to restore backup of key USB for windows 2008 r2 standard?

    I allredy backup data, how to restore backup of key USB for windows 2008 r2 standard?

    Hello

    The question you posted would be better suited in the TechNet Forums. I suggest you to send your query to the TechNet forum for better support.

    TechNet > Windows Server Forums > management

  • How can I reset phone? Keyboard does not work

    My phone has water damage. The replacement phone came and I try to erase / reset the damaged phone to send it back. The touch screen does not work. How hard reset the phone?

    Since the defective screen is probably due to water damage, not many at least form the phone itself. You can try to restore as new to iTunes on a computer.

    Use iTunes on your Mac or PC to restore your iPhone, iPad or iPod settings - Apple Support

  • My iPod classic is synced to my old pc windows how can I send it to my new apple mac - all my music on iPod is uploaded to this topic via ads and bought on iTunes?

    My iPod classic is currently synced on my old windows pc - how can I send it to my new Apple Mac without losing any of my music.  All my music is downloaded from the ads?

    If you still have your old PC in working condition, with its iTunes library intact, not to use your iPod to transfer the library to your new Mac.  You transfer your data from user (not just your iTunes data) directly from the old PC to the new Mac.

    There is an automated system called Migration Wizard, if your system meets the requirements.  Be sure to have a backup of the data.

    Migration of Windows v1.0.5.7 Assistant

    Alternatively, for the part of iTunes, this paper outlines how do it manually, using an external drive.

    Manage and backup your iTunes media library - Apple Support

    To summarize, the first step is to make sure that all your iTunes data is stored in the iTunes folder ("consolidate"), which is located in your folder music user account.  The second step is to copy this folder iTunes on an external drive, to create a backup.  The third step is to restore that backup the iTunes on your new Mac folder.  Launch iTunes to use data from the old PC iTunes; It looks like iTunes running on your old PC, complete with all the songs (and other types of media) and data, such as reading lists, notes, play count, etc.

    Your iPod continues to synchronize with it, because for the iPod, it's the same iTunes library (on another computer).  If you using your iPod as a data source, you add your old data to an iTunes library on Mac.  It is NOT complete.  The iPod sees it as a different iTunes library.  iPods are not designed to be your data from iTunes backup.

    However, IF the iPod is now the only place where your songs are stored (and you have no other backup), thanks for posting back.

  • How a SMS sending first?

    just after sending an SMS, I found that the phone number was wrong! Skype in waiting/trying to send text msg. How to stop sending?

    OK, Neil, but I not find anything at this time no discounts on the site of Skype! It's a shame, but it's not cataclysmic!
    Anyway thanks a lot for your messages
    Nice day
    Richard

Maybe you are looking for

  • How can I check each pin of the connector VHDCI SMU-6548?

    I need to use the VHDCI interface on the slot 3 i.e. NI SMU-6548 NI SMU-1062 q for testing purposes. I need raise or lower the individual lines of the 68 lines available. I use the VISA to do? If no VISA, how are NI - HSDIO which are available with t

  • How get rid you of the starforce protection driver.

    He obviously just one of my sons games that he brought back after be deployed abroad

  • Problem HP Photosmart5520 activation

    1. number and product namePhotosmart5520 CX042B 2 operating system installed (if applicable) Windows 7 64 bit 3. error message (if any)None 4. all changes made to your system until the problem occurredNo, had the problem from the beginning. Problem:

  • Problem with number blackBerry Smartphones

    Hi all A few days ago, I had my cell phone number changed because I had malicious calls from unknown numbers ect. But my old number still shows upwards in line 1 when I discover call logs and it also appears when I connect my BB to my computer. How c

  • Can I post images copyright on behance?

    HelloI was wondering if I am allowed to post images copyright on Behance. I have a student project in which I designed a logo of car, but for some of the deliverables which included mocking up your car on promotional logo, I used images of other cars