Activity Not Found Exception for android.intent.action.CALL
<p>Hi Guys I have encountered a problem which i am not able to trace it down</p>

<p>I have a image Button on which i make the Button to call</p>

<p>But it some times gives me exception like</p>

<pre><code>android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.CALL dat=tel:xxx-xxx-xxxx }
</code></pre>

<p>Which i have tried to solve  i have studied various links but no of them  work for me</p>

<p>What i  have done in code is</p>

<p>// <strong>Function to Call Mobile</strong> </p>

<pre><code>String sPhoneNo="8295000178";
 fnCall(sPhoneNo);
</code></pre>

<p>// <strong>fnCall Function</strong></p>

<pre><code>public void fnCall(String PhoneNo){
    try{
        Intent callIntent=new Intent(Intent.ACTION_CALL);
        callIntent.setData(Uri.parse("tel:"+PhoneNo));
        startActivity(callIntent);
    }
    catch(ActivityNotFoundException ex){
            ex.toString();
            MsgBox(this,ex.toString());
    }
}
</code></pre>

<p>It gives me Exception  likei have tell you before , Any Suggestion Would be Appreciated
Please Help. Thanks!!</p>
