自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(10)
  • 收藏
  • 关注

原创 查看和修改linux文件属性

查看命令lsattr

2014-06-30 11:19:39 1019

原创 android APP 程序员可操作的初始化顺序

Application与ContentProvider的初始化次序:Application:attachBaseContext()最早执行,然后是ContentProvider:onCreate(),然后是Application:onCreate()。

2014-05-23 17:00:55 899

原创 APK签名和优化对齐验证

jarsigner -verrifyChangeBackgroundWidget_signed.apkzipalign -c -v 4ChangeBackgroundWidget_signed_aligned.apk

2014-05-15 15:07:45 683

原创 android Timer 使用注意事项

/**     * Cancels the {@code Timer} and all scheduled tasks. If there is a     * currently running task it is not affected. No more tasks may be scheduled     * on this {@code Timer}. Subsequent

2014-04-19 19:44:04 1055

原创 queryBroadcastReceivers

eg查找开机启动的组件List list = this    .getPackageManager()    .queryBroadcastReceivers(      new Intent("android.intent.action.BOOT_COMPLETED"),      0);

2014-03-03 14:47:44 8218

原创 Android源码下载和编译

下载和编译环境编译环境必须是64位的Linux系统推荐使用UbuntuUbuntu系统版本不同,下载源代码和编译的配置也不相同 ubuntu12.04及以上版本$ sudo apt-get installgitgnupg flex bisongperfbuild-essential \  zip curl libc6-dev libncurses5-dev:

2014-02-28 15:13:29 766

原创 启动和停止init.rc中的服务

实例演示关闭和启动init.rc中的console 服务service console /system/bin/sh    class core    console    disabled    user shell    group log  代码实现shell :setprop ctl.start service_namesetprop

2014-02-28 11:39:33 3444

原创 android ANR

ANR:Application Not   RespondingLog: /data/anr/trace.txtLog记录以及timeout判定:WindowManagerService.java和ActivityManagerService.java

2014-02-27 11:47:56 537

原创 Android webview 与 JS相互调用

定义JavaScriptInterface类 public class JavaScriptInterface { Context mContext; JavaScriptInterface(Context context) { mContext = context; } //测试函数 public void s

2014-02-26 14:43:24 551

原创 Android按键机制以及按键模拟

按键机制用户点击-->硬件中断-->/dev/input/event*写入一个相应的信号-->android循环读取/dev/input/event*的事件-->分发给WindowManagerServer-->分发到相应的ViewGroup和View 事件分析以手头的测试机为例执行adb shell  getevent,返回结果add device 1: /dev/i

2014-02-25 16:24:47 1351

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除