摘要: 继承:父类(SuperClass)和 子类(SonClass)。父类的非私有化属性和方法可以默认继承到子类。Class Sonextends Father{}而如果父类中的私有方法被子类调用的话,则编译报错。父类的构造方法子类不可以继承,更不存在覆盖的问题。(非构造方法可以)如果子类访问父类的构造方... 阅读全文
posted @ 2012-07-04 09:04 aiplus 阅读(171) 评论(0) 推荐(0)
摘要: 面向对象主要针对面向过程。面向过程的基本单元是函数。什么是对象:EVERYTHING IS OBJECT(万物皆对象)所有的事物都有两个方面:有什么(属性):用来描述对象。能够做什么(方法):告诉外界对象有那些功能。后者以前者为基础。大的对象的属性也可以是一个对象。为什么要使用面向对象:首先,面向对... 阅读全文
posted @ 2012-07-04 09:04 aiplus 阅读(152) 评论(0) 推荐(0)
摘要: Android超过iPhone不是一种偶然,而是Android战胜iPhone的一种必然。1、Android价格占优 价廉性能并不低消费者选择产品,价格是必然要考虑的一大因素,iphone虽好,但是价格让一般人望而却步。苹果就像是宝马、奔驰,虽然大家都认为它很好,但是一般人消费不起,只有看的份。而A... 阅读全文
posted @ 2012-07-04 08:49 aiplus 阅读(613) 评论(0) 推荐(0)
摘要: 原文1、在Manifest.xml文件里面用user-permission声明。 2、在程序中用代码实现。getWindow().setFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON, WindowManager.LayoutP... 阅读全文
posted @ 2012-07-02 17:45 aiplus 阅读(183) 评论(0) 推荐(0)
摘要: /** * @param type * 1.Log.i 2.Log.e 3.Log.d * @param tag * @param msg * Log.i(tag, msg); */ static void sLog(int type ,String tag, String ... 阅读全文
posted @ 2012-07-02 17:23 aiplus 阅读(409) 评论(0) 推荐(0)
摘要: package com.demo.database;import java.io.File;import android.app.Activity; import android.app.AlertDialog; import android.content.ContentValues; ... 阅读全文
posted @ 2012-04-23 15:14 aiplus 阅读(198) 评论(0) 推荐(0)
摘要: File f=new File(“路径”)if(f.exist()){f.delete();}///权限 阅读全文
posted @ 2012-04-20 17:14 aiplus 阅读(138) 评论(0) 推荐(0)
摘要: 1. 主分区 挂载点 选择 / (最大空间分配,Ext4,Ext3皆可)2. 逻辑分区 home分区 挂载点 /home3. 交换分区 最小Ext3与Ext4的区别Linuxkernel 自 2.6.28 开始正式支持新的文件系统 Ext4。 Ext4 是 Ext3 的改进版,修改了 Ext3中部分... 阅读全文
posted @ 2012-04-19 09:55 aiplus 阅读(182) 评论(0) 推荐(0)
摘要: “Twenty years from now you will be more disappointed by the things you didn’t do than by the ones you did do. So throw off the bowlines, sail away fro... 阅读全文
posted @ 2012-04-09 09:44 aiplus 阅读(202) 评论(0) 推荐(0)
摘要: 工具代码 public class AsyncUploadImage extends AsyncTask { private static final String TAG = "AsyncUploadImage "; ImageView iv; private HttpURLConnection ... 阅读全文
posted @ 2012-04-01 15:37 aiplus 阅读(185) 评论(0) 推荐(0)
悬浮按钮示例