04 2014 档案
摘要:主界面:未绑定Service单击获取Service数据效果:绑定Service后单击获取Service数据效果下面看HelloBindService代码:package com.luohaibotestdemo12;import android.app.Service;import android....
阅读全文
摘要:定义一个类HelloIntentService:package com.luohaibo.testdemo11;import android.app.IntentService;import android.content.Intent;public class HelloIntentService...
阅读全文
摘要:一个BroadcastReceive例子代码如下:package com.luohaibo.testdemo10;import android.app.Notification;import android.app.NotificationManager;import android.app.Pen...
阅读全文
摘要:在Android中传递数据的方法非常多。主要有以下4种比较常用的的数据传递方法,如下:(1)通过Intent传递数据(2)通过静态(static)变量传递数据(3)通过剪切板(Clipboard)传递数据(4)通过全局对象传递数据
阅读全文
摘要:package com.luohaibo.testdemo08;import android.os.Bundle;import android.app.Activity;import android.util.Log;import android.view.KeyEvent;import andro...
阅读全文
摘要:直接看源代码:package com.luohaibo.testdemo08;import android.os.Bundle;import android.app.Activity;import android.util.Log;import android.view.Menu;import an...
阅读全文
摘要:package com.luohaibo.testdemo06;import java.text.SimpleDateFormat;import java.util.Calendar;import com.luohaibo.testdemo06.R.id;import android.os.Bundle;import android.app.Activity;import android.view.Menu;import android.widget.DatePicker;import android.widget.TextView;import android.widget.TimePick
阅读全文

浙公网安备 33010602011771号