FileDocCategorySizeDatePackage
BrickDeniedTest.javaAPI DocAndroid 5.1 API1294Thu Mar 12 22:22:12 GMT 2015android.content

BrickDeniedTest

public class BrickDeniedTest extends android.test.AndroidTestCase
Test to make sure brick intents don't work without permission.

Fields Summary
Constructors Summary
Methods Summary
public voidtestBrick()

        // Try both the old and new brick intent names.  Neither should work,
        // since this test application doesn't have the required permission.
        // If it does work, well, the test certainly won't pass.
        getContext().sendBroadcast(new Intent("SHES_A_BRICK_HOUSE"));
        getContext().sendBroadcast(new Intent("android.intent.action.BRICK"));