摘要: 1 // 注册2 dateReceiver = new DateReceiver();3 IntentFilter filter = new IntentFilter();4 filter.addAction(Intent.ACTION_DATE_CHANGED);5 StartUp.this.registerReceiver(dateReceiver, filter); 阅读全文
posted @ 2012-02-22 20:13 灰太狼_lilongmin 阅读(187) 评论(0) 推荐(0) 编辑
摘要: 1. 下列哪些语句关于内存收受接管的申明是正确的? (b )A、 法度员必须创建一个线程来开释内存B、 内存收受接管法度负责开释无用内存C、 内存收受接管法度容许法度员直接开释内存D、 内存收受接管法度可以在指定的时候开释内存对象2. 下面异常是属于Runtime Exception 的是(abcd)(多选) A、ArithmeticException B、IllegalArgumentException C、NullPointerException D、BufferUnderflowException3. Math.round(11.5)便是几许(). Math.round(... 阅读全文
posted @ 2012-02-22 18:23 灰太狼_lilongmin 阅读(845) 评论(0) 推荐(0) 编辑
摘要: 1 public class MyActivity extends Activity{ 2 ... 3 4 public static class Receiver extends BroadcastReceiver{ 5 6 @Override 7 public void onReceive(Context context, Intent intent) { 8 .... 9 }10 11 }12 13 ...14}1 <receiver android:name=".org.dan... 阅读全文
posted @ 2012-02-22 17:50 灰太狼_lilongmin 阅读(1113) 评论(0) 推荐(0) 编辑