如何去掉J2ME连接网络时的提示框

最近做了个J2ME的小程序,在开发过程中遇到了一个问题,分享如下:

 

当程序连接网络时,会自动跳出"....Is it OK to use Air Time"的提示框,而且每次连接都会得到这个提示。

解决方案:http://www.mernin.com/blog/?p=21

 

  1. Start the Sun Java Wireless Toolkit “KToolbar” application and select Edit, Preferences
  2. Locate the Security category and select the following settings
    • Security Policy: MSA
    • Security Domain: manufacturer
  3. Save these preferences
  4. From your NetBeans project, select the project properties.
  5. Locate the Signing settings (inside the Build settings) and select the following settings:
    • Sign Distributon: Yes (or checked)
    • Keystore: Built-in keystore
    • Alias: untrusted
  6. You might also need to Export this key to the Java SDK/Emulator using the button provided
  7. Save these settings and rebuild your project

 

大致来说就是在Sun Java Wireless Toolkit里面设置自己开发的程序的级别,如果选择manufacturer的话,提示框会根本不出现,我选择的是identified_third_party,选择这个会在程序第一次连接的时候提示一次。

 

程序做好,放到手机上和模拟器上一样。

 


 

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值