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

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

sql - PostgreSQL automatically update row at specific date -

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