如何知道J2ME移动应用程序中的手机号码或emei号码 [英] How to know the mobile number or emei number in J2ME mobile application

查看:88
本文介绍了如何知道J2ME移动应用程序中的手机号码或emei号码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经为我的用户在J2ME中创建了一个移动应用程序,现在我想在我的jar应用程序中获取用户的手机号码。



任何想法编码在Jar Applicaiton中获取用户的手机号码?



谢谢

I have created a mobile applicationin J2ME for my users and now i want to get the user''s mobile number in my jar application.

Any Idea of coding to get the user''s mobile number in Jar Applicaiton?

Thanks

推荐答案





使用j2me的功能见下面



手机没有你想要展示



String mobile_code =* 1#;



objMainMidlet.platformRequest(mobile no:+ mobile_code);



platformRequest是一种默认方式,可以拨打电话并显示手机号码,而不是


IMEI没有你必须在j2me上关注



字符串IMEI =*#06#;



objMainMidlet.platformRequest(IMEI:+ IMEI);



所有上述代码放在try catch块上以避免异常并将其置于按键事件上如在游戏的大部分内容按键
Hi,

Use the function of j2me see below

for mobile no u want to display

String mobile_code="*1#";

objMainMidlet.platformRequest("mobile no:"+mobile_code);

platformRequest is the default method which will place a call and display the mobile no

and for the IMEI no u have to do following on j2me

String IMEI="*#06#";

objMainMidlet.platformRequest("IMEI :"+IMEI);

all the above code place on try catch block for avoiding exception and place it on the key press event such as press key 5 most of on the game


I have created a mobile application in J2ME for my users and now i want to get the user's mobile number in my jar application.

Any Idea of coding to get the user's mobile number in Jar Application?

< br $>




实际上我在我的在线服务器上有客户端,现在我给了他一个jar应用程序,这样我的客户就可以不用去获取他的信息了在线。



一切都很顺利,但是当我们通过jar应用程序收到请求时,很少知道服务器上的实际客户端。



所以唯一的方法就是知道被移动号码中的被请求者,这对于独特的客户来说是独一无二的。



最后每当用户提交时通过我们的jar应用程序的任何请求我们必须知道用户的号码。



所以我可以在我的申请中的提交按钮上知道手机号码吗? br />


谢谢




Actually I have clients on my online server and now i have given him a jar application so that my client can get his information without going online.

All is doing well but little problem is to know the actual client on server when we receive the request through jar application.

So the only way to know the requesteee in his mobile number which would be unique for unique customer.

As last Whenever a user submit any request through our jar application we must know the user''s number.

so is it possible to know the mobile number on a submit button in my application?

Thanks


这篇关于如何知道J2ME移动应用程序中的手机号码或emei号码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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