Now that my boss does not like context menu, I need to put a delete
button and delete selected record from listview. in this case how will
i get _id for the selected row ? for context menu i used to get as
follows
AdapterView.AdapterContextMenuInfo mnuDelinfo =
is it mandatory to be the db created by SQLiteOpenhelper ?
is it mandatory to be the field names all small ?
I compared the whole code with mark's reviewed it umpteen number of
times, dont understand where is any trick left ?
I am gonna try changing the 2 field names to all small case
i
thanks a lot mr mark. I was able to figure out problem thanks to
another review. But it seems delete.png is still not shown on context
menu.
regards
On Dec 18, 5:08 pm, Jags jag...@gmail.com wrote:
is it mandatory to be the db created by SQLiteOpenhelper ?
is it mandatory to be the field
If I want to refresh that in the same activity, then ? For example, i
need a cursoradapter and select a row and delete, that row is deleted
and record is also deleted, and dsplay updated. on click of a button
in the same activity. which example of yours demonstrate this type ?
I confess to
Hey Mark,
yes this is what i am trying to do. But the problem is, I dont see a
ListView in your main layout. neither you do a setContentView() in
your OnCreate method. it was crashing for me when i did a
setContentView, it is now showing blank list. How can I debug adapters
to see the records ?
now, after fixing those things, I get 2 items in the list [which is
correct], but unfortunately, these are shown blank, no texts !. Am I
missing something somewhere ?
regards
On Dec 18, 12:17 pm, Jags jag...@gmail.com wrote:
Hey Mark,
yes this is what i am trying to do. But the problem is, I
anybody out there ? the values in the cursor are perfect, i printed
them one by one, but the rows are blank in the listview
On Dec 18, 12:38 pm, Jags jag...@gmail.com wrote:
now, after fixing those things, I get 2 items in the list [which is
correct], but unfortunately, these are shown blank,
is my post visisble to the group :) ?
On Dec 10, 11:41 am, Jags jag...@gmail.com wrote:
I am dealing with 4 activities and a database. one parent activity
calls 3 other activites [add, edit, delete] . so when i come back from
these 3 activities to parent activities, depending upon the database
Jags wrote:
is my post visisble to the group :) ?
This one is.
On Dec 10, 11:41 am, Jags jag...@gmail.com wrote:
I am dealing with 4 activities and a database. one parent activity
calls 3 other activites [add, edit, delete] . so when i come back from
these 3 activities to parent activities,
will the cursor contain updated DB info ? like we get cursor after
query is executed. Though CursorAdapter seems the smart way of doing
it, as a beginner, i settled with requering the db and displaying
info, I am currently little time constrained to see CursorAdapter. the
query being put in
Jags wrote:
will the cursor contain updated DB info ? like we get cursor after
query is executed.
A Cursor that has requery() called on it will contain the latest
results. You can either call requery() yourself or use
startManagingCursor() to have it automatically requeried upon activity
11 matches
Mail list logo