Thank you.
If i only use:
Intent intent = new Intent(Intent.ACTION_SEARCH);
intent.putExtra(SearchManager.QUERY, "Heiko");
startActivity(intent);
I get a Windo Popup to choose a action:
"Complete action using:
- Mail
- Android Market
- App/Search/Query/Search Result
- Browser
- Contacts
- Google Search
- Maps
- Music
- YouTube"
Is it not possible to choose one before via a data uri?
Heiko
On 15 Mai, 19:38, Jeff Sharkey <[email protected]> wrote:
> The ACTION_SEARCH intent doesn't take a data Uri, so new
> Intent(Intent.ACTION_SEARCH) should be enough.
>
> j
>
>
>
> On Thu, May 14, 2009 at 9:02 AM, prihei <[email protected]> wrote:
>
> > Hello,
>
> > how can i open the contact view with a query?
> > I try this:
>
> > Intent intent = new Intent(Intent.ACTION_SEARCH, People.CONTENT_URI);
> > intent.putExtra(SearchManager.QUERY, "Heiko");
> > startActivity(intent);
>
> > I get this error:
> > android.content.ActivityNotFoundException: No Activity found to handle
> > Intent { action=android.intent.action.SEARCH data=content://contacts/
> > people (has extras) }
>
> > Second Question:
> > Is it possible to search also for address and telephone numbers?
> > I have no problems in my own activity, it works fine. But i will start
> > the device contact list search.
>
> > Thank you for your help.
>
> > Heiko
>
> --
> Jeff Sharkey
> [email protected]
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---