
Android
lv_ye_xian_zong
这个作者很懒,什么都没留下…
展开
-
android异步操作(AsyncTask)笔记
android异步操作(AsyncTask)public class MyAsyncTask extends AsyncTask{ //该方法不运行在UI线程中,不能对UI当中的控件进行设置和修改 @Override protected Void doInBackground(Void... arg0){ //需原创 2013-12-13 11:19:57 · 647 阅读 · 0 评论 -
android http带参数get与post
String baseUrl="127.0.0.1/XXX/XXX";HttpClient client;HttpResponse response=null;InputStream inputStream=null;HttpEntity entity=null;//http带参数get方法public void getMethod(String baseUrl原创 2013-12-14 15:28:00 · 1009 阅读 · 0 评论 -
Android 获取屏幕宽高及像素
//获得手机屏幕的宽高 Display display=getWindowManager().getDefaultDisplay(); Log.i("display", "height-->" + display.getHeight()); Log.i("display", "width-->"+ display.getWidth());原创 2013-12-26 14:27:03 · 952 阅读 · 0 评论 -
android studio assets文件的位置
src-->main-->assets-->XX.htmlandroid studio在project根目录新建assets调用的时候报错找不到文件。原创 2014-03-07 15:07:21 · 917 阅读 · 0 评论