Created
October 3, 2013 19:02
-
-
Save sourabh86/6815200 to your computer and use it in GitHub Desktop.
Custom content provider for HashTag example.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.sourabhsoni.hashtags; | |
import android.content.ContentProvider; | |
import android.content.ContentValues; | |
import android.database.Cursor; | |
import android.net.Uri; | |
public class TagProvider extends ContentProvider { | |
@Override | |
public int delete(Uri arg0, String arg1, String[] arg2) { | |
// TODO Auto-generated method stub | |
return 0; | |
} | |
@Override | |
public String getType(Uri arg0) { | |
//MIME type of the data represented by URI | |
return "vnd.android.cursor.item/vnd.cc.tag"; | |
} | |
@Override | |
public Uri insert(Uri arg0, ContentValues arg1) { | |
// TODO Auto-generated method stub | |
return null; | |
} | |
@Override | |
public boolean onCreate() { | |
// TODO Auto-generated method stub | |
return false; | |
} | |
@Override | |
public Cursor query(Uri arg0, String[] arg1, String arg2, String[] arg3, | |
String arg4) { | |
// TODO Auto-generated method stub | |
return null; | |
} | |
@Override | |
public int update(Uri arg0, ContentValues arg1, String arg2, String[] arg3) { | |
// TODO Auto-generated method stub | |
return 0; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment