Issues 27/02/2013

1. PHP + Sqlite + JSon (server code)

2. Android interpret JSon data

3. URLs

4. screencast

1. 1 服务端返回json格式的数据

echo json_encode(array('data'=>array("hasnext"=>0,"info"=>$rows)));

$rows是查询数据库出来的数组
Json data example:
1. {“value”:[{"nid":"1","title":"迎新","keyword":"迎新","date_time":"1309791386","content":"某某学院将于XX年XX月XX日XX点于XX地举办XX届迎新晚会! "},{"nid":"2","title":"南岭校区艺术活动中心","keyword":"南岭,艺术","date_time":"1309791498","content":"赛后,康永刚处长致闭幕辞,祝贺比赛圆满结束,恭喜参赛选手斩获佳绩。"}]}
2. {"data":{"hasnext":0,"info":[{"username":"\u201c\u6f02\u4eae\u59d1\u5a18\u4f22\u201d\u62db\u52df\u5566\uff01","email":"2011-03-14 16:31:34","avatar":"http:\/\/172.23.23.13\/Server\/images\/1.gif","timestamp":1332122180,"isvip":1},{"username":"\u51e1\u5ba2\u8bda\u54c1\u6b66\u6c49\u63a8\u5e7f\u6d3b\u52a8\u706b\u7206\u767b\u573a","email":"2011-03-17 13:58:17","avatar":"http:\/\/172.23.23.13\/Server\/images\/1.gif","timestamp":1332122180,"isvip":1},{"username":"\u3010\u4e00\u4ed4\u5e26\u4f60\u5403\u3011\u9080\u4f60\u5230\u5df4\u897f\u5361\u7279\u5170\u514d\u8d39\u54c1\u5c1d\u81ea\u52a9\u70e7\u70e4","email":"2011-04-02 09:13:19","avatar":"http:\/\/172.23.23.13\/Server\/images\/1.gif","timestamp":1332122180,"isvip":1}]}}

via android通过json解析到的路径后异步加载网络图片

Android中使用HttpGet方式获取服务器端PHP Json返回数据

php服务器端与android客户端通信问题

Android上解析Json格式数据

Android异步加载网络数据(PHP做服务端返回的json格式)

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

生活在西班牙

自己动手丰衣足食

BlueAsteroid

Just another WordPress.com site

Jing's Blog

Just another WordPress.com site

Start from here......

我的心情魔方

天才遠私廚

希望能做一個分享各種資訊的好地方

语义噪声

西瓜大丸子汤的博客

笑对人生,傲立寰宇

Just another WordPress.com site

Where On Earth Is Waldo?

A Project By Melanie Coles

the Serious Computer Vision Blog

A blog about computer vision and serious stuff

Cauthy's Blog

paper review...

Cornell Computer Vision Seminar Blog

Blog for CS 7670 - Special Topics in Computer Vision

datarazzi

Life through nerd-colored glasses

Luciana Haill

Brainwaves Augmenting Consciousness

槑烎

1,2,∞

Dr Paul Tennent

and the university of nottingham

turn off the lights, please

A bunch of random, thinned and stateless thoughts around the Web

%d bloggers like this: