In process of J2ME program development, for certain need, often need to acquire the mobile phone number of the user, but this function is in however standard J2ME kind did not offer in the library.
When the network of CMWAP means join with in use mobile country, shift meets China put the mobile phone number of the user in the head information that a name is X-up-calling-line-id, can take this head news through reading, acquire the mobile phone number of the user, specific code is as follows:
String Usermphone = Http.getHeader("x-up-calling-line-id" );
Among them the object that Http is HttpConnction type.
The mobile phone number that the client carries is acquired in application of J2
来源:
作者:Stand originally
时间:2008-12-21
Tag:
点击:
最新评论共有 0 位网友发表了评论
查看所有评论
发表评论

