tag:blogger.com,1999:blog-89878749563391212.post2989159275628706098..comments2024-03-25T17:53:11.127-07:00Comments on Android-er: Implement simple HTTP server running on AndroidUnknownnoreply@blogger.comBlogger11125tag:blogger.com,1999:blog-89878749563391212.post-53241484878363848652018-07-15T00:04:03.501-07:002018-07-15T00:04:03.501-07:00used as sample. worked at first run,but not inside...used as sample. worked at first run,but not inside the emulator. only on real hardware.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-89878749563391212.post-22730882274589191832018-06-04T06:56:26.877-07:002018-06-04T06:56:26.877-07:00Thank you very much..
It helped and exactly what i...Thank you very much..<br />It helped and exactly what i was looking for..<br />Can we use post instead of get to post additional data.<br />Thanks again.<br />Anonymoushttps://www.blogger.com/profile/04274621287867861365noreply@blogger.comtag:blogger.com,1999:blog-89878749563391212.post-41344735447380455662018-04-18T13:33:12.613-07:002018-04-18T13:33:12.613-07:00@Andr.oid Eric. I think you have a config problem ...@Andr.oid Eric. I think you have a config problem in your dev tool (Android Studio?). Because I use this small web server on a Samsung Galaxy TAB E running Android 4.4 and on a Samsung J2 running 6.01 and in both cases, it work like a charm. I tried it also on a really bad and old "low quality Chinese smartphone" and it works too.Féroce Lapinhttps://www.blogger.com/profile/12365748205826251619noreply@blogger.comtag:blogger.com,1999:blog-89878749563391212.post-44836057009882734532018-04-18T13:22:40.229-07:002018-04-18T13:22:40.229-07:00Just 2 small details:
1) don't forget to add &...Just 2 small details:<br />1) don't forget to add ":8888" after the IP on the URL you write in your browser<br />2) if you use the server from a browser on local network, eveything's OK. But if you use it throught a Javascrit call, using XMLHttpRequest you'll receive... nothing! In fact the server send a http.readyState at 4 (everything OK) but a http.status at 0 rather than 200. To get a http.status at 200 you must add a line in the header sended by the server. You must have:<br />os.print("HTTP/1.1 200 OK" + "\r\n");<br />os.print("Access-Control-Allow-Origin: *" + "\r\n");<br />Hope this will help.Féroce Lapinhttps://www.blogger.com/profile/12365748205826251619noreply@blogger.comtag:blogger.com,1999:blog-89878749563391212.post-51219205801570972732016-03-30T07:19:09.628-07:002016-03-30T07:19:09.628-07:00hello Mridul Gupta,
Yes, I already Updated@2015-1...hello Mridul Gupta,<br /><br />Yes, I already Updated@2015-11-26:<br />This code NOT work on Android 5, may be all 5+ version.<br />Fixed, refer post "socket.getInetAddress() return null on Android 5".Erikhttps://www.blogger.com/profile/04983894331825656853noreply@blogger.comtag:blogger.com,1999:blog-89878749563391212.post-35305285349352532082016-03-30T03:42:48.983-07:002016-03-30T03:42:48.983-07:00Dont socket.close() before reading InetAddress.Dont socket.close() before reading InetAddress.Mridul Guptahttps://www.blogger.com/profile/15779212209286118435noreply@blogger.comtag:blogger.com,1999:blog-89878749563391212.post-6033142943293706472015-11-22T22:50:35.365-08:002015-11-22T22:50:35.365-08:00this application is not working as shown in the vi...this application is not working as shown in the video. I added a few permissions to manifest file but still i don't get logs on the screen. Can anyone help?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-89878749563391212.post-75705883018309814482015-10-20T06:02:23.425-07:002015-10-20T06:02:23.425-07:00How to send image through socket and user can down...How to send image through socket and user can download from it?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-89878749563391212.post-32367529038089191862015-10-18T00:57:04.831-07:002015-10-18T00:57:04.831-07:00I guess it will also require internet permission ...I guess it will also require internet permission <br /> <br />in AndroidManifest.xmlPrasad Kothavalehttps://www.blogger.com/profile/00323724788133287852noreply@blogger.comtag:blogger.com,1999:blog-89878749563391212.post-43344016574439510382015-05-09T05:11:30.227-07:002015-05-09T05:11:30.227-07:00Great Tutorial
Please sir/mam
how to share externa...Great Tutorial<br />Please sir/mam<br />how to share external storage directory and make them downloadable from pc... like wifi file sharing applicationsAnonymoushttps://www.blogger.com/profile/01777537029416584482noreply@blogger.comtag:blogger.com,1999:blog-89878749563391212.post-69439676991632570982015-02-02T03:16:51.240-08:002015-02-02T03:16:51.240-08:00your blog is best.....
how to share external stora...your blog is best.....<br />how to share external storage directory and make them downloadable from pc... like wifi file sharing applicationsAnonymoushttps://www.blogger.com/profile/13946140396628730408noreply@blogger.com