"We offer new support options and therefor the forums are now in read-only mode! Please check out our Support Center for more information." - Vuforia Engine Team

TargetFinder doesn't work on Glass

Hi everybody,

I am developing a Glass app using Vuforia. The Glass is connected to the internet using 3G on a Nexus (over Bluetooth), but the target finder can't seem to use this connection. Is there a solution to this?

 

Here's the code that's giving the problem:

       // Initialize target finder:

        TargetFinder targetFinder = imageTracker.getTargetFinder();

        

        // Start initialization:

        if (targetFinder.startInit(Config.ACCESS_KEY, Config.SECRET_KEY))

        {

            targetFinder.waitUntilInitFinished();

        }

        

        int resultCode = targetFinder.getInitState();

        if (resultCode != TargetFinder.INIT_SUCCESS)

        {

            if(resultCode == TargetFinder.INIT_ERROR_NO_NETWORK_CONNECTION)

            {

                mInitErrorCode = UPDATE_ERROR_NO_NETWORK_CONNECTION;

            }

            else

            {

                mInitErrorCode = UPDATE_ERROR_SERVICE_NOT_AVAILABLE;

            }

                

            Log.e(LOGTAG, "Failed to initialize target finder.");

            return false;

        }

AlessandroB

Thu, 02/20/2014 - 12:31

Have you added INTERNET permission in your AndroidManifest.xml ?

Can you verify that the glass actually has internet access through the bluetooth+ 3G chain ?