Hello,

I am trying to implement search suggestions which is pulling the
suggestions fine.

Now when I click on any of the suggestion, it is not sending the
suggestion's id as I expected. I tried following everything that the
searchable dictionary does.

Here is what I am trying to do in the onCreate method.

==================
Intent intent = getIntent();
if (Intent.ACTION_VIEW.equals(intent.getAction())) {
       Intent animalIntent = new Intent(this, AnimalActivity.class);
       animalIntent.setData(intent.getData());
       Log.v(" Data Uri : ", intent.getData().toString());
       startActivity(animalIntent);
       finish();
}
=================

The logs show that the uri is:
content://com.achie.gs1.SampleProvider/zoo

But I was expecting it to be like:
content://com.achie.gs1.SampleProvider/zoo/3

I tried debugging the searchable dictionary application and it works
fine there. Can someone explain what my mistake might be.

Thank you.
Achie

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

Reply via email to