Quantcast
Channel: Appcelerator Developer Center Q&A Tag Feed (android)
Viewing all articles
Browse latest Browse all 7655

HTTPClient on android.

$
0
0

I had created a httpclient on android for load data from comet service (comet service return data same you Ping to a web address on cmd of window, no limit data return). Sample data.

{"ping": "1407143456.88"}
{"ping": "1407143457.88"}
{"ping": "1407143460.13"}
{"ping": "1407143460.88"} 
{"ping": "1407143461.88"} 
{"ping": "1407143462.88"} 
{"ping": "1407143463.88"}
..... no limit "ping" element if HTTPclient not go to onload
On iOS when data is loading i get xhr.responseText so result same above,at the time different is different result(number of pings), but on Android any time i get, result always equal blank, but when xhr.onload , responseText on iOS and Android is same. Purpose of question i want to know get the data in android same iOS when data is loading from comet service. if any body know , please help me. Thanks .

Viewing all articles
Browse latest Browse all 7655

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>