Android: help pass value from one class to another
<p>this is the first class, displays listview from sql and pops up a option on longpress.  I wanted to pass the ID number of the current select row to be processed on another class.</p>

<p>Please help. thanks.</p>

<pre><code>/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.select);


    mListUsers = getUsers();
    lvUsers = (ListView) findViewById(R.id.lv_user);
    lvUsers.setAdapter(new ListAdapter(this, R.id.lv_user, mListUsers));  

    // needed for longpress thing
    registerForContextMenu(lvUsers);

}

/**
 * all for long press thingy
 */
@Override
public void onCreateContextMenu(ContextMenu menu, View v, ContextMenuInfo menuInfo) {
  super.onCreateContextMenu(menu, v, menuInfo);
  MenuInflater inflater = getMenuInflater();
  menu.setHeaderTitle("Selection");
  inflater.inflate(R.layout.list_menu, menu);
}

@Override
public boolean onContextItemSelected(MenuItem item) {
  AdapterContextMenuInfo info = (AdapterContextMenuInfo) item.getMenuInfo();
  switch (item.getItemId()) {
  case R.id.edit:
   Intent intent = new Intent(Select.this, Update.class);
   startActivity(intent);
    return true;
  case R.id.delete:
    return true;
  default:
    return super.onContextItemSelected(item);
  }
}

/**
 * end of long press thingy
 * 
 */
</code></pre>
