如何中检索IMEI没有使用NativeAndroid /电话间隙为黑莓10 [英] how to retreive IMEI no using NativeAndroid/Phone Gap for Blackberry 10

查看:301
本文介绍了如何中检索IMEI没有使用NativeAndroid /电话间隙为黑莓10的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我移植Android应用到BB 10.我现在无法从这个Android移植应用程序检索IMEI号,有什么办法,我可以使用在Android应用程序PhoneGap的脚本文件,通过创建一个本地HTML和使用Java脚本使用下面的概念使用电话峡retreive IMEI号

I am porting android app to BB 10.I am not able to retrieve IMEI number from this android porting application ,Is there any way i can use PhoneGap script file in android app ,by creating a local html and using java script to retreive the IMEI number using Phone Gap using the below concept

http://developer.android.com/guide/webapps/webview。 HTML#BindingJavaScript

presently,我尝试使用下面retrieive IMEI的JavaScript没有

Presently ,I tried using javascript below to retrieive IMEI no

   <script type="text/javascript" charset="utf-8" src="js/phonegap.js"></script>
</head>
<script type="text/javascript">
    function showAndroidToast(toast) {  
    Android.showToast('kkkkkkk');       
    var idno = device.uuid ;
var string = device.version;
Android.showToast('idno' + string); 
Android.showToast('string ' + idno); 
toast = toast + idno;
    Android.showToast(toast);
    }
</script>

我得到空的值,我在BB 10开发阿尔法设备测试。

I am getting the value of null,I am testing it in BB 10 dev Alpha device.

还有没有其他的解决方法呢?

Is there any other workaround for it?

推荐答案

问题定格在10.1黑莓数量versions.IMEI从使用原生Android code此操作系统版本retreived。

Issue fixed in Blackberry 10.1 versions.IMEI number is retreived from this OS versions using native android code.

这篇关于如何中检索IMEI没有使用NativeAndroid /电话间隙为黑莓10的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