/ Published in: Java
a 2-lines code to start a phone call from your Android application
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
try { Intent intent = new Intent(Intent.ACTION_CALL); intent.setData(Uri.parse("tel:+123456")); startActivity(intent); Log.e("SampleApp", "Failed to invoke call", e); }
URL: http://www.lacherstorfer.at/haris_blog/2008/03/android-howto-invoke-a-phone-c.html