我没有 BBM 经验,在我的应用程序中,一个要求是。. 合而为一Buttonfield
。当我点击那个打开Button
时。拥有三场。一秒钟“发送按钮”第三次“取消按钮”。PopupScreen
PopupScreen
TextField
我必须输入BBM PIN
,TextField
当我点击发送按钮时.. 我有一个静态按摩,将发送给其他用户(PIN 用户)。
如何实施?有没有 sdk 来实现这个?
我们可以在模拟器中检查吗?
我没有 BBM 经验,在我的应用程序中,一个要求是。. 合而为一Buttonfield
。当我点击那个打开Button
时。拥有三场。一秒钟“发送按钮”第三次“取消按钮”。PopupScreen
PopupScreen
TextField
我必须输入BBM PIN
,TextField
当我点击发送按钮时.. 我有一个静态按摩,将发送给其他用户(PIN 用户)。
如何实施?有没有 sdk 来实现这个?
我们可以在模拟器中检查吗?
您无需使用 BBM SDK 从您的应用程序向其他用户发送 pin 消息。BB 引脚不仅限于 BBM。它是您的 Blackberry 的唯一标识符,您可以使用它通过 Pin 发送消息。您还可以使用您的 pin 和 BBM 在 BBM 中发送消息。如果您需要在文本字段中输入 pin,并发送预先填写的消息,则不需要使用 BBM。您可以使用以下方法发送 pin 消息
public static void sendPinMessage(String address,String body)
{
Store store = Session.getDefaultInstance().getStore();
//retrieve the sent folder
Folder[] folders = store.list(Folder.SENT);
Folder sentfolder = folders[0];
//create a new message and store it in the sent folder
Message msg = new Message(sentfolder);
PINAddress recipients[] = new PINAddress[1];
try{
//create a pin address with destination address
recipients[0]= new PINAddress(address,"My app");
}
catch (AddressException ae)
{
Log.Error(ae,"Check address");
}
try{
//add the recipient list to the message
msg.addRecipients(Message.RecipientType.TO, recipients);
//set a subject for the message
msg.setSubject("Subject");
//sets the body of the message
msg.setContent(body);
//send the message
Transport.send(msg);
}
catch (MessagingException me)
{
Log.Error(me,"Message excpetion in sending pin");
}
}