Secure Application by check PIN at startup.

Hi, I'm young developer

And I have little problem.

How to check the application startup PIN and is device if other is an application that turns off?

My code example:

public static void main(String[] args) {

        Start app = new Start();
        app.enterEventDispatcher();

    }

    public Start() {

      int pin = DeviceInfo.getDeviceId();
String pinNumber = Integer.toHexString(pin);

 if (pinNumber == "12345678" ){

               UiApplication.getApplication().invokeLater(new Runnable(){
      public void run(){
       pushScreen(new MyScreen());

      }
    });

     }
               else {
                 System.exit(0);

                }

...

but this does not...

All help me?

Welcome t forums.

You must read the comparison of strings in Java.  This line:

If (pinNumber == "12345678") {...

will never work for you.  You need to use something like:

If (pinNumber.equals ("12345678" "") {...)

This problem of string comparison is probably one of the most common made by beginners of Java.  I recommend you get a basic Java book and re-read it before making too many other coding otherwise, you will hit most of these problems.

Another point, the BlackBerry platform has its own peculiarities, which means it is not the ideal platform to learn, at least for a very new Java developer.  You can get a few basic java programs working on a platform, that you better know before you start trying to code Java on BlackBerry.

Tags: BlackBerry Developers

Similar Questions

  • Error message: "Lightroom can't access the internet, check your firewall and security applications. »

    Hello.  I have an Acer Aspire under Vista 64-bit desktop.  I have an error message when I try to export photos from Adobe Lightroom on my zenfolio online gallery.  The error message reads:

    "Lightroom can't access the internet.  Please check your firewall and security applications (Little Snitch, Norton, Zone defense,...) and add exceptions to the need to allow lightroom to connect to zenfolio.com. "

    I, to the best of my knowledge, did in the Security section of the Control Panel, adding to the list of exceptions in Lightroom.  However, it did not connect.

    I'd appreciate any help on this!

    Hello.  I have an Acer Aspire under Vista 64-bit desktop.  I have an error message when I try to export photos from Adobe Lightroom on my zenfolio online gallery.  The error message reads:

    "Lightroom can't access the internet.  Please check your firewall and security applications (Little Snitch, Norton, Zone defense,...) and add exceptions to the need to allow lightroom to connect to zenfolio.com. "

    I, to the best of my knowledge, did in the Security section of the Control Panel, adding to the list of exceptions in Lightroom.  However, it did not connect.

    I'd appreciate any help on this!

    It might be best if you find the solution of Adobe Lightroom forum. After all, the forum is dedicated exclusively to the Lightroom application.
    Here is the link to the forum (there is more than one available forum.)
    http://forums.Adobe.com/community/Lightroom

    t-4-2

  • Firfox does not remember my saved passwords, passwords do not forget in the Security tab is checked if one is an internet Explorer, they are

    Firfox does not remember my saved passwords, passwords do not forget in the Security tab is checked if one is an internet Explorer, they are

    • Websites to remember you and automatically log you in are stored in a cookie.
    • You need a cookie exception allow (Tools > Options > privacy > Cookies: Exceptions) to keep this cookie, especially for secure Web sites and if we let the cookies expire when Firefox closes
    • Make sure that you do not remove the navigation, search and download history on Firefox to clear 'Cookies' and 'Site preferences.

    Compensation of the "Site Preferences" clears all cookies, images, pop-ups, installing the software and password exceptions.

  • Not connected Secure Application Manager

    Hi all

    I use Acer Aspire 4937 Windows Vista and when I load the Secure Application Manager it does not connect. I'm running under administrator and have disabled all my firewall. The icon is white instead of blue shooting.

    I read a response from forum suggested running in "safe mode with network" and the truly connected secure application manager! But now how do I get it connected in "normal" mode.

    Pls help. Thank you

    leecw

    Hello leecw,

    If your application is connected correctly in safe mode, this means that there is a conflict with other software or programs.

    To determine which program is causing a conflict with the program in question, we recommend that you perform a "clean boot" of the computer. A clean boot is designed to disable programs and services in the background as much as possible. This helps determine which service or program can be the cause of the problem.

    For more information about how to perform a clean boot for troubleshooting, click the number below to view the article in the Microsoft Knowledge Base:

    929135 (http://support.microsoft.com/kb/929135/) how to solve a problem by performing a clean boot in Windows Vista and Windows 7

    If please reply back and let us know if this helps with your question.

    Sincerely,

    Marilyn
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think

  • Whenever I start one of the applications, it checks the certificate into the internet. If I'm not connected to the internet (including happans quite often), I can't work. Is there a way to get around this?

    Whenever I start one of the applications, it checks the certificate into the internet. If I'm not connected to the internet (including happans quite often), I can't work. Is there a way to get around this?

    Always the same?

    It is important to activate the hidden files and folders view.

    Most of the SLCache material will be too, hidden by default and the program data folder.

    Open the C: drive.

    N ° 1)

    Go to C: > Program Data > Adobe.

    Open the Adobe folder and locate the folder named SLStore.

    Rename SLStore old SLStore.


    Step 2)

    Navigate to C: > Program Files common files > Adobe.

    Under Common Files > Adobe, find the folder named SLCache.

    SLCache open folder and all its contents to the backup on the desktop folder.  You must create a backup manually and move the content of SLCache.

    Note : make sure SLCache is empty.

    Then launch installed apps CC and identify yourself.

    Once you have signed and launched the application.

    Quit and restart and check.

  • running application module (AM) from a secure application of ADF

    Hello gurus,


    If you can put some lights on the following problem on which I'm stuck, then I have will greatly appreciate it.

    After the security application in my application of ADF, when I try to launch the application module (AM) she prays for principal and credentials. I don't understand what I should give here. Do you have a solution to this?

    Thanks in advance.

    Hello

    find the menu, choose Application--> Secure--> users and create a user account. If you have enabled not only authentication but authorization too, you must also create roles. The main thing is the user name.

    Frank

  • Convergys PC Application Compatibility Checker health programs

    I'm trying to run a PC Health Check application that is REQUIRED for a domestic job. I ran this program successfully on my old system and it does not pass requirements. I went out and that you bought a new system, and now I get a message saying it's incompatible. Any help in this matter would be appreciated.

    The program is called

    Convergys PC health Checker. I am running windows 7 Home premium 64-bit operating system.

    Hello

    1. What is the exact full error message?

    2. what version you are trying to install?

    I would suggest to go through the above steps:

    Method 1: Install the patch using it.

    a. to do this run the FixIt tool from the following links.

    b. click on the link below and select run now button.

    http://support.Microsoft.com/mats/Program_Install_and_Uninstall

    c. After you download and run for the first time

    d. Select run on window smallpop and select run on Internet Explorer-security warning window.

    e. Select detect problems and allow me to select patches to apply.

    f. Select installation.

    g. after the audit select the option you need to install and click Next to install.

    Method 2:

     

    You can try to install the game in compatibility mode and check.

    Make older programs in this version of Windows

    http://Windows.Microsoft.com/en-us/Windows7/make-older-programs-run-in-this-version-of-Windows

    Method 3:

     

    Perform the clean boot and check.

     

    To help resolve the error message, you can start Windows Vista or Windows 7 by using a minimal set of drivers and startup programs. This type of boot is known as a "clean boot". A clean boot helps eliminate software conflicts.

    How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7

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


    Please note:  After troubleshooting, be sure to start your computer in normal mode by following step 7.

     

    I hope that helps!

  • How to disable or change the settings of the fan check rpm at startup?

    Hi all...

    My system features:

    HP p6180t

    Prod #: AV129AV #ABA

    Processor Q9550

    8 GB RAM

    Card mother IPIEL-A3

    Updated:

    PSU Corsair HX650W

    ASUS GeForce GTX560

    My original processor cooling fan has stopped working recently and I chose to replace it with a heat sink better while I was home. I used a Cooler Master Gemini II M4 because it was the only cooler increased capacity that would fit in my current case.

    After the installation, I got the "error: CPU fan does not, the computer now shuts down to prevent damage to the CPU." Etc... »

    My guess is that the motherboard don't like the new fan supplied with the new heat sink. The fan is bigger and I am sure that laps at a RPM lower than the stock fan. I checked my BIOS settings and do NOT have the "Hardware Monitor" section under the "Advanced" tab My BIOS is a newer level than the HP site will provide updates (mine is):

    BIOS Version/Date American Megatrends Inc. 5.09, 19/08/2009).

    Is there another way to change the speed of the fan RPM to avoid the error at startup in the BIOS?

    I am able to start the computer by using similar fan size 4 pins on the motherboard, while the proper size fan (actually mounted on the radiator) is disconnected. Even with no fan, the new radiator keeps the processor to 45 C or less through all 4 cores under load average.

    I guess I could always leave this small fan plugged into the motherboard for the BIOS to be happy and to power the CPU fan off (with an additional case fan) molex power. That would be a last option because I rather know if my CPU fan does not work...

    Any help is much appreciated, thank you!

    John

    I understand that your new fan is not detected as work correctly by the BIOS.  The BIOS does not provide all that many options to control functions such as the speed of the fan, and it's not a way to access this function to the best of my knowledge.  I'm afraid that the workaround you mentioned may be your only option with the existing fan do not have access to this setting in the BIOS.

    You mentioned that you have connected a fan of similar size to ignore the error.  Is there a RPM higher than the fan at the top of the heat sink fan?  See the pictures here, it seems that the fan is detachable and can be replaced by the fan who works with the BIOS.  It comes as the fan who gets past the BIOS will fit the heatsink.

  • Why auto start application must check ApplicationManager.inStartup

    Hello, we have an application, and we check whether the device is in the boot process. Our application sleep and check again if inStartup returns true and it would move forward only when inStartup is set to false.

    The code is copied from a tutorial of this forum and this is how:

    while (appManager.inStartup())
    {
        try
        {
            Thread.sleep(500);
        }
        catch (Throwable error)
        {
            error.printStackTrace();
            // nothing
            logger.error("Got error during waiting for starting up for throwable "
                    + error.getMessage());
        }
    }
    

    I think it's necessary for a process to screen lanuch a GUI. However for the background process, looks to me that this is not necessary since the OS already started the process for our application. I just changed my code without waiting here and my background process starts correctly. However the API doc http://www.blackberry.com/developers/docs/5.0.0api/net/rim/device/api/system/ApplicationManager.html..., he says the following to the inStartup method:

    ===============

    Determines whether the device is in the boot process. At the start, all threads should hang so that the boot process to move on to the next layer of startup.

    ===============

    He said that all threads should hang during startup. Am I missing sth here? Thanks for any idea about it.

    I'm not 100% sure of what th8s means either, but I guess you run level 7 (which you will if you haven't changed it, and this is the last layer, then you're probably OK.

    That said, I would always run not really any startup code until appManager.inStartup () is false.

    I prefer the approach used in this article to the waiting loop too:

    http://supportforums.BlackBerry.com/T5/Java-development/write-safe-initialization-code/Ta-p/444795

  • I'm running Thunderbird ver15 under Win Vista. Gmail considers ver15 a low security application. How updated to a version that works with Gmail?

    This worm is working great for years. Suddenly, Gmail could not accept my sign-in. I have auto day together in Thunderbird, but it won't go past worm 15. Only after that I changed the setting in Gmail to enable low security Gmail applications would allow me in my emails via Thunderbird. I could connect to Gmail via the web very well, but not via Thunderbird. Could this be a problem with Vista?

    Thank you
    Richard

    Then I tried to configure server authentication to "OAuth2" method, but this option was not available. in the drop-down list.

    "OAuth2" only works for IMAP accounts. For POP "Normal password" is required, either in "allow applications that are less safe" or authentication step 2.

    You can set if "OAuth2' for SMTP server outgoing.

    When your problem has been fixed can you mark the thread as "solved" Please?
    Thank you.

  • What happened to the toolbar of security-F and check the Google results?

    The previous version of Firefox has helped F-Secure enable a toolbar for checking Web sites and more suspicious reports. In addition, it permits F-Secure google search results of rate with respect to their safety for visit. These features do not seem to work in Firefox 4. Is there a way to solve these problems, and if not how can I roll back to my previous version of Firefox?

    Thank you

    for some reason the F-Secure toolbar has suddenly works with Firefox 4 on my PC. I donk't now why, but it works all of a sudden today. the last days I had the same problem as alex45. Maybe it works now with your new browser firefox 4, too. It's very strange, because it was not updated for the new browser, at least I had not noticed the updates. Maybe it's F-Secure with its automatic update?

  • Question of HP Utility for Mac security application

    I came to know that this forum is for sales, hope, that this is the right place to report this bug. Here is my original post.

    Let me describe the situation from the beginning:

    We have networked HP printers in all schools and we, as admins, configuration of printers, do not want end users to change on any of them.

    On the one hand, from OS X 10.6 - I can't remember clearly is it 10.5, OS X introduced security integrated two system, _lpoperator, and _lpadmin groups, _lpoperator is intended for users who can suspend or resume a print, obviousely _lpadmin as an admin can do something for add/delete/modify printer.

    However, administrators can set password admin through the service web printer to limit the ability of end users to muniplate the settings for a printer.

    The HP Utility.app is accessible for all users on a Mac, as long as the user can print, see figure 1 below for example:

    Once it has opened, the end user, regardless of the user group that is the case, they can go to network settings and change it. This application will not ask for administrator credentials, a user security group, just let user go ahead and do it. View image details of the following:

    Don't have gift ' e other tests, if you change other settings of the printer. Network settings are the biggest problem at least.

    Of course, there are way to Mac to limit user to launch the application, such as MCX/Workgroup Manager/profile etc, or even remove it.  But it's always a problem of huge security in a network environment, at least here.

    You're right - SNMP v3 would give you support for authentication, but only if you have software that supports the v3.

    As far as I know, utility HP can only work through v1/v2.

    I don't know if Web Jetadmin can use v3, because I've never used this application.

  • Outlook and other applications to launch at system startup

    Hello

    Can anyone share how I can have the MS Outlook and other applications pref. start immediately when I start my system every day?

    It would really help me if I can get Outlook to just start charging in all of my emails that I have POP in different accounts.

    Thanks in advance for your help.

    Kind regards

    Ms. Mktg

    Hello Ms. Mktg, would be pleased.

    The best way to have a program automatically start when you connect, is to put it in your startup folder in your Start menu.

    Just open your Start menu and drag any icon down in the startup folder:

  • Client mobility Anyconnect secure applications

    The Anyconnect secure mobility client behaves strangely. "Sometimes it keeps pop - ing in the lower right of my window with the Web-message Authentication Required / you may need to use a browser to access ' and sometimes when I try of it open guard to give me this error, attached screenshot and also get another type of error, for which the screenshot attached too.

    -I re installed the application as many times

    -reboot the system too

    Any ideas how to approach this problem?

    seems the Telecom logged has limited traffic of VPN, you use VPN connection to ignore filtered Internet?

    ----

    have you tried to give a restart to the internet gateway modem (ADSL Modem) at the time that you receive this error? e restart give your ot ADSL modem Internet device. This works.

  • application health check

    Hi all

    I have a small question, I have been asked to perform a health check on demand for a bespoke system. These applications are built with pl sql and also some java, what types of controls are responsible for for a besoke system built on these technicologies?

    All experienced application support advice would be great.

    Thanks in advance.

    Your question is almost impossible to answer. The problem is that a good answer will depend on factors as long as it is way over the top for an entry simple forum.

    Try to ask the same question in a similar complex environment. I like to compare applications in cars and automotive software architects (or sometimes in the construction of the architects).

    What is a good checkup for a car?

    The answer is of course very different depending on the type of the car.

    Ae road truck ic, it will take totally different 'health checks' then a race car formula.

    Even if a few checks are quite similar at first. Let me give a few examples.

    'Health checks '.

    (1) the car start?

    (2) the car will go long enough? -Online very different response: little more than 60 shells on a formula one track vs more than 1000 miles on an ice road...

    (3) the driver will fit in it? -Online slightly different condition... usually the space is quite limited in a formula one car...

    (4) it will not kill the pilot-online trucks need ice a heating system good for, then that formula car a need appropriate safety belts, etc..

    Now, apply the same principles/questions to YOUR application system.

    What should your application do? Then set up a very basic requriement.

    Then consider if there is a (metric) measure to implement this requirement.

    (1) it starts?

    (2) can I connect?

    (3) 1000 people can connect at the same time?

    (4) do A share?

    4.1) to do action A fast enough?

    (5) he will give me information about X?

    5.1) is the correct information?

    (6) can I disconnect me?

    (7) is the documentation in my language?

    ... million more questions...

Maybe you are looking for

  • LS-15 power cord recall

    Hello I'm new to the site. I have two P portable series, one I keep as a spare, while I'm on a business trip. I turned on the machine yesterday for the first time in six months, in order to make a system that connected to the cable while update. A wa

  • Windows 10 disappointment Reset PC for Windows 8.1

    Hello I am writing in the hope that I put a 10 Windows on my machine. I upgraded my pc to windows Windows 8.1 10. I improved when he was free and when it was at the beginning of the version/release. I suffered through many "kinks" after each release

  • Converting .cda for standard stereo mp3 file

    I tried, then once again were to convert a file audio format mp3/s to the standard .cda file type that will play in my car (no mp3 player in car). How to do this, because I tried to do it by using Windows media palyer burn installation & thought this

  • I can't reinstall photoshop cs3

    HelloPhotoshop CS3 gave me an unexpected error a day after years of work very well. When you start the program, it has not yet completely opened and gave me a message that there is an error and that I should try to reinstall the product. I uninstalle

  • I forgot to disable the Adobe indesign in the old computer

    I forgot to disable the Adobe indesign in the old computer.When I now download the software in the new computer and entering the serial number, it displays error.I can't activate Adobe InDesign.What can I do?