2010-09-01 50 views

回答

1

開始之前:確保你已經完成了任務,Register your application with the BlackBerry Messenger platform,而且顯示的MyBBMChatScreen屏幕的類傳入一個參考應用程序的相關BBMPlatformContext對象到屏幕的構造器。 (一如既往:D)

我使用此代碼添加一個聯繫人。您可以修改它以添加多個聯繫人。只需更改的大小聯繫人數組。

String PIN = "123456"; 
String name = "Someone"; 
BBMInvitationRequest[] contacts = new BBMInvitationRequest[1]; 

contacts[0] = new BBMInvitationRequest(PIN, name); 
platformContext.getUIService().inviteToBBM(contacts); 

願這幫助:)

+0

您好,請問有什麼jar文件與BBM增加,我得到錯誤的下面幾行BBMPlatformApplication,BBMPlatformContextListener,BBMPlatformContext,BBMPlatformManager我在哪裏可以下載這個班 – Vendetta 2013-05-14 09:41:32

相關問題