摘要: 一、代码1.xml(1)activity_main.xml 1 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" 2 xmlns:tools="http://schemas.android.com/t 阅读全文
posted @ 2016-02-16 18:00 shamgod 阅读(337) 评论(0) 推荐(0)
摘要: 一、代码 1.xml(1)activity_main.xml 1 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" 2 xmlns:tools="http://schemas.android.com/ 阅读全文
posted @ 2016-02-16 17:57 shamgod 阅读(199) 评论(0) 推荐(0)
摘要: 一、流程 1.编写service,重写onBind(Intent intent),返回自定义的Binder 2.自写义Binder,提供一个可访问的方法,以传递数据 3.点击界面按钮会开启service,过程为,通过Intent的setClass指定要开启的service,再通过bindServic 阅读全文
posted @ 2016-02-16 16:52 shamgod 阅读(213) 评论(0) 推荐(0)
摘要: 一、代码1.xml(1)main.xml 1 <?xml version="1.0" encoding="utf-8"?> 2 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 3 android:ori 阅读全文
posted @ 2016-02-16 16:49 shamgod 阅读(187) 评论(0) 推荐(0)
摘要: 一、代码1.xml(1)main.xml 1 <?xml version="1.0" encoding="utf-8"?> 2 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 3 android:ori 阅读全文
posted @ 2016-02-16 13:02 shamgod 阅读(230) 评论(0) 推荐(0)
摘要: 一、代码1.xml(1)main.xml 1 <?xml version="1.0" encoding="utf-8"?> 2 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 3 android:ori 阅读全文
posted @ 2016-02-16 11:15 shamgod 阅读(164) 评论(0) 推荐(0)
haha