Another entry Point for an application

Hi all

I created another porint entry and displays an icon to start my substantive application.

and the lance application use.

The problem is:

1. If I run the application using this icon to launch the value of "processID" Watch "-1"even if the application is running. "

int processId is ApplicationManager.getApplicationManager () .getProcessId (appDescriptor);.

I used following the example of Code:

MyApp.java

If

(args.length > 0 & args [0] .equalsIgnoreCase ("alt")) {

System.out.println)

("Throw the app throw another entry point");

Here, I write a global event to run MyApp.

}

on the other

{

App MyApp = MyApp();

if (! {ApplicationManager.getApplicationManager () .inStartup ())}

() app.invokeLater

           new  {Runnable()}

public void run() {}

Startup();

}

});

}

app.enterEventDispatcher ();

}

Please help me if I'm missing something here.

Thank you

Man Shwarup

Hi Shwarup,

Try to replace these lines:

int handle = CodeModuleManager.getModuleHandle ("MyApp");

ApplicationDescriptor appDescriptor = (handle) CodeModuleManager.getApplicationDescriptors [0];

With this:

ApplicationDescriptor appDescriptor = ApplicationDescripto.currentApplicationDescriptor ();

BTW, is "MyApp" the name of your application or the name of the module in your application?

E.

Tags: BlackBerry Developers

