获取黑莓所有者的详细信息(如姓名/号码)通过API [英] Get Blackberry Owner details (eg name/number) through API
本文介绍了获取黑莓所有者的详细信息(如姓名/号码)通过API的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我知道这是一个简单的,但我不知道该框架的项目,这将有助于我的名字。 (我知道,谷歌可以解决这一个,但我的图片关键词让我失望)
I know this is a simple one, but I'm not sure the name of the framework item that will help me. (I know Google could solve this one but my keyworks fail me)
我想收集一些黑莓拥有者的详细信息(电话号码,姓/名,编辑:电子邮件地址)。自动填充了创建新帐号屏幕
I'm trying to gather some of the BlackBerry owner's details (phone number, first/last name, edit: email address) to autofill a "Create new account" screen.
我使用DeviceInfo返回的DeviceID,但不知道该如何找回主人的联系方式。
I'm using DeviceInfo to return the DeviceId, but unsure how to retrieve owner contact details.
推荐答案
要获取电话号码:
String phoneNum = net.rim.blackberry.api.phone.Phone.getDevicePhoneNumber(false);
要获得用户名:
String owner = net.rim.device.api.system.OwnerInfo.getOwnerName();
这篇关于获取黑莓所有者的详细信息(如姓名/号码)通过API的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文