سؤال

I've been trying to research into this for awhile now. Is there a way to let my google glass access the login information from an app that I developed for an android phone? So that essentially the google glass app acts like a companion app for an existing android mobile phone app? Any resources or tutorials will be much appreciated

هل كانت مفيدة؟

المحلول

Currently Google Glass GDK implementation does not have authentication capability, though this is an accepted issue by the Google Glass team to be corrected in the future. (See issue 176.)

All indications are that future authentication will be handled through AccountManager.

نصائح أخرى

Someone told me as long as you know the app id, a standard android intent would do the magic. (but I havent try that yet)

If you're using Google Sign in, see this library on how to get an OAuth token: https://github.com/victorkp/GlassAuth

Full disclosure: I made this library when people asked me to at the Wearables DevCon.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top