Android Open Source - Android-Wireless scan Activity






From Project

Back to project page Android-Wireless.

License

The source code is released under:

MIT License

If you think the Android project Android-Wireless 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.Nimble.WifiAP;
// ww  w  .  ja  v  a 2s.  co m
import java.util.ArrayList;

//import com.Nimble.wifiserver.R;

import android.app.Activity;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.TextView;

public class scanActivity extends Activity
{
  //Server s;
  @Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_scan);
    //Log.d(this.getClass().toString(), "button Pressed");

//    new Server(8000).start();
  }

  public void scanButton(View v)
  {
    Log.d(this.getClass().toString(), "button Pressed");
    scan();
  }
  
  private void scan() 
  {
    ClientScanner.getClients(new FinishScanListener() 
    {
      @Override
      public void onFinishScan(final ArrayList<ClientInfo> clients) 
      {  
        TextView textView = (TextView) findViewById(R.id.textView2);
        textView.setText("");
        
        for (ClientInfo c : clients)
          c.print(textView);
      }
    });
  }
  
  /** Interface for detecting when scan thread finishes.
   */
  public interface FinishScanListener {
    public void onFinishScan(ArrayList<ClientInfo> clients);
  }
}




Java Source Code List

com.Nimble.Server.ServerActivity.java
com.Nimble.Server.Server.java
com.Nimble.Server.Sockets.java
com.Nimble.WifiAP.ClientInfo.java
com.Nimble.WifiAP.ClientScanner.java
com.Nimble.WifiAP.HardwareStateManager.java
com.Nimble.WifiAP.MainWiFiAPActivity.java
com.Nimble.WifiAP.WifiAP.java
com.Nimble.WifiAP.scanActivity.java
generics.Methods.java
generics.testingSuite.java