aspose file tools*
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
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: 403
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: 41523
    
  53

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 - my free Android networking tools app
Leonidas Savvides
Ranch Hand

Joined: Jan 31, 2010
Posts: 403
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: 403
Where in Android Ref Manual are these callings to default Apps, Telephone default or Skype?
Monu Tripathi
Rancher

Joined: Oct 12, 2008
Posts: 1369
    
    1

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]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: how call default Telephone App, or Skype App in Android and automatically initial a call