polling a HTTP server from J2ME client

前端 未结 4 1407
闹比i
闹比i 2021-02-10 22:28

I have a J2ME app running on my mobile phone(client),

I would like to open an HTTP connection with the server and keep polling for updated information on the server.

4条回答
  •  名媛妹妹
    2021-02-10 23:27

    I don't know exactly what you mean by "polling", do you mean something like IMAP IDLE? A connection stays open and there is no overhead for building up the connection itself again and again. As stated, another possible solution is the HEAD Header of a HTTP Request (forgot it, thanks!).

    Look into this tutorial for the basic of HTTP Connections in J2ME.

    Pushing data to an application/device without Push Support (like a Blackberry) is not possible.

提交回复
热议问题