- 博客(4)
- 收藏
- 关注
原创 XML的pull解析方式
*要先将xUtil包导入工程中public class MainActivity extends Activity { private Person person; List list = new ArrayList(); @Override protected void onCreate(Bundle savedInstanceState) { super.onCrea
2016-05-23 08:19:38
199
原创 ActionBar编写方法
public class MainActivity extends FragmentActivity { @SuppressLint("NewApi") TabListener tabListener = new TabListener() { @Override public void onTabUnselected(Tab tab, FragmentTransaction
2016-05-15 21:56:23
166
原创 HttpURLConnection编写方法
public class MainActivity extends Activity {// String path = "http://op.juhe.cn/onebox/news/query?q=普京盟友炮轰OPEC不团结 称其影响油市的时代已终结&key=f2219bf102195209a3db41a58ce0b180"; String path = "http://web.j
2016-05-15 21:54:13
224
原创 HttpClient的post请求
/** * post请求 */ protected void sendPost() { HttpClient httpClient=new DefaultHttpClient(); //通过Post方式请求,设置接口地址 HttpPost httpPost=new HttpPost(path); List parameters=new ArrayL
2016-05-15 21:50:37
206
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人