编程知识 cdmana.com

Android encounter miscellaneous diseases collection (continuously updated)

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 .

Android Acquired IMEI Only 14 To solve the problem

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 myshceme://myhost.

Scheme Never use capital letters for links , Include scheme、host、port、path.

Android To configure Scheme Use the browser to evoke APP The way , And ineffective problem solving

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 .

APP Start the black screen and white screen reasons and solutions

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 .

WebView Play the video white screen 、 Can't solve the problem of full screen

版权声明
本文为[coder-ice]所创,转载请带上原文链接,感谢

Scroll to Top