摘要: package com.szy.shared.activity;import android.app.Activity;import android.content.Context;import android.content.SharedPreferences;import android.con... 阅读全文
posted @ 2014-04-29 10:08 阿黄的苹果 阅读(327) 评论(0) 推荐(0) 编辑
摘要: 这块儿还没写呢 阅读全文
posted @ 2014-04-29 09:42 阿黄的苹果 阅读(88) 评论(0) 推荐(0) 编辑
摘要: 复写BroadcastReceiver中的onReceive()方法。intent-filter过滤器: 发送intentprotected static final String ACTION = "com.szy.broadcast.ACTI... 阅读全文
posted @ 2014-04-29 09:20 阿黄的苹果 阅读(98) 评论(0) 推荐(0) 编辑
摘要: 1 package com.szy.status; 2 3 import android.app.IntentService; 4 import android.app.Notification; 5 import android.app.NotificationManager; 6 impor... 阅读全文
posted @ 2014-04-29 08:40 阿黄的苹果 阅读(137) 评论(0) 推荐(0) 编辑
摘要: package com.szy.service;import android.app.IntentService;import android.content.Intent;import android.util.Log;public class ExampleIntentService exten... 阅读全文
posted @ 2014-04-28 22:16 阿黄的苹果 阅读(91) 评论(0) 推荐(0) 编辑
摘要: 1. new MyThread().start();private class MyThread extends Thread { @Override public void run() {Thread.sleep(1000);}} 阅读全文
posted @ 2014-04-28 22:10 阿黄的苹果 阅读(100) 评论(0) 推荐(0) 编辑
摘要: package com.szy.service;import android.app.Service;import android.content.Intent;import android.os.IBinder;import android.util.Log;public class Exampl... 阅读全文
posted @ 2014-04-28 17:55 阿黄的苹果 阅读(109) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2014-04-28 17:34 阿黄的苹果 阅读(99) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2014-04-28 17:20 阿黄的苹果 阅读(71) 评论(0) 推荐(0) 编辑
摘要: package com.szy.activity;import android.app.Activity;import android.content.Intent;import android.os.Bundle;import android.util.Log;import android.vie... 阅读全文
posted @ 2014-04-28 17:07 阿黄的苹果 阅读(157) 评论(0) 推荐(0) 编辑