Merge "docs: Wi-Fi settings example now uses Settings constant correctly" into nyc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
fbc19ba2ca
@@ -2155,7 +2155,7 @@ that are available.</p>
|
|||||||
<p><b>Example intent:</b></p>
|
<p><b>Example intent:</b></p>
|
||||||
<pre>
|
<pre>
|
||||||
public void openWifiSettings() {
|
public void openWifiSettings() {
|
||||||
Intent intent = new Intent(Intent.ACTION_WIFI_SETTINGS);
|
Intent intent = new Intent(Settings.ACTION_WIFI_SETTINGS);
|
||||||
if (intent.resolveActivity(getPackageManager()) != null) {
|
if (intent.resolveActivity(getPackageManager()) != null) {
|
||||||
startActivity(intent);
|
startActivity(intent);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user