Komli Mobile now supports Windows Phone 7 publishing through its Windows Phone 7 SDK Beta Program. Publishers can use the Windows Phone 7 SDK Beta Program to deliver highly targeted mobile advertising to their Windows Phone 7 mobile apps and mobile games. This will display ads anywhere in your application using grid names as image.
Ability to fetch upto 5 ads at a time, cache and display them.
Flip animated ads.
| try | |||||
| { | |||||
| if ( Int32.Parse(gettime_zest.ToString()) == 0) | |||||
| { | |||||
| Debug.WriteLine( "Please enter a valid time, it should not be 0" ); | |||||
| } | |||||
| else | |||||
| { | |||||
| // Create the Thread for continuous and independent operation. | |||||
| Thread t = new Thread(Getadsfromzest); | |||||
| // Start the thread. | |||||
| t.Start(); | |||||
| } | |||||
| } | |||||
| catch | |||||
| { | |||||
| Debug.WriteLine("Error in MainPage method"); | |||||
| } | |||||
| a. Getadsfromzest - This method is used, to send request to Komli Mobile server. | |||||
| Note: Assign these variable after Getadsfromzest method for further process | |||||
| Assign the variable for animation. | |||||
| private int _zIndex = 10; //set the position. | |||||
| private int time; //set the animation time interval. | |||||
| b. zestadzads_DownloadStringCompleted - | |||||
Get the response from Komli Mobile server. |
|||||
Store the xml data to a list using xml linq paraser. |
|||||
Get the stored data from list. |
|||||
Add animation to ads(i.e image). |
|||||
Send it to view part i.e. to xaml. |
|||||
| c. AddImage - This method is to add images to image grid, with or without animation. | |||||
| d. image_Loaded - This method is used to create flip animation when image is loaded. | |||||
| e. gopage - This method is used to show the selected image link's page / landing page in browser. You need to create browser element in Xaml/front_end. i.e (<phone:WebBrowser Name="webBrowser1" .....) in name of webBrowser1. |
|||||