How to run Google Glass Project on emulator? - android

I don't have a google glass device. But I am very interested to do apps for Google Glass. I want to run a Hello World in Google Glass without the use of device.
I followed the tutorials for Google Glass. Then I found some sample projects of Google glass. Can Anyone tell me how to run a simple Google Glass Project on an emulator or without a device.
And can you tell, Is there any alternative way to test the Glass APK developed by us without device.

First you need to set up Glass On mobile or an Emulator in Web. Gooogle Glass is orignally a launcher over android you need to install the apks of that launcher.
Here you will find the APK's (however Camera for Glass never worked for me.)
Here is an Album showing you the process (on Nexus 7)
And This is the set of Demo's
After all set up you have to connect the android phone and then install the apk's using adb.
e.g.
adb install -r com.sample.packagee
after that you can launch the app through voice command or if it doesnot support voice trigger then launch it like
adb shell am start -n com.mikedg.android.glass.launchy/.MainActivity
I am writing down a wiki for the issues and the to do's Please check it here..

There are no simulators right now available to do perform testing without the device.
First :
You can try this https://github.com/zhuowei/Xenologer and install the apk on mobile device which is more or less similar to what you are looking for.
Second :
You can try thus but u have to build your application based on Mirror API http ://glasssim.com/ or
https ://developers.google.com/glass/tools-downloads/playground
Third to have your custom apk install :
https ://developers.google.com/glass/develop/gdk/quick-start#installing_the_samples
To display your hello world Try second option it should work. It will add your card in Glass Timeline.
Hope this answers your question.
Thanks

There is not an emulator for Glass at this time. Testing on Glass is an important part of a Glassware development life cycle as the user experience is completely different from what you can experience on a phone or an emulator.
Feel free to follow issue 253 on our issue tracker for updates as the GDK evolves.

Related

How do I run Udemy app on any emulator?

I've tried on at least 8 different current android emulators to install and run the Udemy android app, but in all of them I get "This app is incompatible with your device," in PlayStore.
I have some courses in Udemy that I'd like to download with subtitles and currently the only way that I know of of doing that is by downloading them in android. I don't own a smartphone.
One thing I've found common in all the latest emulators is that they all emulate some sort of tablet and not a phone, as I can see in settings that all of them have "About Tablet" at the bottom.
I was hoping if someone could tell me of any emulator that's based on a phone (preferable a Samsung one) rather than a tablet. Or any other way I could change the emulator to show as a phone in PlayStore?
I know this was posted some time ago and I am not sure if you came right, but the only way I have managed to get it working is by installing Android in a VMWare Player virtual machine.
The steps I used are as follows:
1) Downloaded the Android ISO from http://www.android-x86.org/download (I downloaded the android-x86_64-7.1-rc2.iso)
2) Downloaded VMWare player from www.vmware.com
3) Followed instructions on here https://www.tactig.com/install-android-nougat-vmware/
It is possible to install on Virtual box from what I see, but I have never tried it. Instructions are here: https://www.avoiderrors.net/install-android-7-0-nougat-virtualbox/
From there I was able to install the latest version of Udemy, only message I got was that it was not optimized for the device.
Hope this helps.

How to install skype in Android Emulator?

I am new to android app development. I want to create an intent to launch Skype. In order to test this, I assume that the emulator must have Skype already installed.
I tried to launch the play store on the emulator to get the Skype App. But the Google Playstore, when launched on emulator it complains that there is no wifi or data connection.
How can I get the emulator to connect to the host wifi(Wifi which the laptop is connected to?)?
Is there a another way to get Skype app on emulator without playstore?
Thank you
Assuming that you're using the latest Android Studio and Emulator, you could get the Skype application APK file from other sites and drag it onto the emulator for it install the application.
However I do suggest as #CommonsWare stated, use a physical Android Device instead of an emulator as some (probably most) apps won't work correctly due to Google Play Services being missing. You could try the images in the Android SDK that contain part of the Google Play Services within them, it's worth a shot but not something to rely on for the long run.

