Executing the intents manually and get its result
<p>I'm very new to Android programming and I wish I could do this:</p>

<p>1)Create a new Intent</p>

<p>2)Execute the Intent and get its result as string.</p>

<p>Something like:</p>

<pre><code>Instrumentation.ActivityResult ar = new Instrumentation.ActivityResult(1, new Intent(Intent.ACTION_CALL,Uri.parse("tel:" + ussd)));
</code></pre>

<p>I wish the intent :</p>

<pre><code>new Intent(Intent.ACTION_CALL,Uri.parse("tel:" + ussd))
</code></pre>

<p>need to be executed and get its result.</p>

<p>I tried with <code>getResultData</code> which is just giving the:</p>

<pre><code>Intent { act=android.intent.action.CALL dat=tel:xxx-xxx-xxxx } 
</code></pre>

<p>But I want to get the <em>data</em> out of it. Data I mean the data that will be displayed when this ussd executed normally.</p>

<p>Is is possible?
Thanks in advance.</p>
