remove the screens from the stack

I develop a secure application. So if screens are stored in the battery, then after the expiration of session or disconnection, if the user presses the button back (escape) and then the user can view other screens as the screens are sauteed one by one.

Is it possible that when the user logs off or the session is expired, all screens are exploded out(or destroyed)

UiApplication app = UiApplication.getUiApplication();
while(app.getScreenCount() > 0) {
   app.popScreen(app.getActiveScreen());
}
app.push(Your Login Screen);

Tags: BlackBerry Developers

Similar Questions

  • I had to get a new phone because I dropped one and damaged the screen how am I supposed to remove the information from the old phone if I'm not

    I had to get a new phone because I dropped one and damaged the screen how am I supposed to remove the information from the old phone if I don't?

    Are you turning in the Apple device, a company or the insurer? Can you turn on the device? If so, you could try to send a command to erase with iCloud. If this is not the case, if her deal with Apple, they he will wipe away. If the only damage the screen, you don't want just the screen replaced?

  • How can I remove my name from the top right of the screen. I have a 2015 13 "MacBook Pro running 10.11.4

    How can I remove my name from the top right of the screen. I have a 2015 13 "MacBook Pro running 10.11.4

    At the top right of the menu bar shows the current user who is logged in and allows quick change of user accounts.

    You can disable the display of menu bar in system preferences > users and groups. Or order just drag it out of the bar.

  • Remove the icons from the touch screen apps

    Now this eprint centre is no longer used, can someone tell me how to remove unwanted applications from my Photosmart 7520 screen? I deleted the 'My Services' of connected HP but the icons are still cluttering up my screen. If I have a touch by mistake I have to dive and remove the paper or touch print Cancel to not print out.

    Something amazing happened! They are all gone. Don't know how but now the screen is empty apart from the "Get More" icon - and I certainly don't have to touch that!

  • Is there a way to remove the camera from the lock screen application?

    I would like to turn off the camera on the lock screen application because sometimes when I remove my iPhone from my pocket to use, the camera app is on (and sometimes he records a video).  So somehow, the camera is occurs when the iPhone is locked, so I would like to disable this feature entirely, if possible.  On rare occasions, when I use my camera, I really don't mind access from my home screen as all my other applications (compared to my lock screen).  Thank you.

    There is no possible way to do it.

  • How is - a removes a document from the list recently displayed on the opening screen of the Acrobat Reader?

    How is - a removes a document from the list recently displayed on the opening screen of the Acrobat Reader?

    While you can't remove individual documents, you can choose how much (if any) to show.

    Edit > Preferences > Documents > open settings. Everything you want to value "Documents in the recently used list".

  • How to upgrade to the user interface of a screen that is extracted from the stack?

    Hello

    I am currently having a problem in the UI update.

    I have two screens called 'OverviewScreen' & 'DetailScreen' and in the upper part of the two screens, I have three buttons

    (i) back

    (II) next

    (III) charging

    In the entry of the app normally I posted the 'OverviewScreen' and in this screen, back, next buttons are inactive positions (just to have two sets of images, one active and one for idle) and if the user clicks on an item that is displayed in the cell, then I'll navigate the user to the "DetailScreen".

    Now the stack should have two screens,

    at the bottom - "OverviewScreen".

    at the top - "DetailScreen".

    and in the "DetailScreen" - I showed the image is active for the "back" button (because the screen is lower in the stack) and for the next inactive button image.

    Now if the user clicks the back button I navigates to the "OverviewScreen" which is called the UiApplication.getUiApplication (.getActiveScreen) (m:System.NET.Sockets.Socket.close ()); in the case of touch

    Now the "OverviewScreen" located in the bottom of the stack to the front UI (basically when I built it for the first time, it contains inactive images next and back) - what I want here is I need to show the following active image therefore needs to update the user interface of the screen that displays battery

    Because,

    OverviewScreen (back, next inactive images)--> DetailScreen (back - active, next - inactive)--> new OverviewScreen (should show the back - off, next - active)

    For this, I tried with what follows, but none works,

    If (event.getEvent () == TouchEvent.CLICK) {}
    UiApplication.getUiApplication () .getActiveScreen () .getScreenBelow () .updateDisplay ();
    UiApplication.getUiApplication () .getActiveScreen () m:System.NET.Sockets.Socket.close ();
    Returns true;
    }

    I even tried with invalidate() and dopaint() but none works

    However, I realized the functionality if I press the off button in the "OverviewScreen" he navigated me to the "DetailScreen", juice wants to show the icon active next button?

    What should I do to repaint or update the user interface of the screen here?

    Thanks in advance,

    Kitty.

    Found a solution

    Override the method which is found in the net.rim.device.api.ui.container.MainScreen and in this method, I have changed the image for the button and this method is called in the current active screen using getActiveScreen () .getScreenBelow)

  • Smartphones from blackBerry 7100 G white screen and I have to remove the battery, reinstall it.

    I'll be in the middle of typing, and then the screen turns white!. I have to take the battery out, put again and then I can get 5 more uses out of it and it white screens again. Sometimes I just need to make works with the black button on the top and it starts working again. What is the problem with my Blackberry? My company does not allow me to replace it because they are cheap. Any suggestions in addition to finding a new job? Boring it is slightly

    I found and installed the last o/s. MY Blackberrry still "white screens" randomly and I need either press the black button on the top several times or remove the battery and reset back to normal. New to the forum and made a typo

  • Refresh the screen when he became first on the stack

    Hello

    I have a Refresh function on my home screen, from the home screen, a user can change the options in the options screen. However to change the options will change the content on the home screen. How can I update the home screen when a user comes to change options? I thought it would update when it is first on the stack again because it would mean that the option screen has been removed from the battery... Any guidance would be appreciated!

    Thank you

    Ben

    As onExposed() is called in other circumstances, when a refresh is not necessary, I wouldn't recommend you do without some sort of filter to determine whether or not you should.  Review the Thread I pointed you to, in there, I suggest a suitable filter, you could use.  .

  • How to add different Actions on different buttons. How to receive the first screen in a stack

    Got two problems I have to solve.

    Let's start with my first.

    Source:

    public class core extends MainScreen implements FieldChangeListener{
        public core()
        {
            super();
            try{
                setTitle("Mobile Inspection Manager");
                RichTextField MainMenu = new RichTextField("Main Menu",RichTextField.TEXT_ALIGN_HCENTER);
                FontFamily fof = FontFamily.forName("Times New Roman");
                Font fon = fof.getFont(Font.PLAIN, 32);
                MainMenu.setFont(fon);
                add(MainMenu);
                SeparatorField Sep = new SeparatorField();
                add(Sep);
                add(new RichTextField(""));
                ButtonField but1 = new ButtonField("Equipment", ButtonField.CONSUME_CLICK) ;
                but1.setMinimalWidth(360);
                but1.setPadding(7,0,7,0);
                add(but1);
                ButtonField but2 = new ButtonField("Messenger", ButtonField.CONSUME_CLICK) ;
                but2.setMinimalWidth(360);
                but2.setPadding(7,0,7,0);
                add(but2);
                ButtonField but3 = new ButtonField("Reports", ButtonField.CONSUME_CLICK) ;
                but3.setMinimalWidth(360);
                but3.setPadding(7,0,7,0);
                add(but3);
                ButtonField but4 = new ButtonField("Preferences", ButtonField.CONSUME_CLICK) ;
                but4.setMinimalWidth(360);
                but4.setPadding(7,0,7,0);
                add(but4);
                ButtonField but5 = new ButtonField("Update/Sync", ButtonField.CONSUME_CLICK) ;
                but5.setMinimalWidth(360);
                but5.setPadding(7,0,7,0);
                add(but5);
                ButtonField but6 = new ButtonField("About", ButtonField.CONSUME_CLICK) ;
                but6.setMinimalWidth(360);
                but6.setPadding(7,0,7,0);
                add(but6);
                ButtonField but7 = new ButtonField("Exit", ButtonField.CONSUME_CLICK) ;
                but7.setMinimalWidth(360);
                but7.setPadding(7,0,7,0);
                but7.setChangeListener(this);
                add(but7);
            }catch(Exception e){
    
            }
        }
        public boolean onClose()
        {
                Dialog.alert("Goodbye!");
                System.exit(0);
                return true;
        }
        public void fieldChanged(Field field, int context)
        {
            master.Application.closeApp();
        }
        public void InfoScreen(){
            MainScreen Version = new ui.about.version();
            master.Application.changeScreen(Version);
        }
    }
    

    I've defined several buttons for the main Menu.

    How can I add these buttons Actions?

    I added one already to the Exit button. We work.

    My first idea was to add a method to implement the InfoScreen.

    But I get a Java error.

    Browsing through the Internet I have not found a solution.

    I took most of the developer Sources.

    But I don't know what I should do now.

    How can I declare different Actions for different buttons?

    2. question.

    I am swaping with screens with the pushScreen command.

    Is there a way to return to the previous screens?

    1 Add this as a change listener to each button.  In your fieldChanged method, mount ButtonField field, extract label and branch code according to it.

    2. pop removes the screen from the top of the stack so underneath the screen becomes visible. Stack screen blackBerry is just that - a battery.

    By the way - are you sure that you have found the font Times New Roman family?  There is no such family on BlackBerry.  Extract his name by using fof.getName () and display it in, say, Dialog.info - you might be surprised.

  • How can I delete an email from apple mail after removing the content (by virus scan software?)

    Recently, I received an avalanche of emails with malicious attachments.  I have not opened any of the accessories, and my antivirus software has picked up malicious content and removed from the email.  Thus, I find myself with an email on my system, no content.  Unfortunately, the system does not allow me to then remove the (s) e-mail that is left.  How can I remove these 'empty' emails in my Inbox mailbox?

    ... my antivirus software has picked up malicious content and removed from the email.

    Allowing something to edit the database of e-mail will result by it becomes corrupted.

    If you use Time Machine, restore the email by "entering Time Machine" of in Mail and choose a time to restore. Then, just delete suspicious e-mails in the usual way. Exit full screen before entering Time Machine.

    You may not use software "anti-virus" not Apple on a Mac, for this reason and many others. Identify the product you use to get the uninstall instructions.

  • Is it normal to remove the protective screen of the Mac laptop

    Is it safe to remove the protector from the computer screen mac laptop?  The screen is cracked, and there is a lot of air bubbles; It's on laptop for over a year.

    If the screen is cracked, I imagine that the screen protector is now the fragments broken in place. I suspect that you will have a worse screen if you remove the cover - it can make other parts of the screen is not locked firmly to the screen. You will not be able to apply a new cover, if the screen is damaged - it spreads upwards again once the surface is not flat and will be difficult to clean.

    If you decide to remove the right cover, back up everything first on an external drive. The display may stop working if you are unlucky or heavy right-handed.

    I think that it would be preferable to replace the broken screen.

  • How can I remove the double song from my iPhone titles?

    How can I remove the double song from my iPhone titles?

    Hello josephever,

    Thank you for using communities of Apple Support.

    To remove the music from your iPhone, you will need to follow the steps below:

    Remove music

    Remove tracks, albums or playlists in the music app delete all music in the settings.

    Remove the application, music, playlists, albums or songs

    1. Find the song, album, or playlist you want to delete.
    2. Tap the Options icon plus on the right side of the screen.
    3. Press DELETE.
    4. When you are prompted, press Delete [purchased or Playlist] to confirm.

    Delete all the music on your device

    1. Go to settings > general > storage and use iCloud > storage management.
    2. Tap music.
    3. Under the music, by sweeping left on all the songs.
    4. Press DELETE.

    If you delete a purchase that you have not saved on your device, the purchase will also hide your purchase history.

    If you are a member of music from Apple or iTunes subscription game, you might see 'Remove my music' instead of delete. Remove the music from your iPhone, iPad or iPod touch also removes it from your music library to iCloud. If you delete music on a single device, it also deletes other devices. Learn how delete your music to iCloud library media.

    On an iPhone, iPad or iPod touch, if you do not have the music available offline, it is cached by using the available space on the device. The device will delete cache and caching of music, as space is needed by the device.

    Remove music, movies, applications and other content to your iPhone, iPad or iPod touch

    See you soon.

  • How can I remove the side bookmarks menu which takes up 1/8th of my screen?

    for some time the firefox page has changed. There is a menu lateral bookmark on the left side. It takes about 1/8th of the screen. How can I remove the menu. There are many other ways to learn to my favorites. and it's the most irritating because I'm used to start reading from left to right. by elsewhere on the other 7/8 th of the screen, there is not enough space to display the document entity.

    Sounds you have open the bookmarks bar.

    You can enable or disable the bookmarks bar via view > sidebars > Favorites or Ctrl + B

    Press F10, or press the Alt key to bring up the 'Menu Bar' temporarily if the menu bar is hidden.

  • Remove the screen "Welcome" (iMovie 10.1.1)

    I managed macs in a University laboratory.  iMovie is a popular choice for students with no experience in video editing.  If students do not start their project by creating a new library, their projects will be erased when disconnecting.  I had been teaching students to key press 'Option' launch iMovie so that they will be immediately asked to create a new library.

    Since the iMovie 10.1.1 update a welcome screen appears and upset my workflow 'Option '.  Now students either have to hold the Option key while clicking through the double welcome screens, or use file > open library > New.

    Anyone know of a backdoor to disable or remove the Welcome screen?

    10.1.1 has not changed how iMovie opens. The only time where you see the home screen is the first time you open the application, or if you removed the preferences. I guess it is related to how your lab is set up. It seems that when each student open iMovie, they are considered as a new user. You have the application on each computer or what they download it from a server? Each user has his own account. Cannot offer many suggestions not knowing about the configuration of your laboratory. But I would look into the way in which the lab is configured as probably the cause of your problem. Normally, iMovie 10.1.1 will open with the button option button in a window to select a library to open it with a button at the bottom to create a new library.

  • How to remove the bar 'start' now empty to maximize the size of the screen?

    OK, I loaded Firefox 3.6.9. I have a click right and removed the three buttons on the bar 'start '. Now I have a white bar wasting screen space. How can I remove it?

    Bar from the top (colored with Firefox icon) = the title bar

    2nd bar (File, Edit, View, history, Favorites, tools, help) = the Menu bar

    3 bar (front/back, reload, home, etc., URL bar, search bar) = the Navigation bar

    4 bar (most visited, recently updated bookmark, Get Started and other) = Bookmarks Toolbar

    Follow these instructions and see if this bar disappears:

    To hide the toolbar bookmarks in the Firefox menu, click view, click to uncheck bookmarks toolbar.

Maybe you are looking for

  • IPhone 6s display problems

    I have an iPhone 6 s.  My iPhone is frozen in an application. I was able to lock the phone, but now the display does not work. Any ideas on how to solve this problem?

  • How to save an attachment photo for images

    How to save an attachment photo photos in my iphone 6?

  • KIA ~ My UVO - Bluetooth connection

    The G4 + do not connect or find my Kia of 2014, the UVO My app does not connect via bluetooth to the car. I have connected the G4 + a few other bluetooth without problem... 4 my wife note connects fine to KIA. Just can't understand why the G4 + will

  • monitor thread on the system in real time

    I have a SMU-8101 controller in my PXI system. I have it running with a system of operating in real time. I inherited some software WHICH has been used on a program of LabWindows used on a PC with a Windows 7 operating system. The SOFTWARE seems to w

  • Mech order gold on windows 7.

    I have windows 7, im trying to install gold Mech Commander, but I get an incompatible message and refer to 32 bits, it is possible for the game to work? Thank you