Find Jobs
Hire Freelancers

Android query feature before adding to database

$2-8 USD / hour

Completed
Posted almost 11 years ago

$2-8 USD / hour

Project Description: 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(); [login to view URL]([login to view URL], qrcode); [login to view URL](DatabaseHelper.YT_ID, ytid); [login to view URL]().insert(YouListContentProvider.CONTENT_URI, values); QRItem item = new QRItem([login to view URL], qrcode, ytid); [login to view URL]().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) { [login to view URL]("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.
Project ID: 4574212

About the project

1 proposal
Remote project
Active 11 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
It's done ! I do it for you now
$11 USD in 1 day
5.0 (3 reviews)
2.3
2.3

About the client

Flag of ESTONIA
Estonia
0.0
2
Payment method verified
Member since Jan 25, 2013

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.