BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 09-25-2006, 04:23 AM   #1
zsjoska
New Member
 
Join Date: Sep 2006
Model: 7105t
Posts: 1
Default Opening "Inbox" not working

Please Login to Remove!

Hi all,
I'm trying to open the "Inbox" email folder by name.

Code:
Store stor = Session.getDefaultInstance().getStore();
Folder fld = stor.getFolder("Inbox");
This works fine on the simulator and gives the "Email://Inbox" folder but on the device I receive FolderNotFoundException.

My test application is signed with RIM certificate.

Thanks,
Jozsef
Offline  
Old 08-29-2007, 10:36 AM   #2
batrad
Knows Where the Search Button Is
 
Join Date: Sep 2005
Location: Princeton, NJ
Model: 9800
OS: Windows 7
Carrier: AT&T/Cingular
Posts: 48
Default

Jozef,

Were you ever able to get this to work ? I'm trying to write a similar app that just lists the contents of the Inbox to provide a "clean" view of BES email

Thanks
Offline  
Old 08-30-2007, 01:26 PM   #3
vamshee
New Member
 
Join Date: Aug 2007
Model: 8100
PIN: N/A
Carrier: at&t
Posts: 1
Default

here is what u need to do...
instead of adding listener to the inbox add it to the store as below..
I did the same and it works fine now.

Session session = Session.getDefaultInstance();
Store store = session.getStore();
store.addFolderListener(this);

Regards,
vamshee

Quote:
Originally Posted by batrad View Post
Jozef,

Were you ever able to get this to work ? I'm trying to write a similar app that just lists the contents of the Inbox to provide a "clean" view of BES email

Thanks
Offline  
Old 09-25-2007, 11:06 AM   #4
sunil_zen
New Member
 
Join Date: Sep 2007
Model: 7290
PIN: N/A
Carrier: hutch
Posts: 6
Default

Hi

I also wants to access my inbox in simulator. But how can I access inbox in simulator? is ESS only way to access my outlook Inbox? or Can I aceess only by Device simulators?

I am Having JDE 4.0.2 which contains ESS, Device Simulator, MDS

Can Any one of you tell me what I need to do access my oulook inbox?
Offline  
Old 09-26-2007, 02:02 AM   #5
superfolderk28
New Member
 
Join Date: Sep 2007
Model: 8100
PIN: N/A
Carrier: Mail
Posts: 1
Default

Hi all,
I have a problem similar with sunil_zen. My app works fine on the simulator and gives Inbox folder but on the device not.

Here is my source code, I would appreciate any help.

Code:
public class MyApp extends Application implements FolderListener, StoreListener{

public MyApp() {
try {
store = Session.waitForDefaultSession().getStore();
store.addStoreListener(this);
inbox = store.findFolder("Inbox");
for(int i=0; i<inbox.length;i++){
inbox[i].addFolderListener(this);
}
} catch (Exception e) {
System.out.println(e.toString());
}
}
.....
public void messagesAdded(FolderEvent folderEvent) {
......
}

}
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


POLYCOM SoundPoint IP550 Digital VOIP Telephone picture

POLYCOM SoundPoint IP550 Digital VOIP Telephone

$20.00



Vtech ErisTerminal VSP861 Touchscreen Color Desktop - Voice-Over-IP VOIP Phone picture

Vtech ErisTerminal VSP861 Touchscreen Color Desktop - Voice-Over-IP VOIP Phone

$14.99



PANASONIC KX-NT553 Business IP Handset VoIP Office Phone picture

PANASONIC KX-NT553 Business IP Handset VoIP Office Phone

$49.99



Grandstream GXP2130 IP Phone --MAIN BODY ONLY-- Color Gigabit HD VoIP PoE Black picture

Grandstream GXP2130 IP Phone --MAIN BODY ONLY-- Color Gigabit HD VoIP PoE Black

$21.98



Panasonic KX-NT553-B IP Phone (VoIP) picture

Panasonic KX-NT553-B IP Phone (VoIP)

$45.00



Mitel 5330e VoIP Dual Mode Gigabit Phone - Black picture

Mitel 5330e VoIP Dual Mode Gigabit Phone - Black

$59.99







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