File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Leonidas Savvides
Ranch Hand
Posts: 403
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Pie
Posts: 42966
73
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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?
 
Leonidas Savvides
Ranch Hand
Posts: 403
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
in emulator would start default app, or nothing? dashes permitted...in number?

no tried yet but in 1 hour...
 
Leonidas Savvides
Ranch Hand
Posts: 403
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Where in Android Ref Manual are these callings to default Apps, Telephone default or Skype?
 
Monu Tripathi
Rancher
Posts: 1369
1
Android Eclipse IDE Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic