FileDocCategorySizeDatePackage
UnresponsiveApp.javaAPI DocAndroid 5.1 API1379Thu Mar 12 22:22:44 GMT 2015com.android.smoketest.triggers

UnresponsiveApp

public class UnresponsiveApp extends android.app.Activity

Fields Summary
Constructors Summary
Methods Summary
public voidonCreate(android.os.Bundle savedInstanceState)
Called when the activity is first created.

        super.onCreate(savedInstanceState);
        TextView tv = new TextView(this);
        tv.setText("Hello, Unresponsive Android");
        setContentView(tv);
    
public voidonResume()

        // Attempt to provoke the ire of the ActivityManager
        while (true) {
            try {
                Thread.sleep(1000);
            } catch (InterruptedException e) {
                // ignore
            }
        }