hi jeff.

Uri imUri = new
Uri.Builder().scheme("imto").authority("aim").appendPath
("[email protected]").build();
Intent intent = new Intent(Intent.ACTION_SENDTO, imUri);

i have try above code that u have gave me for chatscreen intent but i
am not successful to do the task to open the chatscreen of gtalk and
skype so can u plz give me the code of gtalk and skype.

thanks
jaimin.

On Nov 3, 3:51 am, Jeff Sharkey <[email protected]> wrote:
> 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("[email protected]").build();Intentintent=
>  newIntent(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 <[email protected]> wrote:
> > hi.
> > i have some problem regardingskypeandgtalkintent
> > i have application in which i display a list of onlineskype,gtalk
> > contacts.
> > Now when ever i click my onlineskypeorgtalkcontacts it should
> > display a defaultskypeorgtalkchat window with that Contacts
>
> > So basically i want to know is there anyintentto call Chat screen of
> >SkypeandGtalkonline Contacts
>
> > Right now i haveintentto callskypeandgtalkdefault application
> > login screen
>
> >GTALK-
> >Intenti = newIntent(Intent.ACTION_MAIN);
> >                    i.setComponent(new 
> > ComponentName("com.google.android.talk",
> >                "com.google.android.talk.SigningInActivity"));
> >                    startActivity(i);
>
> >SKYPE-
> >Intenti = newIntent(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 bothSkypeandGtalk
> > 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 [email protected]
> > To unsubscribe from this group, send email to
> > [email protected]
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en
>
> --
> Jeff Sharkey
> [email protected]

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

Reply via email to