question of program design

Hi, I'm working on my first blackberry and I'm running difficulties with my design decision, so I hope someone could clarify.

Every time I have airs in .net, I would use the MVC pattern. My will would execute a custom event defined in the regulator and I think could capture this event. However, I don't know how I can do this for blackberry. I have a text in my view field and a class that extends buttonfield in the model. I would like to set the button to have some effect on the text field, but I don't know how to get the message without the screen to each button.

How is this bit?

Thanks for your help

Well technically the best design is a Singleton model, but to be honest, I don't know how they actually work. It all depends on how you look at. This global semi variable are not available outside of an instance of your application, and you are not likely to have a large development on a BlackBerry app team, so the chances of your loss of its security program or stability due to the interference is low. I know that experienced programmers and professors who are religious opposition to global variables, but they certainly have their place, and I see no problem with taking advantage of this feature you are proposing. The key thing to remember for the development of BlackBerry, it is that mobile devices are not as powerful as a PC or console. Developers are encouraged to take advantage of multi-threading to maximize efficiency and avoid the garbage collection (in other words, create variables with limited scope that are released from memory. This memory must be systematically freed by the garbage collector). Another good practice is to stick to the condensed syntax (aka shortcut).

For example:

If (event) {/ * action * /}

Instead of...

If (event == true) {/ * action * /}

Hope that helps,

~ Dom

Tags: BlackBerry Developers

