随笔分类 -  Android Pro

摘要:reference : http://m.blog.csdn.net/blog/langzxz/45308199reference : http://blog.csdn.net/hyhyl1990/article/details/46842915Android原生是有应用程序权限管理的,即是AppO... 阅读全文
posted @ 2015-12-01 12:11 demoblog 阅读(2295) 评论(0) 推荐(0) 编辑
摘要:reference to : http://bbs.9ria.com/thread-253058-1-1.html在android SDK的framework/base/cmds目录下了,有不少目录,这些目的最终都是build出一个bin文件,再存放到/system/bin目 录下,对于C/CPP写... 阅读全文
posted @ 2015-11-24 23:14 demoblog 阅读(5194) 评论(1) 推荐(0) 编辑
摘要:reference to : http://www.w2bc.com/Article/11768有时候我们写的app要用uid=0的方式启动一个process,framework层和app层是做不到的,只有通过写脚本,利用am来实现。下面是具体步骤:1.创建一个包含Main()方法Java proj... 阅读全文
posted @ 2015-11-24 22:50 demoblog 阅读(948) 评论(0) 推荐(0) 编辑
摘要:reference to : http://blog.csdn.net/wangkaiblog/article/details/46050587本来以为存放在/systen/bin/下的monkey、input、am等adb shell命令都是二进制可执行程,偶尔cat input下,发现不是二进制... 阅读全文
posted @ 2015-11-24 22:32 demoblog 阅读(1972) 评论(0) 推荐(0) 编辑
摘要:reference :http://www.cnblogs.com/ggjucheng/archive/2013/01/13/2858470.html简介awk是一个强大的文本分析工具,相对于grep的查找,sed的编辑,awk在其对数据分析并生成报告时,显得尤为强大。简单来说awk就是把文件逐行的... 阅读全文
posted @ 2015-11-21 13:57 demoblog 阅读(529) 评论(0) 推荐(0) 编辑
摘要:du -sh */reference to :http://blog.chinaunix.net/uid-27164517-id-3299073.htmllinux常用命令的英文单词缩写命令缩写:ls:list(列出目录内容)cd:Change Directory(改变目录)su:switch us... 阅读全文
posted @ 2015-11-19 21:13 demoblog 阅读(544) 评论(0) 推荐(0) 编辑
摘要:reference to : http://hold-on.iteye.com/blog/1017449如果用inputStream对象的available()方法获取流中可读取的数据大小,通常我们调用这个函数是在下载文件或者对文件进行其他处理时获取文件的总大小。以前在我们初学File和inputS... 阅读全文
posted @ 2015-11-17 22:41 demoblog 阅读(821) 评论(0) 推荐(0) 编辑
摘要:参考 :http://blog.csdn.net/gsyzhu/article/details/8102286在java.io.InputStream类中定义了skip这个方法。在API中的描述如下:skippublic long skip(longn) throws IOExce... 阅读全文
posted @ 2015-11-17 22:09 demoblog 阅读(1781) 评论(0) 推荐(1) 编辑
摘要:reference to : http://www.cnblogs.com/shipengzhi/articles/2223100.html 1.synchronized与static synchronized 的区别 synchronized是对类的当前实例进行加锁,防止其他线程同时访问该类的该... 阅读全文
posted @ 2015-11-14 18:55 demoblog 阅读(1690) 评论(0) 推荐(0) 编辑
摘要:参考:http://bbs.chinapyg.com/thread-79022-1-1.html官网下载地址 :http://staruml.en.softonic.com各平台版本均适用,本文更改的为Mac版本。​1,打开对应 mac版本的安装包位置,在对应目录/Applications/Star... 阅读全文
posted @ 2015-11-14 18:00 demoblog 阅读(631) 评论(0) 推荐(0) 编辑
摘要:1、创建.aidl 文件AIDL 语法简单,用来声明接口,其中的方法接收参数和返回值,但是参数和返回值的类型是有约束的,且有些类型是需要 import,另外一些则无需这样做。AIDL 支持的数据类型划分为四类,第一类是 Java 编程语言中的基本类型,第二类包括 String、List、Map 和 ... 阅读全文
posted @ 2015-11-10 11:56 demoblog 阅读(14265) 评论(0) 推荐(0) 编辑
摘要:reference to : http://www.infoq.com/cn/articles/android-accessibility-installing?utm_campaign=infoq_content&utm_source=infoq&utm_medium=feed&utm_term=... 阅读全文
posted @ 2015-10-27 21:05 demoblog 阅读(2713) 评论(0) 推荐(0) 编辑
摘要:reference to : http://blog.csdn.net/yihongyuelan/article/details/40977323概况 Android在4.3的版本中(即API 18)加入了NotificationListenerService,根据SDK的描述(AndroidD... 阅读全文
posted @ 2015-10-27 16:31 demoblog 阅读(3534) 评论(0) 推荐(0) 编辑
摘要:1: startService -------stopService (this will call onDestroy)2: bindService -------unbindService (this will call onDestroy)3: startService---bindServ... 阅读全文
posted @ 2015-10-26 20:01 demoblog 阅读(385) 评论(0) 推荐(0) 编辑
摘要:1: AVTest CPU计算方法读取每个进程的 stat 文件 (/proc//stat)计算采样间隔10min下utime的差值minusUtime,stime的差值minusUtime,例如: 初始值Proc 1: utime=110 stime=200Proc 2: utime=400 st... 阅读全文
posted @ 2015-10-21 19:37 demoblog 阅读(1214) 评论(0) 推荐(0) 编辑
摘要:reference : http://bbs.gfan.com/android-8001827-1-1.html2. 刷机和刷入recovery 建议参考 置顶教程: 【15年3月31日更新】Nexus 5 一键刷机教程,刷机一键搞定3. Root首先需要下载以下几个文件:TWRP recovery... 阅读全文
posted @ 2015-10-16 18:15 demoblog 阅读(1770) 评论(0) 推荐(0) 编辑
摘要:Intent intent = packageManager.getLaunchIntentForPackage(WEIXIN_PKGNAME);intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TO... 阅读全文
posted @ 2015-10-10 21:15 demoblog 阅读(273) 评论(0) 推荐(0) 编辑
摘要:reference : http://stackoverflow.com/questions/24590533/how-to-get-recent-tasks-on-android-l/26885469#26885469String topPackageName ;if(Build.VERSION.... 阅读全文
posted @ 2015-10-09 21:53 demoblog 阅读(541) 评论(0) 推荐(0) 编辑
摘要:overide FragmentActivity onSaveInstanceState method like this. @Override public void onSaveInstanceState(Bundle outState) { super.onSaveIns... 阅读全文
posted @ 2015-10-09 11:31 demoblog 阅读(3581) 评论(0) 推荐(0) 编辑
摘要:http://stormzhang.github.io/android/2014/07/24/android-save-image-to-gallery/http://blog.csdn.net/xu_fu/article/details/39158747Adnroid中保存图片的方法可能有如下两种... 阅读全文
posted @ 2015-09-30 21:05 demoblog 阅读(741) 评论(0) 推荐(0) 编辑