使用FileConnection时如何跳过问题? [英] How to skip the questions when using FileConnection?

查看:84
本文介绍了使用FileConnection时如何跳过问题?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想显示存储在手机中的照片,并且我使用FileConnection和openInputStream东西.问题是启动该程序时我必须接受许多问题;它们都是关于对文件系统或特定文件的访问.那么,如何跳过"这些问题,即以编程方式接受所有这些问题,以使它们在启动应用程序时不出现?

I want to display photos stored in the phone , and I use the FileConnection and the openInputStream stuff. The problem is that there are many questions that I must accept when launching the program ; they are all about access to the file system or a particular file. So how to "skip" these questions , that is accept all of them programmatically, so they do not appear when launching the application ?

推荐答案

基本上,这种类型的警报出于安全目的.因为您正在使用FileConnecion(JSR-75).

Basically this type of alerts asking for security purpose. Because you are using FileConnecion(JSR-75).

为此,您必须与第三方提供商(例如Verisign或Thrawte或Java经过验证)签署您的应用程序.这将是成本.

In this purpose, You have to signing your application with 3rd party providers like Verisign or Thrawte or Java Verified. It will be cost.

如果在模拟器上遇到此问题,请转到首选项"和"MIDP"选项卡,将应用程序域设置为受信任",并将权限设置为允许始终".有关更多信息,请参见 MIDP 2.0的安全体系结构...

If you are facing this issue on the emulator, go to preferences and MIDP tab, set the application domain to Trusted and set permission as "Allow Always". For more info, see this MIDP 2.0's Security Architecture...

签名站点是

Thawte

Verisign

已通过Java验证

这篇关于使用FileConnection时如何跳过问题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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