V
V
VovaShumel2018-04-03 10:14:41
Android
VovaShumel, 2018-04-03 10:14:41

How to make an HTTP server in an Android application easier and more correct?

There is an Android application written in Java and using SQLite. You need to set up an HTTP server in it in order to access it from a browser on a PC via Wi-Fi, similar to how it is done in https://play.google.com/store/apps/details?id=com....
T .e. as I understand it, there the application raises an HTTP server, and starts listening to requests from a specific port. Upon request, it gives acc. pages. In the browser, you need to go to an address like 192.168.1.42:1234
How is it easiest and most correct to do this?
PS It is undesirable that it requires the Internet to work. Access from the browser to the program is needed simply for more comfortable work with it at the table. And most of the time I work with it directly from the phone, and so far the database is stored only on it. The external server on which the database will be stored, in this case, is probably the right solution, but so far I know even less about it than what I'm asking about.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Artem Spiridonov, 2018-04-03
@VovaShumel

https://github.com/nanohttpd/nanohttpd

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question