Back to project page Android-Wireless.
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.
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); } }