title: Intent not passing correct information
body: <p>Im using intents to pass the noteId from my database to a different activity for displaying the information it was working and i went to work on another part of the project and now it seems to only pass one value  and from playing about i have found that seems to be whatever is the next highest object on the ListView. Sorry if this is badly worded, Im not very good at explaining these things </p>
  
  <p>ViewNote Class</p>
  
  <pre><code>package com.hardy.passnotes;
  
  import java.util.HashMap;
  
  import android.os.Bundle;
  import android.app.Activity;
  import android.content.Intent;
  import android.view.Menu;
  import android.view.MenuItem;
  import android.widget.EditText;
  import android.widget.TextView;
  import android.widget.Toast;
  
  public class ViewNote extends Activity {
  
      EditText NewNoteTitle;
      EditText NewNoteContent;
      TextView tvNoteId;
      DBTools dbTools = new DBTools(this);
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_view_note);
          NewNoteTitle = (EditText)findViewById(R.id.ETNewNoteTitle);
          NewNoteContent = (EditText)findViewById(R.id.ETNewNoteContent);
  
          Intent n = getIntent();
          String NoteId = n.getStringExtra("noteId");
          Toast.makeText(getApplicationContext(), NoteId,
                 Toast.LENGTH_LONG).show();
  
          HashMap&lt;String, String&gt; NoteList = dbTools.getNoteInfo(NoteId);
  
  
          if(NoteList.size() != 0)
          {
              setTitle("Note: " + NoteList.get("noteTitle"));
              NewNoteTitle.setText(NoteList.get("noteTitle"));
              NewNoteContent.setText(NoteList.get("noteContent"));
          }
      }
  
      @Override
      public boolean onCreateOptionsMenu(Menu menu) {
          // Inflate the menu; this adds items to the action bar if it is present.
          getMenuInflater().inflate(R.menu.view_note, menu);
          return true;
      }
  
      @Override
      public boolean onOptionsItemSelected(MenuItem item) {
          // TODO Auto-generated method stub
          switch (item.getItemId())
          {
          case R.id.action_Editnote:
              tvNoteId = (TextView)findViewById(R.id.NoteId);
              String NoteValue = tvNoteId.getText().toString();
  
              Intent intent = new Intent(getApplication(),EditNote.class);
              intent.putExtra("noteId", NoteValue);
              startActivity(intent);
  
          case R.id.action_DelNote:
              Intent intent1 = getIntent();
              String NoteId = intent1.getStringExtra("noteId");
  
              dbTools.deleteNote(NoteId);
               Intent i = new Intent(getApplication(),MyNotes.class);
                  startActivity(i);
                  finish();
  
          }
          return super.onOptionsItemSelected(item);
      }
  
  }
  </code></pre>
  
  <p>MyNote Class:</p>
  
  <pre><code>package com.hardy.passnotes;
  
  import java.util.ArrayList;
  import java.util.HashMap;
  
  import android.app.ListActivity;
  import android.content.Intent;
  import android.os.Bundle;
  import android.util.Log;
  import android.view.Menu;
  import android.view.MenuItem;
  import android.view.View;
  import android.widget.AdapterView;
  import android.widget.AdapterView.OnItemClickListener;
  import android.widget.ListAdapter;
  import android.widget.ListView;
  import android.widget.SimpleAdapter;
  import android.widget.TextView;
  
  public class MyNotes extends ListActivity {
  
      DBTools dbTools = new DBTools(this);
      TextView tvNoteId;
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_my_notes);
          Log.i("Tag", "OnCreate Started As Normal");
          setTitle("My Notes");
  
  
  
          ArrayList &lt;HashMap&lt;String, String&gt;&gt; NoteList = dbTools.getAllNotes();
  
          if(NoteList.size() != 0)
          {
              ListView listView = getListView();
              listView.setOnItemClickListener(new OnItemClickListener()
              {
  
                  @Override
                  public void onItemClick(AdapterView&lt;?&gt; arg0, View view,
                          int position, long id) {
                      tvNoteId = (TextView)findViewById(R.id.NoteId);
                      String NoteValue = tvNoteId.getText().toString();
  
                      Intent intent = new Intent(MyNotes.this,ViewNote.class);
                      intent.putExtra("noteId", NoteValue);
                      startActivity(intent);
  
                      Log.i("Tag", "if Started As Normal");
                  }
  
              });
  
  
  
          ListAdapter Adapter = new SimpleAdapter(MyNotes.this,NoteList,R.layout.notes_list, new String[]{"noteId","noteTitle",}, new int[]{R.id.NoteId,R.id.NoteTitle}  ); 
          setListAdapter(Adapter);
          Log.i("Tag", "Arrey Started As Normal");
          }
      }
  
      @Override
      public boolean onCreateOptionsMenu(Menu menu) {
          // Inflate the menu; this adds items to the action bar if it is present.
          getMenuInflater().inflate(R.menu.my_notes, menu);
          return true;
  
      }
  
      @Override
      public boolean onOptionsItemSelected(MenuItem item) {
          // TODO Auto-generated method stub
          switch (item.getItemId())
          {
          case R.id.action_Add:
              Intent i = new Intent(getApplicationContext(),CreateNote.class);
              startActivity(i);
              finish();
  
          }
          return super.onOptionsItemSelected(item);
      }
  
  }
  </code></pre>
  
  <p>Thanks in advance been searching around and debugging for hours with no luck.</p>