Drop Down MenusCSS Drop Down MenuPure CSS Dropdown Menu

Friday, September 12, 2014

How to run and deploy an app for Windows Phone ? or How to deploy Xap file into Device ?



How to run and deploy an app for Windows Phone ? Or How to deploy Xap file into Device ?
We can run your app in Windows Phone Emulator and windows phone device connected to development computer.
While you are developing Windows phone app .you can test your app two component
1.       Windows Phone Emulator
2.       Windows Phone ( before publish  windows store you should test in your device as well )
App Publish and running apps on a Windows phone device
·         Register your device for development for windows phone
·         Connect your computer (unlock phone screen)
·         Select Target to deploy Device
 *** You can deploy up to 10 apps on a registered device
App Publish using Application Deployment Tool:
You are not having source code .your developer sent only xap file during time we need to use xapDeploy.exe
Where I can find xapDeploye.exe file?
You can only use the version of the Application Deployment tool installed in the folder C:\Program Files (x86)\Microsoft SDKs\Windows Phone\v7.1\Tools\XAP Deployment to deploy apps that target Windows Phone OS 7.1








Tuesday, September 2, 2014

Saturday, September 28, 2013

VideoChooserTask :: MediaChooserTask in WP8


VideoChooserTask &  MediaChooserTask not available in default chooser  Windows Phone 8

So We can Use  MedialLibrary it will give you access to  existing Songs & Video


Namespace: Microsoft.Xna.Framework.Media



 using(MediaLibrary library = new MediaLibrary())
            {
                SongCollection songscollection = library.Songs;
                Song song = songscollection [0];
                MediaPlayer.Play(song);
            }

Dev FeedBack:

Please follow below link for update

http://wpdev.uservoice.com/forums/110705-dev-platform/suggestions/1897833-video-chooser-task

Tuesday, August 6, 2013

Windows Phone Application Development Event Life Cycle


Windows Phone Application Development Event  Life Cycle

It is important for development to know Application life Cycle so that they can understand well

Easy to understand using below image:

Step 1:

 

Step 2:



I believe now you are understanding well, we can discuss briefly about application life cycle below

Event and States together make up for an application life cycle .In windows phone application life cycle events (4 type of event)

Windows Application life cycle Events:

1.    Launching
2.    Deactivated
3.    Activated
4.    Closing

Windows mobile have 3 type of application state

1.    Running
2.    Dormant
3.    Tombstoned

Events lead to change the application state




1. Launch Event:

1. This event is raised when user launch the application
         è Mostly avoid this event for Application will get load quickly

Application Launching Event coding:( App.xaml.cs)

            // Code to execute when the application is launching (eg, from Start)
        // This code will not execute when the application is reactivated
        private void Application_Launching(object sender, LaunchingEventArgs e)
        {

        }

 1.1Running State:

            1. Once the application is launched its goes into Running state
            When Running State will appear?
1.    This state is on till the user doesn't navigate away from application
2.    The Phone is in Lock mode

 2. Deactivated Event:

          The user goes away from your application this event is raised
           In this application context and page should be saved
           When this application reactivated, that time save state should be restore

  Coding( App.xaml.cs)

  // Code to execute when the application is deactivated (sent to background)
        // This code will not execute when the application is closing
        private void Application_Deactivated(object sender, DeactivatedEventArgs e)
        {
        }

2.1        Dormant State:

-       Deactivated event goes into dormant state
-       In Dormant State the application is stopped ,but application in phone memory
-       Again application activate state that time phone need more memory,
(While activate application, that time state convert into Tombstoned state)

2.2        Tombstoned State:

-Once an application is terminated its goes into tombstoned state
-In this state the data and application state information preserved for maximum 5 application

3. Activated Event

When user switch back to a dormant or tombstoned application, this event is fired.
Developer should check the IsApplicationInstancePreserved property to know if the application is returning from being dormant or tombstoned state.
If it's value true, then the application was in dormant state else tombstoned state.


Coding: App.xaml.cs

        // Code to execute when the application is activated (brought to foreground)
        // This code will not execute when the application is first launched
        private void Application_Activated(object sender, ActivatedEventArgs e)
        {
            if (e.IsApplicationInstancePreserved == true)
            {
                //Dormant state
            }
            else
            {
                //tombstoned  state
            }

        }

4.Close Event

When the user navigates backwards from the first page of application, this event is fired.
Application gets terminated in this event and you get only 10 seconds to save any data if required.
For your Info : User does not have API for close application

Coding: App.xaml.cs

       // Code to execute when the application is closing (eg, user hit Back)
        // This code will not execute when the application is deactivated
        private void Application_Closing(object sender, ClosingEventArgs e)
        {
        }




Thursday, August 1, 2013

LESS extends CSS with dynamic behavior such as variables, mixins, operations and functions.

                        Dot - Less {}

                                     Dynamic CSS for .Net

LESS extends CSS with dynamic behavior such as variables, mixins, operations and functions.

Download latest dot less package  http://www.dotlesscss.org/  ,

Sunday, April 28, 2013

Disable Right Click in IE

Java Script:

<script language="javascript">
document.onmousedown=disableclick;
status="Right Click Disabled";
Function disableclick(e)
{
  if(event.button==2)
   {
     alert(status);
     return false;    
   }
}
</script>

HTML Coding:

<body oncontextmenu="return false">
...
</body>