We are working on an Android tablet-only app. We need to be able to launch the Google Voice app for a certain telephone number programmatically.
We tried this (which it would probably work to launch the phone if our app wasn't running on a tablet), but it did not work:
var intent = new Intent (Intent.ActionView);
string uri = "tel:" + number;
intent.SetData (Uri.Parse (uri));
activity.StartActivity (intent);
Code ported from Java here.
All it does is popup a box to add the number to a contact--which is not what we want.
Any ideas? We can't find any examples online of doing this, and I'm sure it would use a completely different url scheme, etc.
- NOTE: our app is Mono for Android, but Java answers will work for us just as well