BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 11-03-2007, 03:59 PM   #1 (permalink)
Thumbs Must Hurt
 
Spartan115's Avatar
 
Join Date: Aug 2007
Model: Pearl
PIN: N/A
Carrier: T-Mobile
Posts: 80
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default Auto-Starting Gui Application

Please Login to Remove!

I'm trying to write a GUI application that gets run from a background process when it receives an email. So the program runs in the background (it auto-starts) until it receives a specific email, then the GUI starts up. How do I make the GUI run from a background process?
Offline  
Old 11-05-2007, 03:26 AM   #2 (permalink)
CrackBerry Addict
 
Join Date: Apr 2005
Location: hamburg, germany
Model: 8900
Carrier: o2
Posts: 838
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Code:
invokeLater(new Runnable() {
	public void run() {
	bbgui = new BBGui(BBClient.this);
	requestForeground();
	pushScreen(bbgui);
	}
});
example from one of my applications. BBGui is extending MainScreen, it gets the application as a callback (in bigger projects better use interfaces).

hth,
simon
__________________
java developer, Devinto, hamburg/germany
Offline  
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

Windsor Commodore CMD Self-Propelled Carpet Extractor Cleaner w/ Fastraction
$850.0
Windsor Commodore CMD Self-Propelled Carpet Extractor Cleaner w/ Fastraction pictureJELENKO Commodore ll VPF porcelain oven
$500.0
JELENKO Commodore ll VPF porcelain oven pictureMCR Safety 600JXL Commodore PVC/Non-Woven Polyester/Nylon Jacket with Detacha...
$28.33
MCR Safety 600JXL Commodore PVC/Non-Woven Polyester/Nylon Jacket with Detacha... pictureMCR Safety 600JX3 Commodore PVC/Non-Woven Polyester/Nylon Jacket with Detacha...
$29.26
MCR Safety 600JX3 Commodore PVC/Non-Woven Polyester/Nylon Jacket with Detacha... pictureMCR Safety 6003XL Commodore PVC/Non-Woven Polyester/Nylon 3-Piece Rain Suit w...
$47.62
MCR Safety 6003XL Commodore PVC/Non-Woven Polyester/Nylon 3-Piece Rain Suit w... picture






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