How to clear the account display battery when I get out of the application

Hello

I use the screen push method to call another screen in my application...

When you use this method after awhile my request become slow bacuase stack display (several frames in the queue).

If suppose that at some point if I check using the method of counting to screen it shows 36 screens are queued,

so I would like to know how to clear the number of queue display stack when I get out of the application

I agree with arkadyz here.  It may be something other than just a bunch of screens on the stack.

If after reviewing your design, you still need to pop all the screens, here's a snippet of code that will do just that:

public void popAll() {
        UiApplication ui = UiApplication.getUiApplication();
    int screenCount = ui.getScreenCount();
    for (int i = 0; i < screenCount; i++) {
        Screen activeScreen = ui.getActiveScreen();
        ui.popScreen(activeScreen);
    }
}

But if you are out of the app, there is no need to do so either.

Tags: BlackBerry Developers

Similar Questions

  • How to clear the Application Server Control logs?

    On the application server in 10g, 10g of database, Windows 2003 Operating System.

    Referring to http://download.oracle.com/docs/cd/B10464_05/core.904/b10376/log.htm, Figure 4-1. I can see 12000 +++ lines dating back to before that I was hired. I'm trying to remove some of the papers, if possible. When I did Figure 4-6, location of repository Log - diagnosis/repository, I thought that the log files will be in FRHome1\diagnostics\respository; but there is no file in there. In fact nothing in this record.

    So my questions are:
    (1) where the logs for Application Server?
    (2) how to remove some of the newspapers?

    Thank you.

    Hello;

    I think that 2 August was my last post in this forum. By chance, I noticed this.

    Yes, they can be removed (say weekly or monthly cleaning)

    /U01/app/Oracle/product/midtier/WEBCACHE/logs/access_log.20100126_1542

    I run Linux and mine is here:

    /U01/app/Oracle/product/midtier/J2EE/OC4J_BI_Forms/log/OC4J_BI_Forms_default_island_1/default-Web-access.log

    To test I have renamed it to this:

    /U01/app/Oracle/product/midtier/J2EE/OC4J_BI_Forms/log/OC4J_BI_Forms_default_island_1/default-Web-access.logold

    IAS then stopped and restarted and it created: (from 0 bytes)

    /U01/app/Oracle/product/midtier/J2EE/OC4J_BI_Forms/log/OC4J_BI_Forms_default_island_1/default-Web-access.log

    So I think that you can delete them, but you should let iAS re-create. (In this way the permissions will be correct)

    Best regards

    mseberg

  • How to clear the table dhcp clients

    Does anyone know how to clear the Table of Clients DHCP?

    I have a WRV54G.

    Concerning

    I understand this is a very old post, but since I found it when I was looking for the same answer in 2009, I thought go ahead and give my $.02 worth.

    I have a different router, so it may not be present in your.

    I use a version of the firmware WRT54GLwith 4.30.7 and finally found on the status under "Local network" page a link to the DHCP table. You can click on that and delete existing IP addresses.

  • How to clear the old cumulative game data in the collection of solitaire Microsoft - Windows 8

    How to clear the old cumulative game data in the collection of solitaire weird... is to say total games, victories, % etc...

    Hello

    Microsoft Solitaire Collection is a combination of card games and he has not a good reset option for all games.

    Some games have the New Deal option when you right click to start a new game.

    However, on some games have the ability to reset the cumulative Scores. Follow the instructions and check if this.

    (a) click here to open the game.

    (b) press on Windows key + C.

    (c) click settings.

    (d) click on Game Options.

    (e) whether specific game and click reset a cumulative Score .

    Let us know the status of the issue. If you need help, please after return. We will be happy to help you.

  • How to clear the QBE search criteria?

    We have a taskflow which is invoked as a popup in a jsff page, this popup contains a table where the user can query using QBE. After that the popup is closed, then reopened, the search in the QBE criteria is kept.

    No idea how to clear the QBE search criteria?

    You can use the following code to clear the filters:

        ViewCriteria vcDefault = vo.getViewCriteria (ViewCriteriaManager.IMPLICIT_VIEW_CRITERIA_NAME);
        If (vcDefault! = null) {}
          vcDefault.clear ();
       

    }

    See the following blog:

    http://smconsultants.in/2013/08/clearing-table-filters-when-the-user-comes-back-to-same-page-with-in-a-taskflow.html

  • How to clear the Jquery Autocomplete text.

    Hi all


    I've implemented a text using jquery AutoComplete element. Every thing seems fine, but when we have a clear of the country which State should be cleared.
    Here is the code, can any body hep me where and how to clear the values.
    --
    <script type="text/javascript">
    $( function() {
        
        $("#P16_ENG_CTRY").autocomplete({
            source : function( request , response) { 
                            data = getCountry(request.term);
                            response( data );
                     } ,
            focus  : function(event , ui){
                        event.preventDefault();
                     }
     
        });
    });
     
    function getCountry(key)
    { 
       document.getElementById('P16_ENG_CTRY')==''; 
       var ajaxRequest = new htmldb_Get( null , '&APP_ID.' , 'APPLICATION_PROCESS=GET_COUNTRY' , 0);
       ajaxRequest.add( 'G_MX01' , key);
       ajaxResult = ajaxRequest.get(); 
       
       return ((ajaxResult.length>0)? ajaxResult.split( '~' ):null);
     
    }
    
    
    $( function() {
        
        $("#P16_ENG_STATE").autocomplete({
            source : function( request , response) { 
                            data = getStateJ(request.term);
                            response( data );
                     } ,
            focus  : function(event , ui){
                        event.preventDefault();
                     }
     
        });
    });
     
    function getStateJ(key)
    { 
    
      
    document.getElementById('P16_ENG_STATE')=='';
          var ajaxRequest = new htmldb_Get( null , '&APP_ID.' , 'APPLICATION_PROCESS=GET_JSTATE' , 0);
    
              ajaxRequest.add('G_MX01',document.getElementById('P16_ENG_CTRY').value);        
              ajaxRequest.add( 'G_MX03' , key);
              ajaxResult = ajaxRequest.get(); 
       
       return ((ajaxResult.length>0)? ajaxResult.split( '~' ):null);
     
    }
    
    
    $( function() {
        
        $("#P16_ENG_CITY").autocomplete({
            source : function( request , response) { 
                            data = getCityJ(request.term);
                            response( data );
                     } ,
            focus  : function(event , ui){
                        event.preventDefault();
                     }
     
        });
    });
    Thank you
    David...

    Try this then and you can replace the blur with an event of jquery as you like

    $("#P16_ENG_CTRY").blur(function() {
    //clear the value
      if ($(this).val()==null || $(this).val()=="") {
         $("#P16_ENG_STATE").val('');
      }
     }
    });
    
  • How to clear the search results in an af:table?

    Hi all
    I use Jdeveloper 11 g with ADFBC.

    I have a query with a table of readonly page to display the result of the query, and there is a "Reset" button on the page (NOT reset in motion control) to clear the search results in the table.
    I try the following code to clear the contents of the search results, BUT it does not work. The data in the table is always run after the code below here.
    DCIteratorBinding binding = ADFUtils.findIterator("UserVO1Iterator");
    if (binding!=null) {
        binding.clear();
    }
    Can someone help me? How to clear the contents in an af:table supporting the Java bean code?

    Kind regards
    Samson Fu

    You can also try to call the method executeEmptyRowSet() on the view of the iterator object instance

    Sample:

    binding.getViewObject().executeEmptyRowSet()
    

    Jean Lou

  • How to clear the children containers?

    My little app is coming along, has managed to get this well with the excellent advice of those here. My last problem is that when I leave the area of detail and select a new (master1) I don't know how to clear the details of the previous selections (master 2). When I select of (master1) DataGrid (master 2) is poplulated, but the Image on the canvas is still the Image previously selected until I select a new on in (master 2). Is there anyway to dump on a new event (master1)? My attempt to define my layout is less. If it is not enough just let me know and I'll post everything that is necessary. Thanks again for all the previous Help and in advance for this one.

    Presentation of the step:

    mxDataGrid (master1)
    /mxDataGrid

    tabNavigator
    MX:canvas
    dataProvider {master1} MX:image
    /MX:canvas

    MX:canvas
    dataProvider {master1} MX:DataGrid
    MX:columns (master 2)
    /MX:DataGrid
    dataProvider {master2} MX:image
    /MX:canvas

    /MX:tabNavigator

    I just changed the 'visible' attribute instead of compensation on the value, and all is good. Thank you.

  • How to clear the hard drive on my old iMac of 2008?

    I have a 2008 iMac I want to recycle. How to clear the hard drive?

    (What is PPC?)

    PPC stands for Power PC. Is the name used to refer to the old Macs that uses a Motorola processor instead of Intel chips used today. To clear your old Mac follow the advice in this document from Apple... What to do before you sell or give away your Mac - Apple Support

  • How to clear the cache of firefox

    How to clear the cache of firefox

    Settings-Advanced below 'Network' and clear here

    https://support.Mozilla.org/ru/KB/Kak-ochistit-KESH-Firefox?redirectlocale=ru & redirectslug = Kak-ochistit-Kesh

  • How to clear the history?

    How to clear the history?

    https://support.Mozilla.org/en-us/KB/how-do-i-clear-private-data-Firefox-Android

  • Portege Z930 - how to clear the memory of the fingerprint sensor?

    Hello

    Tell me how to clear the memory of the fingerprint sensor?
    Reinstall the operating system and now I can not add your impressions.

    They have their No....

    > Reinstall the operating system and now I can not add your impressions.
    Stand by. You have reinstalled OS using original recovery image?

  • Re: How to clear the model of Toshiba satellite PS271L - 6K 906 CMOS PASSWORD?

    In: Toshiba

    How to clear the model Toshiba Satellite PS271L - 6K 906 CMOS PASSWORD?
    Please respond to my E-mail [email protected]
    Thank you

    To: King

    http://forums.computers.Toshiba-Europe.com/forums/thread.jspa?MessageID=127837
    Read this thread very carefully!

  • How to clear the cache in 9.0.3

    Techno-bouffon here, in conflict on how to clear the cache in 9.0.3 (OS X 10.11.3 El Capitan). Some recommend to delete entire cache folder. Others say just clear com.apple.Safari, which I did. So... what happens if I delete the contents of the entire folder Caches? (I have nothing special set up on this computer.)

    Open Safari Preferences--> advanced.  Downstairs, make sure that ' see her develop menu in the menu bar "is checked.  Then go up to develop-> empty Caches.

  • How to clear the cmos on satellite p20 552 settings?

    How to clear the cmos on satellite p20 552 settings?

    Hello

    I guess you want to remove the BIOS password. Am I wrong?

Maybe you are looking for