Make Call in Android Application using default call application -


I'm using the following code to call my Android application:

  Intent to intent = new intent (Intent.ACTION_CALL); intent.setData (Uri.parse ("Telephone: 98898988")); StartActivity;   

If Skype is installed in the phone, then this intent opens the Choice, what I want, it should call directly from the default call application.

How do I get it?

use intent.setPackage ("com.android.phone");

Like

  intent = new intent (Intent.ACTION_CALL); intent.setPackage ("com.android.phone"); intent.setData (Uri.parse ("Telephone: 98898988")); StartActivity;   

But the user is better to choose.

Read more

Comments

Popular posts from this blog

asp.net - Procedure or function "Procedure name" expects a parameter "Param name" which was not supplied occurs rarely -

jsp - No mapping found for HTTP request with URI with annotation config Spring MVC and Jetty -

sql server ce - Is there some way to make sqlce3.5 and 4.0 co-exist in the C# project -