Home > Mobile >  How to use the browser to access within the local area network (LAN) android app data
How to use the browser to access within the local area network (LAN) android app data

Time:09-29

A project requirements is android app running on the pad, pad is placed in a room to be not moved, need in the same local area network (LAN), in the form of browser to access the inside of the pad app, obtaining data and display on the app,

What is the plan of implementation approach? Remote browser to access, you need to be need in android app to build a set of things, like the web server browser at http://ip and then LAN address: port/CMD/Java -command, similar to the command mode to access the app, and obtain the return values of the app and then displayed in a web page,

And one more thing: the browser the data above will refresh every second, and this how do?

The above general ideas right? There is no easier way? Making or where there is a similar resource can refer to?

CodePudding user response:

Actually it is best to local area network (LAN) in the browser direct access to the app on a page, so data and refresh is not out of the question, but now have no idea,

CodePudding user response:

Why is pad, not computer
This app page data from where come of, if you know the words to write their own h5 directly transferred data line, relaxed many,

If the app can produce the data and their stubbornly to according to your requirement, can only take the pad to build a server, there are two solutions: the rest of the
Mass method: write a heap of interface, write and app synchronized h5, remove the basis of time, if is a person to write every page needs a week or so,
2. Daniel level method: a server, a h5 page, an app code, completely copy the style of app, the app page saved into a video streaming to the h5, h5 display, when the h5 touch in the video request interface to app, then the app to synchronize operations

CodePudding user response:

Is a pad, not the computer, pad with BLE bluetooth communication access to data, the inside of the pad also write their own app, now don't need to put all of the pages are synchronous, he took a page do data display and control,

Use HTML 5 how to access to the app, and keep synchronization refresh (second)?

CodePudding user response:

Including how much if the user wants to access the data page at the same time, whether it is feasible?

CodePudding user response:

At the same time the number of users access should be a digit, need not consider too much and the problem of concurrency,

CodePudding user response:

Then a simple server, search on your own, or a lot
  • Related