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
Super Contributor
Meghasanghvi
Posts: 306
Registered: ‎08-10-2010
My Device: Not Specified

Need help on SendCommandRepository

I want to upload photo on facebook and twitter. After searching i get the  SendMenuDemo project on Blackberry 7.0.

When i run this project i am now successfully upload photo on facebook and twitter. it gives so many option if i want to change that and only two to three option like facebook, twitter, BBM is it possible to do that using SendCommandRepository?

 

code: 

SendCommandRepository repository = SendCommandRepository.getInstance();

SendCommand[] sendCommands = repository.get(SendCommand.TYPE_PATH,
context, false);

if (sendCommands != null) {

// Add submenu to the menu
menu.add(new SendCommandMenu(sendCommands, 0, 0));
}