How to paste text in ANY editable field (e-mail, sms, browser, contacts address bar / any other application)


Can anyone help me please with the following questions:

1. once I have add a menu item to help

ApplicationMenuItemRepository.getInstance().addMenuItem(ApplicationMenuItemRepository.MENUITEM_SYSTEM, myMenuItem);

I am able to access an instance of net.rim.blackberry.api.mail.Message (when I'm in the e-mail editing mode) and put the content in the subject / body of the email, but it was mostly a proof of concept for me.

What I really want to be able to do, it's automatically access the instance of any editable field in any (RIM / part 3) app that the user cursor is now. When the focus is on something that is not editable, then my menu item should not appear in the menu.

In addition, it is important for me to know exactly where the cursor is. For example if the cursor is in the middle of the text, then I want that my extraordinary paste paste of stuff there. The same for the selected text - it needs to be replaced.

Basically I want my menu Paste Special feature works exactly like 'Stick', unless I want to offer which should be pasted.

2. Apart from curiosity, what are we supposed to go back to the

public Object run(Object context)

method? For now, I'm doing my treatment based on the type of control context and make the treatment on it and everything just return null (which works well), but I don't know I'm on some features.


Never done this, but looking at the API and remembering what simon_hain said when asked a similar question, I think it goes like:

You can get help from the active screen

UiApplication.getUiApplication () .getActiveScreen ();

You can get the Menu for a screen to help

. getMenu();

You can browse the menu for help

. getItem()


. getSize()


I think that 'toString' will give you the message, then

. Run()

to run it.

Tags: BlackBerry Developers

Similar Questions

  • When I got the test I deleted some things out of my computer to make sure that I had enough space. I deleted something and now photoshop or any other applications do not work. How can I solve this problem? Since then, I have now bought creative cloud

    When I got the test I deleted some things out of my computer to make sure that I had enough space. I deleted something and now photoshop or any other applications do not work. How can I solve this problem? Since then, I have now bought creative cloud

    Is there a message you get when you launch Photoshop? Please tell us which version OS are you using, try:

  • Select the default tray when printing from MS Word or any other application HP OfficeJet 8610


    We have HP OfficeJet 8610 with additional tray. So, we have Tray1 and bac2. That's what I read in the specs of the printer about how we can use the bins:

    • Loaded into all of the paper trays and use paper from a tray if the other tray is empty
    • Loaded into all trays and paper of one of the bins first use
    • Be able to choose plain paper and another type of paper that you use occasionally

    My question is:

    Let's say that we have put the tray 2 as the default tray.

    In MS Word or any other application in layout, you can define special tray (say 1 tray) paper source. This means that the document should be printed on paper from the selected tray (Tray 1). But in our case, the document is always printed using paper from the default tray (tray 2).

    Could you please confirm that this is the expected behavior?

    Thank you so much, Ana.

    Hi @AnaGligorijevic,

    I understand that you want to be able to print the same document at different trays and change the setting via the Word software. This printer is not able to change the settings of the tray for different pages in the same document to multiple pages.

    To work around this problem, you can use the parameter to "print pages." "Select it print pages selected, then for other pages ' print pages" yet once and then change the parameters of the status bar of the application.

    The application, you can change the settings of the tray for 1 page or a multiple page document. But it will print all pages of the specified tray.

    Hope that makes sense. Thank you!

  • When I scroll in Firefox, a line of distortion appears horizontally across the page. It is in any other application.

    When I scroll in Firefox, a feint but remarkable line of distortion (directly in line with where my cursor is grabbing and dragging the scroll bar) appears horizontally across the page in multiple windows of Firefox. It is in any other application. Mac OS X 10.7, Lion on a Mac Mini Server, 2011. Suggestions or files I have to remove to do that, go away?

    You are welcome

  • Whenever I have to download a trial of After Effects or any other applications it will indicate your download begins to start but nothing downloads... It is not even came in my creative cloud. And I don't have a page of the application when I open creativ

    Whenever I have to download a trial of After Effects or any other applications it will indicate your download begins to start but nothing downloads... It is not even came in my creative cloud. And I don't have a page of the application when I open creative cloud. Help, please

    N ° 1)

    Click on the link below and open Photoshop Elements download link.

    Note: we are not anything downloaded from the page of Photoshop Elements.

    Do not close the page, just keep it open.

    Download Photoshop Elements products | 10, 11, 12, 13

    Then click on the link below and download the installer directly mentioned in step 2.

    Step 2)

  • I'm having a redemption code that goes into problem.  I can enter numbers, but when I try to enter all the letters it is as if the computer is locked, but he is not on any other application

    I'm having a problem entering my redemption code.  You can enter numbers but no letters.  It's as if the computer is locked when I try.  My letters work on any other application

    Looks like you are trying to use a (alphanumeric) redemption code where you are supposed to use a serial number (strictly digital).  A purchase is normally used to purchase a serial number... serial number is what you enter to activate the software.

    Using redemption code


  • Get the text in the Edit field


    In my Application, I add a check box and a label field and a field change a grid field Manager. Then this network domain manager, I add several times in Vertical field Manager. So it's looking like list of items. Now, when I checked the box five, trying to get the text of the corresponding edit field.

    This is the code for the domain network manager:

    int c[] = {screenWidth/6, (screenWidth)/3, (screenWidth)/2};
            gm = new GridFieldManager(c, Manager.VERTICAL_SCROLL);
            Logger.out("Grocery", "Here it is coming"+i);
            cbfChecked = new CustomCheckBoxField();
            cbfChecked.setChangeListener(new FieldChangeListener()
                public void fieldChanged(Field field, int context)
                    if(checked[i] == false)
                        checked[i] = true;
                    else if(checked[i] ==  true)
                        checked[i] = false;
                        Logger.out("Grocery", "It is UnChecked" +checked[i]);
            Logger.out("Grocery", "Adding first Label Field");
            LabelFieldCustom lfFrom = new LabelFieldCustom((String) m_vtrItems.elementAt(i),Color.BROWN,FONT_FAMILY_0_SF_AS_16,Field.FIELD_LEFT);
            Logger.out("Grocery", "Adding second Label Field");
            efcAmount = new EditFieldCustom(Bitmap.getBitmapResource("dob_text_box.png"), 25);
            efcAmount.setMargin(new XYEdges(30, 0, 0, 0));
            return gm;

    Here I add the grid domain manager several times:

    for (int i = 0;i < m_vtrItems.size();i++)
                vfm.add(new SeparatorField(SeparatorField.NON_FOCUSABLE));

    Here is the snapshot of my screen:

    Please help me.

    You can access the field by index (prone to errors if).
    or you could save your fields in a data structure, such as a hash table, with the checkboxfield as key to the editfield as value.

  • How can I set up my page of e-mail to two different addresses?

    I would like to that mail sent to two e-mail addresses, on my e-mail using Thunderbird page.
    How do I do that?

    There is if you use the menu bar as shown above.

    If you use the AppMenu button that's under the new Message for an unknown reason. The menus in the AppMenu tree are so foires I try to never refer to them.

  • on the left side of my address bar, is to show that firefox has blocked content that is not secure, whenevr I on facebook or any other applications related to it.

    Firefox blocks the content of almost all Web sites.

    It is even shows that for this page.

    Whenever I update the facebook page / year app on facebook that will appear.

    Previously it used to crash firefox, then I've updated, but since it is just keeping it blocking if gray / geen colorful lock is active on the left side of the address bar.

    So whenever I get this error I have to refresh the page & disable the protection on the page again.

    If the site is verified then firefox blocks almost everything.

    You can attach a screenshot?

    Use a type of compressed as PNG or JPG image to save the screenshot.

    You can try the following steps in case of problems with web pages:

    Reload Web pages and ignore the cache to refresh potentially stale or corrupt.

    • Hold down the SHIFT key and click the Reload button
    • Press 'Ctrl + F5' or 'Ctrl + Shift + R' (Windows, Linux)
    • Press 'Command + shift + R' (Mac)

    Clear the cache and cookies only from Web sites that are causing problems.

    "Clear the Cache":

    • Firefox/tools > Options > advanced > network > content caching Web: 'clear now '.

    'Delete Cookies' sites causing problems:

    • Firefox/tools > Options > privacy > Cookies: "show the Cookies".

    Start Firefox in Safe Mode to check if one of the extensions (Firefox/Firefox/tools > Modules > Extensions) or if hardware acceleration is the cause of the problem (switch to the DEFAULT theme: Firefox/Firefox/tools > Modules > appearance).

    • Do NOT click on the reset button on the startup window Mode without failure.
  • How to input text index search/edit/delete in the documents


    I have a catalog that contains a lot of index entries. I use indexes to sort all products. Usually the index entry is 'product name', and if the product is "New", I'll add 'product name NEW' in the index.

    So when I do the new catalog, I have to remove the old texts 'NEW' in the index.

    1. How can I find the index entries in the document (protected by a kind of brand that can be found)?
    2. How can I change/remove the specific text in the index entries?

    Thank you in advance to anyone who responds to this post.

    Open ExtendScript Toolkit, paste the script below and press "F5".

    #target "indesign";
    (function () {
        var doc = app.activeDocument,
            indexIdx = doc.indexes.length - 1;
        function removeNewEntriesFromIndex(index) {
            var idx = index.topics.length - 1;
            for (; idx >= 0; idx -= 1) {
                index.topics[idx].name = index.topics[idx].name.replace(/ *NEW$/, '');
        for (; indexIdx >= 0; indexIdx -= 1) {
  • How to paste text into Adobe comp cc?

    On my iPad to the text copied from Adobe pdf reader. But could not find a way/option to paste in comp CC. help?

    I don't think that it is well put together, but I could make it work.

    You must first create a text block, and then click on carefully at the beginning, and you'll see a paste option:

    Once you paste the text you have in the Clipboard (for example, after a copy of Adobe Acrobat mobile) will replace your text:

  • How to enter text in a numeric field if the value is null

    This is probably very simple, but I can't seem to find the answer. I am using LiveCycle Designer 7.0.

    I have a numeric field that calculates the percentage change between two other fields of digital type. Because the denominator of the equation can be zero, I placed the calculation in a 'If, Then, Else' statement. However, I can't "n/m" text to display in the form, if the divisor (PYGasSales) is equal to zero. Is someone can you please tell me what I am missing in this statement?

    if(PYGasSales ne 0) then
    (YGasSalesVar/PYGasSales) * 100

    Thank you very much!

    You can try using the text field instead of using the digital field.

    Text field can show the text and figures.

    Numeric field can show numbers.


  • How to paste a picture on the hotmail e-mail, that is not an attachmet have downloaded

    I would like to publish pictures on hotmail email that open with the email, I often get them, but did not understand how do it without using a

    attachment that needs to be downloaded without the popular legends.

    Submit all Hotmail queries on the forum right here:

    Windows Live Solution Center

  • BlackBerry App how to share photos or any other medium of Inbox friends on facebook with blackberry z10

    Nice day
    While speaking to a fight of a friend a meeting I went to, he asked if I could send him pictures of his Facebook inbox
    I went to the image, tapped on the share icon but I realized that if I share on Facebook it would go at the same time

    My question is how to share in its Inbox direct?
    Everyone please help

    Hello ELIJAH01

    your friend has an email special on the facebook site. If people send him an email at this address, it happens to his Facebook Messages. You can try to add an attachment to your e-mail.
    More info here:
    I was not looking for the attachment thing, if you please tell me the result.

  • How can I get the CC Setup program to install Adobe Reader rather than C: E: other applications?

    I have two very complete disks from C: and would like all Adobe applications to other readers.  I have not yet figured out how to get the CC Setup program to install it I would.

    See if this thread helps: How to configure the Application Manager to install Apps in A location?

    Go into your creative cloud settings and change the install location

Maybe you are looking for

  • Error ThorConnWndClass

    I have XP home and Outlook outgoing mail keeps getting hung up and are not sent due to error ThorConnWndClass.  Help?  I hate this and am about to go to an Apple. Thank you.

  • basket in hotmail

    I accidentally deleted an email in the project. I want to come back. Will there be a basket in Hotmail? If not how do I get it?

  • Games will not be installed by the internet download

    stops the installation when downloading on Internet

  • BrowserField without url

    Hi, I need to show an HTML tag in a form, but this information is stored in the database. How can I do to display this information withou a URL? It's my code. String html = generalDAO.getDetailProduct(String.valueOf(product.getId())); ProductInfoScre

  • Antenna internal blackBerry Smartphones

    Does anyone know where the internal antenna is on the 8830?  Thank you!