![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
转的
classtwo5367
这个作者很懒,什么都没留下…
展开
-
Android如何发送Get请求
[code="java"]*URL可以随意改*/ String uriAPI = "http://192.168.1.100:8080/test/test.jsp?u=wangyi&p=456"; /*建立HTTP Get对象*/ HttpGet httpRequest = new HttpGet(uriAPI); t...原创 2010-01-29 23:14:19 · 82 阅读 · 0 评论 -
Android开发中如何执行POST请求
上篇文章我简单描述了在Android开发中如何发送一个Get请求,这篇文章我们探讨下在Android开发中如何执行一个Post请求。首先我们先了解下Get请求和Post请求的区别:表单提交中get和post方式的区别有5点 1.get是从服务器上获取数据,post是向服务器传送数据。 2.get是把参数数据队列加到提交表单的ACTION属性所指的URL中,值和表单内各个字段...原创 2010-01-29 23:15:37 · 112 阅读 · 0 评论 -
Hibernate 一对一实践
最近做的一个工程要用到hibernate的一对一关联,比如论坛的一个主题对应一个作者。 hibernate的一对一关系有两种形式,一种是共享主键方式,另一种是惟一外键方式,因为这里用到的是在主题表里与作者表之间的对应关系,所以介绍的是惟一外键方式的一以一关联。 由于网上很多教程都说得不清楚,给出的实例不能正确运行,所以写下这份笔记,以便以后查询,并与大家分享,如有不对的地方请指正。...原创 2010-02-09 20:51:04 · 95 阅读 · 0 评论 -
Writing an Android Sync Provider: Part 1
One of the highlights of the Android 2.0 SDK is that you can write custom sync providers to integrate with the system contacts, calendars, etc. The only problem is that there’s very little documentati...原创 2010-10-27 17:15:43 · 105 阅读 · 0 评论