Android APP开发警告大全
同理,本文遇到再收集,不为了收集而收集。
最后更新时期:20150319
XML篇
Not targeting the latest versions of Android; compatibility modes apply. Consider testing and updating this
version. Consult the android.os.Build.VERSION_CODES javadoc for details.Fix: None.
<uses-permission>
tag appears after<application>
tagFix: 将
<uses-permission>
放到<application>
之前。No grammar constraints (DTD or XML schema) detected for the document.
Fix: None.
Java篇
The value of the local variable xxx is not used
Fix: remove or or add
//
before it.The static method sleep(long) from the type Thread should be accessed in a static way
Code:
Thread.currentThread().sleep(500)
Fix: None.
Do not hardcode “/sdcard/”; use Environment.getExternalStorageDirectory().getPath() instead
Fix: replace “/sdcard/” with
Environment.getExternalStorageDirectory().getPath()
.The field AudioFormat.CHANNEL_CONFIGURATION_MONO is deprecated
Fix: replace with “xxx”
java.lang.SecurityException: no permission to enable Bluetooth quietly
Fix: replace with “xxx”