Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Android™ Runtime Development

Reply
New Contributor
Posts: 5
Registered: ‎10-20-2011
My Device: SIMULATOR

Barcode scanner trouble in Android port to Blackberry

I can't figure out how to replace Android code like this:

 

ZxingIntegrator
.initiateScan(MainActivity.this,
ZxingIntegrator.DEFAULT_TITLE,
ZxingIntegrator.DEFAULT_MESSAGE,
ZxingIntegrator.DEFAULT_YES,
ZxingIntegrator.DEFAULT_NO,
ZxingIntegrator.QR_CODE_TYPES);

 

When porting an Android app to Blackberry.  

 

When I execute that code using Eclipse > Run As > Blackberry Android Launch I get an "Action Not Supported" error.

 

How can I launch a barcode scanner in Android code, such that when it is run on the Blackberry Simulator it will work?

 

There are blackberry code examples that won't build in Android obviously.  Not sure where to go from here.

 

Note that the APK compatibility test on this code says it should make a fine BAR.