在诺基亚手机上部署 midlet

发布于 2024-07-14 15:42:08 字数 354 浏览 6 评论 0原文

我编写了一个 midlet,它询问用户名和密码并连接到在 tomcat 上运行的 servlet 进行验证。 当我在 sun toolkit 提供的模拟器上运行 midlet 时,它第一次询问“此 midlet 希望使用通话时间连接到 http://...”并请求用户许可。 我想知道有什么办法可以摆脱这个吗? 一旦这个应用程序安装在真实的手机上,它会在每次应用程序启动时询问用户许可还是可以在安装时设置?

其次,如何在诺基亚 E65 上部署 midlet jar?


我使用手机附带的诺基亚软件在手机上部署我的应用程序。 每当我启动应用程序时,它第一次会问我“这个 midlet 想要使用通话时间连接到 http://...”

I have written a midlet which asks username and password and connect to servlet running on tomcat to validate. When I run the midlet on the emulator provided by sun toolkit, first time it asks "This midlet wants to connect to http://... using airtime" and asks user permission. I want to know is there anyway to get rid of this? Once this app is installed on a real mobile would it ask user permission every time when application starts or it can be set at installation time?

Secondly how do I deploy my midlet jar on Nokia E65?


I used the Nokia software came along with the cellphone to deploy my application on handset. Whenever I start the application, first time it asks me "This midlet wants to connect to http://... using airtime"

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

隔纱相望 2024-07-21 15:42:08

首先:您需要为您的 midlet 设置适当的安全权限,其次您需要使用设备信任的某种证书对其进行签名。 这对于模拟器来说很容易,您可以在其中创建自签名 CA 并导入到模拟器密钥存储中。 对于真实设备,您可能需要一些商业(付费)证书。

第二:您可能需要通过 HTTP 提供 midlet JaD/Jar。 您是否尝试将 jar/jad 上传到手机并在那里“启动”它。 诺基亚 PC 套件附带的诺基亚应用程序管理器可能也是一个不错的选择。

Ad first: You need to setup proper security permissions for your midlet and secondly you will need to sign it with some kind of certificate the device trusts. This is easy for the emulator where you can create self-signed CA and import into the emulator key-store. For real devices you will probably need some commercial (paid) certificate.

Ad second: You will probably need to make the midlet JaD/Jar available via HTTP. Did you try uploading the jar/jad to the phone and "launching" it there. Nokia Application Manager which comes with Nokia PC Suite might be also a good choice.

仅此而已 2024-07-21 15:42:08

如果您想(在一定程度上)消除此类权限问题,则需要签署应用程序。 签名的应用程序可以更多地访问设备的资源,例如相机、网络。 用户还可以设置应用程序的权限,例如“首次询问”、“每次询问”、“不允许”等...如果应用程序已签名,您将获得更多这些选项。

部署可以使用诺基亚提供的软件PC套装。 或者您可以使用 OTA 方法,将签名(或未签名)的 jar 和 jad 文件上传到网络服务器,然后使用移动浏览器从那里下载它。 只需从移动浏览器打开 jad 文件,它将验证证书并下载并安装 jar 文件。

在您准备好应用程序之前,第一种方法就足够了。

You need to sign the application if you want to get rid of(to an extend) these kind permission issues. A signed application has more access to the device's resources such as camera ,network . Also the user can set the permission for the application ,such as "ask for first time", "ask every time ","Do not allow" etc... You will get more of these options if the application is signed .

To deploy you can use the software that Nokia has given ,the PC suit. or you can use the OTA method where you upload your signed( or unsigned) jar and jad files to a webserver and download the it from there using the mobile browser. Just open the jad file from your mobile browser, it will verify the certificate and will down load and install the jar file.

First method will be good enough till you are having the ready to go application.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文