What approach can I take to solve my problem such that my Android app hosts a website (on whatever port > 1024) and also features a way to allow/block incoming client. So far i have tried manually opening a ServerSocket and injecting html then closing the socket, however it only works most of the time and only with Google Chrome…anyone have other ideas?
Share
You could use some small servlet container like jetty – pure java and lightweight enough to fit a phone. Then you can register your servlets and maybe deploy complete war archive