App won't run. This occurs recurrently:
04-05 21:29:09.570: E/AndroidRuntime(1069): Caused by: java.lang.IllegalArgumentException: Cannot bind argument at index 1 because the index is out of range. The statement has 0 parameters. Main - Calling method
Cursor wow = db.trying("Gold"); text = (TextView) findViewById(R.id.textView13); String quantity = wow.getString(0); // text.setText(quantity); DB Handler - Method
public Cursor trying(String vg){ String q = "SELECT quantity FROM " + TABLE_CONTACTS + " WHERE name=" + "'" + vg +"'"; SQLiteDatabase db = this.getReadableDatabase(); Cursor cursor = db.rawQuery(q, new String[] {vg}); if (cursor != null) { cursor.moveToFirst(); } return cursor; }