1、Android Acquired IMEI Only 14 position
On the information in the phone settings IMEI Yes 15 Digit number , But the only way to get it through code is 14 position , Missing the last digit . The phone reboots , The code gets the right 15 Digit number . The final test phenomenon , The acquisition method is uncontrollable , The return value may be 14 It may also be 15 position , It is easy to cause data abnormality when using .
2、Scheme Don't take effect , The pit of case and case
It is common to open a website in a mobile browser , There will be a App Inside the open button , Click directly to open APP And jump to the details page , It's pretty much the same Scheme.
Encountered in use Scheme The pit that doesn't work , I am here web The link set in the page is
MyScheme://MyHost, Click on the page to show the link is
Scheme Never use capital letters for links , Include scheme、host、port、path.
3、APP Black screen and white screen when starting
We start our own painstaking creation on the desktop APP when , There is always a black or white screen , It's not a very good experience , Look at the big factories APP Why can't there be this phenomenon ？ If you have a problem, you have to solve it , Even if not BUG, User experience is just as important .
4、WebView Play the video white screen 、 Can't full screen problem
In the project , There will be webview The need to play videos in embedded web pages , There will be white screen or sound and no picture on some mobile phones , And there is the problem of no effect when you click the full screen button .