读取其他Midlet的RMS数据 [英] Reading RMS Data of other Midlet

查看:90
本文介绍了读取其他Midlet的RMS数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想从第二个Midlet读取一个Midlet创建的RMS数据

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

目标设计是S60吗?

推荐答案

有可能.打开与命名的MIDlet套件关联的记录存储. MIDlet套件由MIDlet供应商和MIDlet名称标识.仅当RecordStore的授权模式允许当前MIDlet套件进行访问时,才授予访问权限.

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 -仅在以下情况下成功 vendorName和suiteName标识 当前的MIDlet套件;这个案例 表现与 openRecordStore(recordStoreName, createIfNecessary).

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

AUTHMODE_ANY -始终成功.笔记 这使您的recordStore 可以通过MIDlet上的任何其他MIDlet访问 设备.这可能具有隐私权, 取决于数据的安全性问题 被共享.请小心使用. 允许不受信任的MIDlet套件 共享数据,但这不是 推荐的.的真实性 不受信任的MIDlet套件的来源 无法验证,因此共享数据可能 被无良使用.

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. 在MIDlet之间共享数据 套房
  2. 高级编程
  1. Sharing Data Between MIDlet Suites
  2. Advanced Programming

这篇关于读取其他Midlet的RMS数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