Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Posts: 19,636
Registered: ‎07-14-2008
My Device: Not Specified

Re: Multiple running instances of the same entry point

[ Edited ]

Sorry the KB article was not for you, just for completeness.  What I was however pointing out, was that you were not creating an Alternate Entry.  So the way you were attempting to do this would never create a separate process.


"I would be interested in seeing how one could actually start two different processes, with their own event dispatchers, using two different icons but only one code module."


Easy - just do what I suggested in my first post.  I'll quickly create an example and post back here.


Edit;  Apologies, code is very rough.  Create two projects.  First has this in it, second was defined as alternate entry to this and specified gui as the startup string.  Got two icons, clicked on one, got a screen saying 'no argument'.  clicked on the other got a screen saying 'gui'.


/*package*/ class UiApplicationTest extends UiApplication {

public static void main(String[] args) {
     if ( args != null && args.length > 0 ){
          UiApplicationTest theApp = new UiApplicationTest(args[0]);
     } else {
          UiApplicationTest theApp = new UiApplicationTest("no argument");

    public UiApplicationTest(String startupString) {
        //Create a new screen for the application
        MainScreen mainScreen = new MainScreen();
        mainScreen.add(new LabelField(startupString));




Posts: 92
Registered: ‎06-02-2009
My Device: Rogers Curve 8900
My Carrier: Rogers

Re: Multiple running instances of the same entry point

Thanks, this answers the first question and the answer to the second seems to be "no".