BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 04-08-2008, 02:36 AM   #1
arunk
Talking BlackBerry Encyclopedia
 
arunk's Avatar
 
Join Date: Mar 2008
Model: 8310
PIN: N/A
Carrier: Airtel
Posts: 229
Question Implementation of "SWITCH APPLICATION"

Please Login to Remove!

For my application i tried to implement the Switch Application feature.

But while invoking this feature, all running applications comes in switch application list, but their icons are displayed in black and white, not with color.

how can I get icons with color?
Offline  
Old 04-08-2008, 05:43 AM   #2
arunk
Talking BlackBerry Encyclopedia
 
arunk's Avatar
 
Join Date: Mar 2008
Model: 8310
PIN: N/A
Carrier: Airtel
Posts: 229
Default

....
Offline  
Old 04-08-2008, 02:47 PM   #3
lionscribe
Knows Where the Search Button Is
 
Join Date: Feb 2008
Model: none
Carrier: sprint
Posts: 24
Default

Wirelessly posted

You cannot. The color icons you see for many applications are part of the Home Theme.
Look a few post back, where I posted code to add the Switch Application Menu, and I added some code to add some color to B&W icons.
Lionscribe
Offline  
Old 04-09-2008, 05:17 AM   #4
arunk
Talking BlackBerry Encyclopedia
 
arunk's Avatar
 
Join Date: Mar 2008
Model: 8310
PIN: N/A
Carrier: Airtel
Posts: 229
Smile

thanks a lot lionscribe
Offline  
Old 04-17-2008, 02:59 AM   #5
arunk
Talking BlackBerry Encyclopedia
 
arunk's Avatar
 
Join Date: Mar 2008
Model: 8310
PIN: N/A
Carrier: Airtel
Posts: 229
Angry

I tried the code you gave but still icons are displayed in black and white...

Icons like phone,messages, home screen are in black and white,

my applications icon and BB messenger are with color
Offline  
Old 04-17-2008, 07:29 AM   #6
lionscribe
Knows Where the Search Button Is
 
Join Date: Feb 2008
Model: none
Carrier: sprint
Posts: 24
Default

Like I previously said, you cannot use an icon if it's not there. The colorful icons for the built-in programs are part of the Home interface and it's not available to developers. With the application, all RIM added was a default B&W icon. What I did with the code is to add some color brightness by making it blue rather than black, and using a yellow circle when showing selection.
Lionscribe
Offline  
Old 05-01-2008, 03:34 AM   #7
arunk
Talking BlackBerry Encyclopedia
 
arunk's Avatar
 
Join Date: Mar 2008
Model: 8310
PIN: N/A
Carrier: Airtel
Posts: 229
Question

I tried Eventinjection to invoke the switch application feature...

Hold ALT and press Escape...


Code:
EventInjector.invokeEvent( new
                          EventInjector.KeyCodeEvent( KeyEvent.KEY_REPEAT, (char)Keypad.KEY_ALT, KeypadListener.STATUS_NOT_FROM_KEYPAD, 5000));
                  
                  EventInjector.invokeEvent( new
                        EventInjector.KeyCodeEvent( KeyEvent.KEY_DOWN, (char)Keypad.KEY_ESCAPE,KeypadListener.STATUS_NOT_FROM_KEYPAD, 15));
                  EventInjector.invokeEvent( new
                          EventInjector.KeyCodeEvent( KeyEvent.KEY_UP, (char)Keypad.KEY_ESCAPE, KeypadListener.STATUS_NOT_FROM_KEYPAD , 15));
                  
                  EventInjector.invokeEvent( new
                            EventInjector.KeyCodeEvent( KeyEvent.KEY_UP, (char)Keypad.KEY_ALT,KeypadListener.STATUS_NOT_FROM_KEYPAD, 1000));
but its not working...


please help me....
Offline  
Old 05-01-2008, 07:19 AM   #8
lionscribe
Knows Where the Search Button Is
 
Join Date: Feb 2008
Model: none
Carrier: sprint
Posts: 24
Default

Wirelessly posted

ALT-ESCAPE needs that you press both at the same time and keep them pressed in. I don't believe you can simulate that with EventEjection. In addition, upon release of the buttons it automatically selects the one that is highlighted, which is not what you want. So give up, and use the code that was posted, even though the colors aren't perfect. Your user will care about the functionality, not the colors! I already added the code to one of my distributed applications, and it works fine.
Lionscribe
Offline  
Old 05-01-2008, 08:39 AM   #9
arunk
Talking BlackBerry Encyclopedia
 
arunk's Avatar
 
Join Date: Mar 2008
Model: 8310
PIN: N/A
Carrier: Airtel
Posts: 229
Question

if i am able to open the "Switch application " window, I am sure that i can make it working properly...

can you please try to open that window?

I tried whatever i can. thats why....

I have to implement that feature as its there in other BB Applications. otherwise i could have used your code....

please try eventinjection for "Switch application"
Offline  
Old 05-05-2008, 02:56 AM   #10
arunk
Talking BlackBerry Encyclopedia
 
arunk's Avatar
 
Join Date: Mar 2008
Model: 8310
PIN: N/A
Carrier: Airtel
Posts: 229
Default

In Option-> Screes/Keyboard -> Convenience key, I have seen a list of applications... In that Application Switcher is also there..

Anyone please tell me how to invoke that application through code...

If its possible, it can solve my problem....
Offline  
Closed Thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


Schneider Electric Energy Server EBX510 Server For Energy Management- picture

Schneider Electric Energy Server EBX510 Server For Energy Management-

$4350.00



FANUC Server Driver A06B-6077-H111 picture

FANUC Server Driver A06B-6077-H111

$2158.86



FANUC Server Driver A06B-6117-H211 picture

FANUC Server Driver A06B-6117-H211

$3993.99



SERVER TECHNOLOGY 4870-XLS-44 SENTRY VDC 48VOLT DC REMOTE POWER MANAGER picture

SERVER TECHNOLOGY 4870-XLS-44 SENTRY VDC 48VOLT DC REMOTE POWER MANAGER

$299.99



Server SE-SS 07020 Server Express Single Drop-In - NEW - COMPLETE - Genuine OEM picture

Server SE-SS 07020 Server Express Single Drop-In - NEW - COMPLETE - Genuine OEM

$180.00



USA Windows VPS Server / RDP Server / VPS Hosting 12GB RAM 400GB HDD 12 Month picture

USA Windows VPS Server / RDP Server / VPS Hosting 12GB RAM 400GB HDD 12 Month

$335.00







Copyright © 2004-2016 BlackBerryForums.com.
The names RIM © and BlackBerry © are registered Trademarks of BlackBerry Inc.