![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
菜鸟-每天学一点
xiao邵
这个作者很懒,什么都没留下…
展开
-
关于网络
// 检测网络 public static boolean checkNet(Activity act) { ConnectivityManager manager = (ConnectivityManager) act .getApplicationContext().getSystemService( Context.CONNECTIVITY_SERVICE)原创 2012-09-09 22:13:55 · 181 阅读 · 0 评论 -
Toast
// 弹出提示 public static void AlertShort(Activity act, String str, Integer type) { Toast toast = null; if (type == 1) { toast = Toast.makeText(act, str, Toast.LENGTH_SHORT); } else { t原创 2012-09-09 22:20:53 · 229 阅读 · 0 评论 -
SD卡
// 保存图片至SD卡 public static void saveFile(Bitmap bm, String fileName, String root) throws IOException { File dirFile = new File(root); if (!dirFile.exists()) { dirFile.mkdir(); }原创 2012-09-09 22:19:21 · 713 阅读 · 0 评论 -
获取网络数据
// 访问服务器获取数据 public static String getServerData(String url, Map values) { StringBuilder sb = new StringBuilder(); HttpPost httpPost = null; try { httpPost = new HttpPost(url); }原创 2012-09-09 22:10:50 · 303 阅读 · 0 评论