Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在一个 j2me 项目上工作......我需要做的是从一个预先存在的 xml 文件(在 d jar 本身中)创建一个记录存储,这样我就可以从中读取和写入数据......并希望以 sson 的身份执行此操作当应用程序启动时请帮助.......
startMIDlet()在方法中编写以下代码
startMIDlet()
RecordStore recordStore = RecordStore.openRecordStore("recordstorename", true); String data="data"; recordStore.addRecord(data.getBytes("UTF-8");, 0, data.getBytes().length);