Also, my listview doesn't seems to update/refresh with new data until I refresh it manually. How do I refresh the new listview after updating?
On Sep 13, 1:28 am, Mystique <[email protected]> wrote: > Another question seeking help. > When I click the listview item, I pop up a form as dialog format to > enable user to edittext. All is fine, I have an option to cancel > editing by calling removeDialog(ID1); > But if the user click "back" (android key) instead of the cancel > button and pick another item in the listview, the edittext will > contain the old data. > > I think because back did not release the dialog and it recall the same > thing again instead of re-inflating one with the newly selected data? > How to solve this issue? > > On Sep 11, 11:19 pm, Pang <[email protected]> wrote: > > > > > c.getString(c.getColumnIndexOrThrow(UN)) > > > On 9月11日, 下午8时37分, Mystique <[email protected]> wrote: > > > > Cancel my last qns, I understood and get it work already :) > > > > On Sep 11, 8:32 pm, Mystique <[email protected]> wrote: > > > > > Dear Mr. Murphy, > > > > > Thanks, I understood this part ok > > > > c.moveToPosition(position); // where c is your Cursor > > > > String temp=c.getString(...); // where ... is whatever column number > > > > > My cursor was created in onCreate, how do I initial it in public void > > > > onListItemClick? > > > > This part I do not understand. > > > > > On Sep 11, 8:19 pm, Mark Murphy <[email protected]> wrote: > > > > > > On Sat, Sep 11, 2010 at 8:04 AM, Mystique <[email protected]> > > > > > wrote: > > > > > > So if I want to get value of UN, I do this -> String temp = > > > > > > moveToPosition(UN)? > > > > > > No. > > > > > > c.moveToPosition(position); // where c is your Cursor > > > > > String temp=c.getString(...); // where ... is whatever column number > > > > > you are seeking > > > > > > -- > > > > > Mark Murphy (a Commons > > > > > Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy > > > > > > _The Busy Coder's Guide to *Advanced* Android Development_ Version 1.9 > > > > > Available! -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

