BlackBerry Forums Support Community
              

Closed Thread
 
LinkBack Thread Tools
Old 12-03-2008, 04:57 AM   #1 (permalink)
Knows Where the Search Button Is
 
Join Date: Jul 2008
Model: 8300
PIN: N/A
Carrier: Airtel
Posts: 15
Post Thanks: 0
Thanked 0 Times in 0 Posts
Question Email open requirement

Please Login to Remove!

Hi All,

I have a requirement. when i open the mail, it should run my gui application. after enter some data in gui then the mail should be opened.

Please give me any suggessions on this. If any listeners are ther while we are opening the mail, please help me.

Thanks in advance.

Thanks,
Shanmukh
Offline  
Old 12-03-2008, 08:24 AM   #2 (permalink)
BlackBerry Extraordinaire
 
Join Date: Mar 2008
Location: Austin, TX
Model: 9700
PIN: N/A
Carrier: T-Mobile
Posts: 1,644
Post Thanks: 0
Thanked 34 Times in 33 Posts
Default

This is well coverered in the documentation and samples, and there is a knowledgebase article as well.

What specific issue are you having trouble with?
Offline  
Old 12-10-2008, 09:25 AM   #3 (permalink)
Knows Where the Search Button Is
 
Join Date: Jul 2008
Model: 8300
PIN: N/A
Carrier: Airtel
Posts: 15
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks for your reply.
I have gone through the documentation.

Finally I implemented ViewListener.
While I am opening any mail in Messages, then my Implemented class is called and the open(MessageEvent e) is executed.

In this open() method I opened one GUI application. But after closing the GUI application, opened mail is not displayed.

My code:

public class MailOpenListener extends UiApplication implements ViewListener{
public void open(MessageEvent me) {
System.out.println("shan in MailOpenListener open method");
//opening my GUI.
LoginScreen screen = new LoginScreen(); // this screen having one textbox.
UiApplication.getUiApplication().pushScreen(screen );
}
}

My requirement is, when I give some value in the textfield in LoginScreen, then only the mail should be opened. Can u provide me some sample code for this. If commented the " LoginScreen screen = new LoginScreen();" and " UiApplication.getUiApplication().pushScreen(screen );" then the mail is opened.

But I need to put my GUI while opening. I didnt write the LoginScreen code here. it is having only one textbox and one submit button. if the text is "shan" and click the "submit" button then only the mail should be opened..


Thanks,
Shanmukh
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

10x IRF9540N MOSFET P-CHANNEL -23A -100V P-Channel Power
$4.99
10x IRF9540N MOSFET P-CHANNEL -23A -100V P-Channel Power picture30V NPN Triode Power Transistor Package Transistor - Black (10PCS)
$4.97
30V NPN Triode Power Transistor Package Transistor - Black (10PCS) picture dc 5-36v 400w dual large power mos transistor driving module, fet trigger
$11.35
 dc 5-36v 400w dual large power mos transistor driving module, fet trigger pictureMeter Transistor Tester w/ Case
$12.64
Meter Transistor Tester w/ Case pictureBT137-600E 10Pcs 600V 8A SCR Thyristor Sensitive Gate Triacs
$8.42
BT137-600E 10Pcs 600V 8A SCR Thyristor Sensitive Gate Triacs picture






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