a button for blackberry
Hai all the...
thaks for all now I mean little to us keypress on blackberry
It is encoding for the kanpas.java class
protected void keyPressed( int keycode ) { switch( keycode ) { //case -1://up case 1://up switch (this.screen) { case Kanpas.SCREEN_MAIN: if(this.selected > 0) this.selected--; else this.selected = 1; this.repaint(); break; case Kanpas.SCREEN_PLAYMIDI: if( indexToStart > 0 ) indexToStart--; this.repaint(); break; } break; //case -2://down case 6: switch (this.screen) { case Kanpas.SCREEN_MAIN: if (this.selected < 1) this.selected++; else this.selected = 0; this.repaint(); break; case Kanpas.SCREEN_PLAYMIDI: if( indexToStart < vLyrics.size() - maxLine ) { indexToStart++; } this.repaint(); break; } break; //case -3: //left case 2: switch (this.screen) { case Kanpas.SCREEN_MAIN: if(this.selected > 0) this.selected--; else this.selected = 1; this.repaint(); break; case Kanpas.SCREEN_PLAYMIDI: if (this.volumeControl != null) { int level = this.volumeControl.getLevel(); if (level > 0) { level -= 10; if (level < 0) level = 0; this.volumeControl.setLevel(level); this.left = true; this.right = false; this.repaint(); } } break; } break; //case -4: //right case 5: switch (this.screen) { case Kanpas.SCREEN_MAIN: if (this.selected < 1) this.selected++; else this.selected = 0; this.repaint(); break; case Kanpas.SCREEN_PLAYMIDI: if (this.volumeControl != null) { int level = this.volumeControl.getLevel(); if (level < 100) { if (level <= 0) { this.volumeControl.setMute(false); level = 10; } else { level += 10; if (level > 100) level = 100; } this.volumeControl.setLevel(level); this.left = false; this.right = true; this.repaint(); } } break; } break; //case -5://enter,middle button case 10: switch (this.screen) { case Kanpas.SCREEN_MAIN: if( this.selected == 0 ) { //play the song playMidi(); this.screen = Kanpas.SCREEN_PLAYMIDI; // added by masbudi indexToStart=0; repaint(); } else { this.main_.InitMenu(); this.main_.display.setCurrent(this.main_.extraFun); //this.parent.extraFun.keypressAction("ENTER", this.parent.extraFun.currentMenu, true); this.main_.extraFun.keyPressAction("ENTER", this.main_.extraFun.currentMenu, true); } this.stopTimerScrollingText(); break; } break; //case -6://left-ok button case 113: switch (this.screen) { case Kanpas.SCREEN_MAIN: this.screen = Kanpas.SCREEN_CLOSINGSPLASH; if(splash!=null) splash = null; splash = new SplashScreen(); mokaIntro(); if(timer!=null) { timer.cancel(); timer = null; splash=null; headerAnim=null; } splash = new SplashScreen(); timer = new Timer(); timer.schedule(splash, 0, 250); break; case Kanpas.SCREEN_PLAYMIDI: stop(); if(timer!=null) { timer.cancel(); timer = null; splash=null; headerAnim=null; } backToMain(); break; } break; } } protected void keyReleased(int keycode) { switch (keycode) { //case -3: case 2: //left switch (this.screen) { case Kanpas.SCREEN_PLAYMIDI: this.left = false; this.right = false; this.repaint(); break; } break; //case -4: case 5://right switch (this.screen) { case Kanpas.SCREEN_PLAYMIDI: this.left = false; this.right = false; this.repaint(); break; } break; } }
and then it's for the appcanvas.java class
protected void keyPressed(int keyCode) { if (this.isHTTPUpdateMenu && this.currentMenuUpdating != null || this.main_.isGetImage) { switch (keyCode) { case -7: this.keyPressedSoftkeyRight(); break; } } else { switch (keyCode) { //case -1: case 1: //up switch (this.stateMenu) { case AppCanvas.STATE_LISTMENU: this.stopTimerRunningText(); this.keyPressedMenuUp(); break; } break; case -2: case 6: //down switch (this.stateMenu) { case AppCanvas.STATE_LISTMENU: this.stopTimerRunningText(); this.keyPressedMenuDown(); break; } break; //case -5: case 10: //enter switch (this.stateMenu) { case AppCanvas.STATE_LISTMENU: this.stopTimerRunningText(); this.keyPressedMenuEnter(); break; } break; //case -6: case 113://soft case left if (this.isEmptyMenu) { this.isEmptyMenu = false; this.stopTimerRunningText(); this.stopTimerScrollingTitle(); this.keyPressedSoftkeyLeft(); } else { switch (this.stateMenu) { case AppCanvas.STATE_LISTMENU: case AppCanvas.STATE_SHOWCONFIRM: case AppCanvas.STATE_VIEWTEXT: case AppCanvas.STATE_SENDSMS: this.stopTimerRunningText(); this.stopTimerScrollingTitle(); this.keyPressedSoftkeyLeft(); break; } } break; //case -7: case 116: //right sofcase switch (this.stateMenu) { case AppCanvas.STATE_SHOWCONFIRM: this.stopTimerRunningText(); this.stopTimerScrollingTitle(); this.keyPressedSoftkeyRight(); break; } break; } } }
I hope all that can develop with blackberry.
concerning
Andi
Thanks for sharing your code keypress. Its accurate once you said. As a result, are resolved.
Tags: BlackBerry Developers
Similar Questions
-
Up button for blackBerry Smartphones
The top on my Q5 button doesn't seem to work - I have to push several times (5-10) to get the screen to close - and sometimes holding, and often I find myself all just stop the device. But if I leave the screen on, I find myself at Pocket-dialing.
It becomes very frustrating, as I wait for the device to start the device whenever I want to make a phone call.
The seller States that since it is a problem of 'material', I need to contact BBerry, but all I can find are these support forums, although people very friendly and helpful, are not the representatives of BBerry.
How can I contact BBerry for this lemon out of my hands? It did not work properly for more than a week since I got a year-and-a-half ago.
Thanks for the info. I pursued this because of them, but the problem is not with the service, it is with the hardware itself - and got absolutely no response from anyone in Blackberry on this subject. They seem to be more interested in selling new units that keep the customers.
I appreciate the time you took to answer.
Take care.
IBM
-
Hello
I'm having a major problem. I can't click on the 'Start' button for the Media Manager when I go into the BB Desktop Manager. I tried to reinstall Desktop Manager & all other items several times. I removed the battery. I also put my memory options for my storm as:
Media card support: on
Encryption mode: no
PSG: on
Mass storage support: on
Auto enable mass storage Mode when connected: Yes
Could someone help me please? I can't transfer ANY media be it because of this problem!
Hi and welcome to the forums!
Without starting the desktop software or the Media Manager, connect the USB cable and the PC the storm.
Open my computer in Windows. You see as a removable media card?
If Yes, you can "drag and drop" files on the card out of holder on the storm.
To correct the media manager please specify the following:
PC, operating system (if vista 32 or 64)
The version of the currently installed software.
You have problems with the backup or sync Desktop Manager?
Thank you
Bifocals
Don't forget to adjust your thread.
Put the check mark in the green box containing your answer! Thank you
-
Where is the touch pad for blackberry control events.
There is an app for blackberry. To move the PAGE to him between the screen to the right or left by press the button of the runway.
Now, he moves to right and left. BUT sometimes two PAGEs (half and half) will remain a single screen.
How can I control a Page on the screen by the touchpad. Or how can I restrict the movement for this page in pavement.
Could you provide control for touchpad events?
I usually detect movements on the trackpad by substituting navigationMovement (...). Take a look at this.
-
Passport for blackBerry lock screen stuck
my passport for blackberry is blocked on the lock screen and does not allow me to enter my password once it comes to enter the characters appearing on the screen keyboard. I tried to restart and reset the phone via the volume and power buttons, but he returned to the same scene. the device doesn't erase itself after more than 10 wrong attempts (since for some reason it does not pass number 6) nor possible to do the same thing with USB connection through link blackberry because I can not enter a password sort (link suggestion does not work due to either http://support.blackberry.com/kb/articleDetail?articleNumber=000035751). the phone was bought on amazon , but on the product support once the PIN code is entered the system responds that this is NOT AN AMAZON PURCHASE. So basically with a new phone (just 3 months) no support what so ever?
I want to be sure, I understand. You are able to slide up and reveal the password input box. Is this correct? I had the problem (no passport) where dragging up does nothing. But slide up in your case works, to the point where you can not enter the password characters that require you to use the software keyboard. What is the situation?
As far as being stick to 6 incorrect entries, it's probably safety device that requires the user to enter the blackberry before the device allows the user to try again the password.
-
How to create the method own slot in QT for blackberry Playbook
Hi all
After two days of work-around, I can successfully develop the project of the QT in Qnx IDE for blackberry playbook 2.0.
But now I have a problem to create the method of the slot to call on the click event of the specific button,
Here is my code.
#include
#include
#include
#include
#includeslots machines
void clickedSlots();int main (int argc, char * argv []) {}
qputenv ("QT_QPA_FONTDIR", "/ usr/fonts/font_repository/monotype");
QCoreApplication::addLibraryPath ("app/native/lib");
QApplication app (argc, argv);QWidget window;
Window.Resize(1024, 600);
window.setWindowTitle (QString::fromUtf8 ('QPushbutton Background'));
one click = new QPushButton ("Click Me");
Click on-> setToolTip ("Thanks");
Click on-> setMaximumHeight (100);
Click on-> setGeometry (400, 100, 100, 40);
QObject::connect (click, SIGNAL (clicked ()), & app, SLOT (clickedSlots ()));QPalette * palette1 = new QPalette();
Palette1-> setColor (QPalette::Button, Qt::blue);
Click on-> setPalette(*palette1);QPushButton * leave = new QPushButton ("Quit");
QObject::connect (quit, SIGNAL (clicked ()), & app, SLOT (quit ()));QPalette * palette2 = new QPalette();
Palette2-> setColor (QPalette::Background, Qt::green);
Exit-> setPalette(*palette2);
Exit-> setGeometry (200, 100, 100, 40);
QVBoxLayout layout = new QVBoxLayout (& window);
layout-> setGeometry (QRect (0, 0, 1024, 600));
layout-> addWidget (click);
layout-> addWidget (quit);Window.Show ();
Return app.exec ();
}void clickedSlots() {}
QMessageBox msgBox.
msgBox.setWindowTitle ("Hello");
msgBox.setText ("You Clicked");
msgBox.show ();
msgBox.exec ();
}Please help me with this problem. I had started to develop in QT before 2 days only. I'm not familiar with the development of QT.
Thanks in advance.
bskania.
You have the chance, I'm feeling generous today.
I fixed your code. You should really read the Qt documentation, it's fantastic. Here, it's a good start for the signals and Slots.
http://Qt-project.org/doc/Qt-4.8/signalsandslots.html
Mark this message as the solution and give me one as you please.
main.cpp
#include
#include #include #include #include #include "myslots.h" int main(int argc, char *argv[]) { qputenv("QT_QPA_FONTDIR", "/usr/fonts/font_repository/monotype"); QCoreApplication::addLibraryPath("app/native/lib"); QApplication app(argc, argv); QWidget window; window.resize(1024, 600); window.setWindowTitle(QString::fromUtf8("QPushbutton Background")); QPushButton *click = new QPushButton("Click Me"); click->setToolTip("Thanks"); click->setMaximumHeight(100); click->setGeometry(400, 100, 100, 40); myslots a; QObject::connect(click, SIGNAL(clicked()), &a, SLOT(clickedSlot())); QPalette* palette1 = new QPalette(); palette1->setColor(QPalette::Button, Qt::blue); click->setPalette(*palette1); QPushButton *quit = new QPushButton("Quit"); QObject::connect(quit, SIGNAL(clicked()), &app, SLOT(quit())); QPalette* palette2 = new QPalette(); palette2->setColor(QPalette::Background, Qt::green); quit->setPalette(*palette2); quit->setGeometry(200, 100, 100, 40); QVBoxLayout* layout = new QVBoxLayout(&window); layout->setGeometry(QRect(0, 0, 1024, 600)); layout->addWidget(click); layout->addWidget(quit); window.show(); return app.exec(); } myslots.h
#include
#include #include class myslots : public QObject { Q_OBJECT public: myslots() { }; public slots: void clickedSlot() { QMessageBox* msgBox = new QMessageBox(); msgBox->setWindowTitle("Hello"); msgBox->setText("You Clicked " + ((QPushButton*) sender())->text()); msgBox->exec(); }; }; myslots. Pro
TARGET = myslots DEPENDPATH += . INCLUDEPATH += . HEADERS += myslots.h SOURCES += main.cpp
Put all these files in the same folder, run qmake in there, it will produce a Makefile. Run make and it comes out a binary executable called myslots. That and your code works.
I don't have a lot of changes, I'll let you step through the code yourself to find out what I did. Look at the documentation for help.
I have not tested this Momentics, nor Alpha PlayBook/Dev. But I'm 100% sure the code works, since I ran it myself.
-
Can I have separate keys of singing for BlackBerry PlayBook?
Hi all
I have Blackberry signature keys, but in an article that I heard that it is separate keys required for the Blackberry Playbook of signature development applications is it true?
If not can I use same signature keys for this tablet also?
in fact, I have a Playbook with me, that's why I ask you and I want to convert my Blackberry Playbook app android app please check below link for FYI.
https://bdsc.webapps.BlackBerry.com/Android/BPAA/user-identification
Kiran.
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------
I give glory for each answer
HI Kiran_b,
you are right that the application device playbook and BlackBerry have different signing keys.
You cannot use blackberry sign button for Playbook.
In fact in the blackberry device you must sign the playbook and .cod files you must sign the .bar file.--------------------------------------------------------------------
Please mark as resolved messages if you found a solution.
Feel free to press the Bravo thank the user who has helped you. -
Button side blackBerry 10 on P9983
There is the button alttle between the side on the P9983 volume controls.
What can I use for?
It's called a Mute button. It goes to mute calls and music, it is also used for BlackBerry Assistant, you can go into the Settings - Wizard BlackBerry and disable the button mute to activate BlackBerry Assistant.
-
Error after update Blackberry AppWorld for blackBerry Smartphones
I received notification yesterday to update BB AppWorld, in order to be the owner of BB little good I am, I immediately did so, since the update, whenever I try to use BB AppWorld I get an error:
Uncaught exception: java.lang.NoClassDefFoundError
Nothing else seems to be affected, however, after a few jumps of battery, I noticed the same error appears on the start screen on startup and will take 3 clicks the OK button to clear.
It is worth mentioning that I have a 8530 Curve running OS v5.0.0.459
Any ideas how to solve this problem?
I've already deleted and reinstalled BB AppWorld as reinstalled the operating system (problem remains)
THX
Hi Dawnarie2280
Go to the www.blackberry.com/appworld from your browser to update your BlackBerry App World for BlackBerry. The update will solve this problem.
Thank you
-
Error starting for blackBerry Smartphones
Hello
Can someone help me on this. I have a Bold 9900 and bought two months. Only yesterday, I installed and uninstalled a few apps for my bb. Then when I tried to use FourSquare app, then an error "error at startup FourSquare: net_rim_bb_media_plugin Module not found" is displayed.
Not like that, I can't use my 'option' button where "error from net_rim_bb_options_app: net_rim_bb_timezonedynupdater Module not found" is displayed.
When I googled the problem, I can not find, but only one, so I noiced some missing module can do my media cannot be played. Then I checked my media files, and Yes, I can not play my fav songs! It displays "cannot read content.
So, can someone help me on this? I want to cry!
Hello
It seems that you might be missing some required system files and something might have been accidentally deleted in the process of installing and uninstalling various applications yesterday.
In this case, I recommend to reload the operating system using the method in the link below:
You should get back up and running.
-
Data transfer Palm Pilot IIIx for Blackberry 8320 blackBerry smartphones
Thanks to BBSingh for help posting this message. I would really appreciate help from the members of the forum to provide a remedy that is known to work with my Palm and Blackberry.
My problem is changing my old (December 1999 vintage) Palm IIIx data to my new Blackberry 8320. Years, I have used the Palm in conjunction with a Motorola L7089 (April 2000 vintage) and their IR ports for data transfer; Unfortunately, the phone fell in water and after drying carefully, he could make and receive calls again its screen remains empty, so no need to send SMS and most of the functions. Sales team convinced me to buy the Blackberry, but I'm starting to wonder if I've been conned, as usual with sellers once they get your money that they are not prepared to do anything else. New technology has undone me. In the long task of transfer of several thousand items manually I had recourse to the expertise of this forum.
A tip I found has been updated the Blackberry Desk Top Manager to v4.6 and it would list the Palm in its devices to transfer data from. I did, but the resulting Wizard at the point of registration of the Palm, but it wouldn't activate a greyed on the option button. DTM for Windows status options System Tray icon COM1 has been disabled. I could allow it, but as soon as this dialog box has been closed COM1 returned to the disabled state. BTW, this is a non sequitur on COM1 Hotsync of Palm transfers data to the PC via COM1 and the Palm software tools works very well also. I closed all the related applications of Palm and it made no difference. I tried DTM 4.5 with the same result. As an aside how the icon options DTM is deleted from the system tray, Windows Task Manager should be used to close the application.
Another tip say to export data from Palm in Outlook Express, then DTM would need to be OE. I enabled OE reluctantly because it is a questionable product, a favorite oxymoron is "microsoft security", has exported the Palm data in a CSV file, but when they are imported to OE it's garbage. Repeat the exercise but exported as tab delimited and got a worse result. Try to import or the other of these abortions in my Blackberry has been a waste of time.
Another tip say export data from Palm as VCF which can import BlackBerrys, but did not say how they did it. Palm tools allows only the comma or tab files in the delimited export formats.
MY PC is a Dell 4600 with 2 GB of RAM and 300 GB SATA HDD, XP Pro SP3, so that all the relevant fixes SP3 post. Windows Firewall software, the AV and malware have been temporarily disabled, and I logged in as administrator too.
RESOLVED - 98%
A big thank you to everyone who contributed ideas. Here is the solution to most data transfer: -.
1. install the Blackberry Desktop Manager 4.5
2. download the latest tools of Palm Desktop Manager which is 4.1.4 (I used 3.6)
3. perform hotsync of Palm IIIx with Palm tools
4. disconnect the Palm Pilot from PC
5. connect the Blackberry to the PC
6. open Blackberry DTM and check ' device (PIN): "appears
7. Select the device switch Wizard, grant conditions and the next screen shows active button for Palm devices, click Next
8 calendar, addresses, etc. are read, previews of each appear for approval; with the exception of the calendar. Click OK to finish and get out
9. close DTM, disconnect Blackberry
10, opening relevant applications on Blackberry to check, all transferred no problem except the grille which was empty
I can live without the old calendar entries and do not have to manually re-create handfull. So the question is settled.
-
BlackBerry smartphone Images to iPhoto for Blackberry Curve 8330
Hello, I am new to Blackberry and use a Mac (Powerbook G4). I installed the PocketMac for Blackberry and wanted to move a folder of images on my computer (in iPhoto), on my card micro SD on my Blackberry. I've selected the folder and then press the sync button, but now I can't locate the images on my microSd, or my phone memory... can anyone help, I am so frustrated?
Thank you
Hi and welcome to the forums!
Are these Jpeg images?
Go to the main screen of the media.
MENU KEY EXPLORE / MEDIA CARD/quick look through the directories for media, repeat for the memory of the device.
Check all folders on the card.
You can better served to solve this thread and open one in the Blackberry for MAC forums.
I don't know that you can benefit from the expertise and accurate information that users provide.
Thank you
Bifocals
Don't forget to adjust your thread. Put the check mark in the green box containing your answer! Thank you
-
Keyboard for blackBerry Smartphones won't work - HELP PLEASE!
My Curve 8900 is less than 6 months old, and suddenly the keyboad won't work, so I can't make/receive calls, and although the trackball works, it won't "click" to unlock. Seems to be an intermittent fault. As I have the Blackberry (it is not purchased via a service provider), I tried to contact customer service for Blackberry UK, who seems reluctant to deal with consumers. My service, O2 have been much more useful. How can I get a warranty repair/replacement, or solve the problem?
Well, after a WEEK, I'm totally furstrated with Blackberry. They have NO customer service in the United Kingdom, and as I have the BB (not through my mobile service provider, with whom I have a single contract SIM) I could get repair/replacement of parts. the only way I knew solving it had to spend many hours in an O2 store in the United Kingdom (my service provider) who finally had sympathy with me and agreed to sent for repair/replecement. I had one today renovated. It seems that this keyboard problem is common - the guy in the O2 shop showed me a way to fix it temporarily, hold down the ALT and right SHIFT buttons and press the DELETE key twice. This gives the BB a battery quick re-difficulty.
But I (and all of my colleagues (will now go to the iPhones, which are more reliable and they give better customer service.)) SHAME on Blackberry for their shoddy products and the non-existenet customer service.
-
Setting up email for blackBerry Smartphones, missing from section
Hello
I have a v5.0.0.423 bold 9700
It is on o2 uk, now I asked about blackberry bolt, this must be activated on Monday, but don't know if its me but when entering the email set up wizard I only get the blackberry Enterprise installation and not one where you can put your personal email in...
What should I expect that o2 enable the bolt on or there at - it something wrong?
Sorry for the hike, but I though I would be able to access my mail via wifi or is this not the case.
was never so easy to implement on the iphone, but I moved for blackberry...
could someone help me please
PS io used the search button
You should be able to set up your email accounts once your data plan is activated. I can't deal with your problems of WiFi I have a 9530 and it's outside my area of expertise.
-
How can I add a button for text Style/Bar?
Is it possible that I can add a button for Style/bar text in the composition window, next to the B, I, and U? System shortcut Mac did not: it appears the menu shortcut ("order /' ') & the menu flashes as if it works, but it's not.
https://addons.Mozilla.org/en-us/Thunderbird/addon/extra-format-buttons/?src=HP-DL-upandcoming
Maybe you are looking for
-
Pavilion p045tx: I lost a screw from my laptop. Is my warranty?
I swapped the hard drive of my laptop with a Samsung SSD by opening my cover of laptop myself. However, in the process, I lost one of the screws. I still have a year of warranty remaining. Can - I always avail guarantee for my laptop?
-
This is a toolbar of IObit.com, my system said it couldn't, t find the installation source. and my manage apps feature would not allow me access to the function 'delete '.
-
Shortly after the opening of the session, until I open all programs, icons go beyond the screen. I have to try and drag them from off screen. the cursor goes out of the screen. the taskbar disappears also. I'm clicking and dragging where I don't see
-
Cannot open the file on "AddressBook technology Parson 7.0" installed on Windows 7
I have installed Parsons address book 7 technology. It won't let me open my address book, it is said PTABiMPS.EXE not found or Conver Address Book 3.0 file impossible. PTABIMP3. EXE not found. What should I do?
-
How to change monitor assignment in the Middle bi-ecrans
I have two monitors connected to my computer Windows 7 - a viewsonic monitor and a panasonic tv plasma. Before I installed the TV - my Viewsonic sonic was the primary monitor. However, for some unknown reason - when I connected my plasma Panasonic TV