Curriculum Design Personal Report--the design and realization of Android dating software based on ARM experiment box personal contribution
- Construction of experimental environment
- Code debugging
- Run successfully on the computer
- Research program code Writing team report
First, the experimental environment
1. Eclipse Software Development environment;
2, ARM experiment Box (HONYAS5PC100);
3, Windows operating system.
Second, the practice content
1. Building and using the Eclipse development environment
2. Create an Android simulator on eclipse
3. Connect the ARM experiment box to the PC machine
4, the project code in the eclipse of the Android simulator and ARM experiment box to achieve;
Iii. Practical steps 3.1 Eclipse's download, installation
Eclipse (official website)
After the download is successful, you can install eclipse directly and execute the Eclipse.exe file.
3.2 Installing the ADT Plugin
1. Open the installed Eclipse, select "Help" on the menu bar and click "Install new software ..." in the pop-up drop-down box.
2, the installation of ADT plug-in online and offline two methods, I find through the Internet, I learned that online installation, because Google's server set up abroad, so this way to install it will be very slow, so I did not use the method of online installation
Instead I took the offline approach: Download the good ADT plug-in compression package to install. The specific steps are: Click the button in the New Open dialog box and Add
click the button in the Open dialog box to Archive
Select the ADT plugin that was saved on the local hard drive in the download package.
- Once the ADT plugin is installed, the Eclipse's toolbar will appear with a row of Android icons
3.3 Installing the Android SDK
Download directory for my Android SDK
- After the download, unzip, unzip my Android SDK path to
E:\android-sdk-windows
- Open the Android SDK installation directory, double-click
SDK Manager
, in the open window first select the version of the SDK you need to install, select all the required packages, the last Install
button began to install, the whole process will be slow.
Finally select the Windows selection on the Eclipes main menu preferrnces
;
In the pop-up dialog box, select the left- Android
hand column, and click the button on the right to choose the Browse...
installation path root of the SDK, clicking the bottom OK button, so the SDK is loaded successfully on eclipse.
(I first installed the SDK API is 27, and later in the process of debugging code found this version is too high, some of the code is not applicable, so then re-downloaded a low version of the API is 10)
3.4 Creating an Android Emulator (AVD)
Open eclipse-> on the Eclipse toolbar, click the icon to open the Android Virsual Device Manager
window;
In the Android Virsual Device Manager
window click on the New button, in the pop-up window name can be arbitrarily taken; target refers to the system version of the simulator; When everything is set, click OK, then a simulator is created.
- When you are finished, select the device and click Start, then the settings screen parameters will pop up, select
Scale display to real size
, then click Lanuch.
- After the virtual appliance starts:
Now, the Android development environment has been successfully built on eclipse.
Import an Android project into eclipse
- Start Eclipse, select
File--Import...
menu, expand General, select Existing Projects into Workspace
Import Project to workspace, click Next button, go to select Project file directory, select a good project directory, click Finish button, wait for import to complete.
function in PC machine
The Date project is the server; The Date_adroid project is an Android client. Right-click on the Date project and double click on Java application in the Run as option to start the server side. Click OK after selecting the server in the pop-up window.
Date_android project, click on Android application in the Run as option. This will launch the Android simulator.
PS: The database has been successfully built:
Connecting Arm labs and PC machines
Connect the serial cable, the power cord, and the USB cable:
The problems encountered in the experiment and the solution of the engineering code in the ARM experiment box
- 1. Pop-up box application Install
Workaround :
直接使用:adb uninstall 文件名更改权限也可以进入cmd直接修改system的权限:adb remount,然后再进入shell去删除文件
- 2. Code Setlatesteventinfo Notification cannot be implemented
Cause Analysis :
setLatestEventInfo该方法找不到,在API Level 11中,该函数已经被替代,不推荐使用了。 在4.0.3平台也就是API Level 15中,使用Notification的setLatestEventInfo()函数时,显示setLatestEventInfo()效果
Workaround : I re-downloaded the low API version, API10 can be used.
Design experience and Harvest
- This lesson has experienced four weeks, from the beginning of the construction of the environment to the back of the slowly familiar, personally feel the need to start from the little things, do when the basic day in the library, check a lot of information, in the process of solving problems, but also get a slow satisfaction.
- This time our topic, also accord with the current life rhythm more and more fast, people's demand, also let us realize, only oneself hand-made, can broaden horizons, keep up with the pace of the times.
Resources
- --eclipse Environment construction of Android development environment
- ANDROIDN notification in the new API (workaround not found Setlatesteventinfo method)
- Androiddevtools-android Development tools Android SDK download android studio download gradle download SDK tools download
- How to install plug-in ADT and SDK tools in eclipse
20155338 Curriculum Design Personal Report--design and implementation of Android dating software based on ARM experiment box