开发者

Wants to create an record store in J2me Application as soon as the application starts

working on a j2me project... what i need to do is create a record store from a preexisting xml file (in d jar itself) so i can read and wr开发者_JAVA百科ite data from it..... and wants to do this as sson as the application starts pls help.......


write following code in startMIDlet() method

RecordStore recordStore = RecordStore.openRecordStore("recordstorename", true);
String data="data";
recordStore.addRecord(data.getBytes("UTF-8");, 0, data.getBytes().length);
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