BlackBerryForums.com : Your Number One BlackBerry Community
     

»Sponsored Links

BlackBerryApps.com Best Sellers



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

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...
   
Sponsored Links
Please Login or Register to Remove these Advertisements!

  (#2 (permalink)) Old
andychambers Offline
New Member
 
Posts: 10
Join Date: Apr 2006
Model: 7100T
Default 05-08-2006, 05:07 AM

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();    
    }
});
   
Closed Thread


Thread Tools

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On





Copyright © 2004-2009 BlackBerryFAQ.com, BlackBerryForums.com.
The names RIM © and BlackBerry © are registered Trademarks of Research In Motion Limited.