CrashTest

public class CrashTest extends Object

Some utility methods to force crashes; also useful for testing ProGuard behavior.

Public Constructor Summary

Public Method Summary

void
crashAsyncTask(long delayMs)
Creates and executes an AsyncTask that crashes delayMs milliseconds after doInBackground is invoked.
void
int
void
void
throwRuntimeException(String message)

Inherited Method Summary

Public Constructors

public CrashTest ()

Public Methods

public void crashAsyncTask (long delayMs)

Creates and executes an AsyncTask that crashes delayMs milliseconds after doInBackground is invoked. This method should only be called from the UI thread.

Parameters
delayMs

public void indexOutOfBounds ()

public int stackOverflow ()

public void throwFiveChainedExceptions ()

public void throwRuntimeException (String message)

Parameters
message

Enviar comentarios sobre...

Si necesitas ayuda, visita nuestra página de asistencia.