• Post Reply Bookmark Topic Watch Topic
  • New Topic

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

 
Leonidas Savvides
Ranch Hand
Posts: 403
  • 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
Posts: 42970
73
  • 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
  • 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
  • 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
  • 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.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!