W/IInputConnectionWrapper(1066): showStatusIcon on inactive InputConnection









up vote
36
down vote

favorite
2












Here is my class:



public class Insert extends Activity 


EditText name,surname,age;
Button insert;

@Override
protected void onCreate(Bundle savedInstanceState)

super.onCreate(savedInstanceState);
setContentView(R.layout.insert);
StrictMode.ThreadPolicy policy = new StrictMode.ThreadPolicy.Builder().permitAll().build();

StrictMode.setThreadPolicy(policy);
name =(EditText)findViewById(R.id.name);
surname =(EditText)findViewById(R.id.surname);
age =(EditText)findViewById(R.id.age);
insert=(Button)findViewById(R.id.click);
insert.setOnClickListener(new OnClickListener()

public void onClick(View arg0)

// TODO Auto-generated method stub
String nm = name.getText().toString();
String ct = surname.getText().toString();
String emailid = age.getText().toString();
insertRecords(nm, ct, emailid);

private void insertRecords(String nm,String ct,String emailid)

ArrayList<NameValuePair> nameValuePairs = new ArrayList<NameValuePair>(5);
nameValuePairs.add(new BasicNameValuePair("name", nm));
nameValuePairs.add(new BasicNameValuePair("surname",ct));
nameValuePairs.add(new BasicNameValuePair("age",emailid));
sendData(nameValuePairs);

private void sendData(ArrayList<NameValuePair> data)

try

HttpClient httpclient = new DefaultHttpClient();
HttpPost httppost = new HttpPost("http://10.0.2.2:81/new/insert.php");
httppost.setEntity(new UrlEncodedFormEntity(data));
HttpResponse response = httpclient.execute(httppost);


catch (Exception e)
// TODO: handle exception
Log.e("log_tag", "Error: "+e.toString());


);

...



In LogCat



04-23 12:12:10.263: W/IInputConnectionWrapper(1066): showStatusIcon on inactive InputConnection









share|improve this question























  • can any one help me out with this error
    – user2279350
    Apr 26 '13 at 4:01










  • This may help: stackoverflow.com/questions/9633188/…
    – Gary Kerr
    Jun 4 '13 at 17:39






  • 2




    To get a (good) response, please explain more and better the error you get, where, what's do your app, what are you trying, etc... And put a better tittle too, must be a simple/short explanation of your problem
    – Sulfkain
    May 11 '15 at 10:54










  • Honestly, I think the answer to the question question @GaryKerr linked to is a red herring, since InputConnection is not related at all to InputStreams, which have a close() method. Personally, I believe these messages are part of the pervasive log spam you get on Android and are not necessarily related to any programming errors. For example, this can happen if the soft keyboard is open when an Activity is destroyed, but that is not a programming error.
    – Avi Cherry
    Sep 11 '17 at 2:12










  • add this line: httpClient.getConnectionManager().closeIdleConnections();
    – Mohammad nabil
    Dec 6 '17 at 7:25














up vote
36
down vote

favorite
2












Here is my class:



public class Insert extends Activity 


EditText name,surname,age;
Button insert;

@Override
protected void onCreate(Bundle savedInstanceState)

super.onCreate(savedInstanceState);
setContentView(R.layout.insert);
StrictMode.ThreadPolicy policy = new StrictMode.ThreadPolicy.Builder().permitAll().build();

StrictMode.setThreadPolicy(policy);
name =(EditText)findViewById(R.id.name);
surname =(EditText)findViewById(R.id.surname);
age =(EditText)findViewById(R.id.age);
insert=(Button)findViewById(R.id.click);
insert.setOnClickListener(new OnClickListener()

public void onClick(View arg0)

// TODO Auto-generated method stub
String nm = name.getText().toString();
String ct = surname.getText().toString();
String emailid = age.getText().toString();
insertRecords(nm, ct, emailid);

private void insertRecords(String nm,String ct,String emailid)

ArrayList<NameValuePair> nameValuePairs = new ArrayList<NameValuePair>(5);
nameValuePairs.add(new BasicNameValuePair("name", nm));
nameValuePairs.add(new BasicNameValuePair("surname",ct));
nameValuePairs.add(new BasicNameValuePair("age",emailid));
sendData(nameValuePairs);

private void sendData(ArrayList<NameValuePair> data)

try

HttpClient httpclient = new DefaultHttpClient();
HttpPost httppost = new HttpPost("http://10.0.2.2:81/new/insert.php");
httppost.setEntity(new UrlEncodedFormEntity(data));
HttpResponse response = httpclient.execute(httppost);


catch (Exception e)
// TODO: handle exception
Log.e("log_tag", "Error: "+e.toString());


);

