Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Developer
Posts: 214
Registered: ‎03-18-2012
My Device: 8520
My Carrier: Company

problem to add ApplicationMenuItem in SMS view

Hi,

   

 class AppMenu extends ApplicationMenuItem
    {
        AppMenu()
        {
          super(4);    
        }

        public Object run(Object context)
        {
               return null;            
        }

        public String toString() {
            
            return "Ashish Sharma";
        }
    }

        AppMenu obj=new AppMenu();
  ApplicationMenuItemRepository.getInstance().addMenuItem(ApplicationMenuItemRepository.MENUITEM_SMS_VIEW,obj);

 

 

Same code working in 0s 5.0 but not Os 6.0

 

pls suggest...