debug android app on chromebook

I have an android app that works on the chromebook flip when using arc welder to install and run it. However, when I download the current version from the play store, or sideload the current dev version by copying over the apk, the app doesn't run. I get the splash screen and then a white screen and nothing happens.
I tried using chrome on the chromebook and doing chrome://inspect/#devices and chrome://inspect/#apps but i don't see my running app in either place. (The app is mostly a webview wrapping a JS application, so this is typically how I debug it). I also tried using the android chrome browser and also do not see my app there. I am not sure where to find the application logs, although I did try looking at the various system logs. The chromebook is in developer mode so I can get a shell and look around, but I couldn't find an app log. adb devices does not show my app, and adb logcat doesn't show anything either.
Anyone know how to debug a webview app on the chromebook?
There is no need to use ARC Welder anymore. Play Store can be installed directly on Chromebook.
Also remote debugging using ADB is possible. Follow instructions from here.
https://developer.android.com/topic/arc/index.html

Running Google Glass GDK Sample on Android Device/Emulator

I want to run the Google Glass GDK Samples and test them on android device/emulator. I have followed the steps as mentioned in http://karanbalkar.com/2014/06/tutorial-83-hello-world-using-google-glass/ and am able to launch the "ok glass" screen and also able to get the list of commands on the subsequent screen but am unable to add any new commands. Thanks in advance
AFAIK, there is no emulator available as of now for testing GDK applications. You need to run your app on an actual device.

while the apk runs without problems on emulator when installed on Motorola milestone picture and icon doesn't shown as they were on emulator

my problem : the app I have uploaded into my cellular device is shown without the pictures I have insert to it .
steps I have done in order to install:
I have inserted the xxx.apk file into the device via usb
I downloaded an apps installer via the Market
I opened the app using the installer and instead of picture an white background appeared
when I opened the xxx.apk file using file system I found the pictures.
note: even an application icon weren't appearing.
Apparently the res libary having problem to be bined to application.
I might ness to add something to my appliction manifest?
I might need to change something on my device ? (I already made a change and enabled user's not Market application )
I would be very grateful for some life saving answer I need to show my work in a few days in this is the first time i tested her on a real devise.
I also tried an example as shown in hello android book the same example worked perfectly on the emulator where on my android device (Motorola milestone ) the picture and icon weren't shown
Please tell me what I might be doing wrong guys I need to apply my project back at uni(I was the only one in uni who did it on android and in my country most of pep don't even know what android is so getting help outside of forum's like this is not an option ) so please please help me .
I don't know what app installer you downloaded from the Market, but you shouldn't need it. You should be installing the app to your phone using the same SDK tools you used to install it to the emulator. Ie, using Eclipse or the commandline "adb install" commmand.
I'm assuming you used the SDK tools to install the app to the emulators? In which case, start there. Start with looking at what you're doing different between when you installed unsuccessfully to your phone and when you installed to successfully to the SDK.
In my experiences so far, there should be very few differences between working with the emulator and working with the phone.
Well, something is wrong, but what is hard to tell from your question. What pictures are you talking about? Your drawable resources? My guess would be that your application works in the emulator (you have tested it?), but that it doesn't on the phone you're testing with. Have you checked the logcat output?
If you're developing from Eclipse, why not try a debugging session using the phone rather than the emulator?
Hard to narrow down without more details, but a few notes:
Pontus has a point - what's your logcat output? You can use logcat on a real device. Maybe not yours unless it's rooted, but with many phones you can.
Do you link the drawable to your app in the manifest file?
How do you test on emulator vs. device? Do you right-click the app and choose "Run As -> Android Application"? Do you do that for both emulator and device?
When you run on the device, do you first sign it? If so, can you verify the jar/apk and see the contents? Is the drawable under res/drawable?

Categories

Resources