开发者

Why does the SearchTask show a prompt?

In my Windows Phone 7 app I'm using a SearchTask to show the results of a web page. But every time I start the task I get the dread "Allow" screen. I can imagine many users being scared to dea开发者_StackOverflow中文版th by this... Why do I need to be allowed to show the results of a web search result? Is there anyway to avoid showing the scary popup screen?

Fwiw, here's my code:

SearchTask task = new SearchTask();
task.SearchQuery = "<my query>";
task.Show();


The prompt for the search app to use location will only be dislayed the first time the search app is used on the phone.

If you are seeing this displayed more than once is it because you are closing and restarting the emulator between uses of the task?
If not can you provide details of how to recreate the behaviour you're seeing.

The prompt is controlled by the search app and it is not possible to change the behaviour of that app. It is also an intent of the phone that apps should not be able to don something without the user knowing. By default the search app tries to use location to provide context when retrieving results. If the user has privcay concerns about their location data being used in this way they can prevent it. Hence this prompt.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