FileDocCategorySizeDatePackage
BrickDeniedTest.javaAPI DocAndroid 1.5 API1334Wed May 06 22:42:02 BST 2009com.android.unit_tests

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"));