nicolas2k / google-glass-api

Automatically exported from code.google.com/p/google-glass-api
1 stars 0 forks source link

Add API to send messages between GLASS and paired phone #285

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
There should be API that will allow to send messages from Phone app to Glass 
app.

Something like pebble SDK has 
https://developer.getpebble.com/2/mobile-app-guide/android-guide.html.

PebbleKit.sendDataToPebble(getApplicationContext(), PEBBLE_APP_UUID, data);

PebbleKit.registerReceivedDataHandler(this, new 
PebbleKit.PebbleDataReceiver(PEBBLE_APP_UUID) {
    @Override
    public void receiveData(final Context context, final int transactionId, final PebbleDictionary data) {
      Log.i(getLocalClassName(), "Received value=" + data.getUnsignedInteger(0) + " for key: 0");

    }
});

Original issue reported on code.google.com by alexey.v...@gmail.com on 8 Dec 2013 at 2:32

GoogleCodeExporter commented 8 years ago

Original comment by ala...@google.com on 9 Dec 2013 at 4:24