自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(7)
  • 收藏
  • 关注

转载 Android Service 服务(三)—— bindService与remoteService

一、bindService简介 bindService是绑定Service服务,执行service服务中的逻辑流程。 service通过Context.startService()方法开始,通过Context.stopService()方法停止;也可以通过Service.stopSelf()方法或者Service.stopSelfResult()方法来停止自己。只要调用一次st

2012-04-19 13:02:36 834

转载 Android Service 服务(二)—— BroadcastReceiver

一、 BroadcastReceiver简介 BroadcastReceiver,用于异步接收广播Intent,广播Intent是通过调用Context.sendBroadcast()发送、BroadcastReceiver()接收。 广播Intent的发送是通过调用Context.sendBroadcast()、Context.sendOrderedBroadcast()、Conte

2012-04-19 13:01:57 701

转载 Android Service 服务(一)—— Service

一、 Service简介 Service是android 系统中的四大组件之一(Activity、Service、BroadcastReceiver、ContentProvider),它跟Activity的级别差不多,但不能自己运行只能后台运行,并且可以和其他组件进行交互。service可以在和多场合的应用中使用,比如播放多媒体的时候用户启动了其他Activity这个时候程序要在后台继续播放

2012-04-19 13:00:59 943

转载 activity间的传值大全---日后完善

1.值由A.class传递到B.class A.class中: Intent intent = new Intent(); //设置传递方向 intent.setClass(A.this,B.class); //绑定数据 intent.putExtra("username1",username); intent.putExtra("userpwd1"userpwd); /*或者绑定

2012-04-09 10:40:02 806

转载 快速掌握activity的生命周期

activity的生命周期不管是在面试还是在工作中我们都会经常遇到,这当然也是非常基础的,基础也很重要哦,学会activity的生命周期对我们以后开发更健壮的程序会有很大帮助。下面来看一下Activity生命周期图:           为了便于理解,我简单的写了一个Demo,不明白Activity周期的朋友们,可以亲手实践一下,大家按照我的步骤来。        第一步:新

2012-04-06 22:30:54 544

转载 MySql远程连接不支持解决方案

授权法。 A:你想mysql账户myuser使用密码mypassword从任何主机连接到mysql服务器的话,那就在mySQL命令行下输入: GRANT ALL PRIVILEGES ON *.* TO 'myuser'@'%' IDENTIFIED BY 'mypassword' WITH GRANT OPTION; 若上面那条命令还没有奏效,那就使用下面的命令,一定成功! 如果你想允许

2012-04-05 16:21:46 585

转载 Android布局属性

第一类:属性值为true或false  android:layout_centerHrizontal  水平居中  android:layout_centerVertical   垂直居中  android:layout_centerInparent    相对于父元素完全居中  android:layout_alignParentBottom 贴紧父元素的下边缘  android:la

2012-04-04 10:36:16 1037

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除