[英]How to select a file on Mobile MIDP using J2ME?
I want to select a file on mobile using J2ME but I don't know way to do it. 我想使用J2ME在移动设备上选择一个文件,但是我不知道该怎么做。 Help me, please !
请帮帮我 !
You have to use FileConnection(JSR-75) for this. 您必须为此使用FileConnection(JSR-75) 。 See this links for your reference.
请参阅此链接以供参考。
How to Access Local File Systems from J2ME devices using FileConnection API 如何使用FileConnection API从J2ME设备访问本地文件系统
File Connection Using J2ME api JSR 75 使用J2ME api JSR 75的文件连接
If what you're looking for is a file selection UI component, I'm afraid this does not exist by default in J2ME, and you'll have to create your own. 如果您要查找的是文件选择UI组件,那么J2ME缺省情况下可能不存在此组件,因此您必须创建自己的组件。
Such a component is planned for MIDP3 , however good luck finding any devices which support it! MIDP3计划使用这样的组件,但是如果能找到支持它的设备,祝您好运!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.