yes i think you can install it, over the android market, just give it
a try.
yes, you then can use the intent from the google barcodescanner.
it worked for me, but i have a phone.
like this:
//wen you want the user to scan a barcode:
Intent intentScan = new Intent
("com.google.zxing.client.android.SCAN");
intentScan.putExtra("SCAN_MODE", "PRODUCT_MODE");
startActivityForResult(intentScan, 0);
//when the intent is finished, this will get called
@Override
public void onActivityResult(int requestCode, int resultCode, Intent
intent) {
if (requestCode == 0) {
if (resultCode == RESULT_OK) {
// do what you want to do, when the
barcodescanner is finished
} else if (resultCode == RESULT_CANCELED) {
//
Log.d("LOG","barcodescanner: result canceld");
}
}
thats how i did that, but if you do not have the barcodescanner
installed, the programm gets very stuffed. thats where i need help now
as well.
i would like the barcodescanner to be all within my programm, like
compare everywhere and shopsavy do it, without needing the zxing
barcodescanner app.
can anyone help?
Regards
johannes
On 19 Sep., 20:43, wahib <[email protected]> wrote:
> Hi !! I am stuck for a long time on a simple task to scan a barcode. I
> am usingZxing. First i tried to work out reading from a stored
> barcode image in res folder but it didnt worked out. On my previous
> post some expert told me that i shud use Intents. I need to ask if any
> one has experience in this domain that i dont have a phone. so can i
> install barcode scanning app on emulator ?? and then can i use intents
> from that app in my code for barcode scanning task ??
>
> Plz guide me. I am a newbie to android !! :S
>
> Regards,
> wahib
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---