XMPP service, Jabber

by SLY » Wed, 21 Apr 2010 14:19:40 GMT

Sponsored Links
I am currently working on a project which requires a server to request
data from the devices which are currently connected to the server.
Meaning, first the server finds out which devices are connected to the
server and then sends an application specific message to the client
device which should wake certain functionality present on the client,
like for example send out its current location.

I was looking into XMPP service which looked promising since it works
as a PUSH notification. The <presence> in XMPP can be used to check if
the device is currently connected and has subscribed to the server.
Since every android user has a gmail account, I was thinking of using
the gmail xmpp service to connect /subscribe to the server. Then send
specific message to the client, i.e x...@gmail.com. But if a message is
sent this way the client app gets the message as well as the native
gtalk client. So how do I go about intercepting this so that it
doesn't show up on the gtalk client but my app still gets it.

I want the PUSH notification to work, not PUSH.

Please do comment on the above approach. If there is another way to do
this, please do suggest.



Other Threads

1. Camera Surface not getting destroyed when mobile lock

Hi All,

Im facing an issue with the camera Preview. The things that i have
done are

1) forcing the preview Activity to Portrait in Manifest.xml
2) Rotate the camera Preview by an angle 90 degrees using
3) Rotate the captured image by 90 degrees using
params.set("rotation", 90)

If i do this normally, it is working fine. I can able to capture the

But when i lock the screen while showing the preview ,and after unlock
the screen , the surface will not be destroyed before locking the
screen. The camera is released properly in Activity onPause().
Because of not surface destroying the camera should not able to show
the preview in the surface.

I didn't figured out any issue when the activity in "landscape"(In
manifest.xml)  mode..

My requirement is to show the preview in "portrait" mode only..

Is there any issue in my code or is it already present in Android??

Thanks in advance for valuable replies..

Thanks & Regards
Uday Kiran Pichika


2. Needed help for working with Proximity alerts in android

Hi friends i am doing one app which requires to use ProximityIntent
for showing proximity alerts i was surfing from one day but i did'nt
find any sample app which shows it. i found some links but they are
complex please help to find out some useful links

the links i have seen which is complex and not clear is


please help me...


3. the work flow to contact with google for CTS certification

4. MediaRecorder Output Padded - How to Fix?

5. parallel port driver of linux x86

6. how to release Paid upgrade for Free app?

7. How to pass objects around activities using "A HashMap of WeakReferences to Objects"?