Similar Questions

  • How to run programs designed for Windows 3.1

    How can I get vista to rum a program designed for windows 3.1

    How can I get vista to rum a program designed for windows 3.1

    I found 2 sources of information for your question:

    1. it is a tutorial from eHow:
    How to run Windows 3.1 on Vista
    http://www.ehow.com/how_6915732_run-Windows-3_1-Vista.html

    2. it is a response dated October 6, 2010, this MS Answers forum.
    http://social.answers.Microsoft.com/forums/en-us/vistafiles/thread/caa2cea4-9088-42f7-BDA4-1da12cc667ec

    I have no technical knowledge of the object. Simply provide references.
    If you have any other questions, you will have to wait for the experts. For the benefits of others looking for answers, please mark as answer suggestion if it solves your problem.

  • Simplistic questions about game design student

    Hello

    A high school student sent me a few questions about the design of the game.  After above, they seem to be more applicable to commercial game developers.  If you are such a person would be willing to post your answers, I would be grateful.

    Here are the questions:

    1.) how long does it take to design a video game?

    (2.) what is your source of inspiration to design a video game?

    3.) how to make a video game to become popular? (sold in a package)

    4.) what are the resources needed to design a video game?

    5.) how much money does take to design a video game?

    Best regards

    Chris McLaughlin

    I have programmed buggoop 300, http://www.buggoop.com/BugGoop300/

    and I'm currently adapting mobile android.

    I also programmed this, http://rummoli.ca/bin-debug/rummoli_single.swf

  • Running a program designed for x 32 bit machine Windows XP x 64

    Hello

    I try to run a program designed for Windows 32-bit on a 64 bit machine x x. I installed the program and moved the directories in the directory Program Files (x 64) in the regular Program Files directory - it's where shortcuts have been pointing.

    When I run the program I get an error message "" an unhandled win32 exception occurred in "PROGRAM NAME" ". Is there a way I can run this program on this machine?

    Good reading this forum:

    http://www.SevenForums.com/virtualization/11173-Windows-XP-32-bit-Windows-7-64-bit-OS.html

    If it takes you get launched, you can probably get a 32-bit virtual machine running.

  • Question about the design of conditional text

    Posted in the wrong forum, post again here.

    I have a relatively important book (230 pages) with dozens of tables and 100 graphics. I need 4 versions of this book. One for each grade level (3) and the other if happy for all 3 grades is sold as a "master class".  Other than the implementation of conditional text, the book is ready to go. I tried two different ways to approach the tables under certain conditions (some of which are within blocks of text, some just anchored to a page) but I do not quite understand.  Application of conditional text tags (with different colors and markers for each) seems to crash (i.e. almost duplicatable unlike the grave 'normal' down 3-4 I feel daily last month that are just randomly). Sidenote: I was very happy to see that they will solve the crash of book printing...

    Reference markers are involved in these conditional sections, and I have my suspicions that they are guilty of the root of my other problems of crash, but then FM crashed when applying conditional text to a section that * don't * have a x - ref, so I don't know what to think.

    I need to get out Monday. So my question is, if I need 4 tables in one page (one for each version) I better just do 4 copies of the book and the compilation of this way? I sold the customer on FM mainly due to the ability to compile several book of basic documents... so, I really hate to have 4 copies when I give the source. I know that you can select rows in a table for a version (so I could do a very large table for 3 versions and simply choose different lines), but this is one thing that seems almost certain to make it crash as well.  And the paintings of masters have an extra column, but also a line so I still need 2 tables by doc so I could get the conditional statements to stop crashing. Is there a better way to 'design', which could suggest an experienced FMer? Some custom utility which works even if it isn't free?

    Just in case someone asks:

    The system configuration

    FM 11

    new facility in August, not upgraded

    All the files are originally from FM11 and new

    Windows 7-64 bit

    20 GB of memory

    2 TB - local disc c /.

    Thanks for your suggestions on this.

    Well, it didn't crashed this morning when I put the x back references in the conditional table. Sent to fmerror with the steps for dupe.

    But on the mif wash. I've done it "manually" once a week now for the last two weeks. Can't say if it is to help, but it is always recommended, so I do. However, I was wondering if anyone had a recursive script that would do this automagically...

    Thank you

    Laurie

    Edit:

    Search mif washing (and variants) and nothing gets on the Adobe site. I figured out through a vague reference to an old thread where to find it and thought that I note for new users: If there is...

    Book MIF Wash is that a utility provided by Adobe that recursively traverses all the files in your book, opens, writes the .mif file then re-recorded this file to your FM - washing apparently file everything watered in your FM file. Manually, this process takes forever. And even if you see frequent references to: did you do a mifwash yet? "when someone has a problem, there is no documentation on what I found.

    It is a "sample" allowing Adobe script.

    Go whenever you have installed FrameMaker and navigate to the BookMIFWash folder or browse to the file BookComponentMIFWash.dll, which in my case was to C:\Program Files (x 86) \Adobe\AdobeFrameMaker11\Samples\ScriptsAndUtilities\BookMIFWash.

    Copy the file BookComponentMIFWash.dll in C:\Program Files (x 86) \Adobe\AdobeFrameMaker11\fminit.

    Restart the console.

    Then you will see that nothing has changed.  ;-)

    You must select the book with your mouse in the Document window, and then the menu item utilities book "dynamically" appears. Down there, you will find some MIF Wash book.

    I always pay attention to the warning to make sure that I have a copy of the entire project before running it. :-)

    Hope this helps someone else.

  • Satellite U400: Various uncomfortable questions - rundll, programs etc. of closing.

    I have a laptop Toshiba U400 brand new which started to play up.

    When I try to open a document using a program for which
    I navigate on the computer - and not one assigned to the document, if I click on 'Browse' the white on the box and I get the message "Windows host (rundll32.exe) process has stopped working. A problem with the program
    stop working properly. Please close the program. »

    Another question which is, I am sure, related, is that I can't save documents in Open Office - when I click on 'save', the program just close and will not reopen without a reboot. There are other small picturesque glitches such as when I click on the paperclip to attach a document to a Windows Mail email the winodw and WM closes agains and just requires a reboot.

    In fact, most of the problems seem to imply by clicking a function make the close program.

    I've read pretty much everything about the online rundll error - it seems especially Nero, which I did not - and I uninstalled everything I put on the machine to see if it was a difficulty, which was unfortunately not. And I, of course, run my catcher program viruses and spyware, which found nothing untoward.

    Here's hoping a kind soul can help. All the best,

    Ian

    Hey Buddy

    For me, it looks like all the problems described in your messages are associated with any 3rd party applications that are running on your laptop with pre-installed Vista OS.

    It seems that the programs are causing these annoying problems. Perhaps because of the non compatibility with Vista? ?:| It's not impossible!

    You can reinstall the OS using the recovery CD. Then update the operating system for the last State install SP1 and Ms patches
    Don t install applications 3rd before you didn t, how the system works and if it s running stable.

    If Yes, then your 3rd party installed programs cause these problems.

  • other VISA/comport in question compiled program

    Many questions in the forum about VISA works not in update of programs when it is installed on the computers of development not and I have read several.  But, I can not even mine to work on the development computer when the program is compiled as it is usually the problem it works very well in mode of development, but not as a program compiled (even on the development computer).  Operating system is Windows XP Professional and LV version 8.5.1 I don't see any option on the tab advanced ability visa or series included. MAX is installed and the alias of the COM1 port. What Miss me?  I probably forget something simple but now I am frustrated and all is go wobbly wonkers.

    You need only the additional installation programs if you create an installer for the exe, but I thought that you said that it does not work on the development pc? If this is the case, you're wasting your time.

    Do you have an error handling in the exe file? If so, what is the error code reported? When you run the exe file, do you have open LabVIEW?

  • program design not there

    Hi, running windows vista and have lost the paint program. Research has not found it. perhaps thinking that the option is not turned on? where am I going to turn on windows programs?

    Hi Wendy 0Z.

    1. When did you start to question?

    2. have you made changes on the computer recently?

    3. you receive an error message when you search for the painting?

    Step 1:

    You can try the following steps and check.

    a. Click Start, type system32 in the search box and press enter

    b. scroll to mspaint.exe
    c. right click and open. You can also choose PIN to start menu option.

    Step 2:

    You can read the following article and try to run a SFC scan to check all corrupted files.

    How to use the System File Checker tool to fix the system files missing or corrupted on Windows Vista or Windows 7

    http://support.Microsoft.com/kb/929833

    Hope this information is useful.

  • In Windows 7, prompting the admin password whenever they are open, the questions of program

    I install a program on "Run as Administrator" on a workstation connected to the domain controller, after that installation, whenever we run program requested program user "username and password".

    Hello

    I suggest you to post your query on our Forums TechNet social as this question should be better there.

    Please refer to the reference to the link below to send your request:

    https://social.technet.Microsoft.com/forums/Windows/en-us/home?category=w7itpro

    Hope this information helps.

    Please get back to us with an update on the issue, we will be happy to help you.

  • question of redundency/design interface

    Sorry if this is a stupid question. I went through the forum and a bunch of google searches with no joy.

    I have:

    PIX-active - switch-a

    | ||

    PIX - fo - b switch

    unlikely, I know, but is it possible to configure the network/pix to take account of the active pix & switchb down?

    I was thinking something like backup cmd on IOS, to connect to a network adapter of each pix for both switches.

    Thanks for the research.

    Not a stupid question, but do not forget this: the commercially feasible thing to do when network solutions tolerant for lack of construction is to eliminate the SPFS (single points of failure). In this design, you have no single point of failure. Trying to limit to two points of failure will be very complex to predict behavior impossible. My advice is to move to other areas of your network where you have surely SPFS.  ;)

    HTH

  • Win 8 (Pro) - Questions on program files, the desktop icon and taskbar

    Hello

    I just upgraded successfully Win 7 (home) to Win 8 (Pro).

    I have a few questions in mind:

    Q1: A program icon can be PIN to the taskbar and desktop at the same time?

    Q2: Under Win 7, user can easily see all installed programs by clicking on all programs in the Start Menu and select no matter what and copy and paste it on the desktop or PIN to the taskbar task, but under Win 8, I could not find this feature. CAB user to access the program to install all at the same time? Or the user needs to type the name of the program to the search box one by one? How to pin it in the Start Menu Win 8 on the desktop instead?

    Appreciate someone could help me in this area.

    Thank you

    First question: Yes, of course.  You can place an icon where you want. Desktop, taskbar, start screen, at the same time.

    Second Question:

    The start of Windows 8 has a screen view "all programs" similar to the former in Windows 7 (except the new is full screen).  To get her on Windows 8, right click on an empty spot.  If you have Windows 8.1 update, which makes it easier to find by putting an arrow at the bottom of the main screen.

    To take an icon from the start menu or the list of applications and put them on your desktop, right click, choose "Open file location" and then copy / paste the icon on the desktop.

  • Install HRCS9.0 Linux question: the application designer and Tuxedo domain Boot have SQL error

    People,


    Hello. I was installing HCM and Campus Solution 9.0 with PeopleTools8.53. Server machine is Oracle Linux 5.10 and Windows XP-based client computer.  The architecture of my internet is WebLogic11g/Tuxedo11g/OracleDatabase 11 GR 1 material. PeopleTools 8,53 works correctly in the browser.

    In the database server Oracle Linux 5.10 machine, I run scripts 'createdb10.sql, utlspace.sql, hrcddl.sql, dbowner.sql, psroles.sql, psadmin.sql and connect.sql' one by one. Can I use Data Mover to load Windows XP data into the Oracle Linux 5.10 DB HRCS90 instance. The Data Mover script hrcs90ora.dms is done correctly in Windows XP. Configuration Manager is configured correctly.  But when I login in the application designer, I can't connect and get the message as below:


    «Security Table Manager (Get): the database is release 8.52.»  The PeopleTools running require databases at 8.53 release. »


    I followed the http://docs.oracle.com/cd/E37306_02/psft/acrobat/PeopleTools-8.53-Upgrade_02-2013.pdf document to upgrade HCM and HR 9.0 revision 5 Database Instance HRCS90 in Oracle Database Server with Linux. My upgrade is complete. The above problem is solved.

    When I login in the application designer in Windows XP, the error message as below:

    File: E:\pt853-903-R1-retail\peopletools\src\pssys\stmget.cpp SQL error.

    Stmt #: 2539 error Position: 26 back: 904-ORA-00904: "OPERPSWDSALT": invalid identifier:

    Fail SQL Stmt:

    Select the VERSION, OPERPSWD, OPERPSWDSALT, ENCRYPTED, SYMBOLICID, ACCTLOCK from myAccessId.PSOPRDEFN where OPRID =: 1

    When I boot the Tuxedo Application Server Domain HRCS90 under Linux, I get the same error message as below:

    File:/VOB/PeopleTools/src/pssys/stmget.cpp an SQL error:

    Stmt #: 2539 error Position: 26 back: 904-ORA-00904: "OPERPSWDSALT": invalid identifier:

    Fail SQL Stmt:

    Select the VERSION, OPERPSWD, OPERPSWDSALT, ENCRYPTED, SYMBOLICID, ACCTLOCK from myAccessId.PSOPRDEFN where OPRID =: 1

    ... ...

    GenMessageBox (0,0,M): Signon database: could not access the HRCS90 database with user Psalm code

    I checked the PSOPRDEFN table in the database Linux HRCS90, not the OPERPSWDSALT field.

    I also checked the connection process PS the user traverses the 3 tables: PSOPRDEFN and PSACCESSPRFL, PSSTATUS.

    My oprid, the symbolicid and the accessid ownerid in the 3 tables are correct.

    My question is:

    Why is there a strange OPERPSWDSALT field in the SQL statement that causes Signon failed?  How to solve the problem of access code?

    Thank you.

    > Then it connects with SQL > and then run script rel853.sql, but its outcome is not just because the database is started with sysdba.

    The database is always started '' as sysdba. '' "Useless" to connect as sysdba to run the PSoft script while accessid.

    You need to come back in the book of the Oracle.

    Fair enough, this is my last word to this thread.

    Nicolas.

  • A few questions about the design of Data Guard

    Hi, I have a few basic questions around design Data Guard

    Q1. Looking at the instructions of Oracle for the creation of a logical standby, he recommends first creating a physical standby and then convert waiting logic. However, I thought that a logical standby might have a totally different physical structure of the primary. How can this be the case if a logical standby first starts his life pending physical (where the structure must be the same)?

    Q2. It is a normal practice to back up your database before as well - if yes why?

    Q3. Can RMAN back up a database of the day before while he is in the State mounted (rather than opening it)?

    Q4. What is the point of cascade redo apply rather than just get the primary ship to each standby?

    I guess you could try to reduce the latency of node to node if some the day before were quite remote from the primary

    Q5. Is it possible to convert a physical logical Standby?

    Q6. What number best of Standby, you can have - Oracle suggests 30 but I thought I remember reading somewhere regarding the 11 GR 2, that this limit has now been increased?

    Thank you

    Jim

    Hello again;

    "begins each logical waiting first her life on hold physical?"

    Its the only way I ever did. I think it is the simple way to do it.  By the presence of a physical standby first you have already confirmed the network and most of the settings for Data Guard so that you can focus on only the logic of the standby database configuration.

    Chapter 3 of this book, it's easy:

    http://www.Visi.com/~mseberg/data_guard/new_dg_book.html

    Best regards

    mseberg

  • Question about new design java GUI tools

    I don't know where to put the Question

    I want to tool or packages to build java GUI that are quite similar to wpf

    I want a tool that provide not only the code of desinging

    is tool containing all these things

    nice design, easy

    http://www.Eclipse.org/WindowBuilder/

  • Cannot use Alt - Tab to change the program and that it causes another similar question of program

    Hello

    When I hold Alt and Tab close, it will bring up a menu for me to choose some programs.  But the problem is now this menu will not stay longer than 2 seconds, I release the key for sure.   And at the same time, my other program has the similar problem, when I left click it used to bring up a temporary menu and I would move and choose, since I have this program Alt - Tab, I have this problem on the program (Ninjatrader).

    I tried to disable all services in windows and the boot menu, nothing works.

    I remember the laptop starting up during midnight, and the next day he has this problem.

    It's very strange and interesting.    Would be - this hacker or some sort of glitch in windows vista?

    Thank you.

    Hi MoreYummy,

    1. what desktop theme you are using?

    First try this step below and check if the program selection menu will appear.

    Method 1

    Try pressing the keys CTRL + Windows + TAB. You can then press TAB to cycle through the windows. (You can also press RIGHT ARROW or ARROW down to navigate forward one window, or press LEFT ARROW or UP ARROW to navigate to the back office.) Press ESC to close Flip 3D.

    Using Windows Flip 3D
    http://Windows.Microsoft.com/en-us/Windows-Vista/using-Windows-Flip-3D

    Method 2

    Check if the problem persists in safe mode.
    Start your computer in safe mode
    http://Windows.Microsoft.com/en-us/Windows-Vista/start-your-computer-in-safe-mode
    Restart the computer to return to normal mode

    Method 3

    If the problem persists in safe mode, then it is possible that the system files are corrupted on the computer where the origin of the problem.
    I suggest that you run a SFC scan, which would be a system file corrupt on the computer search and replace.

    Scan SFC enforcement procedure:
    1. click on the Start button
    2. in the Start Menu, click all programs Accessories followed
    3. in the Accessories menu, right click on the command line option
    4. in the menu that appears, click on the option "Run as Administrator"
    5 If you have the enabled User Account Control (UAC) you will be asked to consent to the opening of the command line. You simply press the button continue if you are the administrator or insert password etc.
    6. in the command prompt window, type: sfc/scannow then press enter
    7. a message is displayed to indicate that "the analysis of the system will start.
    8. be patient because the analysis may take some time
    9. If all the files need replace SFC will replace them. You may be asked to insert your Vista DVD for this process to continue
    10. If all goes although you should, after the analysis, see the following message "Windows resource protection not found any breach of integrity.
    11 after the scan finished, close the command prompt window reboot the computer and check.
    The analysis may take some time, so be patient. Windows allows to fix corrupt or missing files it finds. If the information of the installation CD is required to fix the problem, you may be asked to insert your Windows Vista installation CD.

    For more information please visit the link below.
    How to use the System File Checker tool to fix the system files missing or corrupted on Windows Vista or Windows 7
    http://support.Microsoft.com/kb/929833

    I hope this helps!

    Halima S - Microsoft technical support.
    Visit our Microsoft answers feedback Forum and let us know what you think.

Maybe you are looking for