English | Site Directory

Android - An Open Handset Alliance Project

com.google.android.gtalkservice.ConnectionState

java.lang.Object
com.google.android.gtalkservice.ConnectionState

ConnectionState connection states when making a GTalk connection.

Summary

Constants

      Value  
int  CONNECTED  CONNECTED connected to the server, but not authenticated yet   0x00000003 
int  CONNECTING  CONNECTING connecting to the server   0x00000002 
int  IDLE  IDLE not connected   0x00000000 
int  LOGGED_IN  LOGGED_IN successfully logged in to the XMPP server   0x00000004 
int  PENDING  PENDING in a pending state for automatic reconnection   0x00000001 
int  REQUESTED_ROSTER  REQUESTED_ROSTER the client requested roster from the server   0x00000005 

Public Methods

    final  static  String  toString(int state)
toString get the string representation for the connection state
Methods inherited from class java.lang.Object

Details

Constants

public static final int CONNECTED

CONNECTED connected to the server, but not authenticated yet
Constant Value: 3 (0x00000003)

public static final int CONNECTING

CONNECTING connecting to the server
Constant Value: 2 (0x00000002)

public static final int IDLE

IDLE not connected
Constant Value: 0 (0x00000000)

public static final int LOGGED_IN

LOGGED_IN successfully logged in to the XMPP server
Constant Value: 4 (0x00000004)

public static final int PENDING

PENDING in a pending state for automatic reconnection
Constant Value: 1 (0x00000001)

public static final int REQUESTED_ROSTER

REQUESTED_ROSTER the client requested roster from the server
Constant Value: 5 (0x00000005)

Public Methods

public static final String toString(int state)

toString get the string representation for the connection state

Parameters

state connection state

Returns

  • string representation
Build m5-rc15g - 14 May 2008 12:50