i have a ListActivity which creates a DB-Connection and shows the results.
When i click on an item, a PopupWindow is shown, giving me the opportunity to change the name.
Besides the fact that i am somehow unable to change the text in my EditText in the PopupWindow (hitting keys does nothing), it wont give me an error when updating the Cursor and does nothing.
My Code: (c is the Cursor and defined in the ListActivity, it points to the selected item which i can verify because the popupwindow contains text from the cursor)
Using java Syntax Highlighting
- mySaveButton.setOnClickListener(new OnClickListener()
- {
- public void onClick(View arg0) {
- c.updateString(1, myEditText.getText().toString());
- //c.updateString(1, "Testmeeting "+Integer.toString(c.position())); // <- doesnt work either
- c.commitUpdates();
- pw.dismiss();
- }
- }
- );
Parsed in 0.030 seconds, using GeSHi 1.0.8.4
From debugging there seems to be nothing wrong. The SQLiteDatabase from which the Cursor was created still exists and is not null, as is the Cursor. Still nothing happens.
Does someone have a hint where i could look next? I'm a bit stuck here for a while now...
Thanks in advance, Sebastian


