Skip to content Skip to sidebar Skip to footer

Android Zxing Scanner And Cursor

I am having some issues with the Zxing android scanner and cursors returning results from my database. What I want to happen is the scanner will return the result from the scan, t

Solution 1:

try:

public Cursor getBarcodeInfo(String number){

    // Safe check to make sure db and number is not null
    if(db == null || number == null){

         return null;
    }

    return db.rawQuery("select _id, barcode_item_name, barcode_measurement, barcode_unit from barcode where barcode_number = ?", new String[]{number});
}

Post a Comment for "Android Zxing Scanner And Cursor"