public void refreshDebugSettings() { if (mECHelper != null && android.os.Build.VERSION.SDK_INT >= Build.VERSION_CODES.FROYO) { Object o = getSystemService(DROPBOX_SERVICE); if (o != null) mECHelper.mDropBox = (DropBoxManager) o; } }
@TargetApi(8) public static DropBoxManager getDropBoxManager() { return (DropBoxManager) getSystemService(Context.DROPBOX_SERVICE); }
public static DropBoxManager dropBox(Context context) { return (DropBoxManager) context.getSystemService(DROPBOX_SERVICE); }
public DropBoxReporter() { dropBox = (DropBoxManager) getSystemContext().getSystemService(Context.DROPBOX_SERVICE); }
public static DropBoxManager dropBoxManager() { return (DropBoxManager) get(Context.DROPBOX_SERVICE); }
/** * Obtain a {@link DropBoxManager} instance associated with specified {@link Context} * * @param context Context * @return {@link DropBoxManager} associated with specified {@link Context} * @throws InvalidContextException if {@link DropBoxManager} can't be obtained * from specified {@link Context} */ @NonNull public static DropBoxManager getDropBoxManager(@NonNull Context context) { return validate(context.getSystemService(Context.DROPBOX_SERVICE)); }