How can I configure javascript-Android to connect to an existing php server?

Source: Internet
Author: User
Hello everyone, my younger brother has recently started programming programs. he wants to develop an Android program to implement the existing network services, the web server is probably logged into a user's mailbox, and can print the hosts table and print the pdf or excel at the top of the page. If you are a beginner,
The younger brother started the zookeeper program recently,
To create an Android program, you can use the existing network services,
The web server is probably logged into a user's mailbox, and can print the hosts table and print the pdf or excel at the top of the page.
How can I complete this program before you start?
Grateful

Reply content:

Hello, everyone,
The younger brother started the zookeeper program recently,
To create an Android program, you can use the existing network services,
The web server is probably logged into a user's mailbox, and can print the hosts table and print the pdf or excel at the top of the page.
How can I complete this program before you start?
Grateful

If this php service is a web page and has no special features, you can simplyWebViewLoad the webpage.

Either follow the steps below:

  1. Define the function, and then determine the api provided by the server

  2. Compile the Android interface and business, and use OkHttp, Retrofit, AndroidAsyncHttp and other frameworks for network connection.

Directly obtain the webpage source code and use jsoup for parsing. if the webpage data is dynamically obtained using js, just grasp the api called by js.

Just use webview. if you don't have to worry about it, just embed a browser.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.