BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 04-24-2006, 04:13 AM   #1
Ryson
New Member
 
Join Date: Apr 2006
Location: Germany
Model: 7230
Posts: 11
Default bring application to foreground

Please Login to Remove!

Hi,


i set auto-run on startup for my application. It starts, but only the desktop is displayed. How can i bring my application to the foreground?


Thanks for your answers...
Offline  
Old 05-08-2006, 05:07 AM   #2
andychambers
New Member
 
Join Date: Apr 2006
Model: 7100T
Posts: 10
Default

This is just an idea, haven't tested it. You could try some combination of invokeLater, and requestForeground (both methods on the UiApplication class). I think you might have to make your app sleep for a while after starting (to let other auto-start apps do their thing) then do something like..

Code:
app.invokeLater(new Runnable() {
    public void run() {
        app.requestForeground();    
    }
});
Offline  
Closed Thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


1980-060 - Thermocouple 60 inch picture

1980-060 - Thermocouple 60 inch

$25.00



Thermocouple Assembly picture

Thermocouple Assembly

$13.99



Allen Bradley 1794-IRT8 Flex I/O Input Ser A  8 Point Thermocouple RTD Module picture

Allen Bradley 1794-IRT8 Flex I/O Input Ser A 8 Point Thermocouple RTD Module

$500.00



Omega Type K Thermocouple Thermometer Model 650 picture

Omega Type K Thermocouple Thermometer Model 650

$98.00



New Allen Bradley 1762-IT4/A 4 Channel Thermocouple / mV Input Module picture

New Allen Bradley 1762-IT4/A 4 Channel Thermocouple / mV Input Module

$261.25



Lot of 7 Omega UWTC-1 universal Wireless Thermocouple Transmitter picture

Lot of 7 Omega UWTC-1 universal Wireless Thermocouple Transmitter

$259.99







Copyright © 2004-2016 BlackBerryForums.com.
The names RIM © and BlackBerry © are registered Trademarks of BlackBerry Inc.