有没有办法阻止为Android应用程序显示抛出的异常消息(包含所有堆栈跟踪和所有内容)?
修改:
嗯,我知道我可以使用try / catch块来做那些不是我想要的。 有没有办法在mafinest文件中指定,或者在项目settigs或smthng中指定?
答案 0 :(得分:2)
您可以将代码包装在try catch
try {
// code that might throw an exception
} catch (Exception e) {
//don't print the exception
}