ALT Enter base...

OK, I read 100 threads on alteranate and all the tutorials and KBs entry points.  They seem to everyone do things a little differently, which can be confusing and me.   To simplify the im trying with just the most basic configuration, as shown below.  I just want to be able to have a different point of entry which is compatible with the graphical interface of the application running. the first execution works very well and is displayed. on the second run (from the 2nd icon) im, able to retrieve the application of the Bank and its show as living.  but when I run loadScreen that pushes a screen (and I tried differnet dozens ways), he launched illegalstatexception on application.getapplication ().

I tell myself that if I can just have the most basic example work that I could work it into my existing application... but I can't even work in the basic version. im sure im missing some very fundamental issue here...

 public static void main(String[] args) {

        RuntimeStore appReg = RuntimeStore.getRuntimeStore();
        AltEntry theApp;

        synchronized(appReg) {
            theApp = (AltEntry)appReg.get(ID);
        }

        if (theApp == null) {
            theApp = new AltEntry();
            appReg.put(ID, theApp);
            theApp.enterEventDispatcher();
        }
        else {
            theApp = (AltEntry)appReg.waitFor(ID);
            theApp.requestForeground();
            theApp.loadScreen();

        }

    }

    AltEntry() {
        MainScreen s = new MainScreen() {

            public boolean onClose() {
                UiApplication.getUiApplication().requestBackground();
                return false;
            }
        };

        s.setTitle("this is the main screen");
        UiApplication.getUiApplication().pushScreen(s);

    }

    public void loadScreen() {
        final MainScreen s1 = new MainScreen();
        s1.setTitle("from loadScreen");

        UiApplication.getUiApplication().invokeLater(new Runnable() {
            public void run() {

                UiApplication.getUiApplication().pushScreen(s1);
            }
        });

    }

Not sure I would like it.

When the mail arrives, you can pick it up with the FolderListener.  Then, you can send the details to your application using a GlobalEvent.  Your application can then first plan itself and view a display associated with this user, a bit like your alternative input, but driven by the listeners GlobalEvent.  If it works for you?

Tags: BlackBerry Developers

