随笔分类 -  android

摘要:service开发的步骤: 1.继承Service类 2.在AndroidManifest.xml文件中的节点里对服务进行配置: 3.服务不能自己运行,需要通过调用Context.startService()或Context.bindService()方法启动服务public class MainA... 阅读全文
posted @ 2015-01-08 22:29 BigShui 阅读(127) 评论(0) 推荐(0) 编辑
摘要:一:什么是Activity?简单的说:Activity就是布满整个窗口或者悬浮于其他窗口上的交互界面。在一个应用程序中通常由多个Activity构成,都会在Manifest.xml中指定一个主的Activity,如下设置当程序第一次运行时用户就会看这个Activity,这个Activity可以通过启... 阅读全文
posted @ 2015-01-05 17:54 BigShui 阅读(604) 评论(0) 推荐(0) 编辑
摘要:/* 1.静态注册先在androidanifest receiver里面注册reiver 2.在intent事先写入启动广播Intent intent=new Intent(MainActivity.this, MyReceiver.class); 3.广播信息,intent.putExt... 阅读全文
posted @ 2015-01-05 15:48 BigShui 阅读(632) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示