Launch my application by clicking on the link

I have the INDEXOUTOFBOUND exception when executing the code that follows my, this because I need to extract the clicked url parameters and the openFilter method is called twice: the first time, the "name" parameter is the url of the user has clicked, but then it turns into a different url and I can't retrieve my params.

  public Connection openFilter( String name, int mode, boolean timeouts ) throws IOException
    {

        DialogHelper.ShowDialog("Connection");
        String param1 = "143.225.229.136";
        int index = name.indexOf("=");
        String param2 = name.substring((name.lastIndexOf('?'))+1,index);
        String param3 = name.substring(index+1,name.indexOf(';'));
        ApplicationManager manager = ApplicationManager.getApplicationManager();

        //Check to see if application is running.
        ApplicationDescriptor descriptors[];
        ApplicationDescriptor descriptor;
        /*//Retrieve the name of a running application.
        descriptors = manager.getVisibleApplications();
        for (int i = 0; i < descriptors.length;i++) {
            descriptor = descriptors[i];
            if (descriptor.getName().equals( "Meetecho" )) {
                manager.requestForeground( manager.getProcessId( descriptor ) );
                return null;
            }
        }*/
        int codeModuleHandle = CodeModuleManager.getModuleHandle("Meetecho");
        descriptors = CodeModuleManager.getApplicationDescriptors(codeModuleHandle);
        descriptor = new ApplicationDescriptor(descriptors[0],new String[]{param1,param2,param3});
        try {
            ApplicationManager.getApplicationManager().runApplication( descriptor );
            } catch (ApplicationManagerException e) {
            // TODO Auto-generated catch block
                e.printStackTrace();
            }
        // Failed to open the sub connection
        return null;
    }

I've solved

public Connection openFilter( String name, int mode, boolean timeouts ) throws IOException
    {
        synchronized(Application.getEventLock()) {
        DialogHelper.ShowDialog("Connection");
        String param1 = "143.225.229.136";
        String param2,param3;
        try{
        int index = name.indexOf("=");
         param2 = name.substring((name.lastIndexOf('?'))+1,index);
         param3 = name.substring(index+1,name.indexOf(';'));
        }catch(IndexOutOfBoundsException e){
            return null;
        }
        ApplicationManager manager = ApplicationManager.getApplicationManager();

        //Check to see if application is running.
        ApplicationDescriptor descriptors[];
        ApplicationDescriptor descriptor;
        /*//Retrieve the name of a running application.
        descriptors = manager.getVisibleApplications();
        for (int i = 0; i < descriptors.length;i++) {
            descriptor = descriptors[i];
            if (descriptor.getName().equals( "Meetecho" )) {
                manager.requestForeground( manager.getProcessId( descriptor ) );
                return null;
            }
        }*/
        int codeModuleHandle = CodeModuleManager.getModuleHandle("Meetecho");
        descriptors = CodeModuleManager.getApplicationDescriptors(codeModuleHandle);
        descriptor = new ApplicationDescriptor(descriptors[0],new String[]{param1,param2,param3});
        try {
            ApplicationManager.getApplicationManager().runApplication( descriptor );
            } catch (ApplicationManagerException e) {
            // TODO Auto-generated catch block
                e.printStackTrace();
            }
        // Failed to open the sub connection
        return null;
        }
    }

Tags: BlackBerry Developers

