facebook

Myeclipse 2013 Mobile development with BarcodeScanner

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #338068 Reply

    invantix
    Member

    I was able to create an HTML5 Mobile Application and deploy it to both Android and iPhone. This is an awesome tool for that. Deploying updates works well too. The application uses a web service for the back end (also created in myeclipse)

    I want to take it to the next level but I am confused about how to proceed. I have an app that I created in a previous version of myeclipse using phonegap. It appears that in 2013 there is a cordova library which appears to be phonegap. I also see the child browser in the rte folder.

    My question is, how do I include barcode scanning (and other device code) with myeclipse 2013. Is the functionality included in the myeclipse distribution or do I need to download something.

    Is there a simple example that would show me how to get the following code working?

    var showBarcode = function() {
    window.plugins.barcodeScanner.scan(
    function(result) {
    alert(result.text);
    }, function(error) {
    alert(“Scan failed: ” + error);
    });
    };

    Thanks!

    #338084 Reply

    support-swapna
    Moderator

    invantix,

    I have escalated it to a dev team member. They will get back to you.

    #338103 Reply

    support-michael
    Keymaster

    @invantix

    Let me qualify the current mobile tools are early-access 1 level and are still be improved.

    >It appears that in 2013 there is a cordova library which appears to be phonegap. I also see the child browser in the rte folder.

    Docs will be available in the next few days that provides much more background in how the mobile project dir structure is laid out and introduces the concept of a runtime-environment (rte). As you have experienced the App Center Builder (Builder) creates ios and android binary apps for your project using the project’s runtime-environment settings and resources.

    In the next mobile tools update we will provide multiple mobile runtime-environments to your MyEclipse mobile projects. Fundamentally a runtime-environment is a version of cordova/phonegap that is provided by MyEclipse App Center. It consists of design-time resources such as the specific version of cordova.js and extensions and build-time processes for creating app binaries. You can see the project’s runtime-environment resources in the www/rte/ dir. This includes the cordova.js. The rte.js will contain extensions that are not part of the core cordova api. The long term picture we are working on is to enable an organization to define and deliver custom runtime environments to their developer teams. We will support additional cordova plugins and html5 services and frameworks in the near future.

    >My question is, how do I include barcode scanning (and other device code) with myeclipse 2013. Is the functionality included in the myeclipse distribution or do I need to download something.

    In the EA1 of the mobile tools, a barcode scanner plugin is not supported by the runtime-environment provided by the App Center. We will provide this plugin soon. Until then or any time special features are required will require building your apps manually, e.g., using XCode for iOS and Android SDK for android apps.

    #349666 Reply
    #349926 Reply

    leona313
    Member
    #353633 Reply

    andyadams2
    Member

    Not sure if this would be the correct placement of this thread, if not,i am sorry.I met some problem with barcode scanner.I am trying to create a barcode scanner app for google glass that is similar to ones already out there like Zbar, BarcodeEye, or ZXing. However when I download the projects from github and import them into my eclipse workspace they become riddled with errors.

    for ZXing, inside the BenchmarkActivity.java file benchmarkTask.execute(AsyncTask.THREAD_POOL_EXECUTOR); *execute is errored out

    in BenchmarkAsyncTask.java
    MultiFormatReader reader = new MultiFormatReader(); *MultiFormatReader is not recognized

    It seems like the errors are usually eclipse not recognizing the types and methods declared by the developer, which lead me to think I may not have the right SDK’s installed. This seems strange to me though, because I have the Glass sneak peek installed. And yes I have tried importing.

    Any advice?

    #353641 Reply

    support-swapna
    Moderator

    Hi,

    Sorry that you are seeing this issue.

    Can you please share the MyEclipse Installation Details from MyEclipse > Installation Summary > Installation Details?

    Also share the SDK version details to help us investigate further.

Viewing 7 posts - 1 through 7 (of 7 total)
Reply To: Myeclipse 2013 Mobile development with BarcodeScanner

You must be logged in to post in the forum log in