apache+tomcat 整合
2015-09-12 14:05
501 查看
如果是用TabHost等展示出的标签效果,希望下面的某项Activity与某个Service绑定,使用普通情况下的bindService(Intent
service, ServiceConnection
conn, int flags);会发现没有效果,通过查看日志,发现有一个warn,Binding with unknown activity: android.os.BinderProxy@407074a8
解决办法:使用如下方式进行绑定(Service记得在AndroidManifest.xml中声明),在Activity中解除绑定也是一样的要加上getApplicationContext.unbindService(ServiceConnection conn);
service, ServiceConnection
conn, int flags);会发现没有效果,通过查看日志,发现有一个warn,Binding with unknown activity: android.os.BinderProxy@407074a8
解决办法:使用如下方式进行绑定(Service记得在AndroidManifest.xml中声明),在Activity中解除绑定也是一样的要加上getApplicationContext.unbindService(ServiceConnection conn);
getApplicationContext().bindService(Intent service, ServiceConnection conn, int flags);
getApplicationContext().unbindService(ServiceConnection conn);
相关文章推荐
- 采用maven 对tomcat 进行自动部署
- JRebel保证tomcat、myeclipse修改源码无需重启服务器
- JRebel保证tomcat、myeclipse修改源码无需重启服务器
- Linux 下启动、关闭tomcat 杀掉进程等命令
- AJAX在Tomcat8下传值问题。
- servlet及tomcat基本理解
- Tomcat安装、配置、优化及负载均衡详解
- Tomcat安装、配置、优化及负载均衡详解
- eclipse 加载tomcat7的问题,对于低版本也适用。
- IntelliJ IDEA 14.x 与 Tomcat 集成,创建并运行Java Web项目
- How tomcat works学习笔记
- Tomcat6.0启动startup.bat一闪而过
- Tomcat剖析(三):连接器(1)
- tomcat7配置SSL
- linux+nginx+tomcat负载均衡,实现session同步
- maven项目使用外部tomcat7并进行远程热部署
- Tomcat Ip 限制
- CentOS 下对 Nginx + Tomcat 配置 SSL 实现服务器 / 客户端双向认证
- 多实例tomcat管理脚本
- Tomcat 监控