Need help to keep a program running

I am writing a program that needs to go in the background when it is closed and then resumed in the display when the user clicks on the icon. A little how Pandora works where you can continue to play music in the background.

My code is

public class Brightkite extends UiApplication {
    static String useragent = "Brightkite Blackberry v1.0 alpha by challgren";

    public static void main(String[] args) {
        Brightkite instance = new Brightkite();
        instance.enterEventDispatcher();
    }

    public Brightkite() {
        pushScreen(new StreamScreen(true));
    }
}

I'm a blackberry/java very newbie programmer so if someone could show examples I appreicate it.

In your StreamScreen, substitute relatives and simply do the following:

UiApplication.getUiApplication () .requestBackground ();

You can put this in a narrow menu or your keyChar routine when the user presses ESC, or even have a button...

Edit: My apologies, was in change during the validation of RexDoug.

Tags: BlackBerry Developers

Similar Questions

  • I need help to find a program that was on my computer laptop b4

    I'm looking for a program that has been on my laptop before I bought it (used) and I can't seem to find it. I looked in the install/uninstall programs and its there under Uninstall but I don't want to uninstall it I want to use it. How should I do where I can use the program on my computer? is there a way I find. I think that it may have been sent to the trash and deleted but never uninstalled!

    Well, you need the NAME of the program you are looking for!

    It's updated operating system Vista, upgraded installation and activate Forum.

    http://social.answers.Microsoft.com/forums/en-us/vistaprograms/threads

    They will help you with your question in Forum Vista programs at the above address.

    See you soon.

    Mick Murphy - Microsoft partner

  • How do we keep the program running continuously

    LabVIEW gurus,

    I have what I think it's a simple enough question. I have a PXI-5152 system which I use to acquire data. I have attached my sample of coding. (Which, incidentally, is not a lot of coding, it's just express screws)

    I would like to have a method to stop this program while it is executing without waiting for the timeout. The reason why I would make is that in my application, I use a laser to induce sound waves that are picked up by an ultrasonic transducer which is connected to the PXI-5152 system and I collect signals both at unknown time intervals. Essentially, I am pulse manually laser, but I do not know the exact times I will be exciting she so I don't know how much time or how short of stating the time-out without) sometime before I'm done or b) time half an hour or more after I am done.

    I would like to be able to set the timeout to infiniti (or - 1), but have a button when I press on it stops the process.

    Thank you for your help,

    I can't find a "timeout" in your code, so I'm not really sure what you're talking about. I have NO-scope, I can't see the explicit configuration.

    Here's a simple way to switch between (for example 100 ms) finishes and the infinite time-out, so run or take a break from the loop. Modify if needed.

  • Need help to write a program for the acquisition of signals.

    Hello

    I need to write a program that will do the following:

    1 acquire two signals simulated,

    2. make 10 averages the signal,

    3. filter the signal,

    4. display the signal in its raw form and the power spectrum (fft),

    5. save the data using writing to the file vi

    I tried it for awhile, but there's always something does not... None of the experts LabVIEW here can help me?

    Thank you 1 million.

    -Deet

    No one here is going to do your homework for you. Please join what you have written so far and explain the specific problem that you are experiencing.

  • Need help. Suddenly, several programs will not start. Do not know why.

    All of a sudden I can't get most of the products Microsoft start, as well as other programs.

    They worked fine 2 days ago.  Don't know what has changed.

    When my machine starts up I have 2 teething problems: JavaW.exe and HPWAMain.mod, both close due to, I think that his warnings of executing called data,

    I ran Norton repeatedly, comprehensive analyses and latest updates of signature that show nothing wrong.

    Don't know where else to find all the log files.

    Need some advice.

    I am running the following:

    HP Pavilion DV9700 entertainment notebook

    Windows Vista Ultimate 32B

    I have to stop now on this thread that I work with a person of Quads on these issues.

  • Need help with copy/move programs and Admin files to other users of the account.

    I created 'connect users of accounts' and 'lost' the original Admin, now I know how to access certain programs and others in shift, click with the right button on connection as an administrator. but can't seem to copy or move some things into "shared folder" can someone help me please? Thanks for any help! No real computer smart right now, but im learning :)

    Hello

    You can also try to connect to the original administrator account by pressing CTRL + ALT + DELETE (all three keys twice at the same time), you will get the classic login prompt. Type the administrator user name and password. You should be able to connect.

    To activate this visible account to the Welcome screen, once logged in click on Start-> Run Type &-> Regedit-> ok.

    Navigate to HKEY_LOCAL_MACHINE-> SOFTWARE-> Microsoft-> Windows NT-> CurrentVersion-> Winlogon-> SpecialAccounts-> UserList

    Select the username administrator and set the value to 1-> of the close Registry Editor and restart your computer.

    I hope this helps.

  • Need help to install a program

    I just need a help with the installation of a program

    Install a program - Windows - Microsoft

    May I ask what is the problem you are having?

    Is what program this?

    You can also try the following:

    1 disable any security software before attempting to upgrade

    1. click on start, type msconfig in the search box and press ENTER.

    User account control permission

    If you are prompted for an administrator password or a confirmation, type the password, or click on continue.

    2. in the general tab, click Selective startup.

    3. under Selective startup, clear the check box load startup items.

    4. click on the Services tab, select the hide all Microsoft Services check box, and then click Disable all.

    5. click on OK.

    6. When you are prompted, click on restart.

    7. after the computer starts, check if the problem is resolved.

  • I need help from the drawing program Illustrator Illustrator CC witching

    Can someone help me please?

    [Ask in the correct forum allows... Left non-technical Forum Lounge for forum specific program... MOD]

    Adobe Illustrator Draw (for iOS) is a free application. You can not just "view" Adobe Illustrator CC (which is the latest version of Adobe Illustrator) from that.

    In order to get the Illustrator and InDesign for your class, you need to get a subscription to Adobe Creative Cloud. Subscribe to the complete cloud will be the cheapest version.

    http://www.Adobe.com/creativecloud.html

    You won't be able to install it on your iPad

  • Need help with VMware Player to run!

    I've been using VMware Player 7.1 successfully for some time, but my drive hard host started making noise, so I installed a new SSD drive as drive C on the host computer.  My old hard drive installation was 8.1 for Windows 64-bit, but needed to be cleaned, so I did a clean install of Windows 8.1 64 bit on my new SSD for the host.  My guest OS (8.1 64-bit Windows) has been installed on drive E, then I'm not touching this player.  I then installed VMware Player 7.1 and all is well.  However, when I now run VMware Player 7.1 and try to open my (8.1 Windows 64-bit) guest OS, he says now that the Intel VT - x is disabled.  I've never touched the BIOS at all, but to check I went into the BIOS and Intel Virtualization is always on because it has been.  My system is a motherboard ASUS Sabertooth with an i7 processor and 16 GB of ram.

    So I rechecked everything in the BIOS and made sure the virtualization is enabled.  What else can I do to get VMware Player 7.1 running?  Help, please!

    The log file created when I tried to run the guest operating system is attached.

    Thank you

    Abby

    It is indeed strange that there is a difference with no changes to the BIOS. In any case, other messages in the forums, it seems like some antivirus/end point protection applications can cause these issues (see, for example, binary translation is incompatible with the long mode). You have already installed this application?

    It might be interesting to see vmware.log from the virtual machine HARD disk.

    André

  • need help with a game to run

    I, m trying to run diablo 2 and the colors are all messed up. I ran in compatibility mode and changed my settings on 800 x 600 16 bits but the colors again mess up can help anyone?


    Thanks for the help


    Justin

    Hello

    Update the display driver.

    $C God will not look you over for medals, but for scars. Each winner has scars; I do this either on the same heart

  • need help to find/download program "windows Easy Transfer" if I can copy/move files/programs from the windows XP to new windows laptop desktop 8

    Read online somewhere that there is a program of "Windows Easy Transfer" of the program, which was set up to manage the transfer programs/files from a pc to another.  My challenge going on my desktop XP files/programs to a new laptop to Windows 8.   From now on... I can not find the program "winds easy transfer.    Any ideas on how to accomplish this or does anyone use this program... and the results as expected?   THX.    Dave

    Hi Dave,.


    Tool using Windows Easy Transfer, you can automatically copy your files, photos, music, e-mail, settings, and more to your new Windows 8 PC. This software allows you to transfer data with cables of simple transfer or through a network, external drive, or a CD/DVD.
    To download the Windows Easy Transfer for Windows XP tool, see this link.

    http://www.Microsoft.com/en-in/Download/details.aspx?ID=7349


    To transfer files and settings from another PC, see this link.

    http://Windows.Microsoft.com/en-in/Windows-8/transfer-files-settings-another-PC

    Hope the above information is helpful. If you have any doubts, please reply to this message and we will be happy to help you further.

  • I forgot my login password and im the only Admin so I need help I can't even run java updates

    OK here is the deal I have forgoton the password windows and im the only admin on the pc then now that I open a session through my children connect but can't do a thing with regard to updates or installation of programs help etc.

    Most of the PC and mobile PC technicians repair shops have the ability to crack the password. A contact on site and inquire.

    If happen them to have access to the tool of locksmith in the MSDaRT it will take just ressemelable your question. If they have never heard talk about MSDaRT or Microsoft LockSmith utility, then find another store or mobile PC technician.

  • Uninstall not done correctly... I need help completely uninstall a program

    I bought my laptop from a friend, and I don't think that they uninstalled a program properly. The programs are all Roxio programs and they still appear in the Add/Remove Programs list and still have in my computer, but the files exe files and uninstall files are not here. I think just delete what he thought, it was overall the program instead of uninstall. Is there a way to remove it completely, without some third party software?

    Hello

    Best way I know is using 3rd party software. If necessary to re - install the Roxio software,
    does not matter if it works or not and then use Revo to uninstall completely.

    Use Revo Uninstaller - Free Version
    http://www.revouninstaller.com/revo_uninstaller_free_download.html

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

  • I need help to decide what programs to buy and where, and how to get them?

    Hello! I need to get Adobe Illustrator, Photoshop and the Prime Minister, but I think that it is cheaper to buy them just to pay monthly the adobe cloud. Is there a customer service can I ask for help? I do not know what version I have to buy? Yet once, who should I call?

    For help on the command, please see:

    http://helpx.Adobe.com/x-productkb/global/phone-support-orders.html

  • Need help in shell script programming

    I use the following script to check the status of the db.

    check_stat ='ps - ef | grep ${ORACLE_SID} | grep pmon | WC-l ';
    oracle_num = 'expr $check_stat.
    If [$oracle_num - lt 1]
    then
    Exit 0
    FI
    #*************************************************************
    # Test to see if Oracle accepts connections
    #*************************************************************
    $ORACLE_HOME/bin/sqlplus - s "virtue sysdba" > /tmp/check_$ORACLE_SID.ora < < ENDSCRIPT
    Select name from v$ database;
    output
    ENDSCRIPT
    #*************************************************************
    # If this is not the case, go out and e-mail...
    #*************************************************************
    check_stat ='cat /tmp/check_$ORACLE_SID.ora|grep-i error | WC-l ';
    oracle_num = 'expr $check_stat.
    If [$oracle_num - no 0]
    then
    mailx-s "$ORACLE_SID is down!" [email protected] < /tmp/check_$ORACLE_SID.ora
    #else
    #mailx s "$ORACLE_SID is running" [email protected] < /tmp/check_$ORACLE_SID.ora
    exit 16
    FI

    When run at the command prompt, it works fine. I need to know what lines I need to add to this schedule a crontab?
    Thanks in advance

    See "man cron" cron documentation
    Check what types of jobs already exist in the file crontab "crontab-l".

    Your script is based on $ORACLE_SID and $ORACLE_HOME is defined, then you need to add lines to do this (by calling the existing scripts, or by calling oraenv)

Maybe you are looking for