Android from ignorance to knowing--no.4

Source: Internet
Author: User

Because we do is mobile security defender, so need a map positioning function, yesterday in Baidu Google found some related projects, there are some tutorials, to Baidu official download of the relevant jar package and API, but the project was not so smooth when they built, bug constantly, make heart Tired of the chaos, finally surrender, forgive me this just debut rookie bar. But there are some mistakes that really let me see, never know there is such a thing, through continuous progress, continuous error, and then continue to learn, and finally move forward, this is a virtuous circle.

java.lang.NullPointerException, this is a common exception that novices often encounter--null pointer exceptions. At that time, after this error I kept to look for, have 15 minutes, Leng did not find out which variable is not initialized, finally found that there is a variable defined after not used, it has been reported warning, but I really did not see it.

There is a mistake specifically what is not clear, is in Switch~case there report case error, Baidu said is the version of the problem, need to replace the If~else statement, but the switch statement too large, with if statement indentation too much, and then decisively give up, Today, the compiler has no error, I really doubt the problem of software.

Again to a bottleneck, the general framework has come out, new features bug, creativity has been in the burst, the reality is so skinny, do not know how far we can go ....

Android from ignorance to knowing--no.4

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.