Reverse Screencast? Show phone screen on Google Glass? - google-glass

I'm searching a way to develop an app to show iOS/android screen on the google glass, but I did'nt find anything,
as we are already able to display glass screen by using screencast on phone with MyGlass app, why the reverse would'nt be possible?

AFAIK, 3rd party apps cannot capture a phone screen on both iOS and Android. On Android, you need READ_FRAME_BUFFER permission which is "signature|system" protection level. On iOS, you need to use some private framework/api to capture the screen. That means Apple will not allow the app to be listed on the app store.

Related

Locate Glass's location on Google Map

Is it possible to have Glass do a POST on it's current coordinate to the server while running other apps, say, Google Hangout or take a picture?
Is there any example or APIs I can leverage?
If you are using Goggle Glass GDK, you can use an AsyncTask to to do work. If you are using Mirror-API, then that is a separate app, and it can work simultaneously (see GlassWare Fieldtrip).

How to start Hangouts from Glassware

I want to start Hangouts from my Glassware so that the user can make video call to any of his contacts in the Glass. I tried the giving the package name of the hangout app in an intent , but it did not work. If anybody has tried this before ,please do share.
Thanks
Starting a hangout from an intent isn't supported by the GDK. A feature request was filed in our issue tracker here; feel free to follow it so that you can be updated if anything changes!
I want to start Hangouts from my Glassware so that team can see what is out put is coming.
I did lots of RnD, then I come up with below solution
steps -
install myglass into mobile
install your apps in google glass
paired with glass with your mobile thr Bluetooth
start myglass apps and sync with glass
done
now start you application over the google glass, it will show at mobile in same way and behavior.
let me know if it work

Location on Google Glass

Is it possible to get the user's location without using the Mirror API?
The hacking glass Google I/O video mentioned several android apis currently work and listed gps as one of them, however I have not had luck so far. I know Glass does not have GPS itself and must use the paired phones GPS. Would be awesome if we could use existing android location manager or newer Google play services location apis!
Yes, you can - if you use the GDK examples as a base and follow the Location Strategies (http://developer.android.com/guide/topics/location/strategies.html).
For a specific example, I just posted a hack of the GDK Compass sample in answer to another question that adds location updates pulled from the GPS (with or without a paired phone):
Can GPS for Glass be accessed through the Android SDK?
Google Glass does NOT have a GPS chip in it. I don't see why you could not have an apk that uses the LocationManager and add a listener to it that would print out the latitude and longitude in Logcat or even on GLASS itself. Now, to get that location to a remote user, that would require more work than not using the Mirror API.

What is the difference between Glass Mirror API and Google GDK?

What is the difference between Glass Mirror API and Google GDK?
Google has announced the GDK here: https://developers.google.com/glass/gdk
but they haven't exposed any new features specific to Glass yet. How do we actually use the Google GDK?
Looking at the examples listed on the above link, we can create APKs, load APKs onto Glass and launch them using adb shell but is there a complete app or example anywhere?
The difference between the Mirror API and the forthcoming GDK boils down to where the application being written will run.
The Mirror API specifies how a web-based application will communicate with Google's servers to send updates to a user's Glass and how it will receive notifications when the user takes an action (such as a share, or a location change) that is directed at the Glassware.
The GDK is intended for applications that will run on Glass itself and have more low-level access to the sensors and to the underlying Android environment that Glass is built on top of. Google has not released the GDK yet - that page is where it will be released, and provides some early "getting started" concepts for developers who are interested in building native apps that run on Glass.
GDK has not been launched yet, so you cannot actually use it right now.
GDK will allow you to work directly on the Glass device using your Android development skills whereas Mirror API is a cloud/web-based API for interacting with a user's timeline only. See Prisoner's answer for more detail on this.
Because GDK has not been released yet, "complete" apps and examples do not exist. There are three samples (Compass, Level, and Stopwatch) listed on the link that you posted. The page says that these samples will eventually be updated into a "full Glass experience" when GDK is launched.
When we launch the GDK, we'll also update these samples to show the migration path from a traditional Android app to a full Glass experience. Make sure to check regularly for updates
Glass Mirror API is for developing the Glassware(Pushing Webcards from server to Glass).
Google GDK(Glass Development KIT) is similar to current Android SDK, but they will have some special tool that will help develop Android Apps for google glass. Even now without GDK, developers are developing apps using Android SDK.
GDK will allow you to run apks on GLASS along with the GlassHome. GlassHome is the main display that you see within GLASS. If you install an APK without the GDK, the only way to get to it is using something like Launcher2.apk. With the GDK, and this is an assumption, your apk will be represented as a card within GlassHome.

Is there any API to add ads to my desktop app

I am looking for a way to embed ads to my desktop APIs. There are planty solutions out there for web sites which stream ads from Ad Networks. However, I didn't find one which will allow to get a similar ad content to the app.
Does any one have any experience with this?
Thanks!!
Which operating system are you targeting? If you are on Windows you could always display the ads within an embedded/automated IE window (assuming IE is installed). Alternatively, you could hook up to something like shareasale.com datafeeds and embed the appropriate links in your app. Clicking on the link (or description, image, etc) would merely cause a browser to launch at the appropriate site.
I have had the same pro, I found it was hard to find an ad network focus on desktop apps. Several months ago one of my developer friend told me he is using DesktopAd's ads in his Windows desktop apps. I downloaded their ads SDK and added into my Windows 8.1 apps, it only took me half a day finishing all the works. After that I can get revenue from ad clicks everyday. I hope my answer could be of some help to you.