Not Able to get self presence and self custom message

by javaid » Sun, 20 Jul 2008 00:05:43 GMT


Sponsored Links
 Hi All,

I was trying to get my self custom message and self presence but i get
custom message as null and presence as 2(do not disturb).
try{

                        mSelfPresence = mGTalkSession.getPresence();
                        Log.i(LOG_TAG, "Custom messgae:"+ 
mSelfPresence.getCustomStatus());
                        int  id =       mSelfPresence.getStatus();
                        Log.e(LOG_TAG, "status:" + id);

} catch (DeadObjectException ex) {
                                Log.e(LOG_TAG, "caught " + ex);
                        }
As i have setup some custom message and am online(5) on my desktop
gtalk client. But couldnt get that through android client.

Is there any other way to get custom message and self presence.

Also I could see some exceptions related to presence while the
emulator boots up. Is this because of this reason.
E/gtalkSrv(  562):      at
com.google.android.gtalkservice.GTalkSession.construc
tException(GTalkSession.java:546)
E/gtalkSrv(  562):      at
com.google.android.gtalkservice.GTalkSession.sendPack
et(GTalkSession.java:566)
E/gtalkSrv(  562):      at
com.google.android.gtalkservice.GTalkSession.sendPack
et(GTalkSession.java:550)
E/gtalkSrv(  562):      at
com.google.android.gtalkservice.GTalkSession.changePr
esence(GTalkSession.java:1269)
E/gtalkSrv(  562):      at
com.google.android.gtalkservice.GTalkSession.setPrese
nce(GTalkSession.java:833)
E/gtalkSrv(  562):      at
com.google.android.gtalkservice.service.GTalkSessionW
rapper.setPresence(GTalkSessionWrapper.java:85)
E/gtalkSrv(  562):      at
com.google.android.gtalkservice.service.GTalkService.
createSessionAndSetPresence(GTalkService.java:300)
E/gtalkSrv(  562):      at
com.google.android.gtalkservice.service.GTalkService.
access$400(GTalkService.java:60)
E/gtalkSrv(  562):      at
com.google.android.gtalkservice.service.GTalkService$
AccountsAndSettingsMonitor.auditGTalkSessions(GTalkService.java:158)
E/gtalkSrv(  562):      at
com.google.android.gtalkservice.service.GTalkService$
AccountsAndSettingsMonitor.onReceiveIntent(GTalkService.java:113)
E/gtalkSrv(  562):      at android.app.ActivityThread$PackageInfo
$ReceiverDispat
cher.run(ActivityThread.java:482)
E/gtalkSrv(  562):      at
android.os.Handler.handleCallback(Handler.java:455)
E/gtalkSrv(  562):      at
android.os.Handler.dispatchMessage(Handler.java:78)
E/gtalkSrv(  562):      at android.os.Looper.loop(Looper.java:91)
E/gtalkSrv(  562):      at
android.app.ActivityThread.main(ActivityThread.java:3
052)
E/gtalkSrv(  562):      at
java.lang.reflect.Method.invokeNative(Native Method)
E/gtalkSrv(  562):      at java.lang.reflect.Method.invoke(Method.java:
356)
E/gtalkSrv(  562):      at android.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteI
nit.java:1547)
E/gtalkSrv(  562):      at android.os.ZygoteInit.main(ZygoteInit.java:
1445)
E/gtalkSrv(  562):      at android.dalvik.NativeStart.main(Native
Method)
I/ActivityManager(  517): Removing activity: Intent
{ comp={com.google.android.g
oogleapps/com.google.android.googleapps.LoginScreen}
extras=Bundle[{service=talk
, username=null}] }

--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. STK inikah?

Ini yang dicari pakcen dan ntil?
|H|G|
sent from NEXUS1

-- 
--------------
"Indonesian Android Community [id-android]" 

2. Cocok jg ya bb n andro ?

Wakakakakaka...maksa lo jim...
sarung g1 lo di todong teman gw pula...di pakein ke miley nya...doh!..

Tapi gpp lah...best friend dia...gw dah dpt sarung yg lain jg...tapi sarung
g1 bagus jg ya

sent from Milestone..The Phone without Compromise!!





glass supply, bb service n supply
YM jchen_success GT cienhua
081973412628
cienhua.blogspot.com

--
--------------
"Indonesian Android Community [id-android]"

3. soft keyboard does not show when creating EditText inside a TableRow dynamically (programmatically )

4. Market Application.

5. How to close one task in special

6. Segfault in Bitmap.getPixel()

7. How to implement the long click event for the ExpandableListView