Форум для тех, кто программирует под Android
Anonymous
(httplog)-static: issbsettingenabled false android
Сообщение
Anonymous » 02 фев 2026, 11:05
Я разрабатываю приложение для Android и работаю на Samsung J7. Проблема в том, что при запуске приложения отображается ошибка «
(httplog)-static: issbsettingenabled false ». Есть ли способ включить httplog true или альтернативный способ решения этой проблемы. Если программно хотите включить это, как это сделать
Код: Выделить всё
private void tryLogin(String log, String pass) {
HttpURLConnection connection;
OutputStreamWriter request = null;
URL url = null;
String response = null;
String parameters = "="+log+"&="+pass;
try
{
url = new URL("http://209.68.26.95/anglertechnologieseit/lc_webservice/webservice.php?Case=loginCheck");
connection = (HttpURLConnection) url.openConnection();
connection.setDoOutput(true);
connection.setRequestProperty("Content-Type", "application/x-www-form-urlencoded");
connection.setRequestMethod("POST");
request = new OutputStreamWriter(connection.getOutputStream());
request.write(parameters);
request.flush();
request.close();
String line = "";
InputStreamReader isr = new InputStreamReader(connection.getInputStream());
BufferedReader reader = new BufferedReader(isr);
StringBuilder sb = new StringBuilder();
while ((line = reader.readLine()) != null)
{
sb.append(line + "\n");
}
stored in response variable.
response = sb.toString();
Toast.makeText(this,"Message from Server: \n"+ response, 0).show();
System.out.println("Message from Serverrrrrrrrrrrr :"+response);
isr.close();
reader.close();
}
catch(IOException e)
{
System.out.println("eeerrrrooorrr"+e);
}
}
Подробнее здесь:
https://stackoverflow.com/questions/355 ... se-android
1770019545
Anonymous
Я разрабатываю приложение для Android и работаю на Samsung J7. Проблема в том, что при запуске приложения отображается ошибка «[b](httplog)-static: issbsettingenabled false[/b]». Есть ли способ включить httplog true или альтернативный способ решения этой проблемы. Если программно хотите включить это, как это сделать [code]private void tryLogin(String log, String pass) { HttpURLConnection connection; OutputStreamWriter request = null; URL url = null; String response = null; String parameters = "="+log+"&="+pass; try { url = new URL("http://209.68.26.95/anglertechnologieseit/lc_webservice/webservice.php?Case=loginCheck"); connection = (HttpURLConnection) url.openConnection(); connection.setDoOutput(true); connection.setRequestProperty("Content-Type", "application/x-www-form-urlencoded"); connection.setRequestMethod("POST"); request = new OutputStreamWriter(connection.getOutputStream()); request.write(parameters); request.flush(); request.close(); String line = ""; InputStreamReader isr = new InputStreamReader(connection.getInputStream()); BufferedReader reader = new BufferedReader(isr); StringBuilder sb = new StringBuilder(); while ((line = reader.readLine()) != null) { sb.append(line + "\n"); } stored in response variable. response = sb.toString(); Toast.makeText(this,"Message from Server: \n"+ response, 0).show(); System.out.println("Message from Serverrrrrrrrrrrr :"+response); isr.close(); reader.close(); } catch(IOException e) { System.out.println("eeerrrrooorrr"+e); } } [/code] [img]https://i.sstatic.net/pOjgZ.jpg[/img] Подробнее здесь: [url]https://stackoverflow.com/questions/35570059/httplog-static-issbsettingenabled-false-android[/url]