Friday, October 25, 2013

Thursday, October 24, 2013

The Solution and System Design of Mobile Playlist


The Solution and System Design of Mobile Playlist

Mobile Playlist is developed with C# programming language that execute with Microsoft Visual Studio 2010 for Windows Phone. 

System Specifications:
+ Hardware
-            Windows Phone
+ Software
-            Microsoft Visual Studio 2010 for Windows Phone
-            SQL Server Management Studio (2008)
-            Windows Phone 7.1 SDK (Emulator)
-            OS Windows 7 (32 bit)

System requirements to run Windows Phone SDK7.1 


Supported operating systems
Windows7 32-bit (x86) client versions
Hardware
8 GB of free disk space
2 GB of RAM (recommended)
32-bit (x86) motherboard
Windows Phone Emulator
The amount of RAM will be at least 256MB and there should be at least 8GB of flash storage.
  
Flowchart


Flowchart Description

When the application begin to run, first it will check the condition connect to Beatme website. After that, it will list all the song that has in database to play in windows phone.

Programming Design with Microsoft Visual Studio 2010
Mobile Playlist applications developed based on Windows Phone using C # programming language in Microsoft Visual Studio 2010 (Figure 1. Microsoft Visual Studio 2010). To design this application, before testers did some searching to figure out how to play music player designed by the author. Interviews and data processing is done to make the expected design writer can provide optimal results not only in functions but also in the GUI (Graphic User Interface).


(Figure 1. Microsoft Visual Studio 2010)

Design Form Application (Windows Phone application)
In this form application as found in Figure 2, is made using Windows phone application pages (Individual Pages).
To start creating a new Windows Phone application:
-            Start Microsoft Visual Studio 2010
-            Create a new Project
-            Windows Phone Application template


(Figure 2. Windows Phone application)
Add Connection to SQL Server (WcfServices)
WCF Service Application is for add to Mobile Playlist Application Project to configure to database in SQL Server. Figure 3.6 is WCF Service Application.
To add WCF Service Application to Mobile Playlist Application Project
-          Right click on Solution Project
-          Select WCF in Visual C# and choose WCF Service Application


(Figure 3.6 WCF Service Application)

Add ADO.NET to WCF
ADO.NET is for added to WCF Service Application to get database connection.
To add ADO.NET into WCF
-          Right click on WCF Service Application and Add New Item
-          Select Data Visual C# and choose ADO.NET Entity Data Model


-          Click Next


-          Click New Connection


-          Select Server name and database from SQL Server.


-          Select Table to bind data, then click finish 


In solution explorer, follow these codes in Service1.svc.cs


In IService1.cs, Follow these codes


After that, built this project (Ctrl + Shift + B) and run (F5) it to get service.

 
Click on Service1.svc


Now, add service reference to Windows Phone Application.
To add service reference
-          Right click on Widows Phone Application
-          Add service Reference
-          Discover
-          Ok

In MainPage.xaml


In MainPagexaml.cs


Output: