Not sure about the best way to structure my app.

Hello

I'm not sure of the best way to structure my app.

I have a main menu that links to 3 submenus, each a link to a number of pages. Initially when I clicked on a menu button, that he would open a submenu instantly and then clicking a button, the page open instantly. And return to the previous menus was also very fast.

But at some point that he started getting really slow. I click on a button in the main menu and he thinks for a while before moving on to the pick-me-up submenu is too slow. I'm not sure why and I lose a lot of time trying different ways to do it.

So what I want to know, as far as efficiency goes, should I create the main menu and submenus 3 at the start of my application, keep these same objects active and just pass pointers to them around like settings and pop on and off the screen of the battery when required, or should I just create them as new items whenever they are needed?

Any advice on this would be greatly appreciated.

If each submenu returns to the main menu, just use the screen for the navigation stack. Don't forward mainMenu for the submenus; to return, just pop the submenu and the main menu will be back at the top. At the time of mainMenu wants to open a submenu, just push without fun first.

Have you thought to check for memory leaks? There is a discussion of 3 parts of this by Kamen:

How to find that leak memory (part i)

How to find this memory leak (Part Two)

How to find this part of memory ((troisieme leak)

Tags: BlackBerry Developers

Similar Questions

  • Ask questions about the best way to build a page

    I built a site design in Photoshop and then slice it upward, leaving a space for the main text of each page. Then, I put the html code and images in Dreamweaver and built a model, make an editable region in the table cell where the main text of each page will go. Here's a screenshot to give you a better idea...

    Screenshot

    Originally I set up so that the combo box had a scroll bar to accommodate the amount of text to the page (I used whole overflow to auto in CSS). The problem is, the customer does not want scrollbars and wants to dynamically extend the page vertically according to the amount of text for the page (with top image of women aligned with the text and their relationship to bio under the navigation bar and 2 magazines and photos that his introductory text and copyright is pushed down to the bottom below the main text).

    If I don't use the scroll bars and try to put more text that you can insert into the editable cell, it breaks the table and nav bar gets all messed up and looks like this...

    Screenshot 2

    I am at a loss, how can I set up so that the page will dynamically expand vertically with the text? Any suggestions? A table is not the way to go? What is the best way to do it?

    I'm open to what it is at this point, I tried things on my own for hours with no. results, any help is appreciated, thanks!

    Hey everyone, I just wanted you to know that I have rebuilt the table in Dreamweaver, it has worked very well and solved all the questions I had, thanks for any help!

  • What is the best way to my test app on Android devices?

    I am a great Apple user and can test my application physically on old devices iPhone 3, 4, 5 and 6, as well as several iPads.

    However, I don't know where to start with Android. There is a paid service that allows me to test on all the most popular devices? HTC Galaxy, Note, etc.?

    Hi Chris,

    You ask about a way to run your automated tests on a high-end devices the Android, or someone else to take a test plan, and then manually run through it?

    If you want that your tests automated to run on multiple devices, I suggest you have a look at AWS unit closed. Here is a list of their devices: list of devices. The best use of the system is to develop tests automated in a setting like the gourd.

    Even if you don't have automated tests, they can always run your application through a battery of tests of "compatibility" to assess the stability and the compatibility on a wide range of devices. You can view the screenshots to see how well made design.

    As an end-user of DPS, however, most of your tests can be subjective tests, the content is constantly changing. It is more difficult and I would recommend developing a simple battery of automated tests that will allow you to see a few areas in the application, such as the tops of the pages browse that you want audited, and perhaps every page in the article so that you're not just getting back random screenshots. System such as CPU and memory usage metrics will help you determine if you have created an article that is too demanding of system resources.

    You will need to use a preview of the application builder application to test the new content.

    Let me know if you have any other questions.

    -Dave

  • Not sure about the difference between Lenovo series

    Hey guys, I intend to buy a laptop for daily use soon and many portable computers cought Lenovo my eye (especially for their full ips hd and touch screen), but

    There's something that confuses me on their brand image, what is the difference between:

    Yoga 500

    Flex 3

    Yoga 3

    I could find good in each of them a similar version, otherwise identical specifications, why they cost so differently and what is

    the real difference between them?

    Thank you!

    I checked these two models, and I think it will now come down to personal preference.

    I got the JBL speakers and Dolby ones certified. Two speakers sound great, but I would go with the Dolby option.

    So here's the points in favor of Y500-

    (1) speakers Dolby

    2) more USB ports

    (3) HDMI port (it is a full port and no microphone, I prefer complete ports)

    (4) more large HDD (1 TB + 8 GB SSHD, fast enough)

    (5) it's cheaper

    Points in favor of Yoga 3-

    1) less weight

    (2) small charger (still less weight)

    (3) 256 GB SSD (faster)

    I think that at the end of the day, Yoga 3 will be a little easier to transport (if you travel a lot), and 500 Yoga will be heavier. My personal vote will increase to 500 of Yoga.

    You should probably look at detailed descriptions to see the dissipation of heat and other factors.

    Also, I hope that you are not buying these to make some plays heavy, these laptops are not for good game. They will work some games decently, but nothing too serious. In addition, more the laptop, the more heat it will generate.

  • HP Deskjet F4580: Not sure about the error of the driver

    I get this error with my HP Deskjet F4580 printer that I have not the same right usb connectors install the drivers for it first?

    It was working fine before, but then I reformatted with a new motherboard and when I tried to reinstall the drivers this is the error I get, do not know what to do

    Hello
    Click the Start button and type folder in the search bar, then open the Temp folder indicated.

    Open the last HP installation folder that begins with 7z (e.g. 7zs1234)
    Open the installation folder.
    Find the file usbready.exe and rename it to usbready.old.exe
    Navigate to the main extraction folder (folders that begins with 7z) and run the Setup.exe file.

    Now follow the installation and check for the difference.

    Kind regards
    Shlomi

  • Confused about the best way to search for implicit keywords

    Hi all. I want to take full advantage of the LR3 Keywords, but I'm a bit stumped on how to search for implicit keywords. I've got animals > birds > Puffin and animals > birds > crows, etc.  What I want to do, but can't quite figure out is how to do is search for pictures of my birds.  (For example, to see all the photos of four star bird.)  But I find nothing (directly) to do.  What I can do, which is a bit indirect, to search for, say, the puffins (by typing "Puffin" in the search box in the keyword list Panel), which shows the Puffin and its keywords containing (birds and animals), form nested in the keyword list Panel. Of course, if I have the mouse on "Puffin" I can then click on the arrow to see all my pictures of puffins.  But I can also see all my pictures of birds (my goal) by mouse on 'the birds', get an arrow and click on it to see all my birds photos (Puffin, crows, etc.).  But that doesn't seem to work is just typing "birds" in the search field.  It indeed returns the implicit keyword of "the birds" in the list of keywords, but there is no arrow to click on to see all the photos of my birds.

    To summarize, if I want to see all the photos of my birds, I look for any type of bird, who then returned the bird nested under the 'birds' and 'animals' in the list of keywords. And I can then click on the arrow for the 'birds' containing key words to see pictures of my birds. But it is somewhat indirect.  I wish I could just search for "the birds" (an implicit keyword) get to all my pictures of birds.  Is it possible to do (directly)?  Thank you!!

    Hit birds in the search field of the library filter does not it you ask?

  • Not sure about the type erasure?

    Hi, my doubt is erase type. Here's the class with generics.
    public class Person<T>{
        
           public T add(T a){
                   System.out.println("happy");
           }
    }
    When compiled type erasure happens. I mean when it is converted to type of class erase file arrives. so the code might be as follows
    public class Person{
    
             public Object add(Object a){
                        System.out.println("happy");
             }
    }
    When the compilation is finished, I started to write the main method and in my main method when I declare
    Person a=new Person()
    the compiler generates a warning saying that the Person class is a type of crude. arguments must be provided to the type parameters. So when there is no generic drugs in the class file, how the compiler identifies that the person is a generic class and arguments must be provided to the type parameters.

    Myriam wrote:
    Now, there is a basic doubt. so far, I thought that the byte-code and the class file is the same. I mean the class file contains the byte-code which is the reason class file runs on all platforms. I also google to know the difference between byte-code and class file but I couldn't find anything. Class file is different from byte-code. If yes what is the class file and what is byte code?

    The class file contains the byte-code indeed - other elements of prudent information to the virtual machine to actually load and interpret the class file.

    http://docs.Oracle.com/javase/specs/JVMs/SE5.0/HTML/ClassFile.doc.html

    You should do a basic study in binary data formats to understand the functioning of applications with those. Generally, you need additional information, which is usually stored in the top of the file (the "header"), to know how to load and interpret the binary data in the file. These header information could contain generic details for example.

    Take a picture as another simple example file: its impossible to properly load the image data if you don't know at least how wide and height of the image is, how many bytes a single pixel takes upward, etc., then you can just dump the binary image of the file data, you must also store the additional header information.

  • The best way to travel in order to bring the laptop images

    I have lightroom on a laptop and desktop system

    EM. Wonder about the best way to put the photos I take while traveling to desktop system without losing data lightroom.

    On both computers, I keep photos in folders by date.

    In the past, I just copied the files of the laptop and then imported these files in the catalog of lightroom on desktop.

    Is there a way to tell lightroom to take the lightroom for mobile phones catalog info and import them into the one on the desktop?

    I save metadata (xmp or jpg files) images after having been edited so I know who get most (all?) of the catalog info when I just copy the photos on the desktop and then import it.

    Thanks for the suggestions.

    Paul,

    I would like to keep a structure of the same folders on the laptop and the desktop (not necessarily the same drive letters, but the same structure). Then I would be:

    • Copy the image files from the laptop to the desktop
    • By using the catalog office, do an import of the catalog to the mobile catalog
      • Use "add new photos to catalog without moving.
    • If the drive letters containing the original match, it's all there is to it
    • If drive letters containing the originals do not match, all you have to do is 'Find missing folder' on the top-level only imported folder

    Beat

    PS:

    • No need to write the XMP data, because it does contain all the information anyway catalog (virtual copies, collections, flags, fireplaces,...).
    • Please note that the parameters of published services NOT imported when you import the catalog.

    Post edited by: b_gossweiler: added P.S.

  • What is the best way to copy a static variable of C in LabVIEW?

    As an interesting project / fun, I'm trying to implement the bcrypt algorithm in some native G, without using libraries (for example, no link DLL, all of the native code G). Everything is going well so far, with the exception of a minor roadblock I ran into. The bcrypt algorithm involves initialization of a state variable with a range of 4 x 256 of hex codes derived the decimals of pi. In C code, it looks like:

    unsigned int BF_init_state = {}
    {
    {
    Initial state of the line 1s
    }, {
    Initial state of the line 2 S
    }, {
    Initial state of the 3 S-line
    }, {
    Initial state of the line 4S
    }
    }, {
    State initial P goes here
    }
    };

    I know that this should be in favour of some sort of import JSON, or perhaps directly via the menu data operations, but I'm not 100% sure on the best way to do it. Any ideas?

    I truncated lines, so if you are interested in getting the complete code, see crypt_blowfish.c on GitHub.

    This will make only a row/column at a time, but I think that's what you're looking for.

  • What is the best way to design a gallery of images which can be seen on all devices

    I'm trying to find out about the best way to convert an existing gallery in a sensitive Gallery to be seen on all devices. I have about 200 images. I know about the phones, the number of images would kill most of the data plans.

    1. what would be the optimal number of images to use on small devices (phone)?

    2. is it possible to add additional images as the largest becomes peripheral (Tablet, laptop, office, TV)

    3. are there plugins or scripts to facilitate this?

    Just try to pass to sift through all the possibilities before dive page and having to redo again and again, rather than once.

    Thank you

    John

    Burst your gallery in bite size pieces - spread over several pages.

    The optimized use of thumbnail images that do not kill data plans.

    Put your images in actual size in a modal window Viewer.  In this way mobile users have a choice of whether to view pictures.  See the link below for more details.

    Bootstrap Modal + Carousel Gallery - http://alt-web.com/

    Nancy O.

  • What is the best way to add a PS to my LR 5 who bought while I was a student? Is no longer a student.

    Not sure about the most cost-effective way to do it.

    for $9.99 / month subscribe to plan for the last (and photographers more to cs6) lr and ps versions, CC price and membership plans | Adobe Creative Cloud

  • What is the best way to update coming 8 Pro?

    I'm a little confused about the best way to update my V8P. The app My Dell seems to be looking for updates, but it is also linked to a page on the Dell site that checks the latest downloads for the device. The link is provided through the tile from drivers and downloads . This page of the Web site, incidentally, trying to install a program to check my V8P, but the facility apparently never works. I always get an error message that says (and I entered here exactly as it appears, the police blue and all):

    "We're sorry, we were able to scan your system. "Please return to the drivers home to return to.

    Because of the link to the site I don't know if My Dell app is all I need. The app has an area of notification, which seems to be to talk about new drivers and such available, although drivers and downloads of tiles wonder is if there is more, I might have need. Why have the drivers and downloads of tiles if the application checks and warns me on drivers and downloads?

    Bottom line, is that I'm confused. So, what is the best way to ensure that my V8P is up-to-date?

    Manually, I downloaded and installed Dell system detect. After doing this I have re-tried the system analyze the updates of the Web page and it worked. I now have a lot of updates available.

  • What is the best way to delete personal data so that I can sell a laptop?

    I have a laptop of 2 year, that would be perfect for daily use.  I want to delete my personal data and sell it.  I know there are tools that formateront the whole disc.  However, I have to reinstall the OS and I'm not sure of the easiest way to do it.  The laptop is pre-configured with Windows and I have no disks in the system.  Is there something that will remove my personal data safely and leave intact BONES?

    Hello

    I would ask you to check out the link and follow the suggestions in the article:

    Protect and serve your personal files

    http://www.Microsoft.com/athome/organization/personalfiles.aspx#fBid=WzoMtBLtPbX

    WARNING: Using third-party software, including hardware drivers can cause serious problems that may prevent your computer from starting properly. Microsoft cannot guarantee that problems resulting from the use of third-party software can be solved. Software using third party is at your own risk.

    Thank you.

  • I bought CS6 extended yesterday (yes I did). I have CS4 and many photos in bridge (keywords tag). What is the best way to make my photos in bridge cs4 cs6? Is there a guide how to go about so I do not lose one of my keywords/photos? WH

    I bought CS6 extended yesterday (yes I did). I have CS4 and many photos in bridge (keywords tag). What is the best way to make my photos in bridge cs4 cs6? Y at - it a guide how to: so I do not lose one of my keywords/photos? Who can help?

    Keywords travel with the file, so it shouldn't be a problem. Here's how export you key word of CS4 information and import it into CS6.

    How to import metadata and keywords Bridge to CS6 in CS4 so that I don't lose if CS4 is not

    I hope that your situation is not as complicated.

    Gene

  • What is the best way to move the data from the app and Server data structures?

    Hi guys,.

    I developed my application locally with Apex 4.2 and Oracle 11 g XE on Windows 7. Not far away, it is time to move the application to a server Oracle Apex. I guess that Exim is the way to go app. But what about the APA tables and data (tables/as 'customer' and 'account' created specially for the application)? I've been using a modeling tool, so I can run a DDL script to create the database server data structures. What is the best way to move the application data on the server? Is it possible to move the structures and data in a single process?

    Thank you
    Kim

    There is probably another way to get here, but in Developer SQL, on the navigation tree, expand objects until your table, right-click, and then click EXPORT... you will see all the options. It is a tedious process and it sucks IMO, but yes, it works. This is zero especially because 1) it's a table at a time, 2) If your data model is robust and has constraints and sequences and triggers, then you will need to disable all for the insert and we hope you can re-enable constraints, etc. without hitch (good luck, unless you have only a handful of tables)

    I prefer to use the oracle EXP command-line to export an entire schema, then the server target, I use IMP to import the schema. In this way, it is almost true. This makes the dirty life if you develop multiple applications in a single schema, and I felt pain - however - it is much easier to drop the tables and other objects is to create them! (thus, even if the process of EXP/IMP moved more than you wanted to "move".. blow everything you don't want on the target after the fact...)

    You can use method datapump oracle too.

    If not, what can be done, IF you have access to both servers of your instance of SQL developer (or if you can tnsping both already from the command line, you can use SQL * MORE), is to run a script that will identify the objects of your applications apex (usually by the prefix for the names of objects, such as % EBA_PROJ_ etc.) and do all the manual work for you. I've created a script that does just that so that I can pass data from dev to prod servers on a dblink. It is difficult because of the order that must be executed to disable constraints and then turn it back on and of course, more complicated if don't always precede you ALL your "objects demand '... (tables, views, triggers, sequences, functions, procs, indexes, etc.)

Maybe you are looking for