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 -

c# - The item with identity 'Id' already exists in the metadata collection. Parameter name: item -

c++ - Redefined variable in the other module -