How to save an image into photo gallery using j2me

 ̄綄美尐妖づ 提交于 2019-12-20 07:50:51

问题


I am making an application for nokia, samsung, lg ets using j2me. I want to save an image into photo gallery of mobile. But i didn't have any idea what path i use to save image?


回答1:


Look on this article, Getting Started with the FileConnection APIs. Also look on this example, File Connection Using J2ME api JSR 75.




回答2:


String initDir = System.getProperty("fileconn.dir.photos");

Mobile's Internal Memory can make issue if it is limited. So You should use Memory card to save the images.

You can create a folder in Memory card and access it using E:/<folder-name> in to your J2ME code.



来源:https://stackoverflow.com/questions/8150418/how-to-save-an-image-into-photo-gallery-using-j2me

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!