Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Button wifiButton = (Button) findViewById(R.id.wifi_button);
- wifiButton.setOnClickListener(new View.OnClickListener() {
- @Override
- public void onClick(View view) {
- Intent openWifiSettings = new Intent(android.provider.Settings.ACTION_WIFI_SETTINGS);
- startActivity(openWifiSettings);
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement