Add network service discovery broadcast

Allows apps to know if user has the feature turned off

Change-Id: I2d2fecb148eb4e48eb4aea51d1d7643a82df5c52
This commit is contained in:
Irfan Sheriff
2012-04-17 23:23:42 -07:00
parent 7500665eb7
commit fb97ffe162

View File

@@ -141,10 +141,9 @@ public class NsdManager {
* information as int.
*
* @see #EXTRA_NSD_STATE
* @hide
*/
@SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION)
public static final String NSD_STATE_CHANGED_ACTION =
public static final String ACTION_NSD_STATE_CHANGED =
"android.net.nsd.STATE_CHANGED";
/**
@@ -153,7 +152,6 @@ public class NsdManager {
*
* @see #NSD_STATE_DISABLED
* @see #NSD_STATE_ENABLED
* @hide
*/
public static final String EXTRA_NSD_STATE = "nsd_state";
@@ -161,7 +159,6 @@ public class NsdManager {
* Network service discovery is disabled
*
* @see #NSD_STATE_CHANGED_ACTION
* @hide
*/
public static final int NSD_STATE_DISABLED = 1;
@@ -169,7 +166,6 @@ public class NsdManager {
* Network service discovery is enabled
*
* @see #NSD_STATE_CHANGED_ACTION
* @hide
*/
public static final int NSD_STATE_ENABLED = 2;