BB Maps Menu item is added several times
Hi, I'm currently adding an ApplicationMenuItem custom to the Maps Application. However, no matter what I do, the menu items run method is never called, the place my application main method is called and the menu item is added once more to the menu card. In other native applications, it worked perfectly, just in the Maps app it seems not working. I also tried the information provided to http://www.blackberry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800332/800703/How_To _... but still got the same results. I have another point of entry to my request so that the menu item is added to the start of blackberry. If I remove the other entry point and add the menu item when the user starts the application in the bb menu, it works. I would be grateful any entry on the subject I would like to work with the other entry point. I use Eclipse with the JDE Plugin 1.0.0.67 with component Package 4.2.1 (also tested with 4.5.0). Thanks for your help, Lukas
I found the solution to my problem in this post:
Add the same argument that I use in my menu entry point (to differentiate the delivery of system boot) to the ApplicationDescriptor solved the problem.
Thanks again for your good help.
Tags: BlackBerry Developers
Similar Questions
-
menu touch event fired several times on the PlayBook
Hello
I see a problem on my Tablet (OS 2.0) that I don't see in the 2.0.0 Simulator. I have a menu bar that has two buttons: "export" and "import". When I click on the button "import" on my tablet, it triggers the method linked five times. In the Simulator, it does raise the method once. Any ideas on what could be the cause?
I use this code to link the method:
$('#buttonImport').click(function (evt) { menuImport(); }); // end .click
Here is the code of the method itself:
function menuImport() { hideMenuBar(); var oOptions = { title : "Confirmation", size : blackberry.ui.dialog.SIZE_SMALL, position : blackberry.ui.dialog.CENTER }; var iConfirm = blackberry.ui.dialog.standardAskAsync("Do you want to overwrite all current data?", blackberry.ui.dialog.D_YES_NO, function (index) { if (index == 0) { dbChecklistOpen.importDatabase(); }; // end if }, oOptions); // end customAskAsync }; // end menuImport()
Any help would be appreciated.
Thank you
I just figured that it is not a problem of "event-fire. It is a problem of menu display. When I slide down, the menu is not displayed correctly. I had spent five times already before the menu that is displayed. Then when I hit the button, he shot all five instances of the button.
I'll close this thread and reformulate my description of the problem in a new thread.
Thank you
-
Listener is the addition of several times
Hello
My app account number of messages send by user for this I wrote to count the messages app. I did it using sms listener concept, but the problem is listener sms adding several times. Whenever I start the app it adds a listener most. Anyone has idea how to add sms listener only once?
Please help me on this
RuntimeStore runtimeStore = RuntimeStore.getRuntimeStore(); if( runtimeStore.get(MYKEY) == null ) { MyListener myListener = new MyListener(); runtimeStore.put(myListener,MYKEY); } else { MyListener myListener = (MyListener)runtimeStore.get(MYKEY); }
-
Adding items to an array of unknown size several times
Hey,.
I had an application that communicates with a device (a generator of microwave) via the Protocol modbus RS-232. It is within a state machine. The VI running generator initialization first and then move to the State 'pending', where I have a structure of the event to follow any value change of control. In the structure of the event, a timeout of 300 ms is implemented, because communication to the generator must be active at least every second (if not a defect is reported). In the case of timeout I read all record and display values.
Within this time-out I would record a value of the indicator ('measure Pfwd') several times in a 1 d table (the table size is unknown!). However, I would like for the variable to record only when the indicator 'MW?' is 'TRUE '. And "MW?" goes from 'FALSE' to 'TRUE' every time, I would like to start writing on a table from the beginning.
I tried several options, including the table to remodel, but I can't make it work. Or it works in a separate VI, but when I use it within the structure of the event and state machine, nothing works.
If someone has an idea, it would be welcome...
Thank you
Concerning
Create an another shift register which is initialized with an empty array of the correct data type and use the node Build table add data to it when you want that he added.
In BT, the size of a table doesn't have to be declared in advance.
Mike...
PS: other tunnels must be wired throughout.
-
With my script ESTK, users select the model numbers in the list and then the script inserts an element with a model number is entered in an attribute, an element for each selected model.
When you add a large number of elements, each element of extra brother takes a little more then the previous item adds. Adding 250 items may take longer than 3-1/2 minutes or more. During the addition of 20, 50 or 75 items happens quickly, without any noticeable length. It is somewhere in the top 110, this is where that starts to get noticed.
I even used $.hiresTimer and writes the value to the console for each time a model has been added. Because the timer is reset to zero (0) whenever it is called, it was easier to notice than the amount that it incremented from one element to the other got progressively bigger.
Any ideas as to why it takes so long or reflections on what I could do to speed it up?
The structure looks like this:
< PartModels >
Text < NoteText > < / NoteText >
< model ModelNumber = "ABC01" / >
< model ModelNumber = "ABC02" / >
< model ModelNumber = "DEF03" / >
< model ModelNumber = "DEF04" / >
…
…
< model ModelNumber = 'XYZ01-A' / >
< model ModelNumber = "XYZ * B" / >
< model ModelNumber = "XYZ500" / >
< / PartModels >The script is quite simple: scroll a selected model numbers table, add a new item for each model number and value of the attribute, the value of the model number. It's the short version:
Function InsertModelElements (modelsToIns, insElemLoc, GVdoc) {}
var newEleId;
var newElemLoc = insElemLoc;
var elemDef is GVdoc.GetNamedElementDef ("Model");.
for (var i = 0; i < modelsToIns.length; i ++) { / / modelsToIns is the selected model range }
newEleId = elemDef.NewElementInHierarchy (newElemLoc); //ElementLoc based on NoteText first, last, or absent
SetAttribute (newEleId, "ModelNumber", null, modelsToIns [i]); //More feature robust to set the attribute
/ * Which also works for the layout attribute * /.
var vattributes = newEleId.GetAttributes ();
vattributes values [0] [0] = modelsToIns [i];
newEleId.Attributes = vattributes;
/ * At one point, I tried to use a new location of the item to the last inserted element, no change * /.
var newElemRange = setElementSelection (GV_doc, EleId); function that returns the range
newElemLoc = newNewElemRange.end;
}
}
Any help is appreciated.
Sincerely,
Trent
Thanks Russ,
I seriously considered trying to copy/paste and started to change the code to do it. But I could not let pass, the answer should be right there in front of me, it's all too long that I worked with this stuff, I am not able to see. Then it dawned on me what's happening.
In a previous test, I put a timer on each action that is closed. For example, I start with a container element that has 200 children of elements, each with a specific/unique model number attribute. All the 200 existing items are deleted and then replaced with 250 new items with a different value for the attribute of model number. The timer was placed after the Element.Delete () and ElementDef.NewElementInHierarchy () methods. What I've noticed with the timer, it's that each deleted item has been removed as fast as the previous item (so it took progressively less and less time to remove an item). And of course the opposite was noted for insert items, each inserted item has taken longer than the previous inserted item.
These elements can be inserted in two areas of the structure, one of the neighborhoods within format rules that affect the formatting and is actually a bit faster. This led me to the cause being ESD format rules. The area that takes more time has quite a few rules of extensible format that apply. Whenever an element is inserted or deleted, FrameMaker through these rules for formatting the content of elements. Given that the rules apply to the parent, first, last, next, previous, etc., FrameMaker must apply the rules of the format to all elements of the structure that the rules (which are extremely complex due to various elements, attribute values, and combinations that can be inserted).
Removal or thinning of the FormatRules in ESD, she becomes faster. But each of the FormatRules are needed. So using app. ApplyFormatRules = false; just before that the elements are deleted and inserted works very well. But the key is to implement ApplyFormatRules return to true before remove the last element should be removed and before inserting the last element to be inserted, so it allows to scroll all the rules of format of ESD for all elements in the hierarchy of these format rules apply to. ApplyFormatRules true and assign the ElementDef until the last item works also [EleId.ElementDef = GV_doc. GetNamedElementDef (insElemType);], but only before all the other functions are performed or different items are added.
doc. Reformat() will not reformat the content correctly after the fact, because the element has been created without the format rules, so it reformats all the contents of the elements without the format rules.
The FDK version which was created 10 years ago had the same problem of slow operation when a large number of items have been inserted, but was still an improvement over having manually insert each item, and then type the value of the attribute, if she had lived with.
He now works surprisingly fast. I hope that my explanation of what I think is happening, including the cause/solution, is understandable.
Sincerely,
Trent Schwartz
-
I opened this morning with no problems, went to my g-mail account, pulled upwards an e-mail, click on answer, typed my respons, but when I hit send, everything went completely empty.
I have not compressed, without... menu bars anything other than firefox upper-left logo and reduce it, full-screen/small screen and close / x buttons in the upper left corner... it's she.
I uninstalled and reinstalled several times, but nothing works.
What now?
COR - el,
Wow... that was well above my head... at least tonight. Laughing out loud
After my last post, I did a little research and figured out how to import my favorites in IE8... so I uninstalled firefox again... but this time I had checked the "delete my personal Firefox and customizations" in the wizard, who did remove two addons (Ghosery and Ad Block Plus)... the relocation was different this time and the first time you start firefox He asked if I wanted to import my IE Favorites, which I did... I now added Ghosery and Ad Block... and if so far everything goes well... seems I got this back up and running.
The mention of the malware in a madperson add-on has been helpful to my solve my problem.
Thanks for the help...
-
I have an application that I want to add to the Contacts Menu using MENUITEM_ADDRESSBOOK_LIST. In the Simulator, I run the application and it adds to the menu (using the example code for the function t.test with). Whenever I run it, it adds another instance of the menu item. Now the questions:
(1) the user should click on this app to add it to the menu?
(2) what happens when the device is restarted? They will have to run the application again to add it to the menu yet?
(3) how can I determine that menuitem has already been added and not keep adding every time that the application runs?
Thanks for the help
You must configure your application as an application 'auto start' (see the project properties in the JDE).
You have two entry points - the "automatic" Startup entry point and the GUI entry point.
You will add your menu item in the "automatic" startup code
See this link:
There is also an example of this in the developer's guide.
-
July 13, 2010: My Firefox toolbar has suddenly disappeared, except for the back arrows on the left side. I tried Firefox stop and start several times, but nothing has changed. All toolbars are selected in the view menu... but nothing is visible!
See the Navigation buttons such as back, home, bookmarks and recharge are missing
-
How to remove the added by BrowserContent menu item
I have an application where a browser obtained from browserContent.getDisplayableContent () field is added to the main screen. This adds 'Selection Mode', 'Page View' and 'Find' menus. How can I get rid of these. I overrode protected makeMenu Sub (menu Menu, int for example), but the menu items do not fade.
protected void makeMenu(Menu menu, int instance) { Field focus = UiApplication.getUiApplication().getActiveScreen().getLeafFieldWithFocus(); if(focus != null) { ContextMenu contextMenu = focus.getContextMenu(); contextMenu.clear(); this.getContextMenu().clear(); } }
My request is basically similar to the example of BrowserFieldSampleApplication.java, which is part of the SDK.
Thanks for your help
I managed to solve it this way. In my class that extends the screen, I substituted makeMenu():
protected void makeMenu(Menu menu, int instance) { menu.deleteAll(); menu.add(myMenuItem1); menu.add(myMenuItem2); super.makeMenu(menu, instance); }
The deleteAll() method removes all menu items - then I add my own menu items. Finally, super.makeMenu (calling) adds the "Close" menu item
-
Adding Start Menu items. How the security he she?
Hello
I installed two apps (Metatrader 4.0) on 2 separate files and during the process of installation in two different Start Menu items (names). Only is shown in my Start Menu. I have already tweaked apps and have both appear in my Start Menu. I just (very) recently did a clean install of my system. I have 2 external hard drives and network drives 2. I had problems with the owners, the permissions and access rights but have finally fixed (see my post - http://answers.microsoft.com/en-us/windows/forum/windows_7-security/how-do-i-reset-the-security-settingsuser/11d336a3-5d72-4168-98b1-f00977418c40).
My question: how save is just go to C:\Program Data and add the items in the Start Menu for the second installation I've done. The one that is currently contained in C:\Program Data. I need to change the Windows registry too?
Thanks for the tips. I need her and don't want to ruin things once again. BTW, I'm running Windows 7 Pro 64 - bit SP1. I never realized that Windows 7 applies a strict policy of ACL (Access Control List) and now I'm a little more careful.
See you soon.
Cmaker3
Good installers you ask if you want its application shortcuts visible to all the users or just for the current user. Shortcuts are then placed according to your answer. If your installer does not ask this question then you can fix things later by adding or removing shortcuts to the subfolder of program data. It is a matter of convenience, not 'security '. The presence or absence of a shortcut has no effect on the functioning of Windows.
There is no need to hack the registry when you place a shortcut.
-
I installed camera raw which supports photoshop cs5 several times, but why I'm not able to find the raw camera filter menu Filter
Hi sharathm,
Greetings!
Camera filter gross was not with photoshop CS5.
You have installed the camera raw plugin and not filter raw from the camera.
You can open files in camera raw using of bridge or just right click on the image and choose open in camera raw.
Check out this video here: https://www.youtube.com/watch?v=UKJuUC9_XUg
Concerning
Jitendra
-
Several list drop-down menu items to fill the area of separate text even. How can I do?
Acrobat x Pro, I have figured out how to create a dropdown menu with items that will populate a separate text box, but how do I get several menu items to fill the text box. For example. My menu has three items, cat, dog, mouse. I choose the cat and it appears in the separate text box (hooray). Then I choose "dog" in the same menu. I would like it to appear in the text box even my previous selection 'chat '. Is this possible? I am very new to JavaScript, any help would be greatly appreciated! Thank you
Change the last line:
getField("Text_field_1").value += "" + aQuotes [point];
-
Added keyboard shortcuts for menu items created by the script. Is this possible?
Hi all
I wanted to create a custom script menu and assign (on the numeric keypad) shortcuts to the menu items so that I could run a script with small changes rather than change a few (currently seven) scripts separated and assign a shortcut to each of them. But now, I realized that the custom menus are not visible in the "Keyboard shortcuts" dialog box (What a disappointment!)
Am I missing something here? Or is there a workaround?
My idea was to trigger the main script - floating Tables.jsx - from the Manager menu item from the menu title as an argument.
var tableMenu = app.menus.item("$ID/Main").submenus.item("Table"); // "Floating Tables" sub-menu try { var subMenu = tableMenu.submenus.item("Floating Tables"); subMenu.title; } catch(err) { var subMenu = tableMenu.submenus.add("Floating Tables", LocationOptions.AT_END); } var topLeftAction = app.scriptMenuActions.add("Top Left"); var topLeftListener = topLeftAction.eventListeners.add("onInvoke", FloatingTablesHandler); var topLeftMenuItem = subMenu.menuItems.add(topLeftAction); var topCenterAction = app.scriptMenuActions.add("Top Center"); var topCenterListener = topCenterAction.eventListeners.add("onInvoke", FloatingTablesHandler); var topCenterMenuItem = subMenu.menuItems.add(topCenterAction); var topRightAction = app.scriptMenuActions.add("Top Right"); var topRightListener = topRightAction.eventListeners.add("onInvoke", FloatingTablesHandler); var topRightMenuItem = subMenu.menuItems.add(topRightAction); var bottomLeftAction = app.scriptMenuActions.add("Bottom Left"); var bottomLeftListener = bottomLeftAction.eventListeners.add("onInvoke", FloatingTablesHandler); var bottomLeftMenuItem = subMenu.menuItems.add(bottomLeftAction); var bottomCenterAction = app.scriptMenuActions.add("Bottom Center"); var bottomCenterListener = bottomCenterAction.eventListeners.add("onInvoke", FloatingTablesHandler); var bottomCenterMenuItem = subMenu.menuItems.add(bottomCenterAction); var bottomRightAction = app.scriptMenuActions.add("Bottom Right"); var bottomRightListener = bottomRightAction.eventListeners.add("onInvoke", FloatingTablesHandler); var bottomRightMenuItem = subMenu.menuItems.add(bottomRightAction); var backToTextAction = app.scriptMenuActions.add("Back to Text"); var backToTextListener = backToTextAction.eventListeners.add("onInvoke", FloatingTablesHandler); var backToTextMenuItem = subMenu.menuItems.add(backToTextAction); function FloatingTablesHandler(event) { var args = [event.parent.title]; app.doScript(mainScriptFile, ScriptLanguage.JAVASCRIPT, args, UndoModes.ENTIRE_SCRIPT, "\"" + scriptName + "\" Script"); }
The main script reads the argument as follows:
alert("The argument -- " + args[0]);
If my memory is good, of Rorohiko's APID ToolKit can create "Assignable shortcut" menus I don't know this for sure at the moment because these menus a long time ago.
BTW, the question was asked here, but he has failed.
Kind regards
Kasyan
Hi Kasyan,
If what you're asking, is if it is possible to assign a keyboard
shortcut in the usual way with a menu created by a script item and then
of course, of course you can.
Add the menu item and then assign some k.shortcut you want-
you will find your menu items in the 'Scripts' category in the keyboard
Shortcuts dialog box.
Ariel
-
problem adding the shortcut menu item
I want the form of users must be open when you press Ctrl + U.
I made after the entry into fmrweb.res which did not work.
85: 2: "Ctrl + U": 11022: "FORM of USERS.
The property of acceleration for the menu item has been ACCELERATOR1.
How to add a shortcut for this menu item shape in oracle 10g.Shortcuts for menus are used in forms according to the Windows Standard (such as Alt "Key" to open the main menu and then a second 'key' to select the option). You do this by placing a & (and commercial) in the text to menuitem (before the letter you want to use as a shortcut)
You can use any other key mapping comes from the frmweb.res file to make a CALL_FORM in the trigger appropriate (for example, to KEY - F1)
-
Context menu appears several times on its own! Windows 7 Home Premium
I can hardly get anything accomplished on my desk more because the context menu appears on its own again and again, and I have to click anywhere on the screen until it goes away. Help!
Hello
1 follow these steps to remove corruption and missing/damaged file system repair or replacement.
Run DiskCleanup - start - all programs - Accessories - System Tools - Disk Cleanup
Start - type in the search box - find command top - RIGHT CLICK – RUN AS ADMIN
sfc/scannow
How to fix the system files of Windows 7 with the System File Checker
http://www.SevenForums.com/tutorials/1538-SFC-SCANNOW-Command-System-File-Checker.htmlHow to analyze the log file entries that the Microsoft Windows Resource Checker
(SFC.exe) program generates in Windows Vista (Windows 7 also) cbs.log
http://support.Microsoft.com/kb/928228Then, run checkdisk - schedule it to run at next boot, then apply OK your way out, then restart.
How to run check disk in Windows 7
http://www.SevenForums.com/tutorials/433-disk-check.html-----------------------------------------------
2nd - Contextual Menu (right click) troubleshooting questions are an exercise of the elimination process.
Make a right-click is slow or weird behavior caused by context menus managers
http://WindowsXP.MVPs.org/slowrightclick.htm
and here:Manage the entries in the context menu for files, folders, disks, and objects in the Namespace
http://WindowsXP.MVPs.org/context_folders.htmThe ShellExView utility displays the details of shell extensions installed on your
computer, and you can turn on and off easily each shell extension.
http://www.NirSoft.NET/utils/shexview.htmlShellMenuView is a small utility that displays the list of static menu items that
appears in the context menu when you right click on a file/folder on Windows
Solution Explorer, and allows you to easily disable unwanted menu items.
http://www.NirSoft.NET/utils/shell_menu_view.htmlHow to change or remove items from the right click Menu.
http://www.WinVistaClub.com/E11.htmlI hope this helps.
--------------------------------------------------------------------------------------------
Rob Brown - Microsoft MVP<- profile="" -="" windows="" experience :="" bicycle="" -="" mark="" twain="" said="" it="">->
Maybe you are looking for
-
A Web site can store data for offline use without asking?
In options, advanced, network, web content offline and the user data, I 'tell me when a website asks to store data for use in offline mode"checked And then in the box below that lists Web sites that are allowed to store data for offline use there is
-
I just lost an important note on my I-phone - since it has been deleted by mistake on one device, the cloud - I deleted all devices - how can I get it back?
-
Satellite L550 - system slow start
Hi people! Got a new Satellite L550 running Vista 32 - bit, everything seems fine except for a few things on this machine that goes like this: 1 system restore is one hell of a long process I have ever met so far-time is gasoline and 17 GB of restore
-
WPF chart - select a horizontal range
Hello I use the chart WPF of MS2015, I want to allow the selection of a range of horizontal (without zoom) so that the user can see the selected range. 1. How do I allow to select the horizontal range in the chart? 2. the data graphic is ChartCollect
-
Windows Media Player has encountered a problem and needs to close
Original title: Window Media Player I run Window XP Professional Service Pack 3. My Window Media Player suddenly opens for a second and disappears again. I downloaded the software again, but nothing has changed. I downloaded Microsoft troubleshooting