Reading RMS Data of other Midlet

♀尐吖头ヾ 提交于 2020-01-07 04:14:07

问题


I want to Read RMS Data created by one midlet from second midlet

Target devise are S60 is it possible??


回答1:


It is possible. Open a record store associated with the named MIDlet suite. The MIDlet suite is identified by MIDlet vendor and MIDlet name. Access is granted only if the authorization mode of the RecordStore allows access by the current MIDlet suite.

Access is limited by the authorization mode set when the record store was created:

  • AUTHMODE_PRIVATE - Succeeds only if vendorName and suiteName identify the current MIDlet suite; this case behaves identically to openRecordStore(recordStoreName, createIfNecessary).

  • AUTHMODE_ANY - Always succeeds. Note that this makes your recordStore accessible by any other MIDlet on the device. This could have privacy and security issues depending on the data being shared. Please use carefully. Untrusted MIDlet suites are allowed to share data but this is not recommended. The authenticity of the origin of untrusted MIDlet suites cannot be verified so shared data may be used unscrupulously.

See this links for your reference.

  1. Sharing Data Between MIDlet Suites
  2. Advanced Programming


来源:https://stackoverflow.com/questions/5091148/reading-rms-data-of-other-midlet

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