Google Glass Application development startup on Eclipse - android

I am an Android Developer and I want to start working on Google Glass application. I have installed Eclipse in my computer but I learnt that it will not work for Google Glass development. Some blogs suggested I should use Eclipse Indigo.
I have checked and installed Eclipse Indigo and ADT and other plugins.
I am trying to run my glass on debug mode but system is not detecting it.
Can anybody please help me with how to set proper environment for Google Glass and how to make it detect?

Two things that you have to do first:
Install the Glass Development Kit preview via the SDK Manager (Should be under the 4.4.2 platform).
Ensure that you have Debug mode enabled on your Glass. After enabling Debug mode when you plug Glass in for the first time you should be asked if you'd like to trust the computer on the Glass. I select Always Allow so I don't get asked multiple times.
By the way, I am using Eclipse Kepler (but mostly IntelliJ), so I doubt that the version is critical.
Good luck!

Related

Android Studio AVD on Chromebook

I am running Android Studio on a Chromebook. It is listed as one of Google's suggested Chromebooks for running Android Studio. I have it installed but I cannot run anything as it seems the emulator/AVD is not working/enabled. I have enabled developer mode but it does not appear to work. Is there a way to make this work and/or is there a work-around, e.g., (not ideal) could I just run the APK somehow?
The capability to debug directly Android application on ChromeOS (sideloading them) has been announced at the Android Developer Summit 2019.
This should be added to ChromeOS v80.

Google Glass Disabled in Android Studio after installing SDKs

I installed Android Studio and the necessary SDKs for Google Glass Development, however, Glass is stilled disabled whenever I create new Android project?
Is it necessary that I have my own Google Glass device in order for this to work? I'm planning to use an emulator, though?
See the screenshots here:
Screenshot 1:
Screenshot 2:
Sorry, there is no official emulator for Google Glass.
If you really want to make glassware, you should consider buying Glass.
Glass is stilled disabled whenever I create new Android project?
When you create Glass project, the SDK will be added as a dependency but that doesn't mean you have Glass emulator.
Is it necessary that I have my own Google Glass device in order for this to work?
As of now, you need Google Glass for development. There is no official emulator.
I'm planning to use an emulator, though?
Google hasn't released Glass emulator.
More info:
Is there an Android based Google Glass Emulator?
Offline emulator for Google glass OS
In my case, I fixed the problem by installing again the latest version of Android studio.
Please don't edit the plist located in /Applications/Android Studio.app/Contents/Info.plist because is probably that doing this will break android studio.
Instead of doing that, open android studio this way, for example:
$ export STUDIO_JDK=/Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk
$ open /Applications/Android\ Studio.app/

Chrome Dev Tools and Genymotion Android Emulator

Reference: Genymotion how to debug with Chrome Dev Tools
I'm also trying to get chrome developer tools to work with a genymotion emulator. However, when I follow all of the steps recommended (including at the above link), I don't get the "inspect" link. See: http://neu14.com/demos/screenshot.png
Note: I found out that the default browser on the android devices, at least on most of the prior os versions is not Chrome. Finding an apk to download for Chrome android compatible versions, without an actual google play account, is quite challenging?
It took me ages to get the remote debugging working on Genymotion as I couldn't install Chrome on it without the Google play store which isn't installed by default.
Finally found this video so thought I'd share. It explains how to install this virtual device which has the play store ready installed. Once that was set up and I could install Chrome and set up remote debugging.
Won't work with the default android browser though as you said, but its a step forward!
Hope that helps
I know my answer is little late, but I thought it may be helpful for someone
1) In the device, go to dev settings/ dev tools and enable USB debugging.
2) Start your app on genymotion (for instance if you are using ionic framework, then launch the app using "ionic run android"
3)Go to you chrome and try running "chrome://inspect"
4) Also , please ensure that you have android 4.4 or above version. Else it wont work. I spent quite a lot of time because i was using android 4.3 version.
Hope this helps
I found it far simpler to use a product like Ghostlab (https://www.vanamco.com/ghostlab/) (paid product).
It will let you connect to the site running on your host machine, from the Genymotion emulator. You can then launch chrome dev tools from your host machine.

Unable to connect Glass to run gdk samples

I have Glass with version 4.0.4, XE 12.1
I just installed the latest ADT with Android 4.4.2 (API 19) and Glass Development Kit Preview.
My problem is when I try to run samples, DDMS shows the Glass device as being online but when I try to run the application, it gives the following error on the console:
Automatic Target Mode: Unable to detect device compatibility. Please select a target device.
When the Android Device Chooser window opens, there is no entry for Glass in the list.
Glass has debug mode turned on and is visible in DDMS but just not compatible for some reason.
This also brings me to a related question. I just received my device in the mail yesterday and left it charging overnight but still has not updated to XE 16. Glass is connected to wifi and the internet is fine on it. What do I need to do to force it to update itself?
Thanks for your help.
You might try the following:
First, make sure that your Google Glass is updated to XE16 (connect to your home/business wifi; plugin charging cable). Do not attempt to go further until your Google Glass has updated
Once that is done, you might look at some of the other answers to "how do I connect". Some of the steps for this are shown below.
What OS are you using (Windows?). Let me know and I will update the answer with what I had to do to see Google Glass (or look here )
I guess you set the wrong project target.
If you are using Eclipse, open project.properties and make sure the target looks like this:
# Project target.
target=Google Inc.:Glass Development Kit Sneak Peek:15
Not
# Project target.
target=android-15
You can try:
Open project properties (Alt+Enter) -> Android -> Project Build Target -> Glass Development Kit Sneak Peek
BTW, IMO, Glass update is pretty random. I have no idea how Google decides who gets the update. You can flash the system image if you don't want to wait. Please see https://developers.google.com/glass/tools-downloads/system. (Warning: Rooting, unlocking, or flashing your Glass voids your warranty.)
The fact that Glass is displayed under DDMS shows, it is being detected by ADB. The reason you are not able to run the app on Glass is that, your current version of GDK is not compatible with Glass XE 12.1. If you run projects with Android 4.0, you can see your device listed.
In order to resolve this issue, upgrade Glass XE to the latest and try running the app. Then your device will be listed under currently running devices.
Glass XE will be automatically upgraded. Make sure your device is connected to WIFI, connect device to the charger and restart.

BlueStacks and unity 3d?

i am trying to test android project developed in unity to be tested via BluStacks emulator since i don't have an android device. While trying to develop android project, i followed the ways like setting java sdk, android sdk, added sdk path, set the bundle identifier. I solved errors in the monodevelop like unrecognized variable and finally got the .apk file. I have successfully installed it in both android emulator and BlueStacks emulator. Now, when i click the installed app in the android emulator, it says "Unfotuately b has stopped", here b indicates my product name of the installed app. On the other hand,when i click the installed app in the BlueStacks,it says "BlueStacks Frontend has stopped working". When i search through the google, all it says reinstalling the BlueStacks, about graphics card problem etc. But i have installed it right and can play other online installed applications. I can not even find the logcat that could give me details about the error. When i search through the google, all i find about the logcat is involving the eclipse. But how can i set the adb logcat while my game development involves unity and BlueStacks instead of Eclipse and BlueStacks? Here i can say that there is less likely any problem with the BlueStacks emulator since i can play the online games and applications with it. I have been trying hard, please somebody knowledgeable give me your valuable suggestions.

Categories

Resources