摘要: 编辑快捷键【ALT+/】 显示代码提示,以及代码自动补全功能。【Ctrl+/】 添加注释【Ctrl+D】 删除当前行 窗口快捷键【Ctrl+M】 窗口最大化和还原 查看和定位快捷键 1. 【Ctrl+K】、【Ctrl+Shift+K】 快速向下和向上查找选定的内容,从此不再需要用鼠标单击查找对话框了。 2.. 【Ctrl+J】、【Ctrl+Shift+J】 Incremental Search,很酷的一个查找快捷键。 【Ctrl+Shift+T】 【Ctrl+Shift+R】 【Ctrl+Shift+G】 查找类、方法和属性的引用。这是一个非常实用的快捷键,例如要修改引用某个方法的代码,可以通 阅读全文
posted @ 2013-03-07 13:10 My_苦行僧 阅读(35596) 评论(3) 推荐(4) 编辑
摘要: 1 <!-- android:completionThreshold="1" 输入一个字符之后开始自动匹配 -->2 <AutoCompleteTextView3 android:id="@+id/et_number"4 android:layout_width="match_parent"5 android:layout_height="wrap_content"6 android:completionThreshold="1"7 android:hint="请输入 阅读全文
posted @ 2013-03-07 10:15 My_苦行僧 阅读(317) 评论(0) 推荐(0) 编辑
摘要: 1 package com.android.hzy.mobilesafe.service; 2 3 import java.util.ArrayList; 4 import java.util.List; 5 6 import android.app.ActivityManager; 7 import android.app.ActivityManager.RunningTaskInfo; 8 import android.app.KeyguardManager; 9 import android.app.Service; 10 import android.conte... 阅读全文
posted @ 2013-03-05 22:34 My_苦行僧 阅读(3209) 评论(3) 推荐(1) 编辑
摘要: 1 import android.app.Activity; 2 import android.content.pm.PackageInfo; 3 import android.content.pm.PackageManager; 4 import android.content.pm.PackageManager.NameNotFoundException; 5 import android.content.pm.Signature; 6 import android.os.Bundle; 7 import android.util.Log; 8 9 public class MainA.. 阅读全文
posted @ 2013-02-27 20:33 My_苦行僧 阅读(828) 评论(0) 推荐(0) 编辑
摘要: 1 import android.content.Context; 2 3 public class DensityUtils { 4 5 /** 6 * 把PX转化为dip 7 * @param context 8 * @param px 9 * @return10 */11 public static int px2dip(Context context,float px){12 13 float density = context.getResources().getDispl... 阅读全文
posted @ 2013-02-26 22:10 My_苦行僧 阅读(409) 评论(0) 推荐(0) 编辑
摘要: 1 /** 2 * 得到有Internet访问权限的应用 3 * @return 4 */ 5 public List<TrafficInfo> getInternetTrafficInfos(){ 6 List<TrafficInfo> trafficInofs = new ArrayList<TrafficInfo>(); 7 List<PackageInfo> packageInfos = pm.getInstalledPackages(PackageManager.GET_UNINSTALLED_PACKA... 阅读全文
posted @ 2013-02-26 19:11 My_苦行僧 阅读(396) 评论(0) 推荐(0) 编辑
摘要: 1 <SlidingDrawer 2 android:layout_width="match_parent" 3 android:layout_height="match_parent" 4 android:content="@+id/lv_traffic_manager_content" 5 android:handle="@+id/handle" 6 android:orientation="vertical" > 7 8 <!-- ImageView 把手的id必须和Sl 阅读全文
posted @ 2013-02-26 14:08 My_苦行僧 阅读(207) 评论(0) 推荐(0) 编辑
摘要: 1 package com.android.mobilesafe.engine; 2 3 import java.util.ArrayList; 4 import java.util.List; 5 6 import android.content.Context; 7 import android.content.Intent; 8 import android.content.pm.ApplicationInfo; 9 import android.content.pm.PackageManager;10 import android.content.pm.ResolveInfo;1... 阅读全文
posted @ 2013-02-26 14:06 My_苦行僧 阅读(274) 评论(0) 推荐(0) 编辑
摘要: driver:硬件和软件之间的沟通桥梁adb devicesadb -s 设备名称 shellcd proc 属性目录cd uid_stat (uid user id 用户id 每一个应用程序都有自己唯一的uid stat 状态信息)cat 10008 tcp_rcv tcp_snd upd_pkg1000 10008 10010 10054 10065 10084 10108 10124 10126 1013 1013610004 1001 10042 10055 10071 10087 10121 10125 10129 10131 10145程序的uid如果是jav... 阅读全文
posted @ 2013-02-26 10:19 My_苦行僧 阅读(273) 评论(0) 推荐(0) 编辑
摘要: 个人理解:RemoteViews views = new RemoteViews(getPackageName(), R.layout.process_widget);RemoteViews:不在Activity里面的视图可以理解为远程视图,如:widget小桌面,Notification的通知PendingIntent:延时意图(就是对于Intent的封装)。(PendingIntent是不会马上执行,过会儿执行)。 阅读全文
posted @ 2013-02-26 00:09 My_苦行僧 阅读(157) 评论(0) 推荐(0) 编辑