Re: [android-developers] skype ,gtalk intent

2009-11-02 Thread Jeff Sharkey
You should really avoid specifying direct ComponentNames, as they can
change in the future, or the user may install a different client to
handle those protocols.

Here's a quick example of how to launch a chat with someone using AIM
when a client is installed:

Uri imUri = new
Uri.Builder().scheme("imto").authority("aim").appendPath("u...@example.com").build();
Intent intent = new Intent(Intent.ACTION_SENDTO, imUri);

You can substitute "gtalk" or "msn" for launching other clients.

j




On Sun, Nov 1, 2009 at 8:53 PM, jaimin mehta  wrote:
> hi.
> i have some problem regarding skype and gtalk intent
> i have application in which i display a list of online skype,gtalk
> contacts.
> Now when ever i click my online skype or gtalk contacts it should
> display a default skype or gtalk chat window with that Contacts
>
> So basically i want to know is there any intent to call Chat screen of
> Skype and Gtalk online Contacts
>
> Right now i have intent to call skype and gtalk default application
> login screen
>
> GTALK -
> Intent i = new Intent(Intent.ACTION_MAIN);
>                    i.setComponent(new ComponentName("com.google.android.talk",
>                "com.google.android.talk.SigningInActivity"));
>                    startActivity(i);
>
> SKYPE -
> Intent i = new Intent(Intent.ACTION_MAIN);
>                        i.setComponent(
>                                        new ComponentName(
>                                                     "com.skype.android.lite",
>                                                     
> "com.skype.android.lite.SkypeActivity"
>                                                     )
>
>                                        );
>                                        startActivity(i);
>
> but i want to display chat screen of both Skype and Gtalk
> can any body help me in my issue
>
> plz its urgent
>
> thanks
> jaimin.
>
> --
> 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@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
Jeff Sharkey
jshar...@android.com

-- 
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@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] skype ,gtalk intent

2009-11-01 Thread jaimin mehta
hi.
i have some problem regarding skype and gtalk intent
i have application in which i display a list of online skype,gtalk
contacts.
Now when ever i click my online skype or gtalk contacts it should
display a default skype or gtalk chat window with that Contacts

So basically i want to know is there any intent to call Chat screen of
Skype and Gtalk online Contacts

Right now i have intent to call skype and gtalk default application
login screen

GTALK -
Intent i = new Intent(Intent.ACTION_MAIN);
i.setComponent(new ComponentName("com.google.android.talk",
"com.google.android.talk.SigningInActivity"));
startActivity(i);

SKYPE -
Intent i = new Intent(Intent.ACTION_MAIN);
i.setComponent(
new ComponentName(
 "com.skype.android.lite",
 
"com.skype.android.lite.SkypeActivity"
 )

);
startActivity(i);

but i want to display chat screen of both Skype and Gtalk
can any body help me in my issue

plz its urgent

thanks
jaimin.

-- 
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@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en