Back to project page wifiManager.
The source code is released under:
Apache License
If you think the Android project wifiManager listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.txmcu.wifimanagerdemo; //ww w. j av a 2 s. c om import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.view.View; import android.view.View.OnClickListener; import android.widget.Button; public class AddDeviceActivity extends Activity implements OnClickListener{ private static String TAG = "AddDeviceActivity"; //private WifiHotManager wifiHotM; //private List<ScanResult> wifiList; //private WifiHotAdapter adapter; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_adddevice); //wifiHotM = WifiHotManager.getInstance(MainActivity.this, MainActivity.this); // ???? ((Button)findViewById(R.id.btnadddevice)).setOnClickListener(this); } @Override public void onClick(View v) { if (v.getId()==R.id.btnadddevice) { startActivity(new Intent(this, SettingActivity.class)); // wifiHotM.startAWifiHot(Global.SSID,Global.PASSWORD); //apInfoTextView.setText("SSID:"+Global.SSID+" PWd:"+Global.PASSWORD); } } }