上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 16 下一页

2017年6月1日

c# 打开第三方软件(如:电脑自带看图软件)

摘要: 嘿嘿,直接上示例代码 阅读全文

posted @ 2017-06-01 09:28 乐学习 阅读(2059) 评论(0) 推荐(0) 编辑

2017年5月12日

C#操作字符串方法总结<转>

摘要: C#操作字符串方法总结<转> staticvoid Main(string[] args){ string s =""; //(1)字符访问(下标访问s[i]) s ="ABCD"; Console.WriteLine(s[0]); // 输出"A"; Console.WriteLine(s.Len 阅读全文

posted @ 2017-05-12 11:14 乐学习 阅读(179) 评论(0) 推荐(0) 编辑

2017年5月11日

Android之NetworkOnMainThreadException异常

摘要: Android之NetworkOnMainThreadException异常 看名字就应该知道,是网络请求在MainThread中产生的异常 先来看一下官网的解释: Class Overview The exception that is thrown when an application att 阅读全文

posted @ 2017-05-11 11:54 乐学习 阅读(223) 评论(0) 推荐(0) 编辑

2017年5月10日

C#中图片与BASE64码互相转换

摘要: 1 //图片 转为 base64编码的文本 2 private void button1_Click(object sender, EventArgs e) 3 { 4 OpenFileDialog dlg = new OpenFileDialog(); 5 dlg.Multiselect = tru... 阅读全文

posted @ 2017-05-10 15:23 乐学习 阅读(543) 评论(0) 推荐(0) 编辑

2017年5月9日

android实现异步的问题小经验总结

摘要: 1、如下图所言,必须在UI线程中调用异步任务的子类 2、经过碰壁 测试 上述代码会挂掉 证明得出 在非UI中 调用的方法继续开启线程同时有Handler机制会出现异常(因为Handler是异步机制) 实验得出下述代码不会出现异常 阅读全文

posted @ 2017-05-09 13:54 乐学习 阅读(259) 评论(0) 推荐(0) 编辑

2017年5月8日

Android中字体颜色的设置

摘要: 1、在Android中经常看到设置的颜色为八位的十六进制的颜色值,例如: 1 2 3 public static final class color { public static final int lightblue=0x7f040000; } 1 2 3 public static final 阅读全文

posted @ 2017-05-08 15:04 乐学习 阅读(17101) 评论(0) 推荐(0) 编辑

2017年5月4日

图片文件和Bitmap之间的转换

摘要: 图片文件转为Bitmap对象String filePath="c:/01.jpg"; Bitmap bitmap=BitmapFactory.decodeFile(filePath); 如果图片过大,可能导致Bitmap对象装不下图片解决办法:String filePath="c:/01.jpg"; 阅读全文

posted @ 2017-05-04 15:40 乐学习 阅读(27301) 评论(0) 推荐(1) 编辑

android 中 系统日期时间的获取

摘要: android 中 系统日期时间的获取 阅读全文

posted @ 2017-05-04 11:03 乐学习 阅读(186) 评论(0) 推荐(0) 编辑

android之Uri的常用几个例子

摘要: 显示网页: 1. Uri uri = Uri.parse("http://www.google.com"); 2. Intent it = new Intent(Intent.ACTION_VIEW,uri); 3. startActivity(it); 显示地图: 1. Uri uri = Uri 阅读全文

posted @ 2017-05-04 10:13 乐学习 阅读(20124) 评论(0) 推荐(0) 编辑

2017年5月3日

android studio生成aar包并在其他工程引用aar包

摘要: android studio生成aar包并在其他工程引用aar包 阅读全文

posted @ 2017-05-03 16:43 乐学习 阅读(124) 评论(0) 推荐(0) 编辑

上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 16 下一页

导航