• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Barcode / WebCamera

My requirement is to read the barcode value. Considering anroid emulator i am trying to use webcam to capture the barcode image by following the link Moseycode Release 0.2.1, which has written in sdk 0.1. But i need to change to sdk 1.1.

Could any one help for the following error,
I could not able to find the package
import android
.database.ArrayListCursor;

Could you plz provide alternative solution for sdk 1.1 compatible from the follolwing

//obtain references to the controls

final Gallery gallery = (Gallery) findViewById(R.id.sources);
final TextView name = (TextView) findViewById(R.id.name);
final Button scan = (Button) findViewById(R.id.scan);
final RadioGroup ret = (RadioGroup) findViewById(R.id.ret);
final TextView message = (TextView) findViewById(R.id.message);
final Button demo = (Button) findViewById(R.id.demo_history);
final Button mosey = (Button) findViewById(R.id.mosey_history);

ArrayList list =
new ArrayList<ArrayList>();
for (int i = 0; i < NAMES.length; i++) {
list.add(
new ArrayList());
}

ArrayListCursor cursor = new ArrayListCursor(new String[0], list);
gallery.setAdapter(new Adapter(cursor, this));
 

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones