First original, do not spray ...
Since the release of android4.4, each handset manufacturers have also followed the trend, launched a fashionable android4.4 mobile phone system, such as Meizu, Xiaomi Samsung. Every time new Android new SDK market, always let us these bitter programmer headache good a while, helpless, since the choice of a distance to only trials and hardships. First of all, we will talk about android4.4 new features to meet the user experience, needs, privacy protection, while the problem to the developers.
Before android4.4, we frequently used the SDK to do some data presentation and form submission for the webview we provided to reduce development costs and iteration iterations for some short-shelf-life activity classes or complex interfaces. This approach let us in android4.4 quietly hit the muzzle, because android4.4 changed the WebView kernel, app embedded browser survival Openfilechooser and Onreceivederror methods early android4.4 on the fight I can't even get the death. The project is anxious to go online, looking for major well-known sites, after the forum without fruit, the leakage of the overnight rain, Google's official website is also due to update the API and blocked. Finally decided to make a judgment at the WebView entrance, android4.4 users can only jump to third-party browser for access. Tested on the company's only test machine--MX3 has been upgraded to 4.4.
Think that this is the end of things, and finally on the line, good excitement, to, the version of the upgrade level, and then point, and then test. Contingency do not know, a test scare, backstage of the lad holding his own mobile phone ran over said: "You this apk how old flash back ah?" "Bad, flash back is not trivial, hurriedly take over to look, left a churn, right a churn, this guy is not even on the computer, the battery did not respond, one hours down, the heart straight whispered:" This mobile phone is not to be brushed into a brick bar, ah, must be so, flash back purely coincidental. "is going to forget about this, the manager to find a variety of data lines, a root test, emperor not negative, finally with the last line connected." So, debug it, report can ' t find com.android.BrowerActivity, how can not tune it? Do you have two browsers on your phone? What the heck is this? Then, continue to ask Niang ... Find the answer, guilt, the original code when the copy came directly to use, I jumped in the place to do a layer of restrictions "intent.setclass (" com.android.BrowerActivity "), just Android 4.4 No longer has a built-in browser: either licensed Chrome or developed on its own , so it can't be found. So why would mx3 be able to do it? The reason is that Meizu and Xiaomi systems are based on the Android system to make the corresponding changes, Meizu system browser has been self-developed ...
Project completed, then the final summary of the project to learn three points:
1, do not copy code, different code different requirements, copy also line, must get through the role of each code, otherwise, when you are busy with the bug, the technology has to delve into the persistent, want to taste it? Then you have to change your career;
2, the tolerance of the bug is the cruelty to their own, imagine this time without the manager's insistence, I will be obediently lying at home next week;
3, live to the old, learn old, walk in the forefront of technology will not encounter so many stumbling block, android4.4 out has been a long time, got hit to know the pain, then you will always only wounded life.
Finally thanked the manager and the house for everyone to brush their own machine into 4.4 of the small brother to me on this moment, nonsense not much to say, and then for the pursuit of shorter, faster, more refined code and struggle.
This article from "Letter Connaught Group Technology Center" blog, declined reprint!