FileDocCategorySizeDatePackage
ParentalControl.javaAPI DocAndroid 1.5 API2575Wed May 06 22:41:56 BST 2009com.google.android.net

ParentalControl

public class ParentalControl extends Object

Fields Summary
public static final String
VENDING
Strings to identify your app. To enable parental control checking for new apps, please add it here, and configure GServices accordingly.
public static final String
YOUTUBE
Constructors Summary
Methods Summary
public static voidgetParentalControlState(com.google.android.net.ParentalControl$Callback callback, java.lang.String requestingApp)

        ICheckinService service =
          ICheckinService.Stub.asInterface(ServiceManager.getService("checkin"));

        RemoteCallback remoteCallback = new RemoteCallback(callback);
        try {
            service.getParentalControlState(remoteCallback, requestingApp);
        } catch (RemoteException e) {
            // This should never happen.
            Log.e("ParentalControl", "Failed to talk to the checkin service.");
        }