Back to the screen with reset

Hi people,

in my application, there are two screens:

-screen--> a listfield with several check box and button

-screen B

Users can select the checkboxes and can push a button that call anti-pop method with new screen B as an argument. When users escape in screen B key, it automatically returns to A screen with already activated checkboxes.

My question is, how do I return to the screen in its original state (unchecked checkboxes and cuestions another)?

I hope that I explained

Thanks in advance,

Kind regards!

F.F.: Sorry for my English

Try like this example:

Example of display:

public class Def extends MainScreen
{
    public Def()
    {
        createGUI();
    }
    public void createGUI()
    {
        EditField editField=new EditField("Enter: ", "");
        add(editField);

        ButtonField click=new ButtonField("Click", Field.FIELD_HCENTER);
        click.setChangeListener(new FieldChangeListener()
        {
            public void fieldChanged(Field field, int context)
            {
                UiApplication.getUiApplication().pushScreen(new SamplePopupScreen(Def.this));
            }
        });
        add(click);
    }
}

and the popupScreen is:

public class SamplePopupScreen extends PopupScreen
{
    Def def;
    public SamplePopupScreen(Def def)
    {
        super(new VerticalFieldManager());
        this.def=def;
        createGUI();
    }

    private void createGUI()
    {
        add(new LabelField("Popup Screen",Field.FIELD_HCENTER));
        //Write your code to display on screen;
    }
    public boolean onClose()
    {
        def.deleteAll();//These three steps are for reset the screen;
        def.createGUI();
        def.invalidate();
        UiApplication.getUiApplication().popScreen(this);
        return super.onClose();
    }
}

Enter something in the edit field, and then press the click to see the difference that the screen is reset or not;

Tags: BlackBerry Developers

