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