A Guide to Mobile and Web Technology(LAMP)

The following code shows how to make phone calls (ie) launch the default phone dialer with the specified number in Android.

String data = "012034034"; //Phone Number

Intent intent = new Intent(Intent.ACTION_DIAL, Uri.parse(data));

this.startActivity(intent);
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: