01_Android
文章平均质量分 58
jackie_gnu
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
AlertDialog 处理方法二
使用Java反射机制替换AlertConter中的mHandler, 实现自处理"Done" & "Cancel"按钮.Android中的弹出框在被点击时, 无论点击哪个按钮都会关闭窗口。 但是有的情况下我们不需要立即关闭窗口。下面的情况是弹出框中要求用户输入文件名, 并在点原创 2011-08-11 21:21:17 · 454 阅读 · 0 评论 -
Android make脚本简记
http://quanminchaoren.iteye.com/blog/840918内容提要文档简要整理Android的make脚本的内容。以供备忘和参考。 1. Build LayersBuild Layers描述的是产品的硬件配置情况,据此m转载 2011-08-27 18:06:50 · 549 阅读 · 0 评论 -
Android & proguard
在Android GB中, 当编译user模式时,所有apk会使用proguard进行优化处理,这时在运行状态会出现很多问题,针对于此, Android提供了编译选项解决些问题。方法1:在Android.mk中加入LOCAL_PROGUARD_ENABLED := dis原创 2011-08-27 18:00:56 · 464 阅读 · 0 评论 -
MediaScanner Java, JNI, mediaservice 调用关系
/** * Internal service helper that no-one should use directly. * * The way the scan currently works is: * - The Java MediaScannerSer原创 2011-08-25 10:26:31 · 618 阅读 · 0 评论 -
Message,MessageQueue,Looper,Handler详解
from:http://hi.baidu.com/%CE%DE%D0%C4%B1%B1%BE%A9/blog/item/82897fae220a7ad67dd92ad7.html 一、几个关键概念1、MessageQueue:是一种数据结构,见名知义,就是一个消息队列转载 2011-09-21 16:16:56 · 489 阅读 · 0 评论 -
Service and Binder(2)
Aidl生成的接口文件: IRemoteService.java/* * This file is auto-generated. DO NOT MODIFY. * Original file: C:\\Documents and Settings\\qujia原创 2011-09-20 17:45:01 · 669 阅读 · 0 评论 -
Service and Binder(3)
使用RemoteService. 在RemoteService 中调用RemoteServiceCallback. /** * This is a list of callbacks that have been registered with the原创 2011-09-20 18:01:39 · 434 阅读 · 0 评论 -
Service and Binder (4)
AndroidManifest.xml原创 2011-09-20 18:08:09 · 334 阅读 · 0 评论 -
Service and Binder(1)
Aidl定义:IRemoteService.aidlpackage com.bst.test;import com.bst.test.IRemoteServiceCallback;/** * Example of defining an interface原创 2011-09-20 17:40:30 · 404 阅读 · 0 评论 -
Aidl生成的ICalc接口文件
/* * This file is auto-generated. DO NOT MODIFY. * Original file: C:\\Documents and Settings\\userName\\RemoteService\\src\\com\\bst\\t原创 2011-09-20 09:17:14 · 521 阅读 · 0 评论 -
为Android Sdk 关联reference文档
1. Select a JAR or Java project, open the context menu and select Properties > Javadoc Location 2. 加入:file:/D:/Android/Android_3.0/And原创 2011-09-15 11:28:08 · 653 阅读 · 0 评论 -
synchronized 块
方法一.private class Worker implements Runnable { private Object mLock = new Object(); private int spantime = 100; private boole原创 2011-09-15 09:39:41 · 590 阅读 · 0 评论 -
加快Android编译速度
## Include all of the makefiles in the system## Can't use first-makefiles-under here because# --mindepth=2 makes the prunes not work原创 2011-08-27 18:53:01 · 1276 阅读 · 0 评论 -
android.widget.PopupWindow,生成Dialog
public static void showPopupWindow(Context context, View parent) { LayoutInflater inflater = (LayoutInflater) context .getSystemServ原创 2011-08-12 17:25:10 · 913 阅读 · 0 评论 -
Fragment demo
left fragment:package com.easymorse.demos;import android.os.Bundle;import android.support.v4.app.Fragment;import android.view.Layo转载 2011-08-11 08:20:56 · 2201 阅读 · 2 评论 -
Alert Dialog "Done"按钮定义.
在默认情况下,当用户按下AlertDialog 的"Done"按键时,Dialog会自动消失.但有些情况下我们需要它仍然存在不消失, 那如何处理呢?请对照如下代码:package com.example.test;import android.app.Activi原创 2011-08-11 15:29:02 · 682 阅读 · 0 评论 -
preload & preinstall
把apk 或binary可运行文件安装到系统(system.img)中 方法一:################################################################include $(CLEAR_VARS)ALL_PRE原创 2011-09-09 12:51:09 · 876 阅读 · 0 评论 -
查找Intent
Intent shareIntent = new Intent(Intent.ACTION_SEND); String mimeType = "audio/mpeg"; shareIntent.setType(mimeType);原创 2011-09-08 16:56:19 · 510 阅读 · 0 评论 -
socket in Android
srw-rw---- bluetooth bluetooth 2011-01-01 22:52 bluetoothsrw-rw---- bluetooth bluetooth 2011-01-01 22:52 dbussrw-rw---原创 2011-09-07 14:03:12 · 447 阅读 · 0 评论 -
把Activity从taskManager中删除
android:excludeFromRecents = "true" http://schemas.android.com/apk/res/android" package="com.example.test" android:versi原创 2011-09-06 10:51:46 · 746 阅读 · 0 评论 -
Android memory leak using MAT
Eclipse + MAT (Memory Analyzer 1.1.0 (Indigo) Release)mat 更新地址: http://download.eclipse.org/mat/1.1/update-site/archieve 下载地址: Memory原创 2011-09-06 15:00:47 · 666 阅读 · 0 评论 -
ActivityManager
ActivityManager am = (ActivityManager)context.getSystemService(context.ACTIVITY_SERVICE); List info = am.getRunningTasks(10);原创 2011-09-05 22:24:34 · 424 阅读 · 0 评论 -
User模式下内置apk做重签名.
Android.mk:LOCAL_PATH := $(call my-dir)include $(CLEAR_VARS)LOCAL_MODULE := PreloadLOCAL_SRC_FILES := $(LOCAL_MODULE).apkLOCAL原创 2011-09-02 18:19:14 · 456 阅读 · 0 评论 -
MinGW
Welcome to MinGW.org MinGW, a contraction of "Minimalist GNU for Windows", is a minimalist development environment for native Microsoft Windows applications.MinGW provides a complete Open Sour原创 2011-11-07 14:13:50 · 376 阅读 · 0 评论 -
Android NDK隐藏jni动态库的内部符号表
http://www.wzlogs.com/2010/08/2/ndk-hide-dso-symbols.html写过win32程序的朋友对dll导出函数名都很熟悉,大家都可以通过.def文件或者__declspec(dllexport)来指定导出的函数名。在android下,可执行文件或者动态链接库用的是elf格式,和win32的pe格式有所不同。当编译动态链接库时,缺省的编译选项下默认所有转载 2011-12-02 22:24:18 · 8094 阅读 · 2 评论 -
How to tacktrace In Android for Java code
When I debug android app, if I work with Java, I can use Log.d(“TAG”,“xxxx”, new Throwable()) to print backtrace of Java code. This isreally handy for me to find bugs.原创 2011-12-02 22:26:45 · 725 阅读 · 0 评论 -
签名apk
1.生成keystore 生成密钥:keytool -genkey -alias bst.keystore -keyalg RSA -validity 20000 -keystore bst.keystore给APK签名:jarsigner -verbose -keystore bst.keystore -signedjar WiMo_signed.apk WiMo-system.ap原创 2011-11-30 09:08:13 · 1289 阅读 · 0 评论 -
推荐10个Android开源项目
1.Android团队提供的示例项目 如果不是从学习Android SDK中提供的那些样例代码开始,可能没有更好的方法来掌握在Android这个框架上开发。由Android的核心开发团队提供了15个优秀的示例项 目,包含了游戏、图像处理、时间显示、开始菜单快捷方式等。地址:http://code.google.com/p/apps-for-android/2.Remote转载 2011-11-07 22:07:36 · 495 阅读 · 0 评论 -
Android4 Source Analysis - Root-External
http://my.oschina.net/zungyiu/blog/35345Android4 Source Analysis - Root-ExternalA-D E-G H-K L-N O-Q R-T U-W X-Z A-D android-mock/ - http://code.google.com/p/android-m转载 2011-11-29 14:56:57 · 1425 阅读 · 0 评论 -
From Zero to Boot: Porting Android to your ARM platform
http://blogs.arm.com/software-enablement/498-from-zero-to-boot-porting-android-to-your-arm-platform/From Zero to Boot: Porting Android to your ARM platformPosted by ARM Vassilis,7 Comments02转载 2011-11-29 14:54:00 · 891 阅读 · 0 评论 -
在Eclipse中编译apk时,把其他的apk做为库文件导入
用Eclipse进行编译apk时,有时需要把其他的apk做为库导入, 方法如下:1.创建做为库导入的apk项目, 与正常的apk没有什么区别,除了在default.properties文件中添加定义android.library=true,标识此apk做为库导出.2.创建apk导入之前创建的库文件. properties->android->Library->Add... , 你将原创 2011-11-07 19:31:09 · 1383 阅读 · 1 评论 -
使用eclipse来开发Android源码
这里主要参考官方文档https://sites.google.com/a/Android.com/opensource/using-eclipse下面,从官方文档总结出具体怎样用eclipse来开发Android源码1、建立基本的Android开发环境请参考官方文档或>2、编译Android源码Android源码根目录下通过make进行编译,请注意一些配置,具体可参考>转载 2011-11-07 17:26:32 · 711 阅读 · 0 评论 -
android中使用jar库的限制
jar库中不能包含static 方法原创 2011-11-28 13:01:25 · 460 阅读 · 0 评论 -
android I/DEBUG堆栈信息
堆栈错误信息:I/DEBUG ( 30): r0 afd4d4a4 r1 ffffffff r2 7fffffff r3 afd4d4a4I/DEBUG ( 30): r4 00000000 r5 ffffffff r6 00000001 r7 be9f6cccI/DEBUG ( 30): r8 00000000 r9 00000000 10 000转载 2011-11-07 17:19:10 · 534 阅读 · 0 评论 -
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 · 590 阅读 · 0 评论 -
与browser相关的代码
external/libxml2, external/v8, external/webkit, frameworks/base/core/java/android/webkitlibcore/lunivendor/samsung/common/apps/browser www.webkit.org原创 2011-11-03 10:04:51 · 523 阅读 · 0 评论 -
Android中静态jar库
如何编译也static jar library. 17 # Note: the source code is in java/, not src/, because this code is also part of 18 # the framework library, and build/core/pathmap.mk expects a java/ subdirectory.原创 2011-11-03 08:36:22 · 1453 阅读 · 0 评论 -
如何查找内存泄漏
先打开eclipse 看看自己的是不是android-sdk-windows-1.6_r1 sdk android-sdk-windows-1.6_r1\tools 里面有ddms.bat 运行这个bat文件 之后会生成tool Dalvik Debug Monitor 上端有sysinfo这个 进去可以看到cpu load 把这个改成memory原创 2011-11-03 10:10:09 · 430 阅读 · 0 评论 -
dex-preopt,使用方法
## Usage: dex-preopt [options] path/to/input.jar path/to/output.odex## This tool runs a host build of dalvikvm in order to preoptimize dex# files that will be run on a device.# The input m原创 2011-11-03 09:20:29 · 2927 阅读 · 0 评论 -
Android利用tcpdump抓包
Android利用tcpdump抓包 Instructions http://source.android.com/porting/tcpdump.htmlSource Code and Documents http://www.tcpdump.org/ Compiled Binary Download http://www.strazzere.com/android/tc转载 2011-11-23 17:09:21 · 5652 阅读 · 1 评论
分享