![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
android
文章平均质量分 84
mengboxingx
这个作者很懒,什么都没留下…
展开
-
android2.3与android4.0访问网络的异同
//解决Android4.0不能在主线程中进行HTTP请求//在Android4.0以后,会发现,只要是写在主线程(就是Activity)中的HTTP请求,运行时都会报错,这是因为Android在4.0以后为了防止应用的ANR(aplication Not Response)异常. //就针对此问题有两种解决的方法: //1.可以再Activity的onCr...原创 2014-05-07 11:11:05 · 130 阅读 · 0 评论 -
TabHost 切换带滑动及tab页的数据添加
一、在layout下创建TabHost的home.xml<?xml version="1.0" encoding="utf-8"?><TabHost xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/tabhost" android:layout_...原创 2014-05-22 10:05:59 · 131 阅读 · 0 评论