I am pulling a subset of information based on a date and time
combination and then selecting from this reduced set. The problem is -
in order to edit the one item I select I need the original rowId but I
get a new rowId based on the reduced set.

        Bundle extras = getIntent().getExtras();
        String create_date = extras.getString("KEY_DATE");
        String create_time = extras.getString("KEY_TIME");
        Cursor fc = null;
        ArrayList<String> results = new ArrayList<String>();
        fc = this.mDbHelper.fetchExisting(c_date,c_time);
        startManagingCursor(fc);
        //
        int i = 0;
                do {
                        i++;
                        String Name = fc.getString(3);
                        results.add(Name);
                } while (fc.moveToNext());
        listView = getListView();
        listView.setItemsCanFocus(false);
        listView.setChoiceMode(ListView.CHOICE_MODE_SINGLE);
        ArrayAdapter<String> aa=new ArrayAdapter<String>
        (this,android.R.layout.simple_list_item_single_choice, results);
        setListAdapter(aa);

        @Override
        protected void onListItemClick(ListView l, View v, int position, long
id) {
        super.onListItemClick(l, v, position, id);

How do I maintain my original rowId after entering the onListItemClick
method?

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en

Reply via email to