自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(25)
  • 资源 (7)
  • 收藏
  • 关注

原创 常用网站

1). 软件工具查询http://alternativeto.net/ 

2011-06-29 08:54:00 435

原创 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 419

原创 如何查找内存泄漏

安装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 916

原创 sohu test mail

user: [email protected]:infra1234

2011-06-27 11:23:00 910

原创 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 3770

原创 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 455

原创 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 597

原创 在非锁屏的任意状态下监测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 3255

原创 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 388

原创 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 511

原创 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 319

转载 Android应用程序的内存分析

Dalvik虚拟机支持垃圾收集,但是这不意味着你可以不用关心内存管理。你应该格外注意移动设备的内存使用,在上面内存空间是受到限制的。在这篇文章里面,我们来看看Android SDK里面的一些内存剖析工具(profiling tools)是如何帮助我们修整应用程序的内存使用。 一些内存使用问题是很明显的,例如,如果在每次用户触摸屏幕的时候应用程序有内存泄露,将会有可能触发OutOfMemor

2011-06-17 10:22:00 376

转载 dalvik 虚拟机

什么是Dalvik虚拟机?      Google于2007年底正式发布了Android SDK, 作为 Android系统的重要特性,Dalvik虚拟机也第一次进入了人们的视野。它对内存的高效使用,和在低速CPU上表现出的高性能,确实令人刮目相看。依赖于底层Posix兼容的操作系统,它可以简单的完成进程隔离和线程管理。每一个Android应用在底层都会对应一个独立的Dalvik虚拟机实例,其

2011-06-16 17:31:00 507

转载 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 452

转载 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 582

原创 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 2045

原创 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 312

原创 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 420

原创 文本检查与过滤

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 617

转载 10个效果最佳的编程字体

编写程序时,对字体的选择虽然不是最重要的,但也是必不可少的。一个好的字体选择势必会让你事半功倍!10.CourierCourier new是Courier的变形,由于可以轻易的对齐字段的左右边界,是编程中最常用的字体,经常被作为默认字体使用。这个字体看上去很死板,在使用这个字体时最好调整一下大小,并开启anti-aliasing(边缘柔化或抗锯齿)。9.Andale Mono它

2011-06-03 09:34:00 366

原创 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 1155

原创 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 423

转载 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 504

原创 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 581

转载 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 670

[Wiley.Linux.Bible.2010.Edition].Christopher.Negus.文字版

[Wiley.Linux.Bible.2010.Edition].Christopher.Negus.文字版

2011-12-25

advanced-linux-programming

advanced-linux-programming

2011-12-18

ARM-1-overview-2010-06-20

ARM-1-overview-2010-06-20

2011-12-06

HackingHelloWorld-PartIII

HackingHelloWorld-PartIII

2011-12-05

Producing Open Source Software

Producing Open Source Software

2011-12-04

ubuntu pocket guid and reference

ubuntu pocket guid and reference

2011-12-04

[UNIX编程艺术].(美)理曼德.扫描版.pdf

[UNIX编程艺术].(美)理曼德.扫描版.pdf

2011-12-03

空空如也

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

TA关注的人

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