Remove the unpleasant "yellow warning" from the Android project. android is not happy.
I. Problems
Ii. Solution
(1) Right-click the android project and choose Android Tools> Clear Lint Markers.
This method can clear all warning information in the android project, but unfortunately, the next time you open eclipse, it will continue to prompt, very uncomfortable!
(2) Use the @ SuppressLint annotation to ignore the specified warning.
To use this annotation, You need to introduce annotations. jar. By default, this jar package is available when you create a project. Use the following method:
Add @ SuppressLint ("NewApi") in front of the class, method, and variable. This NewApi is generally a specific class and is automatically added when prompted. Adding annotations can solve this problem without warning, but the code seems to be redundant. In short, there is no way to work in unison. My approach is to let him continue to warn that the program can run normally!
3. Related Links
Http://www.it165.net/pro/html/201307/6563.html