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


Lot of OEM APPLE iPAD LCD And White Front Glass Replacement 6091l-1402C picture

Lot of OEM APPLE iPAD LCD And White Front Glass Replacement 6091l-1402C

$17.99



A1618 NEW OEM Battery for MacBook Pro 15

A1618 NEW OEM Battery for MacBook Pro 15" Retina A1398 Mid 2015 020-00079

$43.90



Genuine A1417 OEM Battery Apple Macbook Pro 15 Retina A1398 Mid 2012 Early 2013 picture

Genuine A1417 OEM Battery Apple Macbook Pro 15 Retina A1398 Mid 2012 Early 2013

$40.90



NEW OEM Battery A1466 A1369 A1496 A1405 A1377 A1466 for MacBook Air 13 inch picture

NEW OEM Battery A1466 A1369 A1496 A1405 A1377 A1466 for MacBook Air 13 inch

$31.90



NEW OEM A1618 Battery for Apple MacBook Pro 15” Retina 99.5Wh A1398 Mid 2015 picture

NEW OEM A1618 Battery for Apple MacBook Pro 15” Retina 99.5Wh A1398 Mid 2015

$43.90



OEM Battery for MacBook Pro 17

OEM Battery for MacBook Pro 17" A1309 A1297 Early 2009 Mid 2009 2010 MC226

$40.90







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