随笔分类 -  Android Beginning

主要是Android开发入门的基础知识点
摘要:首先我们思考一个问题,为什么Android没有自带文件浏览器?一个完整的系统(包含UI),既然有文件系统,那么就必须有一个文件管理器。要不用户怎么管理文件呢。文件管理器的设计并不复杂,但是有很多的细节是跟平台信息相关的,要做一个好的文件管理器并不是那么容易的事情。下面让我看看有什么不容易的。文件图标的关联:Android的GUI系统没有提供一个完整的解决方案。各家实现不同,不具有通用性。比较麻烦的事情。跟程序的关联:打开或者运行的时候,怎么确定用哪个程序打开。Android平台提供的Intent来做一部分这个事情。但是使用Intent的前提是你知道mine type。而这个mine type怎 阅读全文
posted @ 2011-08-25 14:20 左手程序右手诗 阅读(278) 评论(0) 推荐(0)
摘要:public class DeviceFun{ public static String getDeviceID(){ String CPUID = SystemProperties.get( "ro.hardware.cpuid", "0"); return CPUID; } public static void printDeviceInf(String tag){ StringBuilder sb = new StringBuilder(); sb.append("PRODUCT ").append(android.os.Bui 阅读全文
posted @ 2011-07-26 15:08 左手程序右手诗 阅读(9778) 评论(0) 推荐(0)
摘要:重要的基础概念By default, every application runs in its own Linux process. Android starts the process when any of the application's code needs to be executed, and shuts down the process when it's no longer needed and system resources are required by other applications.Each process has its own virtual machi 阅读全文
posted @ 2011-01-15 15:03 左手程序右手诗 阅读(1638) 评论(0) 推荐(0)