GTalk isConnected

Put your problem here if it does not fit any of the other categories.

GTalk isConnected

Postby cop3rfi3ld » Tue May 13, 2008 10:14 am

Hi, I need an answer to this problem !

Here is my code sample :

try {
if (!user.equals("defaultSession")) {

mGTalkSession = GTalkService.createGTalkSession(user, mdp);

} else {
mGTalkSession = GTalkService.getDefaultSession();
}
if (mGTalkSession == null) {
showMessage("La session n'est pas initialisée...");
setResult(RESULT_CANCELED);
finish();
} else {
if(mGTalkSession.isConnected()){
showMessage("connected");
setResult(RESULT_OK);
finish();
}
else{
showMessage("not Connected");
setResult(RESULT_OK);
finish();
}


the problem is that I can put any username and password, I am never connected, I always receve the "not connected message", although I have a valid gmail username and password I use to login gmail.com.

What can I do to be connected ???

Thank you to answer quickly if you know because I really need it !

Romain
cop3rfi3ld
Freshman
Freshman
 
Posts: 2
Joined: Mon May 05, 2008 12:36 pm

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: No registered users and 19 guests