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. Bluetooth and Wifi Connection

Hi,

In my application I need to be able to check available bluetooth(BT)
devices and measuring wifi signals at the same time. I have a set of
BT mac's to check whether they are available or not, meanwhile a
wifiscan should be performed.

I tried to obtain these information by utilizing two services, one for
checking wifi's and second for BT. BT sevice starts
new threads for each BT, in order to continously attempting for
connection. If a connection is established, service cancels it
immediately and creates a "BT Found" event.

This was partly working even the attempt of trying connection to BT
last longer than I needed. The problem was when listed BT is not
available, the results from "Wifi Manager" is corrupted. If there are
10 access points around, generally it gives at scanning results, only
one of them.

Do you have any idea what is wrong in my case??



-- 

2. Android developer site is not working?

Hi,
   why http://www.developer.android.com is not working. Anybody is having
any idea..?

-- 

3. implementation of OnTouchListener is not working in HonyComb (Which is worked properly on 2.3)

4. Getting starts with Honycomb Animation

5. How to select a particular area in a image, eg: a flower in a image ??

6. Configuration localhost ( 10.0.2.2 ) on emulator device

7. Best Eclipse Version.