- 博客(25)
- 资源 (7)
- 收藏
- 关注
原创 Linux Driver demo
Kernel demo /** hello.c -- the example of printf "hello world!" in the screen of driver program*/#include #include MODULE_LICENSE("Dual BSD/GPL"); /* declare the license of the module
2011-06-28 17:50:00 429
原创 如何查找内存泄漏
安装eclipse内存分析插件 www.eclipse.org/mat但是,有时候会安装不上!可以直接下载mat, 直接使用exe,当然,不如eclipse方便。 1,进入adb shell, ps想要dump内存堆栈的进程,记录pidps命令,知道进程号app_34 1231 97 259556 26172 ffffffff afd0eb18 S com.andr
2011-06-28 14:47:00 947
原创 aapt
Android Asset Packaging ToolUsage: aapt l[ist] [-v] [-a] file.{zip,jar,apk} List contents of Zip-compatible archive. aapt d[ump] [--values] WHAT file.{apk} [asset [asset ...]] badging
2011-06-27 09:19:00 3794
原创 Testing the features required by your application
from http://developer.android.com/guide/topics/manifest/uses-feature-element.html You can use the aapt tool, included in the Android SDK, to determine how Android Market will filter your applicati
2011-06-27 09:14:00 467
原创 AndroidManifest 之 uses-configuration
uses-configuration,可以指定应用程序支持的每个输入机制的组合.可以指定以下输入设备的任意组合.(1). android:reqFiveWayNav Whether or not the application requires a five-way navigation control — "true" if it does, and "false" if not.
2011-06-27 08:57:00 633
原创 在非锁屏的任意状态下监测HOME键
定义BroadcastReceiver 用于接收 action: android.intent.action.CLOSE_SYSTEM_DIALOGSpublic class HomeKeyPressedReceiver extends BroadcastReceiver { private static final String TAG = "TestReceiver"; pri
2011-06-24 17:50:00 3270
原创 Hello Android 之 Graphics 实例
在Activity中使用自定义View,在View的onDraw方法中手工绘图。 public class Graphics extends Activity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState);
2011-06-24 17:41:00 398
原创 Hello Android 之 Events 实例
1. EventsData 创建events.db数据库文件public class EventsData extends SQLiteOpenHelper { private static final String DATABASE_NAME = "events.db"; private static final int DATABASE_VERSION = 1;
2011-06-24 17:32:00 520
原创 Hello Android 之 第九章 SQL 实战
1. DDL 语句 DDL (Data Definition Language, 数据定义语言), 用来定义表,列名称等。 创建一个包含3列的表: create table mytable( _id integer primary key autoincrement, name text, phone text);2. SQL语句
2011-06-24 17:10:00 325
转载 Android应用程序的内存分析
Dalvik虚拟机支持垃圾收集,但是这不意味着你可以不用关心内存管理。你应该格外注意移动设备的内存使用,在上面内存空间是受到限制的。在这篇文章里面,我们来看看Android SDK里面的一些内存剖析工具(profiling tools)是如何帮助我们修整应用程序的内存使用。 一些内存使用问题是很明显的,例如,如果在每次用户触摸屏幕的时候应用程序有内存泄露,将会有可能触发OutOfMemor
2011-06-17 10:22:00 384
转载 dalvik 虚拟机
什么是Dalvik虚拟机? Google于2007年底正式发布了Android SDK, 作为 Android系统的重要特性,Dalvik虚拟机也第一次进入了人们的视野。它对内存的高效使用,和在低速CPU上表现出的高性能,确实令人刮目相看。依赖于底层Posix兼容的操作系统,它可以简单的完成进程隔离和线程管理。每一个Android应用在底层都会对应一个独立的Dalvik虚拟机实例,其
2011-06-16 17:31:00 520
转载 2011年,编程语言使用排行榜
from: http://www.tiobe.com/index.php/content/paperinfo/tpci/index.html Creating software applications for mobile devices is hot. Think of the recent rise of Objective-C because of the iPhone and i
2011-06-15 09:07:00 466
转载 Android Build System
Android Build SystemRecursive Make Considered Harmful. For those that dont want PDF, here is the Google translated version. Status: Draft (as of May 18, 2006) Contents<!-- this div expands
2011-06-10 20:43:00 608
原创 dexdump反编译Android程序
反编译Android程序目前没有什么好的方法,但是在Android Emulator中可以找到一个名为dexdump(在Android SDK的Tools目标下)的程序,通过dexdump可以查看出apk文件中的dex执行情况,ophone8.com粗略分析出原始java代码是什么样的和Dot Net中的Reflector很像。 android编译器生成的java class相关内容都放到了d
2011-06-10 20:41:00 2083
原创 Thread 中断
1.定义Thread class: class TestThread extends Thread { // TODO Auto-generated method stub public void run() { setName("TestThread"); while (true) { if (isInterrupted()){ return ; }
2011-06-10 17:17:00 317
原创 andriod's pid
Binder.getCallingPid()android.os.Process.myPid(); Toast.makeText(Test.this, "pid = " + Binder.getCallingPid() + " pid == " + android.os.Process.myPid(), Toast.LENGTH_LONG).show();
2011-06-09 11:36:00 429
原创 文本检查与过滤
package com.bst.test;import android.app.Activity;import android.content.Context;import android.os.Bundle;import android.text.Editable;import android.text.InputFilter;import android.text.
2011-06-03 22:21:00 626
转载 10个效果最佳的编程字体
编写程序时,对字体的选择虽然不是最重要的,但也是必不可少的。一个好的字体选择势必会让你事半功倍!10.CourierCourier new是Courier的变形,由于可以轻易的对齐字段的左右边界,是编程中最常用的字体,经常被作为默认字体使用。这个字体看上去很死板,在使用这个字体时最好调整一下大小,并开启anti-aliasing(边缘柔化或抗锯齿)。9.Andale Mono它
2011-06-03 09:34:00 412
原创 InputFilter
<br />1. InputFilter限制大写<br />InputFilter smallFilter = new InputFilter() { @Override public CharSequence filter(CharSequence source, int start, int end, Spanned dest, int dstart, int dend) { for (int i = start; i < end; i++) {
2011-06-02 22:21:00 1170
原创 P4 tips
** sync p4 sync -f /home/qiang.liu/work/project/Gio/...@963532** log p4 filelog filename** diff p4 diff -f filename 和服务器上最新版本比较 p4 diff -f filename@219908 filename@213302 比较第219908和第213302次修改, 基于changelist号 p4 diff2 TrackBrowserActivity.java#
2011-06-02 16:15:00 433
转载 JD-Eclipse
JD-EclipseJD-Eclipse is a plug-in for the Eclipse platform. It allows you to display all the Java sources during your debugging process, eve
2011-06-01 10:32:00 521
原创 Java Decompiler (jd-gui)
<br />http://java.decompiler.free.fr<br /> <br />1).android编译的jar文件: android/out/target/common/obj/APPS/Music_intermediates/classes-full-debug.jar.<br /> <br />2).解压jar文件取得class文件.<br /> <br />3).使用jd-gui反编译.<br />
2011-06-01 10:23:00 592
转载 Apk文件反编译
<br />1.获取apk的资源 图片 <br /> 直接用 WinRAR打开,res/drawable直接拖拽出来即可。 <br />2.xml文件信息 <br /> 虽然能用WinRAR看到里面的xml文件,但是xml是经过优化的,无法直接查看,需要使用apktool 工具 , <br />下载 地址: https://code.google.com/p/android-apktool/ 。 <br />下载 apktool-1.3.1.tar.bz2 和 apktool-install-wind
2011-06-01 09:57:00 692
[Wiley.Linux.Bible.2010.Edition].Christopher.Negus.文字版
2011-12-25
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人