Android: Programmatic Phone Call Ends Immediately
<p>I've been experiencing a strange problem recently in working with the ADK regarding phone calls. My goal is to trigger a phone call whenever a button is pressed on the demo shield. When I execute the following code, the phone dialer app comes up when the button is pressed (showing the number I wanted to call), however, it doesn't execute the call, only displaying the message "Call Ended".</p>

<p>Here's the code I've been using:</p>

<pre><code>String url = "tel:1234567890";
Intent in = new Intent(Intent.ACTION_CALL, Uri.parse(url));
DemoKitPhone.this.startActivity(in);
</code></pre>

<p>I've been trying to tackle this for days (putting this piece of code in runOnUiThread, BroadcastReceivers, etc. to no avail), so any help would be greatly appreciated.</p>

<p>EDIT: Yes, I have included the permission android.permission.CALL_PHONE. Will look through Logcat soon and post details - tahnk you.</p>
