R.layout.row stuck on use Android
<p>my code is not working and its to do with the R.layout.row.... I do not know how to use it what do I do ? here is my code...suggestions?</p>

<p>could you please give any suggestions on how to improve my code its just a simple wifi scanning app</p>

<pre><code>    package com.example.webu;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

import android.os.Bundle;
import android.app.Activity;
import android.content.Context;
import android.view.Menu;
import android.widget.ListView;
import android.widget.SimpleAdapter;
import android.widget.TextView;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import android.net.wifi.ScanResult;
import android.net.wifi.WifiManager;

public class MainActivity extends Activity {
    SimpleAdapter adapter;
    ArrayList&lt;HashMap&lt;String, String&gt;&gt; arraylist = new ArrayList&lt;HashMap&lt;String, String&gt;&gt;();
    int size = 0;
    List&lt;ScanResult&gt; results;
    String ITEM_KEY = "key";
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        ConnectivityManager cm = (ConnectivityManager) getSystemService(CONNECTIVITY_SERVICE);
        NetworkInfo at = cm.getActiveNetworkInfo();

        final TextView tni = (TextView)findViewById(R.id.textView1);
        ListView lv = (ListView)findViewById(R.id.listView1);



        WifiManager wifi = (WifiManager) getSystemService(Context.WIFI_SERVICE);
        if(wifi.isWifiEnabled()) {
          List&lt;ScanResult&gt; scanResults = wifi.getScanResults();
          for(ScanResult scanRes : scanResults) {
               this.adapter = new SimpleAdapter(MainActivity.this, arraylist, R.layout.raw, new String[] { ITEM_KEY }, new int[] { R.id.listView1 });
                lv.setAdapter(this.adapter);
              //tni.setText(scanRes.toString());
          }
        }
        //tni.setText(at.toString());
    }

    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        // Inflate the menu; this adds items to the action bar if it is present.
        getMenuInflater().inflate(R.menu.activity_main, menu);
        return true;
    }

}
</code></pre>
