小编Viv*_*vil的帖子

(httplog)-静态:issbsettingenabled false android

我正在开发 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 …
Run Code Online (Sandbox Code Playgroud)

https android servlets adb android-logcat

5
推荐指数
1
解决办法
8721
查看次数

标签 统计

adb ×1

android ×1

android-logcat ×1

https ×1

servlets ×1