2012-08-09 14 views
1

我一直在閱讀BBM SDK示例和開發指南。對於一個應用程序使用BBM平臺服務,應該先註冊(它是RIM的服務器調用請求的訪問):BlackBerry Messenger集成:用於生產環境的UUID

BBMPlatformManager.register(BBMPlatformApplication)

BBMPlatformApplication一個實例作爲參數傳遞。在該樣品中,創建一個實例傳遞一個UUID字符串參數的構造函數:

/** 
    * An UUID is used to uniquely identify the application in the test environment 
    * before the application is available in AppWorld. If the application exists in 
    * AppWorld, the UUID will not be used to identify the application. 
    * 
    * To run this app, you should generate a different UUID, because there is a 
    * limit to the number of users who can share the same UUID. 
    * Search for "UUID Generator" on the web for instructions to generate a UUID. 
    * 
    * For instance, browse to: 
    *  http://www.uuidgenerator.com/ 
    * and copy a UUID in the 8-4-4-4-12 format on the left side of the page. 
    */ 
    private static final String UUID = ""; 


    /** 
    * BBMPlatformApplication serves to provide certain properties of the application 
    * to the BBM Social Platform. It is used as a parameter inBBMPlatformManager.register(). 
    * 
    * If your application wants to be invoked in a non-default way, e.g. when 
    * you have multiple entry points, you need to subclass from BBMPlatformApplication 
    * and override certain methods. 
    */ 
    private final BBMPlatformApplication _bbmApp = new BBMPlatformApplication(UUID); 

閱讀評論,好像只需要UUID編制的「測試環境」(這意味着數量有限時的併發用戶,我猜)。但是,它並未解釋如何爲將要在App World中發佈的應用程序實例化類。

online development guide exampleBBMPlatformApplication延長,並再次UUID傳遞給超在構造函數中:

private class MyBBMAppPlugin extends BBMPlatformApplication 
{ 
    public MyBBMAppPlugin() 
    { 
     super("Insert your UUID here"); 
    } 
} 

是需要的應用程序世界環境UUID?如果是這樣,一旦應用程序已被提交,我怎麼才能獲得它?

謝謝。

+0

嗨,你用什麼SDK整合BBM,我需要做的BBM集成到我的應用程序? – Vendetta 2013-05-14 13:31:24

+0

@Vendetta for BB7及更早版本,請參閱[這裏](http://developer.blackberry.com/html5/documentation/bbm_sdk_for_ww_1878476_11.html) – 2013-05-14 16:02:52

+0

嗨,史密斯謝謝你的回覆,我已經發布在此(http:// stackoverflow .com/questions/16538301 /編程 - 共享文本在bbm黑莓),你可以看看那個 – Vendetta 2013-05-14 16:22:10

回答

2

UUID用於在測試/預生產環境中唯一標識應用程序。將應用程序上傳到BlackBerry App World後,不再使用它。更改您的UUID可以讓您對應用程序執行相互隔離的測試。

這個信息是從http://devblog.blackberry.com/2012/05/bbm-uuid/