We said very early on in this book that the static method called main
was the entry point for a BlackBerry application, do you remember that? It's been so long ago and we've created so many projects using the same UiApplication
structure that you might have forgotten. It's gotten so familiar that you don't even think about it anymore.
Well, now it's time to go back and look at things more closely and change how you think of that boring main
method.
There is a special project type called an alternate entry point project that can be used to accomplish things that just can't be done otherwise. Using an alternate entry point project, you can use the same project and code to host more than one application. It is, in essence, saying that a second application should use the same program files as another existing project.
Alternate entry points don't change the fact that there is still one, and only one, static main
method in the project. Instead, they rely on additional parameters...