...



In LogCat



04-23 12:12:10.263: W/IInputConnectionWrapper(1066): showStatusIcon on inactive InputConnection









share|improve this question























  • can any one help me out with this error
    – user2279350
    Apr 26 '13 at 4:01










  • This may help: stackoverflow.com/questions/9633188/…
    – Gary Kerr
    Jun 4 '13 at 17:39






  • 2




    To get a (good) response, please explain more and better the error you get, where, what's do your app, what are you trying, etc... And put a better tittle too, must be a simple/short explanation of your problem
    – Sulfkain
    May 11 '15 at 10:54










  • Honestly, I think the answer to the question question @GaryKerr linked to is a red herring, since InputConnection is not related at all to InputStreams, which have a close() method. Personally, I believe these messages are part of the pervasive log spam you get on Android and are not necessarily related to any programming errors. For example, this can happen if the soft keyboard is open when an Activity is destroyed, but that is not a programming error.
    – Avi Cherry
    Sep 11 '17 at 2:12










  • add this line: httpClient.getConnectionManager().closeIdleConnections();
    – Mohammad nabil
    Dec 6 '17 at 7:25












up vote
36
down vote

favorite
2









up vote
36
down vote

favorite
2






2





Here is my class:



public class Insert extends Activity 


EditText name,surname,age;
Button insert;

@Override
protected void onCreate(Bundle savedInstanceState)

super.onCreate(savedInstanceState);
setContentView(R.layout.insert);
StrictMode.ThreadPolicy policy = new StrictMode.ThreadPolicy.Builder().permitAll().build();

StrictMode.setThreadPolicy(policy);
name =(EditText)findViewById(R.id.name);
surname =(EditText)findViewById(R.id.surname);
age =(EditText)findViewById(R.id.age);
insert=(Button)findViewById(R.id.click);
insert.setOnClickListener(new OnClickListener()

public void onClick(View arg0)

// TODO Auto-generated method stub
String nm = name.getText().toString();
String ct = surname.getText().toString();
String emailid = age.getText().toString();
insertRecords(nm, ct, emailid);

private void insertRecords(String nm,String ct,String emailid)

ArrayList<NameValuePair> nameValuePairs = new ArrayList<NameValuePair>(5);
nameValuePairs.add(new BasicNameValuePair("name", nm));
nameValuePairs.add(new BasicNameValuePair("surname",ct));
nameValuePairs.add(new BasicNameValuePair("age",emailid));
sendData(nameValuePairs);

private void sendData(ArrayList<NameValuePair> data)

try

HttpClient httpclient = new DefaultHttpClient();
HttpPost httppost = new HttpPost("http://10.0.2.2:81/new/insert.php");
httppost.setEntity(new UrlEncodedFormEntity(data));
HttpResponse response = httpclient.execute(httppost);


catch (Exception e)
// TODO: handle exception
Log.e("log_tag", "Error: "+e.toString());


);

...



In LogCat



04-23 12:12:10.263: W/IInputConnectionWrapper(1066): showStatusIcon on inactive InputConnection









share|improve this question















Here is my class:



public class Insert extends Activity 


EditText name,surname,age;
Button insert;

@Override
protected void onCreate(Bundle savedInstanceState)

super.onCreate(savedInstanceState);
setContentView(R.layout.insert);
StrictMode.ThreadPolicy policy = new StrictMode.ThreadPolicy.Builder().permitAll().build();