Similar Questions

  • another entry point for the application

    Hello

    I want to create another entry point for my application... After going through various messages earlier I went to know that we can do this by selecting

    Project--> Application tab-->

    But, in a project Type tab I have only 3 options i.e. CLDC, Midlet, library and another entry for this point is turned off by default, one of my existing project into the current workspace is automatically selected it... I want to put there another project to another entry point...

    I also tried to download the image, but not due to an error downloading...

    Thanks a lot for your help.

    Have you checked this article?

    http://www.BlackBerry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/796557/800738/800901/...

  • Another entry point for the issue of the application

    Hello

    As I read on this KB about to enter another application

    http://supportforums.BlackBerry.com/T5/Java-development/set-up-an-alternate-entry-point-for-an-appli...

    But on the KB above, the main application is UiApplication and other entry point is not UiApplication!

    1. I wonder how to create the entry point alternative in which the two project is UiApplication

    2. for example, I have the application main who have 3 screens A, B, C. When user clicks on the icon for the main Application screens A. When the user clicks on the application of alternative entry point (another icon on the home screen), B screen. I wonder how we can do?

    Thank you.

    No, you create only one project. the ASP is set to the application descriptor.

  • How to make a single instance of the application regardless of the main application and the other entry point for the application

    Hello experts,

    I explain the sceniro of my application. My request is mainly a time system as well as some other features related businesses. My app has a landing screen which is actually a custom made calendar that accumulates information captured time. There is also a time where entry screen user at will has worked time and other related information. The user has the option to run the application manually at the entrance of the time and see the reports and there the event listener to follow the events of call/SMS/e-mail that invokes the application automatically and user to the scree of time entry.

    Problem one: I used headphones to follow the events of call/SMS/e-mail. When an event is called, alternet point of entry of the application the application is running. Application then get calls time, contact information etc. and push my entry screen with pre-filled information time.

    As such, it works very well, as expected, but the problem is the number of instence that he is creating. Each track event creates a new instance of the application. I want to keep only one instance.

    Two problems: to solve this problem, I removed the other point of entry and RuntimeStore to keep the running instance of my application. This instance of the application in a way keeps in singletone as such when the listener calls the application it finds that the application is running in the background. Then she moves the application to the foreground. It works very well, I mean the application user interface called on the foreground, but he won't have to time entry screen automatically as I hope. The block of code is as follows,

    public static final long applicationID =0x8ddc44508679bd5bL;
    static NSIApplication NSIInstance=null;
    RuntimeStore runtimeStore = RuntimeStore.getRuntimeStore();
    
    if (NSIInstance != null)
                {
                    NSIInstance.requestForeground();
                }
                else
                {
                    synchronized (runtimeStore)
                    {
                        NSIInstance = (NSIApplication)runtimeStore.get(applicationID);
                                            //listener initialization
                        NSIListener.Initialze();
                    }
    
                    if (NSIInstance != null)
                    {                   NSIInstance.requestForeground();
                                        //event's info manipulation and push the time entry screen                                     NSIInstance.RUN_NSIApplication();
                    }
                    else
                    {
                        NSIInstance=NSIApplication.getInstance();
                        NSIInstance.RUN_NSIApplication();
    
                        synchronized(runtimeStore)
                        {
                            runtimeStore.put(applicationID, NSIInstance);
                        }
    
                        NSIInstance.enterEventDispatcher();
                    }
                }
    

    I expect a guideline to follow so that I can reach the expected my workflow. Thanks in advance

    I can't propose to use the runtimestore to store instances of the application, as it was used on an example RIM, he has never worked for me.

    I suggest to use a single point of entry and the automated screen using a global event or status in the runtimestore.

  • Another entry point

    Hello

    In my project, I created a new project file with the extension .jdp.

    I want to use it as another point of entry, but when I navigate to the properties--> Application--> "another entry point for: Option is disabled, and I can't activate. I want to use it as another entry point. Please tell me why its deactivation does not?

    I use Blackberry JDE 4.3.

    Thank you and best regards.

    read this:

    http://www.BlackBerry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800901/How_To_-_setup...

  • Registry entry point to restart application not found in the dynamic library KERNEL32dll; Error - smaxpnp.exe - point of entry not found

    When I reboot, or start my system I get an error - smaxpnp.exe - not found entry point

    Hello

    Have you made changes on the computer before this problem?

    Smax4pnp.exe is a system process that belongs to the software SoundMAX. It is not necessary for sound to work on your computer, but is mainly used to run or adding components to the software SoundMAX program.

    I would suggest trying the following methods and check if it helps.

    Method 1:

    Step 1:

    Start safe mode and check if the problem persists there.

    A description of the start in Windows XP Mode options:

    http://support.Microsoft.com/kb/315222

    Step 2:

    Put the computer in a clean boot state, then start in normal mode and check if it helps.

    How to configure Windows XP to start in a "clean boot" State

    http://support.Microsoft.com/kb/310353

    Note: once you have completed troubleshooting try the steps to configure Windows to use a Normal startup state.

    Method 2:

    Try to remove the smax4pnp.exe of your computer and check if it helps.

    Follow the steps to remove smax4pnp.exe:

    a. Press 'Ctrl', 'Alt' and 'Delete' on your computer to open the Windows Task Manager. "Click on the"Processes"tab on top.

    b. scroll down and click on "Smax4pnp.exe." Click 'End process' to stop the currently running process

    c. click on the Windows "Start" button, then click 'Search'. Click on "Search all files and folders" on the left panel to open the search box.

    d find and delete this file: Smax4pnp.exe.

    e. empty the trash to complete uninstallation.

    Hope the information is useful.

  • Alerts SmartBridge: entry point for notifier.exe Blueyonder ist not found

    Since download Explorer 7, I get an alert message whenever I restart.

    Alerts SmartBridge: point Blueyonder - istnotifier.exe - entry not found.

    "The procedure entry point GetProcessImageFileNameW 'no' could not be located in the dynamic link
    Library PSAPI. DLL'

    Does anyone have an idea.

    I also read that this alert message if version IE7 beta 2 has been installed.
    I guess that after the update security or installation of the end version of IE7, the problem should be solved.

  • It is said that cannot find the entry point for Muse and Photoshop? I JUST downloaded.

    IMG_3562.JPGIMG_3563.JPG

    Please see:

    does not start in Photoshop cs6

    The procedure entry point AMTRetrievePersonGUIDWithAuthSource impossible to find the ERROR.

    I hope this helps.

    Concerning

    Megha Rawat

  • How can I get another Disc (DVD) for my Application CS5 Installation

    I lost one of my DVD from my CS5 series installation discs.  I called Adobe and they said it was an old version and they do not have a link for me.  Anyone know how I can get my hands on Application CS5 drive?

    You can download CS5 here.  http://prodesigntools.com/all-Adobe-CS5-direct-download-links.html

    Be sure to read and follow the instructions exactly.

    Then burn a copy of the installer on the disk.

  • After effects error: could not find the main entry point for TitlerAfterEffectsHost.plugin

    Hello

    When start after effect CS6, I get this error message.

    Any ideas on how to solve this problem.

    Michael Smith

    As Mylenium says it's a mistake to third party plug-ins, the titration module NewBlueFX plug-ins. I would like to ask for help with their plug-in:

    http://NewBlueFX.com/support

  • HomeScreen.setName error "Module has no application entry point.

    Hi people. I'm trying to change my name to the application and get an IllegalArgumentException: Module with handle [1619] and [0] index has no application entry points. The line of code is:

    HomeScreen.setName ("$" + Math.floor (allowanceRemaining) (int) + ":" + daysRemainingInCycle + "days");

    My application starts automatically at startup. I'd appreciate any help!

    See you soon,.

    Justin Dutoit

    An entry point is similar to a project.  Each application has at least one.  You can have multiple entry points.  One could be the passage of auto-start for the application and another might be an icon on the user can click.  You can read about it here:

    How to - set up another entry point for my application
    Article number: DB-00008

    http://www.BlackBerry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800901/How_To_-_setup...

    To return to your mistake... Note that the process that triggers the PhoneListener methods is different from that of the process that your application runs in (when the autostart or handled by the user).  This means that you are trying to call setName to another application (not your own).  In order to change the name of your application, you will need to use the setName (String name, ApplicationDescriptor descriptor) method, where you pass the descriptor for your application.

  • How to connect multiple entry points?

    I created two entry points for my application according to the examples here and in the SDK documentation.

    Now my question is how to connect these two? I have a few assumptions and suggestions of my own listed below. I would be grateful if someone their checked or provided best practices. Thanks jeff

    -Store PERIOD: this is the method recommended for entry points Exchange State

    -GlobalEvents: need the registerting themselves as listeners globalevent?

    -IPC methods: because they are running in different processes, InterProcessCommunication should apply. The method available only here is a socket

    Using RuntimeStore or GlobalEvents are methods of the IPC. I prefer to use RuntimeStore, but I think the preference prevailing is for GlobalEvents.

  • different icon for the different entry point

    Hi all

    In the taskbar, I want to show the different icon for application launched through different entry point.

    the instructions on this?

    Thank you

    Hello

    I found a solution to my problem.

    You can get application descriptor for the entry points added in the workspace, then using CodeModuleManager you can get the descriptors of application for the entry points for a given module.

    By analyzing this table of entry points for a module, you can find that you want to use and then use this index of entrypoint in homescrren.updateicon to change the icon.

    ApplicationDescriptor[] apDes = CodeModuleManager.getApplicationDescriptors(CodeModuleManager.getModuleHandle("XXXXX"));
    
    //apDes[0] is the default entry point
    //apDes[1] is the first alternate entry point
    //apDes[2] is the second alternate entry point
    HomeScreen.updateIcon(icon, 1); // updateicon for first alternate entry point
    

    Thank you.

  • Application Plugin error - could not find the entry Point (48::72)

    Hi all

    Anyone who bought my plugin has reported these errors when applying:

    invalid filter (25::3)

    could not find the main entry point for myplugin.plugin (48::72)

    They use CS6 on Snow Leopard on a Mac Pro 3.1 10.6.8 so this should work very well (the effect was compiled as a 64-bit using the latest XCode plugin, the Mountain Lion 10.8.5).

    I was wondering if anyone here has had this problem, and how they have solved.

    Thank you!

    Christian

    We managed to repro this on a machine running OS x 10.7.

    It turns out that it was probably due to one of the two parameters of generation in XCode:

    Basis of SDK, that I put OS X 10.9, and (most likely) OS X deployment target, which is the default value for the compiler. By reducing the Base SDKS to 10.8 and setting the target of 10.5 deployment. This fixed the problem on the machine 10.7.

    Waiting for the user who reported the problem to confirm the re-compiled version works on his workstation. However, I thought that I would put the solution here, just in case someone else has this problem in the future.

    Christian

  • What is a ribbon icon when you create multiple entry points?

    Hello

    I'm trying to follow several entry point into my application:

    I'm at the link below:

    http://supportforums.BlackBerry.com/T5/Java-development/set-up-an-alternate-entry-point-for-an-appli...

    I'm not able to get a thing here is,

    What is the average ribbon icon? How can I make my icon as icon of Ribbon? Is there a procedure to do?

    Thank you.

    a ribbon icon is the icon of an application on the computer of blackberry desktop (or in one of its subfolders).

    unless a project (another point of entry is a project) is marked as a system module it has an icon of own Ribbon.

    You can set this icon resembles a normal application icon.

    usually the AEPS is marked as the modules of the system, but some applications want to have several symbols on the desktop, to start in a different status, for example.

Maybe you are looking for

  • dual monitor for a slimline 7620n

    can someone help with how to get a second monitor working on this slimline?

  • Qualcomm Gobi 1000 and GPS

    I have 1000 Gobi map installed on T400 running Windows Vists 64. The card is not yet enabled for use with a service provider, but I got to know that it offers the GPS function. Someone at - it how to activate the GPS function? Thank you

  • I want to install Expressions 3, Microsoft on my desktop and can't seem to find the download

    I want to download Microsoft Expressions on my desk. I have a DVD, but only a CD player needs to download online. Can you please advise me of the page and how do I get this download. I bought the program in March 2010.

  • Uninstalling some of the built-in application

    I wana know if I can uninstall an app built like living on YouTube and other applications that consume a lot of memory space and heats my phone and also the performance of my phone. So if I uninstall some of them it will harm my phone?

  • Alienware 15 R2

    Hello I recently bought my first camera alienware at costco, the Alienware 15 r2. I was wondering why this laptop, when put to sleep is not wake up? All led lights turns on when you lift the lid of the laptop but the screen stays black and the only s