博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2011年3月24日

摘要: 网络上盛传Android 有四大天王,分别有: Activity,Service, Intent,BroadcastReceiver。 我今天就针对 Activity 说说俺的看法。 An activity is a single, focused thing that the user can do. Almost all activities interact with the user, so the Activity class takes care ofcreating a window for you in which you can place your UI with setC 阅读全文

posted @ 2011-03-24 19:20 nobile.amir 阅读(411) 评论(0) 推荐(0) 编辑

摘要: 想要实现一个自启动的功能,要扑捉系统的开机广播,我理解成时系统启动的广播通知: 不说了,直接上代码: 扑捉系统启动广播通知的类。 要继承系统 BroadcastReceiver类, 并且实现public void onReceive(Context aContext, Intent aIntent),还是看下边的代码:package com.amir.bootflag;import android.content.BroadcastReceiver;import android.content.Context;import android.content.Intent;public clas. 阅读全文

posted @ 2011-03-24 17:22 nobile.amir 阅读(703) 评论(0) 推荐(0) 编辑