Android Get data from rawQuery to another form
<p>I'm new to Android. Pls help me.
I want get Id from cursor to EmployeeDetails form but no result
This is my code:</p>

<pre>
public class EmployeeList extends ListActivity {
protected EditText searchText;
protected SQLiteDatabase db;
protected Cursor cursor;
protected ListAdapter adapter;
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
db = (new DatabaseHelper(this)).getWritableDatabase();
searchText = (EditText) findViewById (R.id.searchText);
}
public void search(View view) {
// || is the concatenation operation in SQLite
cursor = db.rawQuery("SELECT _id FROM employee WHERE firstName=?", 
                        new String[]{searchText.getText().toString()});
Intent intent = new Intent(this, EmployeeDetails.class);
long id = cursor.getLong(cursor.getColumnIndex("_id"));
intent.putExtra("EMPLOYEE_ID", id);
startActivity(intent);
}
}
</pre>

<p>Everbody pls help me.</p>
