You need to be a premium member to use this feature. To access it, you'll have to upgrade your membership.
Become a sharper developer and jumpstart your career.
$0
$
. 00
monthly
For Basic members:
$10
For Premium members:
In this article we will learn how to integrate Bing search results in our Windows Phone 8 app using Windows Phone App Studio.
In this article we will learn about the Bing Data Sources of Windows Phone App Studio. We will create a sample application to demonstrate the use of this Data Source. The task our app is to just search for any keyword and provide its result on the App screen.
Bing Data Source
Bing is a web search engine from Microsoft. Earlier it was also called various names, like Live Search, Windows Live Search and MSN search. It is also known as a decision engine. It is ranked at the second position among other top web search engines (on the basis of Alexa rank). Microsoft integrated this power of web search with our Windows Phone apps by providing us a ready-made Bing Data Source component in Windows Phone App Studio. Now we can integrate this power of web search in just a few clicks without using any code. Not only that, a Bing Data Source also provides us a country-specific web search so that we can keep it relevant.
Adding Bing Data Source
Use the following procedure to create a sample showing how use a Bing Data Source in your app.
Let's consider a scenario. In your app, you want to integrate the web search results of your company in your app. So to do this, we will first add a menu item for it. On clicking that menu item the user will be navigated to search results. So let's do that.
Open App studio from this link http://apps.windowsstore.com/default.htm
Click on "Start Building". (Assuming you are already logged into your account.)
Click on "Create"
Click on "Create an Empty Application".
Set the App logo. I'm using the default one.
Set the App title and Description and click "Next"
Click on "Add section" and select "Add Menu"
Enter menu title.
Click on add menu item and select "Add section Item"
Now enter a Section name.
Choose the Data Source. If the Data Source is already added then select it from the existing sources else you can select from the new Data Sources and provide it a name.
Click on "Save changes".
Now add one more section item by repeating the preceding four steps.
Now click "Save changes".
Our menu is ready now. Next we need to configure the Data Sources and we are done.
Click on "YouTube Data Source" in the left side.
Select "Search" from the drop down and add this in the search box "dr. kumar vishwas". I
Click on "Refresh" and you will get the videos of Dr. kumar vishwas from YouTube. Here we are integrating YouTube search results, not any specific channel.
Next click on "Bing Data Source" from the left pane.
Select the country first, choosing India for this demo.
Enter the Bing search keyword as "dr. kumar vishwas" and click "Refresh".
If everything is right so far then you have web search results below the Refresh button.
Our demo is now complete. If you want, you can change the layout of the section and detail pages but that's not interesting for this article.
For the rest of the procedure to complete this app, the following article may help you:
creating-youtube-based-application-using-windows-phone-apps
windows-phone-app-studio-part-2
windows-phone-app-studio-part-1
Output
Summary
In this article we learned about the Bing Data Source. It is very handy in various applications. For example if you want to search for your company products or apps then you can show that search in your app using this component. Don't forget to comment and like this article. Thanks for reading.
Windows Phone 7 Hileleri