Ideally you would use a signaling protocol like SIP to notify your
application that it should poll an HTTP resource see
http://tools.ietf.org/id/draft-roach-sip-http-subscribe-00.txt.
However, I'm not aware of any operator that yet supports SIP routing
directly to a phone.

In the web world, developers are using a technique called COMET to
maintain long lived connections to a client browser over HTTP. This
allows servers to push notifications to browser applications. You
could look into building your server solution using one of the COMET
solutions out there and then hacking on Apache client to get it to
work on the client side. Search google for tips on this.

Another option may be to use XMPP with a long lived connection to your
server.  Android does not include a built in library to support the
protocol (at least in the supported API), but you may be able to find
a java client that you could port ( haven't looked too closely into
this).

All that said, carefully consider whether you really need real time
notifications. Maintaining long lived connections will be a battery
drain and polling a server may be good enough depending on your
application. Clearly a real time chat app is a case where instant
feedback is necessary but polling twitter every 5 minutes for updates
seems good enough.

Dave

On Tue, Jun 30, 2009 at 5:49 AM, Adem KARAKOLLU<[email protected]> wrote:
> How can i response from the server without request.
> I can send httpRequest but i want to server will be able to send any
> response whenever it want. (Server will be able to push to handset)
> Must i install web server to my android ?
> Any idea?
> --
> ADEM KARAKOLLU
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to