I finally got it figured out (thanks Beth):
@Override
public void onItemClick(AdapterView<?> arg0, View arg1,
int
position,
long id) {
String name = ContactNameList.get(position);
String strID = ContactIDList.get(position);
String strLKP = ContactLookupList.get(position);
Uri contactUri =
ContactsContract.Contacts.getLookupUri
(Long.parseLong(strID), strLKP);
Intent intent = new
Intent(Intent.ACTION_VIEW,contactUri);
startActivity(intent);
}
On Feb 1, 10:30 pm, andrew android <[email protected]> wrote:
> Bump:)
>
> On Feb 1, 5:02 am,andrewandroid <[email protected]> wrote:
>
>
>
> > Could you help give some example? Some Example how you use it?
> > Thanks!
>
> > On Jan 31, 8:34 pm, Dmitri Plotnikov (▯▯▯▯) <[email protected]>
> > wrote:
>
> > > You don't need to create it. It is column on the Contacts table. There is
> > > also a conenience method on Contacts that will retrieve it for you.
>
> > > On Jan 31, 2010 3:43 PM, "andrewandroid" <[email protected]> wrote:
>
> > > Please tell me, though, how do you create a lookup key? Can you give
> > > or point me to a good example?
>
> > > On Jan 31, 12:47 pm, Dmitri Plotnikov (▯▯▯▯) <[email protected]>
> > > wrote:
>
> > > > Contact IDs are volatile, they often change as a result of aggregation.
> > > You
> > > > need to store the l...
> > > > On Jan 31, 2010 9:42 AM, "andrewandroid" <[email protected]> wrote:
>
> > > > I am having a proble...
> > > >[email protected]<android-developers%2Bunsubs
> > > > [email protected]><android-developers%2Bunsubs
>
> > > [email protected]>> For more options, visit this group athttp://
>
> > > groups.google.com/group/android-developers?hl=en
>
> > > --
>
> > > You received this message because you are subscribed to the Google
> > > Groups "AndroidDevelopers" group...- Hide quoted text -
>
> > - Show quoted text -- Hide quoted text -
>
> - Show quoted text -
--
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