Mykhailo Shchurov | 15 May 2012 08:36
Picon

Launching Google Talk voice chat via startActivity()

Hello,
I'm trying to launch GTalk voice chat with some person like this:

    Uri imUri = new Uri.Builder().scheme("xmpp").authority("gtalk")
    .query("call;type=voice").appendPath("blahblah <at> gmail.com").build();
    Intent intent = new Intent(Intent.ACTION_SENDTO,imUri);
    intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
    startActivity(intent);

And here's the problem: if Google Talk app is already running - then
this code works fine (brings Google Talk activity to front and starts
a voice chat with blahblah <at> gmail.com), but if it's not running - then
this snippet of code simply opens Google Talk Activity but doesn't
suggest to start a voice chat

It's interesting that it works absolutely correctly if I use
"call;type=video", but I need voice.
Thank you.

--

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers <at> googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe <at> googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Gmane