Login | Register   
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


advertisement
 

Developing Mobile Applications Using the Microsoft Mobile Internet Toolkit : Page 2

It's easy to get started building cross-platform mobile applications using the Mobile Internet Toolkit. This tutorial will take you step by step through a simple application that you can deploy today on ASP.NET.


advertisement
Configuring Visual Studio .NET
When you run mobile applications in Visual Studio .NET it will use Internet Explorer to test your code. If you are only targeting users of Pocket PC devices, that is quite sufficient. But if you are targeting cell phones users as well, then you also need to test your code using an emulator. For this article, I have used three ways of testing my application:

Figure 3. Test with an Emulator: You have to configure your project in VS.NET ahead of time to launch the desired emulator during testing.
Of course when you deploy your application, you need to test it on real devices. I have also tested the code in this article with a Compaq iPaq 3870 equipped with an 802.11b wireless access card.

To ensure that your emulator is launched every time you run your application, go to Solution Explorer and select the current project. Right click on the project name and select Properties. Then specify the path that contains your emulator in the "Start external program" textbox (see Figure 3).

As the UP.Simulator accepts command line arguments, you can specify the commands in the "Command line arguments" textbox. I am specifying the URL that the emulator should load when it is started:



-go http://localhost/MobileWebApplication1/MobileWebForm1.aspx

However, I have noticed that this method doesn't always direct the emulator to open the page. In any case, you can enter the URL yourself through the "Go" textbox of the emulator. Another way to set the default browser is to go to Visual Studio's File menu and select the "Browse With" option to add in a new browser.



Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap