So I've got my ContentProvider displaying data in a ListView via the
SimpleCursorAdapter. I can double-click on an item and bring up an Edit
Activity and save the information back to the database. The way I do this
is by passing the _id around between functions/Activities/whatever.
That means, in my list, I see the _id and the name listed for each item.
That looks stoopid. How do I get rid of either passing the _id around or
not displaying it? I tried the following:
TextView myId = (TextView)findViewById(R.id._id); // yes there is a
R.id_id
myId.setVisibility(8); // GONE
but that just caused a Null Pointer Exception.
--
Faber Fedor
Cloud Computing New Jersey
http://cloudcomputingnj.com
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" 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-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---