From today onwards, we will be under the leadership of the teacher to try to do an Android platform mobile implementation of capturing network packet function of the app.
The first step of the task is to build the programming environment, we choose Eclipse as the tool, build the Android 4.0 environment, and make a HelloWorld program to package the app to confirm the environment.
First, you need to install the Java JDK environment on your computer. Enter the following URL:
Http://www.oracle.com/technetwork/java/javase/downloads/index.html
According to the arrow tip, according to the system to choose the corresponding version, 32-bit system select x86,64 bit system select x64.
32 or 64 bits can be resolved on a pop-up page by selecting "Properties" on "This PC" (Windows 10) or "This PC" (Windows 8) or "Computer" (Windows 7) right-click.
Then follow the prompts to install.
For the IDE, we have selected the Eclipse mars.2 release (4.5.2) version and can download the green package directly on the website:
http://www.eclipse.org/downloads/
Judge 32/64-bit to refer to the previous method.
After the download is a compressed package, after decompression can be used directly without installation.
Double-click to use directly, the first open will be prompted to set workspace (workspace), that is, the default storage location. When set, tick no longer prompt.
Next you need to install the Android development environment for Eclipse:
Select Adt-15.0.0.zip here (click to download).
Tick the next step, and one of the steps needs to be checked for consent before continuing.
The final installation is complete and the next step:
Select Android-sdk-windows (click to download) to extract the folder, then apply and OK.
This completes the configuration of the Android development environment.
--------------------------------------------------------------------------------------------
In order to detect the environment, we will make a HelloWorld program.
Double-click String.xml
Change the blue Word to Hello world!
Right-click on the project:
Select the folder you want to output here.
Select Finish and the packaged apk file appears in the selected folder.
This apk file can be passed to the Android phone, and we can also try the installation in the Android simulator.
-------------------------------------------------------------------------------------------------
You can now open the Android emulator, the interface:
When the simulator starts successfully and the Android interface is displayed, install the APK file into the emulator.
It's easy to package engineering code into the simulator in Eclipse,
Wait a little while to install the app into an open simulator:
Open visible:
So far we have reached all goals.
Android mobile capture App (i) Build environment