One
To compile the Android program, you have to have an IDE first.
The installation process is available online, very detailed. I will not dwell on it here. (The pit is Google is wall, cause the SDK manager does not move, fortunately modified the hosts file can be downloaded)
Two
It's starting to get serious programming. First create a blank Android project, and then create the AVD ready to run. AVD start is too slow, at first I thought it was stuck ...
Finally can run, but after opening the program actually directly flash back, also returned a "unfortunately, * * * has stopped." This is just teasing me. I'm just a blank project Ah, how could it fail to run. This is not a C language, and without system ("pause") it exits the program directly. And the tone is obviously a mistake in program execution.
Baidu after a bit, found AVD can use Logcat to view the error message. And I've been using the console to see. It seems that you should follow the video to learn first. I learn a lot of detours.
With Logcat found the mistake, Baidu after a bit of solution, know the emulation options in the use of the Host GPU Hook will be able to run normally. And then...... Looking for a long time did not find emulation options in where .... And then...... Baidu found the AvD window to pull large can be seen .... It's not to tease me what I'm doing ...
Finally, after the n wait it started to finish, my first Android program ran successfully.
Android Programming Learning Notes