次の方法で共有


ConnectivityManager.ReportBadNetwork(Network) Method

Definition

Report a problem network to the framework.

[Android.Runtime.Register("reportBadNetwork", "(Landroid/net/Network;)V", "GetReportBadNetwork_Landroid_net_Network_Handler")]
public virtual void ReportBadNetwork (Android.Net.Network? network);
[<Android.Runtime.Register("reportBadNetwork", "(Landroid/net/Network;)V", "GetReportBadNetwork_Landroid_net_Network_Handler")>]
abstract member ReportBadNetwork : Android.Net.Network -> unit
override this.ReportBadNetwork : Android.Net.Network -> unit

Parameters

network
Network

The Network the application was attempting to use or null to indicate the current default network.

Attributes

Remarks

Report a problem network to the framework. This provides a hint to the system that there might be connectivity problems on this network and may cause the framework to re-evaluate network connectivity and/or switch to another network.

This member is deprecated. Use #reportNetworkConnectivity which allows reporting both working and non-working connectivity.

Java documentation for android.net.ConnectivityManager.reportBadNetwork(android.net.Network).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to