I'm begining to work with that api, but I think you could change some default files on the emulator just typing adb shell. I've found this file on /system/etc/gservice.xml:
<?xml version="1.0" encoding="utf-8"?> <!-- /* * Copyright (C) 2007 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ --> <gservices version="1"> <!-- /* * PLEASE NEVER modify this by yourself. Perforce will expand this * Revision string automatically. If you ever change it, it will * stop working! * If you want to force the reload of Gservices settings everytime * the database is opened (on device reboot), just comment it out. * When you check it in, remember to uncomment it. */ --> <change count="$Revision: #1 $" /> <!-- /* * Bootstrapping values of provisioning settings. * TODO: These values should be replaced by a bootstrapping process */ --> <gservice label="maps_server_url" value="http://www.google.com/glm/ mmap/a" /> <!-- the new XMPP connection info --> <gservice label="gtalk_hostname" value="talk.google.com" /> <gservice label="gtalk_port" value="5222" /> <gservice label="gtalk_secure_port" value="5223" /> <!-- <gservice label="gtalk_heartbeat_interval_ms" value="120000" / > --> <!-- TODO: change this to use SASL authentication. we want to use non-SASL authentication so the Google XMPP server honors the resource that we specify. --> <gservice label="gtalk_auth_sasl" value="false" /> <gservice label="gtalk_ssl" value="true" /> <gservice label="gtalk_compress" value="false" /> <!-- GoogleLoginService values --> <!-- URI components for the ClientLogin request; see http://code.google.com/apis/accounts/AuthForInstalledApps.html --> <gservice label="google_login_client_auth_host" value="www.google.com" /> <gservice label="google_login_client_default_auth_path" value="/ accounts/ClientLogin" /> <gservice label="google_login_client_youtube_auth_path" value="/ youtube/accounts/ClientLogin" /> <!-- Default connection timeout (msec). Use a fairly long timeout here, since we need to do multiple round-trips for the SSL handshake, and it's not uncommon to see 1-2sec RTTs over GPRS. --> <gservice label="google_login_connection_timeout" value="30000" /> <!-- 30 seconds --> <!-- "Generic" service name to authenticate against --> <gservice label="google_login_generic_auth_service" value="mail" / > <!-- Provisioning Wizard values --> <gservice label="gmail_host" value="gmail.com" /> </gservices> I hope that helps On 11 jun, 12:17, Reto <[EMAIL PROTECTED]> wrote: > Good point. I haven't spotted a way to change those settings either. > > Scratch that idea then... > > On 11 Jun, 11:09, Semeria Stefano > > <[EMAIL PROTECTED]> wrote: > > 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) > > thatGtalkclasses 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 usingGTalkfor P2P > > communication > > > Hi Sameria, > > I'm not from Google but I've been looking at theGTalkAPIs 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 theGTalkspecific 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 > > theGTalkclient though. > > > 5. Again, can't comment on this. Given that the AndroidGTalkservice > > uses a specificGTalkprotocol 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 evaluateGtalkas p2p communication protocol for future > > > development. > > > I read the documentation and did some basicGTalkapplications > > > > From the info I collected I have the following questions: > > > > 1. EveryGTalkapplication shall need a valid gmail account to be > > > able to communicate with other applications. Is this right? > > > > 2. EveryGTalkapplication 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 AndroidGTalkimplementation the same of theGTalkclient or > > > not? Moreover, could you provide some reference about the protocol used > > > by android to send data? > > > > 5. Is it possible to make test withGTalkAPI without contacting the > > > google server? I mean, is there a way I could install agTalkserver in my > > > LAN and override the defaultGTalkAPI behavior to use it instead of > > > Google's? > > > > That's pretty all, > > > > Thanks a lot for your answers! > > > > My best regards, > > > > Stefano- Hide quoted text - > > > - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

