Well, I get really stuck on this.
Normal HTTP is working fine:

public class Hyper extends Activity {

        private static Logger logger = Logger.getLogger(Hyper.class);

        private static final String HTTP = "http://www.gmx.de";;

        @Override
        public void onCreate(Bundle savedInstanceState) {
                super.onCreate(savedInstanceState);
                setContentView(R.layout.main);

                logger.debug("START");

                try {
                        URL url = new URL(HTTP);
                        URLConnection connection = url.openConnection();
                        connection.setDoOutput(true);
                        connection.setDoInput(true);

                        BufferedReader br = new BufferedReader(new
InputStreamReader(connection.getInputStream()));
                        StringBuffer sb = new StringBuffer();
                        while (br.ready()) {
                                sb.append(br.readLine());
                        }
                        logger.debug("InputStream: " + sb.toString());

                        logger.debug("END");
                } catch (Exception e) {
                        logger.error(e);
                }
        }
}

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to