1

i tried to use this example,

 //Register the ApplicationMessageFolder
 //ReadableListImpl source is available in the messagelistdemo.
 ApplicationMessageFolder folder =      ApplicationMessageFolderRegistry.getInstance().registerFolder(
    0x33c7ce29883abe5fL, "Test Folder", new ReadableListImpl());

//DemoMessage source is available in the messagelistdemo.
DemoMessage msg = new DemoMessage("me@here.com", "Pizza Toppings", 
    "What would you like on your pizza?", System.currentTimeMillis());
folder.fireElementAdded(msg);

//Display the application indicator icon.
ApplicationIndicatorRegistry reg = ApplicationIndicatorRegistry.getInstance();    

 EncodedImage image = EncodedImage.getEncodedImageResource("Indicator.png");

 ApplicationIcon icon = new ApplicationIcon(image);

 ApplicationIndicator indicator = reg.register(icon, false, true);
 indicator.setIcon(icon);
 indicator.setVisible(true);

I am able to see the indicatoe icon, but the message is not shown.

Could someone please tell me whats wrong ??

BR, Suppi

Maksym Gontar
  • 22,765
  • 10
  • 78
  • 114
Suppi
  • 630
  • 1
  • 7
  • 21

1 Answers1

0

This question seems relevent to your issue. However, reading the tuturial you reference (here) it seems that you're not seeing the message on the home screen but can you confirm it is there if you enter your message app?

Community
  • 1
  • 1
Grambot
  • 4,370
  • 5
  • 28
  • 43
  • Nope unfortunately, i don't see the message in the Message App – Suppi Jul 12 '11 at 22:02
  • When debugging you don't see any exceptions? Can you confirm the DemoMessage method you call is executing in its entirety or is it failing early but hiding an exception? – Grambot Jul 12 '11 at 22:05
  • I debugged the application, i don't get any exceptions. This was working earlier. After i reloaded the OS it stopped working. – Suppi Jul 12 '11 at 23:54
  • I think you really should read the other thread I posted in my answer as they describe your problem exactly the same. It most likely has to do with your application creating "a new ReadableListImpl each time the menu item gets invoked" – Grambot Jul 13 '11 at 14:24
  • hi sorry, i think i wasn't looking at the right place, i found the message in the Message app, but how can i bring it to the status bar on the home screen – Suppi Jul 13 '11 at 18:53
  • Never mind i got it working, ApplicationFolderIntegrationConfig i changed the second parameter to true. – Suppi Jul 13 '11 at 19:03