即在TabActivy的TabHost中的Activity如果需要bindService的话,需要先调用getApplicationContext()获取其所属的Activity的上下文环境才能正常bindService,也就是在onCreate()方法中使用this.getApplicationContext().bindService([args…])就可以了,否则bindService将永远失败返回false,remote
service 返回也为null。
$gpg --recv-keys D73GD37771GG(replace the key that you miss)
评论
发表评论