2

Is there a way to detect if URL payload in OPEN_URI action is down or not successfully sent.

Especially if this it's a custom url protocol.


Example:

url payload: customprotocol://open

where customprotocol is defined in the manifest as in

Android native app, add in mainfest intent filter:

<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.BROWSABLE" />
<category android:name="android.intent.category.DEFAULT" />
<data android:scheme="customprotocol" />
</intent-filter>

Then launching native apk as mirror api action payload:

{
      "id": "launchMe",
      "action": "OPEN_URI",
      "values": [
        {
          "displayName": "Open",
        }
      ],
      "payload": "customprotocol://open"
}

If customprotocol isn't launched, ie., if apk is not installed, is there a way to detect that?

(Technique from: ) https://plus.google.com/u/0/106035004831103549307/posts/E1XqxCoNBD7

ina
  • 19,167
  • 39
  • 122
  • 201
  • Could you give us an example URL that you're sending? Do you want Glass to show an error message if no Activity could handle the protocol you used? – Alain Oct 04 '13 at 15:23
  • added example above under the line – ina Oct 05 '13 at 01:52
  • This sounds like a bug. The menu item should not appear if no activity can handle the protocol. If you're seeing other behavior, can you file a bug report in the issue tracker? http://code.google.com/p/google-glass-api/issues/list – mimming Nov 05 '13 at 02:25

0 Answers0