首页 » 黑莓开发 » 获得设备中默认的邮件地址

获得设备中默认的邮件地址

5817 4

通过以下代码,我们可以获得黑莓设备中默认的邮件地址。
//get the default session
Session session = Session.getDefaultInstance();
If (session != null) {
//now the store
Store store = session.getStore();
//then the service configuration
ServiceConfiguration serviceConfig = store.getServiceConfiguration();
//now get the email address
String emailAddress = serviceConfig.getEmailAddress();
}

文章评分1次,平均分5.0

本文原始地址:https://www.tiandiyoyo.com/2011/09/how-to-get-default-email-account/
本站所有文章,除了特别注明外,均为本站原创,转载请注明出处来自www.tiandiyoyo.com

您可能还会对以下文章感兴趣:

    没有相关的文章

评论前先开启评论开关:


4 Comments

  1. 代码这玩意,可看不懂

    • tiandi :

      每人都是自己精通的和不精通的东西。看的懂代码的不一定会做饭,会做饭的不一定能写代码。。。

  2. 这个是做么用的?

载入分页评论...