Android Calling Built In Application

In Android features, there is one of feature is Calling one application from another application smoothly and seamlessly. This feature allows you to integrate various applications on your device to get consistent relation experience between two applications.
This article covers, how can you call application using various ways on your device.
There are many ways to call applications, Its all depends on which application you are going to call. In this article you will learn calling that applications that are commonly available in your Android device.
Such as.
1. Calling phone dialing application
2. Displaying Google Map
3. Launching Google Play
4. Sending Email
5. Sharing Tex Message
6. Opening Image to In Image Viewer application

Calling phone dialing application

To call any specific number from your application via existing phone number dialing application presented in you device, you can launch that app using “tel:” scheme, see here.

When preceding code will run, you will get application launched with phone number which you passed by Intent from your application. See screenshot of phone dialing application. You may see different interface of dialing app on your device.
Calling phone dialing application

Displaying Google Map

To launch google map with specific location from your appliation, you can use “geo:” scheme. For example, you want to open Taj Mahal Location, then just pass location data “geo:27.175076,78.042464” of Taj Mahal. See the code illustrated below.

When the code will run, you may see the map chooser dialog with more or different apps. Like Earth, Maps, Browser etc.
Displaying Google Map
Just choose Maps application from chooser. And you the Google Map will open with location which you passed via Intent using scheme.
Displaying Google Map

Launching Google Play

Some time we may required to redirect the user on Google Play (Google Market) to get another application. In that case you can use “market:” scheme.

The above code will launch Google Play Store and it will display the Number Puzzle app.

Launching Google Play

Sending Email

To send an email from your application. use the following code.

When above code will run, the email program chooser you may see.

Sending Email

For example choose Gmail program

Sending Email

Sharing Tex Message

Some time you may want to send or share a message/content to another app. Such as Facebook or Messaging application. For it you can use following code.

Application chooser will display like below image
Sharing Tex Message

For example choose Messaging application

Sharing Tex Message

Opening Image to In Image Viewer application

If you want to launch an image viewing application to view image from your application, use following code snippet.

You may find chooser with Image viewing applications list.
Opening Image to In Image Viewer application
Opening Image to In Image Viewer application

Download Source

0 replies

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply

Your email address will not be published. Required fields are marked *