title: Getting return data from message to Android handler
body: <p>Today I am sending some data to a handler for a non-static call to OpenFeint methods. Everything is fine up to the point of return, where I don't know how to retrieve the information.</p>
  
  <p>Method call in main class:</p>
  
  <pre><code>public static float getPercentageAchievement(String idAchievement) {
      Message msg = new Message();
      msg.what = OpenFeintXHandler.GET_PERCENTAGE_ACHIEVEMENT;
      Bundle args = new Bundle();
      args.putString(BUNDLE_ARG_1, idAchievement);
      msg.setData(args);
      ms_kOpenFeintHandler.sendMessage(msg);
      return msg.getData().getFloat(BUNDLE_RETURN); // msg is empty here
  }
  </code></pre>
  
  <p>Message handling in handler class:</p>
  
  <pre><code>case GET_PERCENTAGE_ACHIEVEMENT:
          msg.getData().putFloat(
                  OpenFeintX.BUNDLE_RETURN,
                  otherGetPercentageAchievement(msg.getData().getString(
                          OpenFeintX.BUNDLE_ARG_1)));
          break;
  </code></pre>
  
  <p>Test method in handler class:</p>
  
  <pre><code>private float otherGetPercentageAchievement(String idAchievement) {     
      return 200;
  }
  </code></pre>