Android的输入连接错误 [英] Android input connection error

查看:94
本文介绍了Android的输入连接错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我连接我的Andr​​oid客户端模拟器服务器(Servlet的)。输出流工作正常。服务器打印从客户端发送的消息。服务器已成功发送响应。但Android的输入连接是被动的。在这里,在logcat中所示的错误

I am connecting my android client emulator to server(Servlet). The output stream is working fine. Server is printing the message sent from client. Server is sending response successfully. But the android input connection is passive. Here the error shown in logcat

showStatusIcon on inactive InputConnection

这是什么问题?

What is the problem?


不好意思 showStatusIcon上的非活动InputConnection 不是一个error.logcat显示了这个即使该应用程序工作正常。


I am sorry showStatusIcon on inactive InputConnection is not an error.logcat shows this even if the app is working fine.

它是一种奇怪的情况。从类AI暂且C类和C类,我能够连接到服务器,并获得响应返回。但如果我去从B类C类,我只能从C发送请求到服务器,但我无法从服务器获得响应。服务器工作的所有罚款。
  A级到C服务器(请求和响应两者)正常工作时,A类不打开与服务器本身的任何连接。
但是,如果A类本身首先打开一个到服务器的连接,并根据响应移动到C类A级到C服务器(唯一的要求)的作品
这就是我能够大量的反复试验后找出来。

Its a strange situation. From class A I am going to class C and from class C i am able to connect to server and get the response back. But If i go to class C from Class B, I am only able to send the request from C to server but I am unable to get response from the server. Server is working all fine.
Class A to C to server(request and response both) works fine when class A does not open any connection with the server itself.
But Class A to C to server(only request) works if the class A itself first opens a connection to the server and based on the response moves to class C.
This is what I was able to find out after lot of trial and error.

推荐答案

当在previous页(或类)的输入连接没有被关闭出现这样的问题。请检查您是否已经收在previous类的输入连接 (通过给的Connection.close())。

Such problems occur when the input connection in the previous page(or class) has not been closed. Check whether you've closed the input connection in the previous class (by giving connection.close()).

这篇关于Android的输入连接错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