上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 23 下一页

2016年2月6日

摘要: 转自“http://www.cnblogs.com/hailexuexi/archive/2010/10/09/1846440.html” php 获取系统时间 <?php echo date("Y-m-d h:i:s"); ?> <?php date_default_timezone_set('A 阅读全文
posted @ 2016-02-06 13:45 trako 阅读(218) 评论(0) 推荐(0) 编辑

2016年2月2日

摘要: 默认生成的apk(release版)太大(只打印helloworld的apk大小就有1MB多),需要优化编译,如下,修改build.gradlebuildTypes { release { minifyEnabled true zipAlignEnabled true shrinkResources 阅读全文
posted @ 2016-02-02 11:53 trako 阅读(990) 评论(0) 推荐(0) 编辑
摘要: PackageManager pm = context.getPackageManager(); PackageInfo info = pm.getPackageArchiveInfo(filePath, PackageManager.GET_ACTIVITIES); // filePath为apk 阅读全文
posted @ 2016-02-02 10:10 trako 阅读(294) 评论(0) 推荐(0) 编辑

2016年1月31日

摘要: ALTER TABLE 表名AUTO_INCREMENT = 0; // 从0开始 阅读全文
posted @ 2016-01-31 22:59 trako 阅读(161) 评论(0) 推荐(0) 编辑

2016年1月29日

摘要: 【问题现象】 又花了老半天时间解决这个问题,问题现象提示../util/sql/pdoutil.php文件找不到。假定如下目录: folder1 + file1.php foler2 + file2.php file3.php 已在file2.php包含file1.php,使用require_onc 阅读全文
posted @ 2016-01-29 10:47 trako 阅读(511) 评论(0) 推荐(0) 编辑

2016年1月22日

摘要: public static void print(String text){ boolean debug = true; if (debug) { Context context = BaseApp.getContext(); StackTraceElement stackTrace... 阅读全文
posted @ 2016-01-22 00:10 trako 阅读(389) 评论(0) 推荐(0) 编辑

2016年1月21日

摘要: 【问题1】使用FileOutputStream类写数据到文件中,本来是很简单的实现,但就是生成的文件与原文件大小不一样,排查了一整天,才找到问题原因所在,writer = new FileOutputStream(savePath);byte[] buffer = new byte[2048];wh... 阅读全文
posted @ 2016-01-21 22:44 trako 阅读(265) 评论(0) 推荐(0) 编辑

2016年1月9日

摘要: 转自“http://blog.sina.com.cn/s/blog_9dd7675101012v1h.html”setBackgroundDrawable和setBackgroundColor的用法1.设置背景图片,图片来源于drawable;flightInfoPanel.setBackgroun... 阅读全文
posted @ 2016-01-09 15:22 trako 阅读(212) 评论(0) 推荐(0) 编辑

2016年1月7日

摘要: 找了半天,才找到怎么切换全角和半角shift + 空格 阅读全文
posted @ 2016-01-07 19:39 trako 阅读(319) 评论(0) 推荐(0) 编辑
摘要: 转自“http://blog.csdn.net/shakespeare001/article/details/7843460”android:layout_gravity和android:gravity的区别标签:androidlayoutbuttonencoding2012-08-08 15:53... 阅读全文
posted @ 2016-01-07 17:00 trako 阅读(153) 评论(0) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 23 下一页

导航