StrictMode.setThreadPolicy(policy);
name =(EditText)findViewById(R.id.name);
surname =(EditText)findViewById(R.id.surname);
age =(EditText)findViewById(R.id.age);
insert=(Button)findViewById(R.id.click);
insert.setOnClickListener(new OnClickListener()

public void onClick(View arg0)

// TODO Auto-generated method stub
String nm = name.getText().toString();
String ct = surname.getText().toString();
String emailid = age.getText().toString();
insertRecords(nm, ct, emailid);

private void insertRecords(String nm,String ct,String emailid)

ArrayList<NameValuePair> nameValuePairs = new ArrayList<NameValuePair>(5);
nameValuePairs.add(new BasicNameValuePair("name", nm));
nameValuePairs.add(new BasicNameValuePair("surname",ct));
nameValuePairs.add(new BasicNameValuePair("age",emailid));
sendData(nameValuePairs);

private void sendData(ArrayList<NameValuePair> data)

try

HttpClient httpclient = new DefaultHttpClient();
HttpPost httppost = new HttpPost("http://10.0.2.2:81/new/insert.php");
httppost.setEntity(new UrlEncodedFormEntity(data));
HttpResponse response = httpclient.execute(httppost);


catch (Exception e)
// TODO: handle exception
Log.e("log_tag", "Error: "+e.toString());


);

...



In LogCat



04-23 12:12:10.263: W/IInputConnectionWrapper(1066): showStatusIcon on inactive InputConnection






android






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jul 5 '17 at 8:26









Daniel Kaparunakis

2,11191626




2,11191626










asked Apr 23 '13 at 13:20









user2279350

181124




181124











  • can any one help me out with this error
    – user2279350
    Apr 26 '13 at 4:01










  • This may help: stackoverflow.com/questions/9633188/…
    – Gary Kerr
    Jun 4 '13 at 17:39






  • 2




    To get a (good) response, please explain more and better the error you get, where, what's do your app, what are you trying, etc... And put a better tittle too, must be a simple/short explanation of your problem
    – Sulfkain
    May 11 '15 at 10:54










  • Honestly, I think the answer to the question question @GaryKerr linked to is a red herring, since InputConnection is not related at all to InputStreams, which have a close() method. Personally, I believe these messages are part of the pervasive log spam you get on Android and are not necessarily related to any programming errors. For example, this can happen if the soft keyboard is open when an Activity is destroyed, but that is not a programming error.
    – Avi Cherry
    Sep 11 '17 at 2:12










  • add this line: httpClient.getConnectionManager().closeIdleConnections();
    – Mohammad nabil
    Dec 6 '17 at 7:25
















  • can any one help me out with this error
    – user2279350
    Apr 26 '13 at 4:01










  • This may help: stackoverflow.com/questions/9633188/…
    – Gary Kerr
    Jun 4 '13 at 17:39






  • 2




    To get a (good) response, please explain more and better the error you get, where, what's do your app, what are you trying, etc... And put a better tittle too, must be a simple/short explanation of your problem
    – Sulfkain
    May 11 '15 at 10:54










  • Honestly, I think the answer to the question question @GaryKerr linked to is a red herring, since InputConnection is not related at all to InputStreams, which have a close() method. Personally, I believe these messages are part of the pervasive log spam you get on Android and are not necessarily related to any programming errors. For example, this can happen if the soft keyboard is open when an Activity is destroyed, but that is not a programming error.
    – Avi Cherry
    Sep 11 '17 at 2:12










  • add this line: httpClient.getConnectionManager().closeIdleConnections();
    – Mohammad nabil
    Dec 6 '17 at 7:25















can any one help me out with this error
– user2279350
Apr 26 '13 at 4:01




can any one help me out with this error
– user2279350
Apr 26 '13 at 4:01












This may help: stackoverflow.com/questions/9633188/…
– Gary Kerr
Jun 4 '13 at 17:39




This may help: stackoverflow.com/questions/9633188/…
– Gary Kerr
Jun 4 '13 at 17:39




2




2




