开发者

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

开发者 https://www.devze.com 2023-01-29 18:42 出处:网络
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 s

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

精彩评论

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

关注公众号