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

Pass DB Connection parameters to a Kettle a.k.a PDI table Input step dynamically from Excel -

multithreading - PhantomJS-Node in a for Loop -

c++ - MATLAB .m file to .mex file using Matlab Compiler -