I try to access to a socket opened on the emulator but i not find how to !
Code runing on the emulator:
Using java Syntax Highlighting
- try{
- ServerSocket ss = new ServerSocket(8888);
- while(true) {
- Socket s = ss.accept();
- PrintWriter pw = new PrintWriter(s.getOutputStream());
- pw.println("HTTP/1.1 200");
- pw.println("Content-type : text/html\n");
- pw.println("<html>Hello !!</html>");
- pw.close();
- }
- }
- catch(IOException e) {}
Parsed in 0.031 seconds, using GeSHi 1.0.8.4
Runing this code in a java programme work, i can see "Hello !!" in my brrowser at http://localhost:8888/
But this not work with the emulator!
I try lot of thing but nothing work :/ !
How to do this ?
Thank !