Similar Questions

  • Satellite M50 does not start, go back to the screen with different start modes

    My Satellite M50-130 does not start correctly. When you turn it on, it goes to a black DOS screen, saying: "We apologize for the inconvenience, but Windows did not start successfully. A recent hardware or software change might have caused this. "It offers me different start modes: Safe Mode, with networking and command prompt. Last good Configuration known; and start Windows normally.

    I tried all the 5 options, gets the commissioning insofar as the Toshiba screen, but then with all the options, it returns to the initial screen offering the 5 modes of starting. Same thing happens when laptop works again.

    The only recent software change, I've done was an update to Norton AntiVirus/Internet Security and I suspect that Norton is at least part of my problem, see history below. I know it's the Toshiba support site, but I tried Norton so many times without success, I gave up. Plus, I'm no expert at all, so I can't be sure that it is really the source of all my sorrows. All advice welcome!

    The performance of my laptop has deteriorated seriously in the last two months. She is extremely slow, and cleaning of malware and unwanted General does not help. It began right after that I renewed the license of Norton last year and upgraded to the 2007 version. The worst downturns are always connected to direct upcoming Norton upgrade programs. I disabled the live upgrade, but programs always come to the top, and I can't stop them, a popup tells me that they are protected.

    Wireless internet is also very capricious, even if another computer on the same network works fine.
    During the last week, I had to relax a little internet security settings (from "moderate to severe" to "low to medium") because after an other update of Norton AntiVirus, I couldn't access to interactive Web sites.
    It is perhaps a coincidence because Norton AntiVirus comes with updates at least twice a week - but what else could be the problem?

    My apologies for the long rant, I am grateful for all the advice!
    Thank you
    I have.

    Hello

    I think the only way to make your system works correctly again is to restore with the cdrom of onboard catering. Simply manage to save your data from your hard drive (the best way would be to put your machine's HARD drive in a USB - HDD enclosure and copy important data on another computer), then wipe the system completely off you hdd.

    After that, the system must run again...

    Welcome them

  • I click on options on the screen with General, research, etc. I can't click anything. I reinstalled it. I can't react

    When I click on the screen with the general options, the search, privacy etc.. I can't click anything. The page will just die. I reinstalled it. I can't respond to anything

    Start Firefox in Safe Mode to check if one of the extensions (Firefox, Tools/menu key > Modules > Extensions) or if hardware acceleration is the cause of the problem.

    • Put yourself in the DEFAULT theme: Firefox, Tools/menu key > Modules > appearance
    • Do NOT click on the reset button on the startup window Mode safe
  • While the iCloud recovery backup... continue to go back to the screen HELLO?

    I am currently trying to reactivate an iPhone with the last backup to iCloud.

    The iPhone asked me for the first update to iOS 9.3.1 (because the previous backup on previous iPhone did in 9.3.1 I guess... (and although this new iPhone showed 9.3.1!...)

    Now I'm gone screen HOLA-HELLO, entered a network wi - fi available, connected with my operator (with the right SIM card of course - phone work - test received call).

    However, now, so that this treatment with the recovery of backup, when I let the phone go to the screensaver, it keeps going back to the screen HELLO... Is * normal *?  Or should I suspect a problem with the iPhone 5?

    (Just bought from a dealer - it is seller-renovated, reliable source)

    Thank you

    Rob

    While iCloud restoration takes time - given the dependencies on your WiFi and the amount of content to download - it should not restart loop like this

    Restore your device from an iCloud or iTunes backup - Apple Support

  • When we turn on my wife's ipad, a box of red line begins to jump around the screen, and then a pale red stripe moves back on the screen. Any ideas on how to stop it? Thank you

    When we turn on my wife's ipad, a box of red line begins to jump around the screen, and then a pale red stripe moves back on the screen. Any ideas on how to stop it? Thank you

    The standard specifies:

    -Reset the device iOS. Nothing will be lost

    Device iOS Reset: Hold down the On / Off button and the Home button at the same time for to

    ten seconds, until the Apple logo appears.

    -Reset all settings

    Go to settings > general > Reset and tap reset all settings.

    All your preferences and settings are reset. Information (such as your contacts and calendars) and media (such as songs and videos) are not affected.

    -Restore from backup. See:

    Restore your device from an iCloud or iTunes backup - Apple Support

    -Restore factory settings/new iOS device.

    If still problem, make an appointment at an Apple store Genius Bar because it appears that you have a hardware problem.

    Shop Apple Store - Genius Bar

  • Cannot adjust the brightness of the screen with the keys Fn on new L540 (8.1 x 64)

    Hello everyone. I just bought a new L540 with 8.1 of Windows x 64 on it and have met a problem that I see is apparently common. While my other Fn keys work as expected, I can't adjust the brightness of the screen with them. By pressing the buttons just does nothing and the laptop is in running at full brightness at any time, even on the battery. I installed the latest driver for managing power and from what I can tell, there is no version of the management software supply for something newer than Windows 7. I also installed the latest driver for the shortcut key (in fact, I installed all the latest drivers for this machine.) I read in another thread that this may be caused by the latest driver from Intel's HD graphics card but in fact, I can not install even this driver (said my system is not supported) so I always use the latest version of the driver Lenovo provided.

    Can someone please help with this? I want to be able to quickly adjust the brightness of the screen when it is on battery, but I can't do it right now. Thank you!

    I have the same problem with my L540. It started with the BIOS update to version 1.65. Because I have not found a solution, I went back to BIOS version 1.64, where all the brightness options are there and are working properly.

    You can download older versions. When on the page with the new drivers (http://support.lenovo.com/en_US/downloads/detail.page?DocID=DS037285) go to BIOS driver 1.65, then choose "learn more." At the end of the next page, you will see all the old versions.

    You can install the version 1.64, you should choose the Option "Secure RollBack prévention" in the BIOS: restart the computer. When you see the option "to interrupt normal startup, press enter", press ENTER. Once more, press ENTER. Press F1 to enter BIOS Setup utility. Click on 'Security'-> then "update Bios UEFI Option'-> then"set RollBack prevention. " Change this option to "disabled". Press F10 to save the configuration changes and exit.

    After you restart Windows, you can install BIOS 1.64.

    Another possibility is to wait for the next version of BIOS...

  • Is it possible to click and hold something on the screen with the keyboard?

    Original title: click and hold the function with a mouse?

    Is it possible to click and hold something on the screen with the keyboard? My mouse is dying and I can't afford a new right now, but I need to move things on the desktop and do not know how, is there maybe a shortcut for this?

    Hello

    There is no this keyboard shortcut to accomplish the task.

    For more information about keyboard shortcuts, see: keyboard shortcuts for Windows XP

    Hope the helps of information.
    Please post back and we do know.

  • I worked on a large document for several years and all of a sudden I can't scroll to the bottom of the screen with my two fingers on the touchpad, well that I have no problem scrolling to the bottom of this page to search for similar issues.

    I worked on a large document for several years and all of a sudden I can't scroll to the bottom of the screen with my two fingers on the touchpad, well that I have no problem scrolling to the bottom of this page to search for similar issues. I can navigate only to go up and down with the arrow keys.

    What version of Pages is running on your MBP?

    What version of Mac OS X is running on your MBP?

    The MBP is not iOS running.

  • If I click on an email link in a web page instead of an empty message is opened I still get noise toward the top of the screen with a log-in for googlemail. I don't have and won't have a googlemail account. I just want to be able to send e-mail messages b

    If I click on an email link in a web page instead of an empty message is opened I still get noise toward the top of the screen with a log-in for googlemail. I don't have and won't have a googlemail account. I just want to be able to send e-mail messages by using Outlook.

    See this article.

    http://support.Mozilla.com/en-us/KB/changing+the+e-mail+program+used+by+Firefox

  • After installing Windows Vista, upgrades of office is now only 2 thirds of the screen, with one third black.

    Original title: April 16 to restart my computer after installing Windows Vista upgrades, my office is now only 2 thirds of the screen, with the third other black

    The whole office is there, but it is located in the Center, if the screen, with black bands at the top and bottom. By clicking full screen on the top right has no effect.

    Hi Jeremy,.

    Thanks a lot for your help. You're right, I should have said no upgrades and updates.
    There were a total of 10 updates:
    4 a security updates for Vista,
    1 security update for the Microsoft 2010 information access path,
    1 day of cumulative security for IE9.
    1 windows Live essential 2011
    1 definition update Windows Defender (KB915597)
    1 "" for Office 2010 "
    1 April 2013 malware tool
    I uninstalled Windows Live Essentials. I felt that I should not uninstall the updates of security, and the Defender update can not be uninstalled. It made no difference.
    I also checked the graphics card and told me that I had the latest version of the software.
    Then I checked the configuration of the monitor and graphics card configuration and found I could set the configuration to full frame. I did it and now all is well again.
    How and why the full frame disappeared April 16 remains a mystery.
    Thank you very much for your information without your help I would have been unable to delve deeply into the system. I learned a lot.
  • I rebooted my machine yesterday and now when it comes to the screen with the scroll bar it restarts in loop. Impossible to enter Safe Mode (arrives at crcdisk.sys and while it recharges) or normal startup mode.

    I restarted my machine yesterday and now when it comes to the screen with scrolling bar (think Night Rider), it restarts in loop.  Impossible to enter Safe Mode (arrives at crcdisk.sys and while it recharges) or normal startup mode.  Startup Repair is unable to repair.  She argues that the onus of a BadPatch.

    Startup Repair shows the following:

    Problem event name: StartupRepairV2
    Signature of the problem 01: external Media
    Signature of the problem 02: 6.0.6000.16386.6.0.6001.18000
    03:6 problem signature
    Signature of the 04:262148 problem
    Signature of the problem 05: BadPatch
    Signature of the 06 problem: BadPatch
    Signature of the problem 07:0
    Signature of issue 08: 1
    Signature of the problem 09: SystemRestore
    Signature of the problem 10:0
    OS version: 6.0.6000.2.0.0.256.1
    Locale ID: 1033

    Hello

    I hope you made redundant data backups as I suspect that the drive has failed. If a PC, you must
    remove all power and remove and reinstall all the cables (at both ends where possible), memory and cards. Do
    not tighten, effectively remove and replace them with care.

    Click here for the manufacturer of your hard drive and launch their diagnosis on your drive.

    By manufacturer diagnostic utilities
    http://www.techsupportforum.com/hardware-support/hard-drive-support/302602-hard-drive-diagnostic-utilities.html
    SpeedFan
    http://www.almico.com/sfdownload.php

    HD Tune
    http://www.hdtune.com/

    ----------------------------------------------

    If necessary:

    You can try an In-Place Upgrade (hopefully save programs and data) or a repair installation (if all goes well
    saves the data, and you need to reinstall the programs). Be sure to do a good backup or three.

    You can use another DVD that are not protected but you will need to copy you have the product key.

    On-site upgrade
    http://vistasupport.MVPs.org/repair_a_vista_installation_using_the_upgrade_option_of_the_vista_dvd.htm

    If nothing works, you can make a repair facility that must save the data but you will need to
    Reinstall the programs. This also requires correct Vista disks especially for OEM versions. You will be
    need to know your product Code.

    This tells you how to access the System Recovery Options and/or a Vista DVD
    http://windowshelp.Microsoft.com/Windows/en-us/help/326b756b-1601-435e-99D0-1585439470351033.mspx

    How to perform a repair for Vista Installation
    http://www.Vistax64.com/tutorials/88236-repair-install-Vista.html

    No new chances.
    Rob - bicycle - Mark Twain said it is good.

  • Windows Media Player is dragged off the screen, now I need to go back to the screen as soon as possible HELP

    SO I was using windows media player and makes it smaller.  Unfortunately I dragged off the screen too far to the right.  How get her back to the screen?  Help

    Hello

    Bring back moved off screen Windows on your desktop (keyboard Trick)
    http://www.howtogeek.com/HOWTO/Windows/bring-misplaced-off-screen-Windows-back-to-your-desktop-keyboard-trick/

    I hope this helps.
    Rob - bicycle - Mark Twain said it is good.

  • I recently accidentally dropped my laptop and now whenever I try to turn it on, it gets frozen on the screen with the logo of "starting windows."

    * Original title: start Windows 7

    I recently accidentally dropped my laptop and now whenever I try to turn it on, it gets frozen on the screen with the logo of "starting windows." When it disappears, the screen just goes black and nothing else happens. Logins appear not at all. I also tried to run in safe mode and safe mode with networking mode, but it has not loaded yet even to the windows splash screen. I ran Startup Repair 3 times now and he has not yet fixed my problem. I was wondering if it might have been damaged in the fall.

    Probably yes it is damaged in the case otherwise he would start.

  • Variables back to the screens passage

    import net.rim.device.api.ui.UiApplication;
    
    class Startup extends UiApplication {
    
        String name;
        ViewScreen _vs;
    
        private Startup() {
            name = "initial value";
            ViewScreen _vs = new ViewScreen(name);
            pushScreen(_vs);
        }
    
        public void setName(String n3) {
            name = n3;
        }
    
        public static void main(String[] args) {
            Startup theApp = new Startup();
            theApp.enterEventDispatcher();
        }
    }
    
    /////////////////////////////////////////
    
    import net.rim.device.api.ui.Field;
    import net.rim.device.api.ui.MenuItem;
    import net.rim.device.api.ui.UiApplication;
    import net.rim.device.api.ui.component.RichTextField;
    import net.rim.device.api.ui.container.MainScreen;
    
    public class ViewScreen extends MainScreen {
    
        private Startup _uiApp;
        private String nameView;
    
        public ViewScreen(String n1) {
            nameView = n1;
            _uiApp = (Startup)UiApplication.getUiApplication();
            add(new RichTextField(nameView, Field.NON_FOCUSABLE));
            addMenuItem(changeName);
        }
    
        private MenuItem changeName = new MenuItem("Change Name", 11000, 10)    {
            public void run() {
                _uiApp.pushScreen(new EditScreen(nameView));
            }
        };
    
    }
    
    ///////////////////////////////////////////
    
    import net.rim.device.api.ui.MenuItem;
    import net.rim.device.api.ui.UiApplication;
    import net.rim.device.api.ui.component.AutoTextEditField;
    import net.rim.device.api.ui.container.MainScreen;
    
    public class EditScreen extends MainScreen {
    
        private Startup _uiApp;
        private String nameEdit;
    
        public EditScreen(String n2) {
            nameEdit = n2;
            _uiApp = (Startup)UiApplication.getUiApplication();
            add(new AutoTextEditField("Name:  ", nameEdit));
            addMenuItem(anotherName);
        }
    
        private MenuItem anotherName = new MenuItem("Another Name", 11000, 10)  {
            public void run() {
                String n4 = _uiApp.name;                    _uiApp.pushScreen(new ViewScreen(n4));
            }
        };
    
        public boolean onSave() {
            _uiApp.setName(nameEdit);
    //      _uiApp._vs.updateDisplay();
    //      _uiApp._vs.doPaint();
    //      _uiApp._vs.invalidate();
            return super.onSave();
        }
    
    }
    

    I am new to Java and new to BlackBerry programming, so this is probably a simple question, but I'm stumped.

    What is the best way to pass a variable back to the screen that has already been posted once it is published on another screen?

    If you look at the three class files attached, I have a correction of exposure that shows a variable.  I then open an EditScreen, change the value and then close and save.  When the original ViewScreen appears again, it still shows the original value.  You can see the things I've tried (and commented) then the substitution of onSave, but they don't update the exposure correction.

    Thanks for any input.

    BlackBerry Curve 8900 v4.6.1

    Eclipse 3.4.1

    I thought about it.  I created variables for the fields in the first screen.  Then once you change the value of the field in the first screen, in the second screen, the field on the first screen will update as expected.

  • 3 monh old oshiba lapop som numbrs & letters don had working on the back of the screen keyboard

    3 monh old oshiba lapop som numbrs & letters don had working on the back of the screen keyboard

    If it is still under warranty, contact Toshiba.

    SC Tom

Maybe you are looking for

  • Tecra R940 with Windows 7 SSD boot failure

    My company bought laptop computers Tecra R940 and replace the HDD with Kingston SSDNow v + 200 V + 120 GB SSD drives. On a test after installing the SSD device, the laptop was rebuilt with our brand image (Windows 7 x 64) that has successfully comple

  • How to send emails to the MS Exchange Server 2010 distribution group?

    Well, I'm not well versed in Exchange, (that I'm learning) so please forgive me for the lack of details correct / lingo. I try to create email for my church, distribution groups.We must be able to send a single email to a group and do it before out t

  • Error message 0 x 80010005

    I have Windows Vista and everything started getting this error when I first turn on my computer. Windows Defender Initialization failed: 0 x 80010005 And my gadgets will not load upward. What is going on?

  • HP PAVILION DV5-1160us (Vista to XP Downgrade SP3)

    Hello I demoted curently... my computer from Vista to Xp with SERVICE PACK 3... I used the universal driver for driveout some drivers... but cannot get this three 3 drivers These two (2) Device Manager shows yellow points mark and points. (Audio Devi

  • Where a template for bulk changes to the first point 2.2

    I've recently upgraded to 2.2 first and can not find where to create and publish a model to get for my switches configuration changes.  Where is this option because I find it anymore? Terence