Similar Questions

  • Problem - Alt Enter points using Ant

    I have problems using the tag.  Bb-ant-tools suggests that it is a nested tag of CAP, but when I run the present, I get an error that is not a nested tag!

    What should I do to fix the below to set up an alt entry point?

    [code]
      
       
    title = "${title}" vendor = "${provider}.
    version = "${version}".
    Description = "${description}".
    systemmodule = 'true '.
    runonstartup = 'true '.
    startuptier = '7' / >
       <>
    title = "${title}".
    arguments = "click."
    systemmodule = "false".
    runonstartup = "false".
    startuptier = "7".
    RibbonPosition = '0 '.
    "icon ="... / img/OrangeA.png "/ >
       
        
         
         
        

       

      

    [/ code]

    Thank you

    Here's how to create another point of entry with bb-ant-tools:

        
            
                
                    
                
                
                    
                        
                    
                    
                        
                    
                
            
        
    

    where default.properties is an Autostart entry point:

    description=My Elite App for BlackBerry
    runonstartup=true
    systemmodule=true
    vendor=Mobiyana, LLC.
    version=1.0
    

    and gui.properties provides the icon and the user interface:

    description=My Elite App for BlackBerry
    icon=../res/icon-32x32.png
    title=Elite App
    vendor=Mobiyana, LLC.
    version=1.0
    
  • Everything by opening a new tab with the Alt + Enter command, is it possible to open next to the current tab and not in the end?

    No indication on how to achieve this will be very welcome.

    There is not an integrated framework for the opening of new tabs "unrelated" everywhere except at the end of the tab bar.

    Various add-on authors tackled this request over the years. It is not really clear to me that these extensions are still working, but you might check the reviews and see what you think. (I have not tried these myself)

  • ALT Enter point, maintain the instance unique app!

    Hey all,.

    Unlike most who put up the other entry points in their applications of BB, I would like to keep a single instance in which the user interface and the background code treatment will be contained. In other words, no separate instance for unemployment insurance and background processing. My other entry point is made to run at startup, in order to maintain the running background processes, even after restarting the device.

    My attempts have been unsuccessful so far. I find myself with several instances after restart, I can see in the bb application selector (long press menu key).

    Here is my code. I hope yall can find something in there that I'm doing wrong.  Thank you!

    public class HelloWorldDemo extends UiApplication implements SystemListener
    {
        public static HTTPInterface _httpInterface = new HTTPInterface();
        private static HelloWorldScreen _mainScreen;
            private static HelloWorldDemo theApp;
    
    private HelloWorldDemo() {
            pushScreen(new AppScreen(this));  
    
        }
    
        /**
         * Entry point for application
         * @param args Command line arguments (not used)
         */
        public static void main(String[] args)
        {
            // Create a new instance of the application and make the currently
            // running thread the application's event dispatch thread.
            String deviceVersionString = DeviceInfo.getSoftwareVersion();
            String deviceVersionSubString = deviceVersionString.substring(0, 3);
            BingModel.deviceVersion = Double.parseDouble(deviceVersionSubString);
    
            if (theApp == null)
            {
                theApp = new HelloWorldDemo();
            }
            if (args != null && args.length > 0 && "startupEntry".equals(args[0]))
            {
    
            //checking to see of app was set to run in background, before reboot occured.
                boolean isChecked = BingModel.retrieveState();      
    
          if(isChecked == true) {
                     // If system startup is still in progress when this
                    // application is run.
                    if (ApplicationManager.getApplicationManager().inStartup()) {
                        theApp.addSystemListener(theApp);
                        }
                    else {
                        //theApp = new HelloWorldDemo();
                        theApp.doStartupWorkLater();
                        }
                    //theApp = new HelloWorldDemo();
                    theApp.enterEventDispatcher();
                }
                else
                    System.exit(0);
            }
            else
            {
                BingModel.isRunStartup = false;
                //if (theApp == null)
                //{
                /// theApp = new HelloWorldDemo();
                //}
                theApp.enterEventDispatcher();
            }
    
        }
    
        private void doStartupWorkLater() {
             invokeLater(new Runnable() {
                 public void run() {
                     doStartupWork();
                     }
                 });
         }
    
        private void doStartupWork() {
            BingModel.isRunStartup = true;
            UiApplication.getUiApplication().requestBackground();
        }
    
        public void powerUp() {
            removeSystemListener(this);
            doStartupWork();
        }
    

    This code works perfectly for me now. No other entry and no runtime stores.

    It will work for someone else who needs their application to run at startup, but only stay running in the background if a framework had been put in the application before restarting or powerdown took place.

    This line retrieves a persistent var/setting, which determines whether or not keep the app running in the background at the start or close.

    Boolean isChecked = BingModel.retrieveState ();

    I hope this helps others!

    public class DailyDesktop extends UiApplication implements SystemListener
    {
        public static HTTPInterface _httpInterface = new HTTPInterface();
        private static HelloWorldScreen _mainScreen;
            private static DailyDesktop theApp;  
    
        private DailyDesktop() {
                pushScreen(new AppScreen(this));
            }
    
        /**
         * Entry point for application
         * @param args Command line arguments (not used)
         */
        public static void main(String[] args)
        {
            // Create a new instance of the application and make the currently
            // running thread the application's event dispatch thread.
            String deviceVersionString = DeviceInfo.getSoftwareVersion();
            String deviceVersionSubString = deviceVersionString.substring(0, 3);
            BingModel.deviceVersion = Double.parseDouble(deviceVersionSubString);
    
            theApp = new DailyDesktop();
        theApp.addSystemListener(theApp);
            theApp.enterEventDispatcher();
        }
    
        private void doStartupWork() {
            UiApplication.getUiApplication().requestBackground();
        }
    
        public void powerUp() {        
    
            removeSystemListener(this);
            boolean isChecked = BingModel.retrieveState();
            if(isChecked == true) {
                BingModel.isRunStartup = true;
                doStartupWork();
            }
            else {
                System.exit(0);
            }
    
        }
    
  • Always open the addresses entered in a new tab

    When I type a URL in the address existing tab bar, the new address must open in a new tab. In this way, that I must start by opening a new tab and type in the address of this place.
    This great feature is available in front Browser, & that's why I use this browser since ages.

    I don't know of an add-on for that.

    The methods I know to load the URL into a new tab must use either:

    • ALT + Enter instead of a simple entry
    • CTRL + click on the arrow instead of a plain click

    As a keyboard oriented person, I usually use the first. He also works in the search bar.

  • My behavior Ctrl + enter no longer works right

    For centuries now, I've been taking this method to go to a Web site.

    Enter I say google and then press Ctrl + Enter and expand the things be http://www.google.com and go on my merry way.

    However, as of today, I noticed things are different. CTRL + ENTER doesn't do that. I'm now landed to a Google search page with google already entered into the search bar.

    How to do this? Where my keyboard shortcut would go for this?

    TKX.

    Edit: I brain locked and posted this as Alt + Enter. I didn't do that.

    I had this problem (sort of). I could not use alt + enter to open my bookmarks and history in a new tab. But for research, alt-enter worked. In addition, I could not use ^, #, *, etc. in order to limit the results in the location/awesome bar.

    Turns, an extension (Omnibar) was the cause of the problem. People with disabilities and everything works as it should.

  • Keyboard shortcut to exit the full screen? (no, not alt-ctrl)

    I'm using VMWare workstation on a laptop. The host is Windows 7 x 64, the guest is Ubuntu 10.10.

    The laptop, when I'm at work, hangs in a display of 1200 x 1600 portrait as second screen and 1280 x 800 display integrated as the main screen. In general, I'll put the instance of Ubuntu on the second screen and click full screen in the toolbar.

    When I SLEEP the laptop and disconnect the screen and then later to wake the portable computer, the prompt returns with a wide black border around it. This means that the display he uses is largely out of the limits of the office - but much of the top left of the screen is still visible.

    I think that, if I could leave the guest full screen (say, back to the window mode) and enter again full-screen, it would actually take charge main screen and resize to 1280 x 800. However, I can't figure out how actually the VMWare instance exit believe that it is in full screen mode. Normally, I get a drop-down menu to control this (minimize and UN-fullscreen window control widgets) when I move the cursor to the top of the screen, but this menu does not appear at the top of the screen as indicated in the comments (which then has a wide black border), or top of the physical screen.

    Is there a command line tool Linux, or a combination of secret keys or something to use on the host computer, what can come out of the instance of VMWare what she believes is in full screen mode? Some WM_WHATEVER message I can send to it? Another option?

    Hello

    Don't know if you have tried this: CTRL + ALT + ENTER - this should you return to windowed mode.

    Kind regards

    Glen

  • How can I open a tab in duplicate in 29.0.1 Firefox version?

    It doesn't matter what I do with the settings I can't open a tab the same url that I have a tab open to duplicate. I used to be able to right click and click duplicate. Not that the option is always there then why can it be used?

    If you try to open the same URL in more than one tab, then you can have the feature "Switch to tab" prevention who.

    By holding down the Alt or SHIFT key entry in the drop-down list is highlighted to disable "Switch to tab" and see all entries instead of the URL.

    • ALT + Enter open the URL highlighted in a new tab.
    • Shift + enter opens the URL highlighted in the current tab.
    • Cursor right copies the URL highlighted in the address bar where you want to change it.
  • Always open a new page in a new tab without addon

    Dear assistants,
    I would like to ask if there is a way to open a new web address that I type in the address bar in a new tab (instead of the existing one) when pressing on enter. There are addons that do this, I know, but maybe there's some about: config tweak I has not heard yet?
    Thanks for your help!

    It is just Alt + Enter. CTRL is not necessary.

  • How to add all THE tabs not only the current criteria

    Hello

    I want to be able to bookmark ALL the sites I've visited. I know CTRL + D and SHIFT + CTRL + D and right mouse clicking on a tab and choose bookmark all tabs. What I'm looking for, it's mark recursively. Here is an explanation:

    I start Firefox and load the page from my home.
    I'll tell site Google.com.
    On the same tab, I leave Google and go to Microsoft.
    On the same tab, I leave Microsoft and go to Mozilla.org
    On the same tab, I'm leaving, I leave Mozilla and go to CNN

    So, if I right-mouse-click the Go Back button, I see all these pages in order of the last went to the first visit.

    How to add all these pages of homepage-> Google-> Microsoft->... all the way

    I hope this makes sense and that a solution is there.

    Waseemn

    If you open the page in different tabs, then you use "bookmark all tabs" in the context menu of the tab bar.

    You can middle-click on a link to open the link in a new tab or hold down the CTRL key and click to the left.

    ALT + Enter opens links through the address bar in a new tab.

  • How can awesome bar - I stop the auto switch to another window which has the same open site.

    Several times I want multiple copies of a site open, like to watch several mappings. But when I enter a new window mapquest.com , FireFox switches back me on the window that already has a copy of mapquest open. I can do things to get a 2nd copy open, but it's quite tedious. How can I disable this automatic switch for the other window? FireFox on Windows Vista Edition 12.0 Home Premium SP2

    • CTRL + left click or Middle-click the Reload button to open the current page in a new tab.
    • CTRL + left click or Middle-click points in the history of the buttons back and forward to open a page from this list in a new tab.
    • Duplicate a tab with its history by pressing CTRL and dragging the tab in a new position on the tab bar.
    • By dragging a tab in the window of the browser will detach from the tab and move in a new window, it is called tab tearing.
    • Drag a tab to the tab bar in the original or the anthers window to cancel a detachment or move a tab of a specific window. If a window is empty (you rock the last tab) then this window will be closed automatically.
    • You can use ALT + D to set the focus to the address bar and use ALT + Enter to open the current page in a new tab (no need to release the ALT key).

    Check and tell if its working.

  • I want to open several tabs for the same Web site. 9.0 will allow me to do this?

    I keep getting pop up windows to update to Firefox 9.0 because its faster etc. I look round and he tells me he asks me if I already have one open. I WANT THE SAME SITE OPENED IN SEVERAL TABS according to what I'm working on. Is it still possible with the updated version. IF this isn't the case, I don't want it, but none of the FAQ questions even thought my question.

    When you enter a site in the URL/address bar and see the section "Switch to tab" in the drop-down menu, you can

    • use ALT + ENTER to open the new tab (duplicate) anyway
    • Use CTRL (CMD on OSX) + left click on the original tab and drag until you see an arrow under the point of rupture between the two tabs upward, then release the left button, then release the CTRL/CMD key to obtain a duplicate of the tab with all of its history (front/rear)
    • Press the SHIFT key while an entry in the drop-down list is highlighted to disable 'Switch to the tab' and see the URL.
    • Use the right arrow to select an element marked as switch to tab in the menu drop-down and copy the URL in the address bar.
    • Open the URL in the current tab by using shift + enter on the highlighted entry.
    • ALT + Enter open the URL highlighted in a new tab.
    • Shift + enter opens the URL highlighted in the current tab.
    • Cursor right copies the URL highlighted in the address bar where you want to change it.

    You can install this add-on to completely disable "switch to tab": https://addons.Mozilla.org/en-us/Firefox/addon/switch-to-tab-no-more/

    If this answer solved your problem, please click 'Solved It' next to this response when connected to the forum.

    Not related to your question, but...

    You may need to update some plug-ins. Check your plug-ins and update if necessary:

  • How disable firefox 8 new feature automatically close similar tabs?

    I just upgraded to firefox 8 and every time I open a new tab that is similar to one already open tab, this tab closes automatically
    for example:
    1. I open google.com
    2. I opened another tab and enter google.com
    3. the tab I created in number 2 automatically closes and I get redirected to the tab I created at number 1

    How to make it so that I can have more than 1 similar tabs open in firefox?

    If you try to open the same URL in more than one tab, then you can have the 'Switch to the tab' feature prevention who.

    • Press the SHIFT key while an entry in the drop-down list is highlighted to disable 'Switch to the tab' and see the URL.
    • Use the right arrow to select an element marked as switch to tab in the menu drop-down and copy the URL in the address bar.
    • Open the URL in a new tab using Alt + Enter on the highlighted entry.
    • Open the URL in the current tab by using shift + enter on the highlighted entry.
  • Search engine Google which is integrated in the browser settings

    Search engine Google is integrated into the browser. How can I set it so the search results will be shown on a new window, as the fact of the toolbar Google and in the same window (after entry)?

    in your topic: configuration settings

    • Browser.Search.openintab user set to true

    See https://support.mozilla.com/questions/899856

    with or without the parameter, you can do something, concluded the
    Search bar or in the location bar to open in a new tab with "Alt + Enter".

  • How can I open now two copies of the same page

    As a shortcut to business I cut and paste a copy of one web page to another copy. The new feature does not allow two copies of the same page. Is there a way to force the two copies?

    • Press the SHIFT key while an entry in the drop-down list is highlighted to disable 'Switch to the tab' and see the URL.
    • Use the right arrow to select an element marked as switch to tab in the menu drop-down and copy the URL in the address bar.
    • Open the URL in a new tab using Alt + Enter on the highlighted entry.
    • Open the URL in the current tab by using shift + enter on the highlighted entry.

Maybe you are looking for