Freelance Jobs

Sunday, November 28, 2010

Lifecycle of a Windows Phone 7 App

 
The model for for the entire lifetime of  an application, ie from the launch to the termination is called the Windows Phone Execution Model. Each Application moves through the stages of the life cycle.  The events are 
1) Launch/Start
2) Running
3) Pause/Deactivation
4)Resume/Reactivation
5) Close
 
image

Launch State
 
A Windows Phone Application is considered to be in a Launch state when it is initiated by a user, either from the list of installed applications or from the tile for the application in Start. When the application is started a Launch event is raised and it’s here we creates a new instance for the app. This event is raised before the application is visible or active. So loading data from isolated storage or performing time consuming tasks are highly discouraged coz it will increase the startup time of the app there by providing a bad user experience. 
Running State
 
Once the app is loaded, then it will be in the running state. In this state, the app keep tracks of its state as the user goes back and forth through the application pages. 
Paused State.
 
This is an interesting state in the lifecycle of an app.  The app enters Deactivated state when it is interrupted by an incoming call or other tasks such as taking a photo or sending an email or even starting another app. Any of these interrupts will cause the Deactivated event to fire. When an app is deactivated the OS will keep a record of the application and stores the state to the isolated storage. MS guys calls this process as TombStoning. 
Reactivated State.
 
When the user comes back to a deactivated or tombstoned app, the application is restored to the point where the user has left the app. There are chances that an user may or may not return to a tombstoned app. This can lead to drainage of the memory and storage space. Inorder to avoid this OS keeps track of long running tombstoned apps and terminates it appropriately so that the phone doesn’t run out on memory and storage.

Saturday, November 27, 2010

What is Windows Phone 7

 

Microsoft introduced Windows Phone 7 to the public during the Mobile World Congress 2010 @ Barcelona. During the initial stages, MS developed this one as an upgrade to Windows Mobile 6.5, but the developments made by Apple and Google in the mobile arena prompted them to rejig its mobile offering. Then @ MIX 10, they revealed more features and then released the beta toolkit for developers to build applications targeting the  Windows Pone platform. As of writing this post the toolkit has been put to gold and RTM version is now available for download from the Microsoft site. The home page for Windows phone is located here and it contains lots of documentation and code samples.


Snapshot of Windows Phone 

Sunday, November 14, 2010

My Session on Windows Phone 7 - Powerpoint Slide

K-MUG UG Meet Nov 13 2010 - A Retro

During the Community Tech Days 2010 held at Kochi, K-MUG decided to conduct monthly user group meeting for Central Kerala region at Kochi. First meeting was conducted on Nov 13, 2010 and the venue was Mastermind Institute of Engineering,  Kakkanad, Kochi. I was given a chance by the K-MUG people to take a session on Windows Phone 7. 

Although I had started making slides and creating some demo applications, last minutes hiccups is unavoidable. The case is no different here, I didn’t wanted any issues to surface during the presentation coz of my unstable development machine, so I decided to demo the application inside a VM. For that I created a new one with Windows 7 64-bit as OS and then went on to install the Windows Phone Developer Toolkit which is a free download from MSDN. Even though I had 3GB memory and a dual core processor, it took a pretty decent time to install. But to my horror, I found out that the application is not loading in the emulator after a successful build. So after googling for a while I was able to get the problem behind that, Windows Phone Emulator will not work properly in a VM. The time was almost midnight and I had to catch the early morning train, so I decided to show it in my machine come what may. 

Next morning I got up early and reached the station in time. During  the journey I decided to go through the ppts and demo applications and made sure that everyone is working fine. I reached Eranakulam around 9.30 and thanks to ever present traffic blocks in Ernakulam, I was late by half an hour in reaching the venue. When I entered the hall, Yanesh was mid-way through his presentation on Test Driven Development and I was unable to listen to his talk coz I was busy with settling down and Safil was waiting for me to have my lap  to show his presentation. Although he had Praseed’s lap as a backup, I handed over mine to him to prepare for the session. By this time Yanesh wrapped his session and I was not able to pay attention. Really missed it, coz I had attended his last session on Generics at CTD Kochi and it was an excellent one.  In the meantime, if someone is wondering who Yanesh is, this is for them. He is a solutions architect with Millennium Consultants who has got 16+ years of experience in designing and developing application using Microsoft Technologies. Please visit the event page to know more about Yanesh .


Thursday, November 11, 2010

My Session on Windows Phone 7 - Usergroup meeting @ Kochi on Nov 7, 2010

I am talking about Windows Phone 7 application development at an user group meeting conducted by K-MUG at Kochi on Nov 13,2010. My intention is to give brief description about the history and time line of WP7 and will be demo demonstrating some applications built using the windows phone developer tools targeting the mobile platform. If you are really interested in it, please come and join me on 13th. There are also other sessions on Microsoft Surface, Windows Communication Foundation and Test Driven Development. For more details about the event, please visit the K-MUG events page and registrations can be done from here.

Sunday, November 7, 2010

Usergroup meeting @ Kochi on Nov 7, 2010


K-MUG has decided to conduct monthly user group meetings across Kerala. So on 7th of November, Kochi will be hosting the meeting for central Kerala region. And, I will be giving a session on Windows Phone 7, also there are couple more people giving sessions on very interesting topics. 

Venue
Mastermind Computer Institute, 
2nd Floor, New Kochappilly Building, 
Near Federal Bank, 
Civil Line Road, 
Chembumukku, 
Cochin-682030


09:15 - 09:30 Community updates
09:30 - 10:30 Test Driven Development
10:30 - 11:15 Microsoft Surface
11:15 - 11:30 Tea Break (15 min)
11:30 - 12:15 Windows Phone 7
12.15 - 01:00 Introduction to WCF 4.0

For more details and info about the speakers, please visit the event page in K-MUG site and registration can be done here.