Similar Questions

  • By clicking on the link does not open new tab

    By clicking on a link in an e-mail message (MAC Mail) open FF and directly to the page, if Firefox is closed. Fine.
    However, if FF is already running, by clicking on the link only FF put in the foreground, but does not open a new tab, or the link fills in the current window tab. The only way to make it work is to right click to get the 'Quick Look' URL, and then open this page.

    This is happening to me, same, on Mac OS X 10.6.8 but only since I've upgraded to the latest version of Firefox, 32.0.1. I can click on a HTTP link in another application and Firefox becomes the active application, but it will not load a new tab for the link, as expected. Instead, it just sits there. I have to go back to the other application and click on the link a second time, during which point Firefox correctly open a new tab and load the destination URL.

    Previous thread for this question

  • I bought Adobe CC. When I install the application, asked me to buy the product, and when I click on the link, I am asked to buy to subscribe, that ive already done.

    I bought Adobe CC. When I install the application, asked me to buy the product, and when I click on the link, I am asked to buy to subscribe, that ive already done.

    Troubleshooting FAQ: What should I do if I have a subscription, but my application acts as if I had a trial?

    [moved from the download, installation, commissioning of Adobe Creative Cloud]

  • 15.0.1 Mozilla gets stuck. You click on the links and nothing happens. No wheels spinning, nothing. I open Firefox in a new window, the same thing. I can fix it onl

    15.0.1 Mozilla gets stuck. You click on the links and nothing happens. No wheels spinning, nothing. I open Firefox in a new window, the same thing. I can only fix it by starting the Task Manager and close all Firefox Windows. [When I launch Internet Explorer, there no problem.] Thanks for your help!

    Clear the cache and cookies from sites that cause problems.

    "Clear the Cache":

    • Tools > Options > advanced > network > content caching Web: 'clear now '.

    'Delete Cookies' sites causing problems:

    • Tools > Options > privacy > Cookies: "show the Cookies".

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

  • Show Microsoft Excel files in the download, but only empty software opens. You must then click on the link a second time for the file to open. ? Exchange

    By clicking on the links to files that Excel, used to work. In the last weeks of 2 (?) files are not open. I want to talk of the basic old .xls files.

    Clicking once, opens the Excel software only.
    Double click on open two windows with empty Excel software.
    By clicking on one to open the software. And then to go back to click a second time open the actual file.

    On all clicks, download popup box indicates the file to download. And no it does not appear on my desktop or in any other file.

    What you have in the following list - mine are all set to "always ask":

    Orange Firefox button or classic menu Tools > Options > Applications

    In the search above the list box, type or paste Excel to filter the list.

    You have additional modules related to the registration or downloading files that may affect the .xls files? You can review your modules here:

    Orange Firefox button or classic menu Tools > Modules

    Check the Extensions and Plugins categories.

  • I can't click on the links in my Outlook Express emails.

    I can't click on the links in my Outlook Express emails.  I have windows XP

    Hyperlinks do not work in Outlook Express or in Word (revised 29-Apr-09)
    http://support.Microsoft.com/kb/823301

    Hyperlinks do not work in Outlook Express after you put upgraded to IE7 [or IE8] (revised 29-Apr-09)
    http://support.Microsoft.com/kb/929867

    If still no joy:

    With the permission of MVP Frank Saunders. [RIP]

    If nothing happens when you click on a link:
    Open Windows Explorer or on the control panel.
    Go to tools | Folder options | Types of files.
    Scroll to [NONE] URL: HyperText Transfer Protocol (NOT the shortcut URL: Internet) and select it.
    Click Edit or advanced, depending on your version of Windows.
    Choose 'open '.
    Click on change.

    "Application used to perform action" should read:

    "C:\PROGRAM may EXPLORER\iexplore.exe" - nohome (check the path to)
    Iexplore.exe to ensure that it is correct and use the double quotes).

    DDE should be checked and in the boxes below, you should have:

    #1:
    « %1 »,,-1,0,,,
    #2
    IExplore
    #3 (white)

    #4
    WWW_OpenURL

    Protocol URL: HyperText Transfer with Privacy should be the same.

    If the foregoing is correct, uncheck the box: use DDE.

  • By clicking on the links 'Format' 'Preset' freezing SOUL Build 8.1.0.122

    I get the problem of gel when you try to export clips from SOUL CC 2014.

    I get this on two different computers, and he just clips sent through first or AE. All cc 2014.

    If I drag and drop a gift so it works very well and usually will allow me to click on the links then. By clicking on the file record works just dandy.

    Computer settings:

    iMac 27 ", running Yosemite 10.10

    1 tb SSD.

    Soon, 24 GB of ram, i7 3.4ghz

    Anyone can fix for me wins a supply to life of Stretch Armstrong figures... (1 is 1 too many).

    I think I know what is happening here so if you could try this one more time, but wait a few minutes to see if the export settings dialog box is in place. There is a known issue in Yosemite that causes this dialog box to take a long time to open and make the application will appear as if it does not. If you try and the dialog box then opens, then we are talking about the same bug. The good news is that, once you've waited him once, the problem goes away until you raise SOUL. We have alerted Apple to the issue, and they hope to solve in a future update.

  • in the APEX by clicking on the link hyper does not trigger session timeout page

    Hi all
    I have a question about the application of APEX session time-out. I created a simple application of the APEX. In the region report SQL section, I have code like this:

    SELECT DOC_Name, DOC_URL,
    "" < a href = "" | DOC_URL | "target ="_blank"/" > download < /a > ' pdf_link
    FROM test_table
    where emp_number = 00010001

    When the user click on the hyper link, it will show the landing page for the user (for example if DOC_URL = 'http://forums.oracle.com', it displays the oracle forum page in a new browser).

    But the problem is that after the user session timeout (I set to 240 seconds through shared components > change the security attributes, I put max the session for example 240 seconds timeout) when I click on this hyperlink, it does not raise my session timeout page and it still shows the page (oracle forum page).

    Why in the APEX by clicking on the link hyper does not trigger page session timeout after the user session timeout?

    How implememt or fix to trigger the session timeout page after clicking on hyperlinks?

    (BTW, our version of the APEX is 3.2)

    Thank you!

    Hello

    rather than use your my_stored_procedure you could call a new APEX page where you have a page called P999_PDF_ID. On this new page you would have
    treat a front header PL/SQL with the same code you have in your "my_stored_procedure". The only change would be to add a

    apex_application.g_unrecoverable_error := TRUE;
    

    at the end of your code as well as APEX does not generate a standard page of APEX.

    That's all. If a user clicks on a link, APEX will check the session timeout and if everything is ok, download your PDF file.

    Concerning
    Patrick
    -----------
    My Blog: http://www.inside-oracle-apex.com
    APEX 4.0 Plug-Ins: http://apex.oracle.com/plugins
    Twitter: http://www.twitter.com/patrickwolf

  • Fire of process on click of the link using query type

    APEX 3.2.0.0.27

    I have a report region based on a qry with links. Each line has a link to separate the region on the same page. I want a process to fire (manual data select the process for the region linked) when the link is clicked. The link is displayed as a button change. I set the link for an application. How to identify the application that should fire when the user clicks on the link. I also defined a separate button named: QRY. The actual process (after submit process) it's fire is conditionial on the express request = 1 IN the expression 1 column, I entered the name of the button (QRY).

    However the after submit the process is not fired.

    So, how to correlate the process consisting in fires when the user clicks on the link. Do not confuse the link which is represented by a button here, but in fact I have this link button, but also a 'normal' button which bears the name of QRY. When I click on the actual button named QRY then my process is triggered. However, it did not when the user clicks on the link 'button '.

    What I am doing wrong?

    So what you have is lines of report that can be presented in many ways, as well as the value of an other Item (Hidden)

    Can think of two ways

  • 1 concatenate the PK value with the request, use the PLSQL substr (substring) on demand to identify the type of demand but also to extract the value of the KP.

    JavaScript: doSubmit('SAVE_#PK_COLUMN_ALIAS#');

    Request: SUBSTR (: REQUEST, 1, INSTR(:REQUEST,'_')-1) and PK value is SUBSTR (: REQUEST, INSTR(:REQUEST,'_') + 1)
    Then assign the item suitable in a bidding process

  • Another method is to assign the item directly

    JavaScript: $s('','#PK_COLUMN_ALIAS#'); doSubmit('SAVE_#DEPT_NAME#');

    Replace the with the name of the page to put element
    Make sure that the item is not protected (this is the default option for the hidden items)

  • I want to send an e-mail with a web address in the email that once the person opens the e-mail by clicking on the link they will go straight to the site

    Hi all I want to do is to send emails with links on which you click on the link and go directly to the web address instead of trying to copy and paste

    Hope that's clear enough sounds

    Thank you

    Dazzler

    Hi Dazzler

    Just type your text, select it and click Insert, then link or message just open > click Insert > click link > Type Text > link > OK

    Link will be inserted

  • I got a viral message, but do not have open it or click on the links - although he appeared in the 'View' menu, the PC is still safe?

    I got a viral message, but do not have open it or click on the links - although he appeared in the 'View' menu, the PC is still safe?

    the PC is still safe? "

    Probably yes. To be sure run a scan full anti-malware.
    https://support.Mozilla.org/en-us/KB/troubleshoot-Firefox-issues-caused-malware#w_how-do-i-get-rid-of-malware

  • After clicking on the link, Firefox opens 2 tabs double address of this link.

    After clicking on the link, Firefox opens 2 tabs double address of this link.
    Here is the site: http://www.hifishark.com/search?q=sony

    On the right side of the page, when I click on SHOW, 2 tablets of addresses duplicated this link open.
    I've been on this site before and 1 tablet would open normally.

    I think this started to happen when I clicked on 'Restore Default Set' in the window customize the toolbar.

    This does not happen with IE or Chrome browsers.

    The link DISPLAY on top of the site, seems to be the only link that what is happening.
    When I click with the right button on a SHOW and click on "Open link in a new tab" 1 tab opens.

    No change in safe mode.

    This happens to someone else?

    Any ideas appreciated.

    Thank you

    Hi jorb, it doesn't surprise me that scripts work sometimes differently in different browsers. Unfortunately, the scripts are hard to follow, so I can't offer a specific solution.

  • Right click on the link open in a new tab won't open

    After the upgrade to the new version, 27.0.1, my function right click to open the link in a new tab stopped working. I can not open in a new window either. When I click on the link that I would like to open in new tab or window, the right-click window appears, I click on the function desired and closed the window right click and nothing happens.

    I also noticed that there are many additional functions that now appear in the window right click, for example.

    Play, Pause, Mute, turn on the microphone, etc..
    Image of reloading, see the Image, video, etc.
    This frame, view selection Source, etc.

    They could have been there, but I don't remember these features before. They could, BUT it is perhaps the case of not really noticing them because everything worked and now that I can't open new tabs/windows, I now notice them. Not sure if this is related to the issue or not.
    I have the following extensions running:

    ColorZilla 2.6.4.1
    Dictionary.com 2.0.0
    Firebug 1.8.4
    InstantFox 2.8.7

    I turn them off to see if they caused the problem, but the problem persists.

    I hope someone can understand this because maybe I need to spend some browsers until this is resolved. Unfortunately not too effective!

    Thank you!

    In fact, the issue re-emerged so I upgraded Firebug and it worked, but it seems that Firebug was the question.

  • By clicking on the links in the chat boxes or on my desk is no longer them opens in firefox.

    When I click on the links on my desktop, nothing happens. When I right click and choose 'Open with' I can't choose firefox as an option. I can always open links in Safari. I started in Safe Mode and still experienced the problem. I uninstalled and reinstalled firefox, which did not affect the problem. I disabled all my plugins and still encountered the problem. I made a new user profile for Firefox and yet once again, the problem persisted. I'm on the point at the end of my tether here!

    Try making sure that Firefox is the default browser: Firefox make your default browser. If it does not see setting Firefox as the default browser does not work - what to do.

  • Shortcuts mouse to "Open the link in a new tab" help "Middle-click on the link" does not work on 10.0.1

    Shortcut of mouse to "Open the link in a new tab" help "Middle-click on the link" does not work on 10.0.1, it worked on version 9.0.1.

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

Maybe you are looking for