ऐसा लगता है Android 2.2 के रूप में, वहाँ क्रैश रिपोर्ट भेजकर के लिए एक नई सुविधा है कि, के रूप में लिंक में वर्णित:एंड्रॉइड - क्रैश रिपोर्ट कैसे भेजें?
- http://www.androidcentral.com/new-android-app-crash-report-tool-already-and-running
- http://android-developers.blogspot.com/2010/05/google-feedback-for-android.html
- http://developer.android.com/sdk/android-2.2-highlights.html
- http://www.youtube.com/watch?v=o8unC9bA4O8
मैं इस सुविधा का उपयोग कैसे करूं? क्या यह बाजार से डाउनलोड किए गए प्रत्येक एप्लिकेशन के लिए स्वचालित है (उर्फ Google Play Store)? मुझे इस सुविधा के बारे में और जानकारी कहां मिल सकती है?
साथ ही, क्या डिलीवरीएक्सप्शन हैंडलर का उपयोग करके, शायद क्रैश का अपना विवरण डालकर इसे अनुकूलित करना संभव है?
नोट: मुझे पता है वहाँ क्रैश रिपोर्ट (जैसे ACRA) भेजने के लिए उपकरणों के बहुत सारे हैं, लेकिन मैं पहले जाँच करने के लिए अगर यह उपयोग करने के लिए क्या पहले से ही दिया है संभव है कि इच्छा।
संपादित करें: मैं, अपवाद है कि आगे पारित हो जाता है संशोधित उम्मीद है कि यह भी रिपोर्ट Google के डेवलपर वेबसाइट को भेजी जाने वाली बदल जाएगा सफल रहा है।
यहाँ एक नमूना कोड है कि इस के लिए प्रासंगिक है:
private static class DefaultExceptionHandler implements java.lang.Thread.UncaughtExceptionHandler
...
@Override
public void uncaughtException(Thread t, Throwable e)
{
final StackTraceElement[] exceptionStackTrace = e.getStackTrace();
Exception exception = new Exception("my new exception!", e);
final StackTraceElement[] newExceptionStackTrace = new StackTraceElement[exceptionStackTrace.length + 1];
System.arraycopy(exceptionStackTrace, 0, newExceptionStackTrace, 1, exceptionStackTrace.length);
newExceptionStackTrace[0] = new StackTraceElement("TEST CLASS", "TEST METHOD", "TEST FILE", 0);
exception.setStackTrace(newExceptionStackTrace);
_defaultUEH.uncaughtException(t, exception); //this will hopefully call the default handling of the exception for reporting
}
आपको अपने मार्केट कंसोल में स्वचालित रूप से त्रुटि रिपोर्ट प्राप्त होगी। –