Wednesday, July 27, 2011

opening a Dial-er Screen Android

In order open a Dial-er screen with the mobile no also android provides an intent.

Using this we will go to Dial-er screen.

In order use the intent we have to include a permission in the manifast.xml
<uses-permission android:name = "android.permission.CALL_PHONE"/>

Example:

Intent intent_Call = new Intent(Intent.ACTION_DIAL);
intent_Call.setData(Uri.parse("tel:" + strMobNo)); //strMobNo is the mobile no that we have to pass
startActivity(intent_Call);                                       //like 0123456789

No comments:

Post a Comment