![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Android知识
iteye_8816
这个作者很懒,什么都没留下…
展开
-
判断Android设备是否连接网络
/** * 判断Android客户端网络是否连接 * @param context * @return 真假 */ public static boolean checkNet(Context context) { try { ConnectivityManager connectivity = (ConnectivityManager) contex...2011-11-10 19:20:52 · 122 阅读 · 0 评论 -
Android联网使用HttpClient 和HttpResponse 小结
可以使用 Android 集成进来的 apache 中关于联网的API。 HttpParams : 保存Http请求设定的参数对象 HttpConnectionParams :提供对Http连接参数进行设定的方法,比如 连接超时时间 等。 HttpClient :发起Http连接请求的对象, HttpResponse :Http 请求返回的响应 最后,...2011-11-12 12:26:41 · 161 阅读 · 0 评论 -
Android系统内置分享到功能
public void onClickShare(View view) { Intent intent=new Intent(Intent.ACTION_SEND); intent.setType("image/*"); intent.putExtra(Intent.EXTRA_SUBJECT, "分享"); ...原创 2011-11-28 16:57:33 · 167 阅读 · 0 评论