title: BlackBerry - Volume saving issue
body: <p>I am facing problem to store volume level on persistence memory. I am using following code:</p>
  
  <pre class="lang-java prettyprint-override"><code>int _currentVolume = 50;
  </code></pre>
  
  <p>Code for setting player volume level:</p>
  
  <pre class="lang-java prettyprint-override"><code>volumeControl = (VolumeControl) _player.getControl("VolumeControl");
  volumeControl.setLevel(_currentVolume);
  setVolume(_currentVolume);
  </code></pre>
  
  <p>Code for storing volume:</p>
  
  <pre class="lang-java prettyprint-override"><code>public void Save() {
      StoreInfo info = new StoreInfo();
      info.setElement(StoreInfo.VOL2, String.valueOf(volumeControl.getLevel()));
  
      _data.addElement(info); 
      synchronized (store) { 
          store.setContents(_data); 
          store.commit(); 
      }
  }
  
  public void Get() { 
      synchronized (store) { 
          _data = (Vector) store.getContents(); 
  
          if (!_data.isEmpty()) { 
              StoreInfo info = (StoreInfo) _data.lastElement();   
          }   
      } 
  }
  </code></pre>
  
  <p>But the code  is not working :(. Need some help on this issue.</p>