To get a (good) response, please explain more and better the error you get, where, what's do your app, what are you trying, etc... And put a better tittle too, must be a simple/short explanation of your problem
– Sulfkain
May 11 '15 at 10:54




To get a (good) response, please explain more and better the error you get, where, what's do your app, what are you trying, etc... And put a better tittle too, must be a simple/short explanation of your problem
– Sulfkain
May 11 '15 at 10:54












Honestly, I think the answer to the question question @GaryKerr linked to is a red herring, since InputConnection is not related at all to InputStreams, which have a close() method. Personally, I believe these messages are part of the pervasive log spam you get on Android and are not necessarily related to any programming errors. For example, this can happen if the soft keyboard is open when an Activity is destroyed, but that is not a programming error.
– Avi Cherry
Sep 11 '17 at 2:12




Honestly, I think the answer to the question question @GaryKerr linked to is a red herring, since InputConnection is not related at all to InputStreams, which have a close() method. Personally, I believe these messages are part of the pervasive log spam you get on Android and are not necessarily related to any programming errors. For example, this can happen if the soft keyboard is open when an Activity is destroyed, but that is not a programming error.
– Avi Cherry
Sep 11 '17 at 2:12












add this line: httpClient.getConnectionManager().closeIdleConnections();
– Mohammad nabil
Dec 6 '17 at 7:25




add this line: httpClient.getConnectionManager().closeIdleConnections();
– Mohammad nabil
Dec 6 '17 at 7:25












1 Answer
1






active

oldest

votes

















up vote
0
down vote













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



This problem arises when you leave the activity and keep an HTTP connection open. To prevent that, you can try calling



httpClient.getConnectionManager().closeIdleConnections();


You can read the documentation for this method here.






share|improve this answer




















  • InputConnection is not at all related to HTTP connections, it's related to InputMethods.
    – Avi Cherry
    Sep 11 '17 at 2:05










Your Answer






StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f16170449%2fw-iinputconnectionwrapper1066-showstatusicon-on-inactive-inputconnection%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
0
down vote













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



This problem arises when you leave the activity and keep an HTTP connection open. To prevent that, you can try calling



httpClient.getConnectionManager().closeIdleConnections();


You can read the documentation for this method here.






share|improve this answer




















  • InputConnection is not at all related to HTTP connections, it's related to InputMethods.
    – Avi Cherry
    Sep 11 '17 at 2:05














up vote
0
down vote













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



This problem arises when you leave the activity and keep an HTTP connection open. To prevent that, you can try calling



httpClient.getConnectionManager().closeIdleConnections();


You can read the documentation for this method here.






share|improve this answer




















  • InputConnection is not at all related to HTTP connections, it's related to InputMethods.
    – Avi Cherry
    Sep 11 '17 at 2:05












up vote
0
down vote










up vote
0
down vote









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



This problem arises when you leave the activity and keep an HTTP connection open. To prevent that, you can try calling



httpClient.getConnectionManager().closeIdleConnections();


You can read the documentation for this method here.






share|improve this answer












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



This problem arises when you leave the activity and keep an HTTP connection open. To prevent that, you can try calling



httpClient.getConnectionManager().closeIdleConnections();


You can read the documentation for this method here.







share|improve this answer












share|improve this answer



share|improve this answer










answered Jun 11 '15 at 14:11









webo80

2,78052439




2,78052439











  • InputConnection is not at all related to HTTP connections, it's related to InputMethods.
    – Avi Cherry
    Sep 11 '17 at 2:05
















  • InputConnection is not at all related to HTTP connections, it's related to InputMethods.
    – Avi Cherry
    Sep 11 '17 at 2:05















InputConnection is not at all related to HTTP connections, it's related to InputMethods.
– Avi Cherry
Sep 11 '17 at 2:05




InputConnection is not at all related to HTTP connections, it's related to InputMethods.
– Avi Cherry
Sep 11 '17 at 2:05

















 

draft saved


draft discarded















































 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f16170449%2fw-iinputconnectionwrapper1066-showstatusicon-on-inactive-inputconnection%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

27

Top Tejano songwriter Luis Silva dead of heart attack at 64

Category:Rhetoric