Help Center

Local Navigation

Retrieve an unregistered runtime object

  1. Import the following classes:
    • net.rim.device.api.system.RuntimeStore
    • net.rim.device.api.system.ControlledAccessException
    • java.lang.RuntimeException
  2. Invoke RuntimeStore.waitFor() to wait for registration of a runtime object to complete.
  3. Create code to handle exceptions.
    RuntimeStore store = RuntimeStore.getRuntimeStore();
    try {
    Object obj = store.waitFor(0x60ac754bc0867248L);
    } catch(ControlledAccessException e) {
    } catch(RuntimeException e) {
    }
    

Index


Was this information helpful? Send us your comments.