Hi Reto,

thanks a lot for your answers.

Moreover, regarding the last question, I don't know how to make an attempt,
because, as far as I know, I am not able to change the connection settings 
(server IP and port)
that Gtalk classes use in their implementation... Am I missing something?

Thanks a lot anyway.

My best regards,

Stefano

-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf 
Of Reto
Sent: mercoledì 11 giugno 2008 12.00
To: Android Developers
Subject: [android-developers] Re: Questions about using GTalk for P2P 
communication


Hi Sameria,
  I'm not from Google but I've been looking at the GTalk APIs recently
as well, so I'll share what I've found with you:

1. That's what I've found, yes. To send data between applications you
need to use the GTalk specific protocol (rather than the more generic
XMPP). As a result it implies you need to have a GMail account for
data message passing.

2. The IChatSession.sendDataMessage method is a convenience method
that doesn't require a target username. Instead it sends the specified
data to all the participants in that chat session.

3. I've found the same thing, my solution is to always put the name of
the sender in the transmitted intent using a "sender" key in the
extras bundle.

4. Don't know about this. I'd be surprised it it wasn't the same as
the GTalk client though.

5. Again, can't comment on this. Given that the Android GTalk service
uses a specific GTalk protocol rather than 'standard' XMPP you
probably can't get away with your own Jabber server--though it might
be worth a try.

Cheers
Reto

On 9 Jun, 11:04, Semeria Stefano
<[EMAIL PROTECTED]> wrote:
> Hi all,
>
> I need to evaluate Gtalk as p2p communication protocol for future development.
> I read the documentation and did some basic GTalk applications
>
> From the info I collected I have the following questions:
>
> 1.       Every GTalk application shall need a valid gmail account to be able 
> to communicate with other applications. Is this right?
>
> 2.       Every GTalk application shall send text data with 
> IChatSession.sendTextMessage() or generic data in the form of Intents with 
> IChatSession.sendDataMessage() or IGTalkSession.sendDataMessage() . What is 
> the difference (if any) between the two ways?
>
> 3.       Data sent with IChatSession.sendDataMessage() or 
> IGTalkSession.sendDataMessage() shall be retrieved defining an IntentReceiver 
> as broadcast intent. Is that the only way to do it? If so, I'm not able to 
> retrieve info as the sender identity... do I need to manage this on my own, 
> or there's a way to retrieve some more data when receiving the intent?
>
> 4.       Is the Android GTalk implementation the same of the GTalk client or 
> not? Moreover, could you provide some reference about the protocol used by 
> android to send data?
>
> 5.       Is it possible to make test with GTalk API without contacting the 
> google server? I mean, is there a way I could install a gTalk server in my 
> LAN and override the default GTalk API behavior to use it instead of Google's?
>
> That's pretty all,
>
> Thanks a lot for your answers!
>
> My best regards,
>
> Stefano


--~--~---------~--~----~------------~-------~--~----~
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]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to