Open Forever1Love opened 3 years ago
I meat this problem too!
I fix it by this: AsyncServer mAsyncServer = AsyncServer.getDefault(); AsyncHttpServer mServer = new AsyncHttpServer();
public void start() {
mServer.listen(mAsyncServer, port);
}
public void stop() {
mServer.stop();
mAsyncServer.stop();
}
Thank you very much.
hello,I am a learner of the AndroidAsync, I want to create a HttpServer on a activity ,while the activity is finished, the httpServer shoud be destoryed , I tried it , but When the activity is finished, the httpServer is alive , I can browse the url through my browse.