title: How retrieve values from the Android Calculator
body: <p>I am developing an application which the user taps on <code>EditText</code>, it displays the android calculator, so the user is able to do arithmetic operations.   </p>
  
  <p>I would like to retrieve the final value when the user presses the equal button in the android calculator and display it. Is that possible using the standard android calculator? </p>
  
  <p>The code to open the calculator is the following: </p>
  
  <pre><code>Intent intent = new Intent();           
  intent.setAction(Intent.ACTION_MAIN);
  intent.addCategory(Intent.CATEGORY_LAUNCHER);
  intent.setComponent(new ComponentName(CALCULATOR_PACKAGE, CALCULATOR_CLASS));
  startActivity(intent);
  </code></pre>
  
  <p>where,</p>
  
  <pre><code>String CALCULATOR_PACKAGE ="com.android.calculator2";
  String CALCULATOR_CLASS ="com.android.calculator2.Calculator";
  </code></pre>
  
  <p>Any ideas or suggestion about how to retrieve the final value from the calculator?<br>
  Thanks</p>