自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(6)
  • 资源 (1)
  • 收藏
  • 关注

原创 Android Activity 生命周期 跟踪完全程序。有日志输出的

package com.lx.activity.task; import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.util.Log; import android.view.View; import android.widget

2012-03-23 11:43:31 1484

原创 根据url下载一张大小为1M左右的图片,然后用个ImageView显示出来。不爆内存的哦!!!

public class NewsletterInfoManager extends TabManager { private static final NewsletterInfoManager INSTANCE = new NewsletterInfoManager(); private ImageFileCache imageFileCache = new ImageFileCac

2012-03-21 15:49:52 3767

原创 获取wifi网络中,终端上的ip地址的方法

public String getWifiIP(){ WifiManager wifiManager = (WifiManager) getSystemService(WIFI_SERVICE); if(WifiManager.WIFI_STATE_ENABLED==wifiManager.getWifiState()){ WifiInfo

2012-03-21 15:39:59 2697

原创 Android 发送普通的post请求的方法

public static String sendRequest(Map params,String url){ String res=null; HttpEntity entity=null; HttpClient client=new DefaultHttpClient(); HttpPost post=new HttpPost(url); List list=new

2012-03-21 15:37:37 1633

原创 从服务器下载文件的方法

public static void downFile(String url,Context cxt) throws Exception{ HttpClient client=new DefaultHttpClient(); HttpPost post=new HttpPost(url); InputStream res=null; BufferedOutputStream b

2012-03-21 15:34:33 1089 1

原创 往服务器连续写7个字节的数据作为命令,但是javabyte类型的范围为-128-127。这样要转换

bos.write(60); Log.i("CommandService","send db playerId:"+PreviewActivity.playerId); byte[] b = new byte[4]; for(int i = 0;i < 4;i++){ b[i] = (byte)(PreviewActivity.playerId >> (2

2012-03-21 15:31:38 1106

《锋利的jQuery》高清扫描PDF带书签目录完整版+源码

《锋利的jQuery》高清扫描PDF带书签目录完整版+源码 《锋利的jQuery》高清扫描PDF带书签目录完整版+源码

2010-07-07

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除