How to send your .apk Glass Application for your c

2019-04-21 08:12发布

问题:

I'm jumping head first into Android for Google Glass development and I'd like to know how I can let my client see the .apk that I'm working on.

My client owns a pair of Google Glass too but lives far away.

So far, the only way I have been able to upload to Glass is using ADT, Run As -> Android Application when my Glass is connected by USB.

How can I put the Glassware (apk) up online so he can "load it up" into his glass remotely? Or deploy it to his glass?

I read Send the .apk file to client for review but it's more related to Android devices, whereas my client uses Google Glass and doesn't have debug mode on (I can ask him to turn it on though) and won't root his device.

回答1:

You might want to have your customer use ChromeADB -- you can see it here: https://chrome.google.com/webstore/detail/chromeadb/fhdoijgfljahinnpbolfdimpcfoicmnm/reviews?utm_source=chrome-ntp-launcher

From the comments it looks like other people are using this for similar situations.



回答2:

I suppose your client owns source code so they may be glad to download the SDK at http://developer.android.com/sdk/index.html and install ADT then use the Android SDK Manager to install the SDK Platform, so they can either get your updated source and install it to Glass from ADT, or run adt-bundle-mac-x86_64-20131030/sdk/platform-tools/adb install .



回答3:

Well my client has the Android SDK installed on his system and he just turns on the usb debugging mode on on his glass. Then he installs the apk using the adb install app.apk command



回答4:

So far there is no other option available than this.

For Installation and testing on client side one need to follow below mentioned steps.

  1. Download this android-tools.zip to Windows PC and extract it using any unzip tool
  2. Copy the desired APK file (Say testapp.apk) to the extracted folder i.e in android-tools
  3. Now open command prompt Win -> Run -> cmd -> ok
  4. Run this command adb install testapp.apk


回答5:

adb is open sourced, it shouldn't be difficult to wrap it up in a standalone application or you can rebuild adb and dependencies (due to binary license you can't simply redistribute you need to build the AOSP based code which is distributable - but IANAL)

If wrapping up commands (easier route) you can refer to these command line scripts to uninstall and run by simply passing the apk file name:

How to start an application using android ADB tools?



回答6:

Hopefully this helps...

But you could use BlueStacks and have the client install the APK into the program. BlueStacks will setup a preference for ".apk" files to open up in the program itself, So no command line ADB is required. I dont know how well Glass APK's will run, however the BlueStacks emulator has come along way and work well with most general applications. So if your client has either Mac / Windows, they can easily setup an the Android emulator and can run your APK's. They could always just setup the Android SDK and use the standard emulator, It still will wont resemble a Glass device, however this could help the client understand what you are doing in the app. Its worth a try at least.