开发者

Programming Resources on using Android Networking APIs

I'm trying to learn how to use Networking API in Android (or how to make the app network enabled).

I looked in the following places:

1. Coder-Darcey book "Android: wireless application development" has a short chapter on this. But it is for an ol开发者_StackOverflowder version, 1.5, of Android. I'd like to refer to a more recent & more detailed information.

2. Strangely the developer.android.com site has nothing at all on this.

3. Searched SOF on this, & found this question. The link it refers to is WAY too complex for me to understand.

Anyone happen to know a good reference/website/tutorial for this important topic?

Thanks!


It wasn't very different until honeycomb - but then they stopped you from making network calls in the main thread.

Making a receive thread is pretty simple - but a tutorial is really in order for a decent send thread - ensuring no syncronisation issues between adding stuff to send and sending it....

-- found a work around for the "network in main thread" check... http://www.vogella.com/articles/AndroidNetworking/article.html#networkoverview_apis

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