FLAG_ACTIVITY_MATCH_EXTERNAL constant

int const FLAG_ACTIVITY_MATCH_EXTERNAL

If set in an Intent passed to {@link Context#startActivity Context.startActivity()}, this flag will attempt to launch an instant app if no full app on the device can already handle the intent.

When attempting to resolve instant apps externally, the following {@link Intent} properties are supported:

  • {@link Intent#setAction(String)}
  • {@link Intent#addCategory(String)}
  • {@link Intent#setData(Uri)}
  • {@link Intent#setType(String)}
  • {@link Intent#setPackage(String)}
  • {@link Intent#addFlags(int)}

In the case that no instant app can be found, the installer will be launched to notify the user that the intent could not be resolved. On devices that do not support instant apps, the flag will be ignored.

Implementation

static const int FLAG_ACTIVITY_MATCH_EXTERNAL = 0x00000800;