Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import android.content.ContentUris;
import android.content.Context;

import android.net.Uri;

public class Main {
    public static int deleteById(Context context, Uri uri, long id) {
        return context.getContentResolver().delete(ContentUris.withAppendedId(uri, id), null, null);
    }

    public static int delete(Context context, Uri uri, String where) {
        return context.getContentResolver().delete(uri, where, null);
    }
}