BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 11-17-2007, 06:02 AM   #1 (permalink)
Knows Where the Search Button Is
 
Join Date: Aug 2007
Model: 8100
PIN: N/A
Carrier: cingular
Posts: 33
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default Unable to delete Change Language Option from the Menu

Please Login to Remove!

Hi

I'm trying to delete the "change language" option from the menu.
Code:
for (int i = 0; i < size; i++) { // System.out.println("00track 1--"+i);
int id = _menu.getItemId(i);
// System.out.println("00track 2--"+id);
_menu.setDefault(i);
// System.out.println("00track 3");
MenuItem item = _menu.getDefault();
// System.out.println("00track 4");
System.out.println("MenuItem detail--" + item.toString());
//if(item.toString().equalsIgnoreCase("Clear Field"))
if (item.toString().equalsIgnoreCase("Change Language"))
delId = i;
}
_menu.deleteItem(delId);
I'm able to delete the "Clear Field" option with this code,but failing with "Change Language".

Please help!

Last edited by rock_win : 11-17-2007 at 06:04 AM.
Offline  
Old 11-18-2007, 07:09 AM   #2 (permalink)
Talking BlackBerry Encyclopedia
 
Skipper_Joe's Avatar
 
Join Date: Jan 2007
Location: Kharkov, Ukraine
Model: 8300
Carrier: N/A
Posts: 237
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

I suspect that problem is that after "Clear Field" is deleted, position number of subsequent menuitems is changed.
Offline  
Old 11-18-2007, 09:08 AM   #3 (permalink)
Knows Where the Search Button Is
 
Join Date: Aug 2007
Model: 8100
PIN: N/A
Carrier: cingular
Posts: 33
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Joe , in the code i'm explicitly checking, iff the item is "Change Language" or, so then positions wont play role.
Offline  
Old 11-18-2007, 09:09 AM   #4 (permalink)
Knows Where the Search Button Is
 
Join Date: Aug 2007
Model: 8100
PIN: N/A
Carrier: cingular
Posts: 33
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hey, any other ideas with which i can delete it.
Offline  
Closed Thread


Thread Tools

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

(1PCS) MC9S08GT8ACFCE IC MCU 8K FLASH 1K RAM 32-QFN 08GT8 9S08GT8
$2.44
(1PCS) MC9S08GT8ACFCE IC MCU 8K FLASH 1K RAM 32-QFN 08GT8 9S08GT8 pictureGOODWAY MODEL RAM-3 REAM-A-MATIC CONDENSOR TUBE CLEANING NO.11155 WORKS GREAT
$149.99
GOODWAY MODEL RAM-3 REAM-A-MATIC  CONDENSOR TUBE CLEANING NO.11155 WORKS GREAT picture1x MME UB8830D 8Bit, 2kx8bit Rom, 128x8 Bit Ram Dip-40
$3.99
1x MME UB8830D 8Bit, 2kx8bit Rom, 128x8 Bit Ram Dip-40 pictureRocketbook Wave Smart Notebook baby windows core dell intel fashion ram hd new 1
$49.63
Rocketbook Wave Smart Notebook baby windows core dell intel fashion ram hd new 1 picture(1PCS) MC9S12C96CFAE IC MCU 96K FLASH 4K RAM 48-LQFP 12C96 9S12C96
$17.35
(1PCS) MC9S12C96CFAE IC MCU 96K FLASH 4K RAM 48-LQFP 12C96 9S12C96 picture






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