本文介绍了读取其他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 ifvendorName and suiteName identify thecurrent MIDlet suite; this casebehaves identically toopenRecordStore(recordStoreName,createIfNecessary).

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

AUTHMODE_ANY - Always succeeds. Notethat this makes your recordStoreaccessible by any other MIDlet on thedevice. This could have privacy andsecurity issues depending on the databeing shared. Please use carefully.Untrusted MIDlet suites are allowedto share data but this is notrecommended. The authenticity of theorigin of untrusted MIDlet suitescannot be verified so shared data maybe used unscrupulously.

请参阅此链接以供参考.

See this links for your reference.

  1. 在MIDlet之间共享数据套房
  2. 高级编程
  1. Sharing Data Between MIDletSuites
  2. Advanced Programming

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

08-04 07:51