摘要: 使用场景1,通过startService开启的服务,一旦服务开启,这个服务和开启他的调用者之间就没有任何关系了,调用者不可以访问Service里面的方法,调用者被系统回收或调用了onDestroy方法,Service还会继续存在2,通过bindService开启服务,Service和调用者之间还存在 阅读全文
posted @ 2016-03-07 17:45 gentspy 阅读(649) 评论(0) 推荐(0) 编辑
摘要: onCreate()>onstart()>onDestroy()startService(Intent intent);public boolean bindService(Intent intent,ServiceConnection conn;int flags);*MainActivity.. 阅读全文
posted @ 2016-03-07 17:18 gentspy 阅读(127) 评论(0) 推荐(0) 编辑
摘要: *Property AnimationObjectAnimator anim=ObjectAnimator.ofFloat((textView, "asdfasdf", 0F, 1F);anim.setDuration(2000);anim.addUpdateListener(new Animato 阅读全文
posted @ 2016-03-07 00:07 gentspy 阅读(109) 评论(0) 推荐(0) 编辑