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. How to load activity before loading all images?

Hi Friends,

I have been struggling with this problem for many days. please help
me..

In my android application i am trying to download images from remote
server dynamically ( no of images dynamically come ).  for downloading
all images it is taking 30 to 40 seconds mean time user has to wait to
see the activity . But it is the worst case that loading activity
after loading all images. I want to load activity first then load
images one by one.

Is there anything to do it?

Thanks and Regards,

Kiran

-- 

2. Permission Categories

Where can I find a listing indicating what level (normal, dangerous,
signature, system) all the available permissions are? I have looked at
the JavaDocs. There is no mention of the level there.

E

-- 

3. org.apache.http.auth Problem

4. alternative markets offers

5. setWallpaper(Bitmap bitmap) just sets default background?

6. Problem running android camera DEMO

7. android.os.DeadObjectException