On Fri, Jan 9, 2009 at 8:15 PM, Mark Murphy <[email protected]> wrote:

>
> Faber Fedor wrote:
> > How do I get rid of either passing the _id around or not displaying it?
>
> To not display it, don't put it in the list in the first place.


Well, if you're going to be unreasonable about it! :-)

I'm not quite sure how you're handling a double-click (double-clicks
> aren't that common in Androidland, AFAIK),


I'm not handling it; I just double-click in the emulator and it Just Works.
Maybe the second click is ignored?  I'll test it tomorrow.


> but most of the click-related
> callbacks have a "long id" parameter that should be the _id of the
> clicked-upon row from your Cursor.


Now *that's* magical! How does the callback know I have a long id and that
it's the _id on the SQLite table? If I change my SimpleCursorAdapter to, oh,
I don't know, an ArrayAdapter, do I have to change the parameters in my
OnClickItemList?

-- 

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
-~----------~----~----~----~------~----~------~--~---

Reply via email to