wood burning stoves 2.0*
The moose likes Android and the fly likes how call default Telephone App, or Skype App in Android and automatically initial a call Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Mobile » Android
Bookmark "how call default Telephone App, or Skype App in Android and automatically initial a call" Watch "how call default Telephone App, or Skype App in Android and automatically initial a call" New topic
Author

how call default Telephone App, or Skype App in Android and automatically initial a call

Leonidas Savvides
Ranch Hand

Joined: Jan 31, 2010
Posts: 402
IF A VAR has a SkypeID or a telephone number, how call default Telephone App, or Skype App in Android and automatically initial a call?

Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39568
    
  27

Intent intent = new Intent(Intent.ACTION_CALL);
intent.setData(Uri.parse("tel:555-555-5555"));
activity.startActivity(intent);

This looks OK; does it not work?


Ping & DNS - updated with new look and Ping home screen widget
Leonidas Savvides
Ranch Hand

Joined: Jan 31, 2010
Posts: 402
in emulator would start default app, or nothing? dashes permitted...in number?

no tried yet but in 1 hour...
Leonidas Savvides
Ranch Hand

Joined: Jan 31, 2010
Posts: 402
Where in Android Ref Manual are these callings to default Apps, Telephone default or Skype?
Monu Tripathi
Rancher

Joined: Oct 12, 2008
Posts: 1369

When your application raises a ACTION_CALL intent, the IntentResolver component of the runtime will build a list of all the applications that can cater to this Intent.
If there are more than one client who can serve as a provider, generally a user is displayed a chooser activity from which he/she can choose.

As far as formatting of the telephone number goes, AFAIK, all the numbers defined as per IETF's RFC 3966 are considered valid.


[List of FAQs] | [Android FAQ] | [Samuh Varta]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how call default Telephone App, or Skype App in Android and automatically initial a call
 
Similar Threads
to call a number[default tel app] or place a skype chat[skype app], can you tell me URLs for more he
onClickListener of button does not work
how to create sdcard and mount on the emulator
how to switch from one activity to another activity
Android - How to allow the application to end a phone call