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;
}
TargetFinder doesn't work on Glass
Have you added INTERNET permission in your AndroidManifest.xml ?
Can you verify that the glass actually has internet access through the bluetooth+ 3G chain ?
TargetFinder doesn't work on Glass
Yes, that permission was added to the manifest. Like I said, it works perfectly fine over WiFi. If we disconnect the Wifi and connect to the internet via Bluetooth the Glass has internet, but the TargetFinder can't use it (so it appears).
TargetFinder doesn't work on Glass
Ok. So, basically you are tethering bluetooth with the internet connection of another device, and this allows the device to access the internet.
TargetFinder doesn't work on Glass
The Bluetooth permission doesn't solve anything. The bandwidth seems okay, it loads YouTube videos etc. very fast. No way to quantify this though.
TargetFinder doesn't work on Glass
Ok, I will check this and get back to you, although not sure this is a supported use case; but if I find any hints I will sharewith you.
TargetFinder doesn't work on Glass
Any word?
TargetFinder doesn't work on Glass
Not yet; waiting for feedback from my team.
TargetFinder doesn't work on Glass
Update:
just got confirmation from the team that Bluetooth is not supported at present by Vuforia (current version being 2.8.7);
you need to have direct connection via either 2G/3G or WiFi.
TargetFinder doesn't work on Glass
Thanks for looking into this.