Windows Phone 7 “Mango” Development 201 – Local Database Storage

Windows Phone 7 “Mango” Development 201 – Local Database Storage

In this Mango development tutorial we are going to explore a new SDK feature; local database storage. This was not available to us in the pre-mango SDK hence the tutorial on how to use Isolated Storage. Isolated Storage worked for storage purposes when we had no local database and using web services were out of the question. Now that this sweet Mango treat has come our way, it is time to dive in. This will be a different approach for most new developers as we are going to use LINQ to SQL but you can learn as we go. LINQ to SQL is a little different when it comes to coding SQL statements and the like as there are no actual written queries. The first thing we want to keep in mind is that because we are going to use Language Integrated Query (LINQ) we are going to use what is known as a data context which is a proxy or and object that represents our database.  This object will have Table objects that hold entities or columns within our database. This data context is what we are going to use to bridge the gap and use Local Database Storage within our Windows Phone 7 Mango application. . Seeing as how we are at an intermediate level in our Windows Phone 7 development career, we are not going to cover the mundane job of adding all of the text blocks or labels as this should already be common knowledge.  If this is new to you, please check out our Windows Phone 7 Development 101 series on Binary Wasteland to get a...
Windows Phone 7 “Mango” Development 201 – Isolated Storage Explorer

Windows Phone 7 “Mango” Development 201 – Isolated Storage Explorer

In this tutorial we are going to revisit the concept and implementation of isolated storage as Microsoft has given us some cool new toys to play with in the Windows Phone 7.1 SDK. This tool is command line based and will allow us to peer into either an emulator or an actual attached device. Once in the device/simulator we can navigate through the applications isolated storage files and choose to export them and if you really wanted to, import storage files from your computer into the device/simulator. We will look at how to do both of those as well as list the directories and files within the application. Jump below to find out how to get started with the Isolated Storage Explorer.   In the Windows Phone 7 Development 101 series we did a tutorial on how to use the Isolated Storage API provided to developers in a pre-Mango development environment.  This required that we set up a isolated storage file and send and retrieve data from it upon entering the application and when the button is clicked. Now in a post Mango development environment we can use the isolated storage explorer to bring the file onto our computer and view the data like never before.  This tutorial will get us back into the feel of Windows Phone 7 Development and prepare us for what is to come. The first thing we will want to do, is download the Statistics Tracker application (free/trial is exact same as paid version unless you feel like donating) from the Windows Phone Marketplace,   First, we will need to navigate to the Isolated...
Windows Phone 7 “Mango” Development 201 – The Application

Windows Phone 7 “Mango” Development 201 – The Application

Exciting news for those that have followed our 101 series here at Binary Wasteland and are getting pumped for the new 201 series that is airing today. We have the application we designed in the marketplace for you to download for free. We figured, what better way to get pumped up than to start using what we will be designing. The free version is fully functional, except for push notifications because you would need the notification center we have designed for you. What’s more, is that we have designed this exciting new application promotion page, featuring the HTC Titan X310e instead of the stock emulator. This was not easy, getting the Titan into such an enclosed space with such a huge screen size but we managed through some excellent Photoshop skills. We hope that you enjoy the start of the 201 series, the application and its accompanying promotion page. If you have any comments or suggestions, let us know in the comments below! Until the next 201 article, Happy Hacking! Like this:Like...
Windows Phone 7 “Mango” Development 201 – A Tutorial Series

Windows Phone 7 “Mango” Development 201 – A Tutorial Series

Welcome back another development series here at Binary Wasteland. We are going to be doing some Windows Phone 7 development covering Mango and its juicy new features. With the new OS being released, now is the perfect time for developers to learn the exciting new features and tools available to them. In this tutorial series we will cover a range of topics to better prepare developers for Mango-fying their applications. In the 201 series we will cover tools and SDK features including the Isolated Storage Explorer tool, local database options and the new gyroscope feature. With these features and more being covered in the series it will better prepare and grow the community of Windows Phone Developers, thus increasing the applications to be found in the marketplace. To demonstrate applications and for development testing we will use the new HTC Titan for the entire development series. With a generous screen size of 4.7″ we figured that viewing developed applications would not be an issue. Until the first development tutorial, Happy Hacking! Update Make sure to check back every Monday at 9:00AM for the next several weeks as we air a new tutorial article on Mango specific features! Like this:Like...
Windows Phone 7 Development 101

Windows Phone 7 Development 101

With the Windows Phone 7 Development tutorial series completed it is now time to move on to yet another compelling programming language. Although,  not before we give you a link to all the resources in one complete space.  This development 101 tutorial series will take you through what you will need for setting up your development environment and concluding with releasing your Windows Phone 7 application in the Marketplace.  There will be a PDF developed for those having to work in an area with no internet and will be forthcoming at some point. Windows Phone 7 Development 101 – A Tutorial Series Windows Phone 7 Development 101 – Hello World Windows Phone 7 Development 101 – Beginning A Statistics Tracker Windows Phone 7 Development 101 – Isolated Storage Windows Phone 7 Development 101 – Finishing Statistics Tracker Windows Phone 7 Development 101 – Off To Market! Hopefully this compendium of tutorials will provide useful towards building the knowledge and skills required for developing for the Windows Phone OS Platform and provide a launchpad for those wanting to make a WP7 application.  If there are any comments or suggestions on the series and what you think should have been included, please feel free to comment below and I will answer all as swiftly as possible.  Until the next Development 101 tutorial series, Happy Hacking! Like this:Like...
Windows Phone 7 Development 101 – Finishing Statistics Tracker

Windows Phone 7 Development 101 – Finishing Statistics Tracker

In this tutorial we are going to to finish the statistics tracker by making some last minute enhancements as we prepare the application for market.  In the previous post we implemented Isolated Storage to store data about our statistics and in this tutorial we will draw upon the file we use in isolated storage. To make this application presentable and ready for market, we are going to remove the button that is used to delete the isolated storage file, add the ability to show the total number of counted items when a button is pressed which will be a two step process as well as providing the same number at the bottom of the application and update it as the values are added. To begin with we are going to need to get rid of the button that allows the database to be removed and remade when pressed.  To do this we are going to comment out our Delete DB button and the code behind it in MainPage.XAML.CS. To do this we need to higlight the code below and navigate to the toolbars and choose the one that looks like this: .  When we return to the XAML code we will need to dispose of the code that makes the button visual on the phone and as such, the second peice of code below will show you what needs to be commented out. After this is done the visual of the Delete DB button will be gone and the code and the visual should look like this: //private void btnDelete_Click(object sender, RoutedEventArgs e) //{ // IsolatedStorageFile directory = IsolatedStorageFile.GetUserStoreForApplication();...
%d bloggers like this: