IMEI PhoneGap的插件在Android中 [英] IMEI PhoneGap Plugin in Android
问题描述
我想使用PhoneGap的检索IMEI的机器人。我按照这一个 PhoneGap的插件IMEI
I am trying to retrieve the IMEI in android using PhoneGap. I have followed this one PhoneGap Plugin for IMEI
输出为它的工作......。我没有得到的IMEI。
The output is "It works...". I am not getting the imei.
我在哪里可以把在 imei.js ?
先谢谢了。
推荐答案
为了运行这个例子,你需要建立一个自定义的插件。
In order to run that example, you need to build a custom plugin.
如何建立一个自定义的插件?这里就是这样的插件开发
How to build a custom plugin?? Here is the way Plugin development
使用这些教程,你需要建立一个自定义插件,然后把java和js文件在正确的地方。(不仅是JS,你需要一个Java文件太大如图你链接)
Using these tutorials you need to build a custom plugin and then put java and js files in the right places.(Not only js, you need a java file too as shown in you link)
(NB如果你需要精确的IMEI,那么你就需要一些第三方插件。但是如果你只是需要一个唯一的号码逐个识别每一个设备,我建议你应该使用 UUID
这将避免创建自定义插件的麻烦。这里是例子的获取UUID )
(N.B. If you need exact IMEI, then you'll need some third party plugin. But if you just need an unique number to recognize each device individually, I would suggest you should use the UUID
That will avoid the hassle of creating custom plugin. Here is the example Get UUID)
你可以看到这个问题的答案,以了解更多有关获取IMEI。
And you can see the answers of this question to find out more about getting IMEI.
这篇关于IMEI PhoneGap的插件在Android中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!