How to check if the menuitem application has already added to the application menu?
Hi all
I want to insert some menutime at the request of RIM, for example,
I have create a new menuitem Application named customizedMenuitem and add it to the request Message RIM.
Since then, each time when my application is started, it will add again.
So I want to check if it has already been added, if so, ignore to add it. If this isn't the case, application adds one more time.
I called removemenuitem before system.exit (0) when quiting my request, however, it doesn't seem to work.
That's why I check menuitem before I add.
Source code like this,
Constructor()
{
Super();
If (the _appMenuitem is not added to the RIM Application) {}
create a new menuitem application
ApplicationMenuItemRepostory.addMenuItem (int, applicationmenuitem)
}
}
Any word would be much appreciated!
Thanks in advance!
The most common way to deal with this is to store a value in the store of Runtime. Your application can save a value when it adds the ApplicationMenuItem, and then check to see if it is there when it is run a second time.
The Runtime store is erased when the BlackBerry is reset, which would coincide with the ApplicationMenuItem being deleted.
Tags: BlackBerry Developers
Similar Questions
-
Hello!
This is SANDEEP, I loaded data using FDM in HFM. How to check if the data is correct or not, what ever the data I was responsible in HFM.
Please tell me how to recover the data and what format, clearly can you me the data verification process step by step.
It would be useful for me...
Thanks in advance...
Kind regards
SANDEEP
Hi Sandeep,
I think the best way is to extract data from HFM for the same POV that you have loaded FDM and check if it is the same.
If you then use HFM 11.1.2.x version
1. login to the application and go to the menu Administration / extract / data.
2. set the POV that you have loaded the data, then unzip it. You can open the file unzipped in a notebook
3. you can compare the file with the data file generated by FDMEE under Outbox folder.
But what would you give all the data corresponding to the POV that you set. So please ensure that you have the correct POV, defined according to the export FDMEE.
Thank you
Chandra
-
My MacBook Pro suddenly becomes very slow, accepting orders very slow how to check if the ram is working properly
You can try this download. Etrecheck. https://etrecheck.com/#about
Then publish the report as a reply in this thread.
It will allow us to review your system without disclosing a private matter.
-
Hello
How knowledge/check if the RMAN backup was performed using a current control file or database catalog? I mean RMAN prompt or sqlplus is it possible to know.
Thank you
You're welcome my friend
You can see them using two methods.
as I mentioned above, you can see them connect to the catalog database and you can query using the view that I sent
http://docs.Oracle.com/CD/E11882_01/backup.112/e10642/rcmreprt.htm#BRADV89601
the other method is the list command, you must use the list command after connecting using rman "rman target / catalog cat_user/cat_pass@catdbtns" command
http://docs.Oracle.com/CD/E11882_01/backup.112/e10642/rcmreprt.htm#BRADV8136
Check the value of the control_file_record_keep_time parameter. The default value is 7 days. in the output of the list command, if you can see the old backups to the value, you must be sure that the backup information comes from the catalogue database
SELECT * FROM parameter $ v where name = 'control_file_record_keep_time '.
an example of command list
the list of completed database before backup ' sysdate-10'.
Concerning
-
How to check if the acrobat adobe pro xi is enabled
How to check if the acrobat adobe pro xi is enabled
Hi Shubham,
If the product is activated it will give the option to disable under the Help menu. Also whenever you launch Acrobat it will bring activation window if it requires one.
Thank you
Abhishek
-
How to check on the website of Adobe Creative Suite 6 Design & Web Premium (student version)? I don't find the sea site.
Check what... your serial number?
Your serial number appears on your account page?
https://www.adobe.com/account.html for numbers on your page from Adobe
Or do you want to download? Other downloads
-
How to check if the database for DRDA gateway is installed and configured.
Hi all
How can we check if the database for DRDA gateway is installed and configured.
Our operating system is AIX 5 L 64 bit OS.
RDBMS: 11.2.0.3
Kind regardsDuplicated
How to check if the database for DRDA gateway is installed and configured.+ - locked thread-+.
Nicolas.
-
How to check if the selection is any text tho:
Ok.. Another question:
How to check if the selection is any text tho:
if (app.documents.length != 0 && app.selection.length != 0 &&
(app.selection[0].constructor.name=="Text"||app.selection[0].constructor.name=="Paragraph"))
but sometimes the selection is 'textStyleRange', sometimes 'character' etc. is there a shortcut to check both?
I usually do something like this:
if ( app.documents.length && app.selection.length && app.selection [ 0 ].hasOwnProperty ( 'baseline' ) ) alert ( "It's a text!" );
Hope that helps.
--
Marijan (tomaxxi)
-
How to check if the support is rtmp or hds or progressive download?
How to check if the support is rtmp or hds or progressive download?
There is no direct way to do it.
I remember that there is a similar code in the code of StobeMediaPlayer, in PlaybackOtpimization*.as
Can I ask what you use it for? You should know what you're playing.
-
How to check for the two first digits?
Can someone please... There is demand to have a hidden field on the form that will be filled with data. It's going to be 6 digits long and could start with 02 or 04. I need to check on the DocReady event, for the first two digits. If the first two digits are 02, the presentation of the form will remain as it is. If the first two numbers are 04, I'll have to show two hidden subforms. Can someone please provide an explanation on how to check for the first two digits of field 6 digits and do some actions.
Thank you very much
No, only in the event: Exchange.
-
How to check if the directory is created using create or replace directory
Hello
I create a directory like below:
Create or replace directory TEST_DIR AS 'C:\ABCD '.
How to check if the directory is created or not? Is there any request for it?
Thanks in advance.
PKSELECT * FROM ALL_DIRECTORIES WHERE DIRECTORY_NAME LIKE '% TEST_DIR %. "
Published by: user3522507 on 2010.06.16. 07:19
-
R12.1.1 staging is complete! How to check if the scene is good
Hi Gurusl,
I finished the staging R12.1.1 for Hp unix B.11.31. I want to know how to check if the scene is good for installation or if it is corrupt. Is there a metalink note or the script from where we can check it out. your help will be very appreciated. Thanks in advance
Kind regardsHello
Please refer to (Note: 802195,1 - checksums MD5 for R12.1.1 Quick Install Media).
Kind regards
Hussein -
How to check if the persistence Unit objects are persistent or not?
How to check if the persistence Unit objects are persistent or not?
I have correctly set up and deploy the object used as a persistence in Oracle coherence unit according to the guide Chapter 6 of tutorial for Oracle coherence 3.5
Using the RunEmployeeExample script, I had good results. I see that once the cache object is updated, the database table (employees) is also updated accordingly. Here is the result:
But I can't check whether the persistence unit is still persistent.2009-11-05 11:09:55.043/53.467 Oracle Coherence GE 3.5.2/463 <D5> (thread=Cluster, member=1): Member(Id=2, Timestamp=2009-11-05 11:09:54.867, Add ress=192.168.8.80:8089, MachineId=24656, Location=process:1684, Role=OracleRunEmployeeExample) joined Cluster with senior member 1 2009-11-05 11:09:55.604/54.028 Oracle Coherence GE 3.5.2/463 <D5> (thread=Cluster, member=1): Member 2 joined Service Management with senior memb er 1 2009-11-05 11:09:56.885/55.309 Oracle Coherence GE 3.5.2/463 <D5> (thread=Cluster, member=1): TcpRing: connecting to member 2 using TcpSocket{Sta te=STATE_OPEN, Socket=Socket[addr=/192.168.8.80,port=8089,localport=4084]} 2009-11-05 11:09:57.847/56.281 Oracle Coherence GE 3.5.2/463 <D5> (thread=Cluster, member=1): Member 2 joined Service JpaDistributedCache with se nior member 1 2009-11-05 11:09:57.917/56.341 Oracle Coherence GE 3.5.2/463 <D5> (thread=DistributedCache:JpaDistributedCache, member=1): Service JpaDistributed Cache: sending ServiceConfigSync containing 258 entries to Member 2 2009-11-05 11:10:04.086/62.510 Oracle Coherence GE 3.5.2/463 <D5> (thread=DistributedCache:JpaDistributedCache, member=1): Deferring the distribu tion due to 1 pending configuration updates [EL Info]: 2009-11-05 11:10:14.36--ServerSession(2883071)--EclipseLink, version: Eclipse Persistence Services - 1.1.1.v20090430-r4097 [EL Info]: 2009-11-05 11:10:22.312--ServerSession(2883071)--file:/C:/JDeveloper/mywork/AppJPA/JPA/classes/-JPA login successful 2009-11-05 11:10:24.305/82.729 Oracle Coherence GE 3.5.2/463 <D5> (thread=DistributedCache:JpaDistributedCache, member=1): 3> Transferring 128 ou t of 257 primary partitions to member 2 requesting 128 2009-11-05 11:10:25.697/84.121 Oracle Coherence GE 3.5.2/463 <D4> (thread=DistributedCache:JpaDistributedCache, member=1): 1> Transferring 129 ou t of 129 partitions to a node-safe backup 1 at member 2 (under 129) 2009-11-05 11:10:25.857/84.281 Oracle Coherence GE 3.5.2/463 <D5> (thread=DistributedCache:JpaDistributedCache, member=1): Transferring 0KB of ba ckup[1] for PartitionSet{128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256} to member 2 2009-11-05 11:10:40.678/99.102 Oracle Coherence GE 3.5.2/463 <D5> (thread=Cluster, member=1): TcpRing: disconnected from member 2 due to a kill r equest 2009-11-05 11:10:40.678/99.102 Oracle Coherence GE 3.5.2/463 <D5> (thread=Cluster, member=1): Member 2 left service Management with senior member 1 2009-11-05 11:10:40.678/99.102 Oracle Coherence GE 3.5.2/463 <D5> (thread=Cluster, member=1): Member 2 left service JpaDistributedCache with seni or member 1 2009-11-05 11:10:40.708/99.132 Oracle Coherence GE 3.5.2/463 <D5> (thread=Cluster, member=1): Member(Id=2, Timestamp=2009-11-05 11:10:40.708, Add ress=192.168.8.80:8089, MachineId=24656, Location=process:1684, Role=OracleRunEmployeeExample) left Cluster with senior member 1 2009-11-05 11:10:40.879/99.303 Oracle Coherence GE 3.5.2/463 <Info> (thread=DistributedCache:JpaDistributedCache, member=1): Restored from backup 128 partitions 2009-11-05 11:10:40.879/99.303 Oracle Coherence GE 3.5.2/463 <D4> (thread=DistributedCache:JpaDistributedCache, member=1): 0, 1, 2, 3, 4, 5, 6, 7 , 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 4 4, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80 , 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 11 3, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 2009-11-05 11:28:39.800/1178.224 Oracle Coherence GE 3.5.2/463 <D5> (thread=Cluster, member=1): Member(Id=2, Timestamp=2009-11-05 11:28:39.635, A ddress=192.168.8.80:8089, MachineId=24656, Location=site:metsys.metex.com,machine:mw12,process:1752, Role=CoherenceConsole) joined Cluster with s enior member 1 2009-11-05 11:28:40.231/1178.655 Oracle Coherence GE 3.5.2/463 <D5> (thread=Cluster, member=1): Member 2 joined Service Management with senior me mber 1 2009-11-05 11:28:41.633/1180.057 Oracle Coherence GE 3.5.2/463 <D5> (thread=Cluster, member=1): TcpRing: connecting to member 2 using TcpSocket{S tate=STATE_OPEN, Socket=Socket[addr=/192.168.8.80,port=8089,localport=4143]} 2009-11-05 11:30:01.658/1260.082 Oracle Coherence GE 3.5.2/463 <D5> (thread=Cluster, member=1): Member 2 joined Service DistributedCache with sen ior member 2
Published by: jetq on November 5, 2009 11:49Re:
Does the above result shows that the persistence work is finished successfully?
Yes, it's nice. What is persistence. These are the characteristics of persistence.
Junez
-
In Windows Mail how can I get the answer, menu forward on top of the menu bar on the emails?
I don't think that you can move the toolbar above the Menu bar. Or is the toolbar missing? If it is not present, right-click on an empty spot on the menu bar and check the toolbar. -
How can I delete the Favorites menu in the menu drop down address bar in IE8?
How can I delete the Favorites menu in the menu drop down address bar in IE8?
Hello
Because you used the nickname 'DaddyJeff' do you need to remove the access of all to Favorites? Otherwise, please
describe in more detail what you need to do.I think that you should use the Parental control or group policies (GPedit if you have professional, company,
(or Ultimate).See this and the 'related links '.
How to install and use Parental controls in Vista
http://www.Vistax64.com/tutorials/95139-parental-controls-Setup-use.htmland these:
Setting up Windows Vista's Parental control
http://www.bleepingcomputer.com/tutorials/tutorial139.htmlSet up Parental controls
http://Windows.Microsoft.com/en-us/Windows-Vista/set-up-parental-controlsI hope this helps.
Rob - bicycle - Mark Twain said it is good. -
How can I make the start menu bigger?
How can I make the start menu bigger? GO BROWNS!
What do you mean largest? More Articles?
If so, right click on the ORB start and select Properties.
Click Customize, and then down, to increase the number of programs to display.
Maybe you are looking for
-
HP3310 all-in-one not recognize new cartridges
My 3310 has worked fine for two or three years now, but today I had to replace the black and magenta cartridges. For some reason when I insert the new cartridges the printer is displaying the message following and refusing to do anything: "the follow
-
Is there a way I can modify a setting for one of my contacts cannot see when I'm online? She gets notifications and see when I'm online, and I don't want to talk sometimes.
-
Photosmart HP 7520: HP photosmart 7520 error remains after the new cartridges installed
HP new cartridges installed, the error message "one or more cartridges appear to be damaged or missing" yellow cartridge is indicated, two new cartridges have been installed, without success. Device has been turned on several times but the error mes
-
that the pc is on time and date are wrong synchronization with windows or any other shows an error
-
Reception of IDE Device doesn't have ECC circuits error when starting
I have a Dell Dimension 2400 PC. The Dell monitor recently stop working and emitted a strange smell. I replaced it with a Samsung EX2220. From the start, I had problems getting started upward. I get a message that is not found primary drive 0. I