Android Open Source - wifiManager Add Device Activity






From Project

Back to project page wifiManager.

License

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.

Java Source Code

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);
      
    }
    
  }
  
}




Java Source Code List

com.txmcu.WifiManager.Global.java
com.txmcu.WifiManager.WifiConnectBroadCast.java
com.txmcu.WifiManager.WifiHotAdmin.java
com.txmcu.WifiManager.WifiHotConfigAdmin.java
com.txmcu.WifiManager.WifiHotManager.java
com.txmcu.WifiManager.WifiScanRsultBroadCast.java
com.txmcu.WifiManager.WifiStateBroadCast.java
com.txmcu.wifimanagerdemo.AddDeviceActivity.java
com.txmcu.wifimanagerdemo.MainActivity.java
com.txmcu.wifimanagerdemo.SettingActivity.java
com.txmcu.wifimanagerdemo.XiaoXinAdapter.java
com.txmcu.wifimanagerdemo.XiaoxinInfo.java
com.txmcu.xiaoxin.Udpclient.java
com.txmcu.xiaoxin.XinStateManager.java