Android Programming Learning Notes

Source: Internet
Author: User

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

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.