Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
116 views
in Technique[技术] by (71.8m points)

Android input connection error

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?


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

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.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

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()).


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...