Friday, 2 November 2012

Call number on button click PhoneStateListener

Call number on Button click in Android and Use of Phone State Listener in Android      This is a simple demo tutorials that will help you to understand how to call a phone number on button click.      An Android allows you to call any phone number from your application. For that you need to call and android intent and have to pass phone number with keyword tel: . To get more updates about this blog click on Join This Site--> You have to pass argument in particular format as describe below: format:  tel:phonenumber Here is an example code to call a number  Intent callIntent = new Intent(Intent.ACTION_CALL); callIntent.setData(Uri.parse("tel:1234567890")); startActivity(callIntent); You need to add following permission in AndroidManifest.xml...

Twitter Delicious Facebook Digg Stumbleupon Favorites More

 
Design by Free WordPress Themes | Bloggerized by Lasantha - Premium Blogger Themes | Bluehost Review