Android search feature before adding to database
$30-250 USD
Bezahlt bei Lieferung
I have a QR List Adapter where I add values (qr code and youtube id) to database:
public void add(String qrcode, String ytid){
ContentValues values = new ContentValues();
[url removed, login to view]([url removed, login to view], qrcode);
[url removed, login to view](DatabaseHelper.YT_ID, ytid);
[url removed, login to view]().insert(YouListContentProvider.CONTENT_URI, values);
QRItem item = new QRItem([url removed, login to view], qrcode, ytid);
[url removed, login to view]().add(item);
notifyDataSetChanged();
}
I want to be able to search the database beforehand and if the values (QRCODE and youtube ID) already exists (the video is already in the database) then not to add them to the list. My database helper looks like this:
@Override
public void onCreate(SQLiteDatabase db) {
[url removed, login to view]("CREATE TABLE " + TABLE_NAME + "("
+ID+" INTEGER PRIMARY KEY, "
+QRCODE+" TEXT, "
+YT_ID+" TEXT )");
PutValues(db);
}
It's a small project and I would like it to be done asap.
Projekt-ID: #4574016
Über das Projekt
5 Freelancer bieten im Durchschnitt $85 für diesen Job
Hi ===YESS!! WE ARE EXPERT IN IPHONE APP, IPAD APP, ANDROID , WE LOVE TO DEVELOP AND DESIGN==== MORE DETAIL AND PORTFOLIO CHECK PMB THANKS