<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearch/1.1/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0' gd:etag='W/&quot;AkIBSXs_eip7ImA9WhBVGEs.&quot;'><id>tag:blogger.com,1999:blog-740816477032050978</id><updated>2013-04-24T22:42:38.542-07:00</updated><category term='mobile'/><category term='localstorage'/><category term='app store'/><category term='macos'/><category term='xml parsing'/><category term='localization'/><category term='device'/><category term='softwares'/><category term='gwt'/><category term='objective c'/><category term='environment'/><category term='social'/><category term='functions'/><category term='api'/><category term='date'/><category term='application'/><category term='grid'/><category term='iphone'/><category term='css'/><category term='webkit'/><category term='mobileOS'/><category term='app'/><category term='smartphones'/><category term='qr'/><category term='eclipse'/><category term='iOS'/><category term='Android'/><category term='NSXMLParser'/><category term='database'/><category term='HTML5'/><category term='sencha touch 2'/><category term='facebook'/><category term='sharing'/><category term='twitter api'/><category term='mysql'/><category term='java'/><category term='php'/><category term='badaOS'/><category term='ajax'/><category term='mysql integration with php'/><category term='UIBarButtonItem'/><category term='sqlite'/><category term='jFace'/><category term='implementation'/><category term='metro'/><category term='mobile market'/><category term='Treeviiewer'/><category term='windows8'/><category term='FMDB'/><category term='ideas'/><category term='UISegmentedControl'/><category term='blog'/><category term='samsung'/><category term='networking'/><category term='javascripts'/><category term='rcp'/><category term='building'/><category term='jquery'/><category term='blackberry'/><category term='datepicker'/><category term='paypal'/><category term='html'/><category term='phonegap'/><category term='iPad'/><category term='webapp'/><category term='mkabefook'/><category term='jquerymobile'/><category term='SWT'/><title>Code Analyser</title><subtitle type='html'>Focusing on tutorials and help for coding on Java, JSP, Servlets, C++, Obj C, C#. Ranging from Mac OSX, iOS, Windows, Samsung bada OS.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://code-analyser.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/740816477032050978/posts/default?redirect=false&amp;v=2'/><link rel='alternate' type='text/html' href='http://code-analyser.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/740816477032050978/posts/default?start-index=26&amp;max-results=25&amp;redirect=false&amp;v=2'/><author><name>Amrit Mishra</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-kZm5wWXRhc0/AAAAAAAAAAI/AAAAAAAAB-w/9IAPjrlCzgs/s512-c/photo.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>38</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry gd:etag='W/&quot;AkMNQXs8cCp7ImA9WhBXGUs.&quot;'><id>tag:blogger.com,1999:blog-740816477032050978.post-8957063696668757463</id><published>2013-04-02T22:54:00.000-07:00</published><updated>2013-04-02T22:54:50.578-07:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2013-04-02T22:54:50.578-07:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='javascripts'/><category scheme='http://www.blogger.com/atom/ns#' term='jquery'/><category scheme='http://www.blogger.com/atom/ns#' term='datepicker'/><category scheme='http://www.blogger.com/atom/ns#' term='Android'/><category scheme='http://www.blogger.com/atom/ns#' term='date'/><category scheme='http://www.blogger.com/atom/ns#' term='css'/><title>Android Type DatePicker</title><content type='html'>Hello everyone,&lt;br /&gt;
&lt;br /&gt;
In this blog tutorial I will be showing how to add a&amp;nbsp;Date-picker&amp;nbsp;like Android.&lt;br /&gt;
While working on mobile apps compatible for all the devices, we like to add controls which provides good UX, and Date control is one of it. &lt;br /&gt;
In this I will be showing how to add few div and js code and make the datepicker look like this :&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://2.bp.blogspot.com/-5pCBIFWyTk8/UVu7N4UjWoI/AAAAAAAACEM/2D3o77CqVn0/s1600/Capture.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://2.bp.blogspot.com/-5pCBIFWyTk8/UVu7N4UjWoI/AAAAAAAACEM/2D3o77CqVn0/s1600/Capture.PNG" height="387" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: left;"&gt;
We will be using simple HTML for the UI and javascript for handling the functionality. Also we will be needing Jquery to handle few controls and dFormat javascripy. Which you can download from here :&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: left;"&gt;
&lt;a href="https://docs.google.com/file/d/0B4yrJpXRNzS5cndRMHVLSXY1dGc/edit?usp=sharing" target="_blank"&gt;dFormat.js download&lt;/a&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: left;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: left;"&gt;
HTML/UI code &amp;nbsp;:&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: left;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;pre style="background: rgb(197, 197, 197); border: 1px solid gray; color: #8a006e; font-weight: bold; height: 300px; overflow: scroll;"&gt;  &amp;lt;div id="boxes"&amp;gt;
        &amp;lt;!-- #customize your modal window here --&amp;gt;
        &amp;lt;div id="dialog" class="window"&amp;gt;
            &amp;lt;table class='test' cellpadding='0' cellspacing='0'&amp;gt;
                &amp;lt;tr&amp;gt;
                    &amp;lt;td colspan='3'&amp;gt;
                        &amp;lt;div style='border-bottom: thin solid #fff; font-size: 20px; margin-bottom: 5px;
                            padding: 5px; height: 50px;' class="calendarHeader"&amp;gt;
                            &amp;lt;div style='float: left; margin-right: 5px;'&amp;gt;
                                &amp;lt;img src="11-clock.png" /&amp;gt;&amp;lt;/div&amp;gt;
                            &amp;lt;div id='dStr' style='width: 200px; float: left;'&amp;gt;
                                Som date&amp;lt;/div&amp;gt;
                        &amp;lt;/div&amp;gt;
                    &amp;lt;/td&amp;gt;
                &amp;lt;/tr&amp;gt;
                &amp;lt;tr&amp;gt;
                    &amp;lt;td&amp;gt;
                        &amp;lt;div id="pmon" role="main" class="ui-content ui-body-a" data-role="content" data-theme="a"
                            style="text-align: center; width: 90px; padding: 10px 0px; margin: 0px 2px;"&amp;gt;
                            +&amp;lt;/div&amp;gt;
                    &amp;lt;/td&amp;gt;
                    &amp;lt;td&amp;gt;
                        &amp;lt;div id="pday" role="main" class="ui-content ui-body-a" data-role="content" data-theme="a"
                            style="text-align: center; width: 90px; padding: 10px 0px; margin: 0px 2px;"&amp;gt;
                            +&amp;lt;/div&amp;gt;
                    &amp;lt;/td&amp;gt;
                    &amp;lt;td&amp;gt;
                        &amp;lt;div id="pyear" role="main" class="ui-content ui-body-a" data-role="content" data-theme="a"
                            style="text-align: center; width: 90px; padding: 10px 0px; margin: 0px 2px;"&amp;gt;
                            +&amp;lt;/div&amp;gt;
                    &amp;lt;/td&amp;gt;
                &amp;lt;/tr&amp;gt;
                &amp;lt;tr&amp;gt;
                    &amp;lt;td&amp;gt;
                        &amp;lt;input type="text" id="mon" style="width: 86px; padding: 0px; height: 38px; margin: 2px;" /&amp;gt;
                    &amp;lt;/td&amp;gt;
                    &amp;lt;td&amp;gt;
                        &amp;lt;input type="text" id="day" style="width: 86px; padding: 0px; height: 38px; margin: 2px;" /&amp;gt;
                    &amp;lt;/td&amp;gt;
                    &amp;lt;td&amp;gt;
                        &amp;lt;input type="text" id="year" style="width: 86px; padding: 0px; height: 38px; margin: 2px;" /&amp;gt;
                    &amp;lt;/td&amp;gt;
                &amp;lt;/tr&amp;gt;
                &amp;lt;tr&amp;gt;
                    &amp;lt;td&amp;gt;
                        &amp;lt;div id="mmon" role="main" class="ui-content ui-body-a" data-role="content" data-theme="a"
                            style="text-align: center; width: 90px; padding: 10px 0px; margin: 0px 2px 2px 2px;"&amp;gt;
                            -&amp;lt;/div&amp;gt;
                    &amp;lt;/td&amp;gt;
                    &amp;lt;td&amp;gt;
                        &amp;lt;div id="mday" role="main" class="ui-content ui-body-a" data-role="content" data-theme="a"
                            style="text-align: center; width: 90px; padding: 10px 0px; margin: 0px 2px;"&amp;gt;
                            -&amp;lt;/div&amp;gt;
                    &amp;lt;/td&amp;gt;
                    &amp;lt;td&amp;gt;
                        &amp;lt;div id="myear" role="main" class="ui-content ui-body-a" data-role="content" data-theme="a"
                            style="text-align: center; width: 90px; padding: 10px 0px; margin: 0px 2px;"&amp;gt;
                            -&amp;lt;/div&amp;gt;
                    &amp;lt;/td&amp;gt;
                &amp;lt;/tr&amp;gt;
                &amp;lt;tr&amp;gt;
                    &amp;lt;td colspan='3' style="background-color: #a7a7a7;"&amp;gt;
                        &amp;lt;table width="100%"&amp;gt;
                            &amp;lt;tr&amp;gt;
                                &amp;lt;td width="50%"&amp;gt;
                                    &amp;lt;div role="main" id="setButton" class="ui-content ui-body-a" data-role="content"
                                        data-theme="a" style="font-size: 20px; text-align: center; padding: 10px 0px;
                                        margin: 2px;"&amp;gt;
                                        Set&amp;lt;/div&amp;gt;
                                &amp;lt;/td&amp;gt;
                                &amp;lt;td&amp;gt;
                                    &amp;lt;div role="main" id="cancelButton" class="ui-content ui-body-a" data-role="content"
                                        data-theme="a" style="font-size: 20px; text-align: center; padding: 10px 0px;
                                        margin: 2px;"&amp;gt;
                                        Cancel&amp;lt;/div&amp;gt;
                                &amp;lt;/td&amp;gt;
                            &amp;lt;/tr&amp;gt;
                        &amp;lt;/table&amp;gt;
                    &amp;lt;/td&amp;gt;
                &amp;lt;/tr&amp;gt;
            &amp;lt;/table&amp;gt;
        &amp;lt;/div&amp;gt;
        &amp;lt;!-- Do not remove div#mask, because you'll need it to fill the whole screen --&amp;gt;
        &amp;lt;div id="mask"&amp;gt;
        &amp;lt;/div&amp;gt;
    &amp;lt;/div&amp;gt;
      &amp;lt;div class="modal"&amp;gt;
&lt;/pre&gt;
Now Adding the above code to your html page will show the table, but we need to add the css and js also.

&lt;br /&gt;
So lets add them.&lt;br /&gt;
&lt;br /&gt;
CSS code :&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;pre style="background: rgb(197, 197, 197); border: 1px solid gray; color: #8a006e; font-weight: bold; height: 300px; overflow: scroll;"&gt;  &amp;lt;style&amp;gt;
        .test
        {
            font-size: 30px;
           position: absolute;
            background-color: #000;
            color: #fff;
        }
        input
        {
            font-size: 20px;
            text-align: center;
        }
        /* Z-index of #mask must lower than #boxes .window */
        #mask
        {
            position: absolute;
            z-index: 9000;
            background-color: #000;
            display: none;
        }
        
        #boxes .window
        {
            position: fixed;
            width: 440px;
            height: 200px;
            display: none;
            z-index: 9999;
        }
        
        
        /* Customize your modal window here, you can add background image too */
        #boxes #dialog
        {
            width: 100%;
            height: 100%;
        }
    &amp;lt;/style&amp;gt;
&lt;/pre&gt;
&lt;br /&gt;
Once adding the css code will make your UI look like as you want.&lt;br /&gt;
Now time to add some functionality.&lt;br /&gt;
&lt;br /&gt;
Javascript code:&lt;br /&gt;
&lt;pre style="background: rgb(197, 197, 197); border: 1px solid gray; color: #8a006e; font-weight: bold; height: 300px; overflow: scroll;"&gt; &amp;lt;script&amp;gt;
   $(document).ready(function() {
    $("#year").prop('disabled', true);
    $("#mon").prop('disabled', true);
    $("#day").prop('disabled', true);

    var cd = new Date();
    $('#dStr').html(dateFormat(cd, "fullDate"));
    $('#mon').val(dateFormat(cd, "mmm"));
    $('#day').val(dateFormat(cd, "dd"));
    $('#year').val(dateFormat(cd, "yyyy"));
    $('#pyear').click(function() {
     cd.setYear(cd.getFullYear() + 1);
     updateF();
    });
    $('#pmon').click(function() {
     cd.setMonth(cd.getMonth() + 1);
     updateF();
    });
    $('#pday').click(function() {
     cd.setDate(cd.getDate() + 1);
     updateF();
    });
    $('#myear').click(function() {
     cd.setYear(cd.getFullYear() - 1);
     updateF();
    });
    $('#mmon').click(function() {
     cd.setMonth(cd.getMonth() - 1);
     updateF();
    });
    $('#mday').click(function() {
     cd.setDate(cd.getDate() - 1);
     updateF();
    });
    $('#setButton').click(function() {

     var stringDate;

     if (parseInt(cd.getMonth()) &amp;lt; 9) {
      var newdateString = parseInt(cd.getMonth()) + parseInt('1');
      stringDate = "0" + newdateString + "/";
     } else {
      var newdateString = parseInt(cd.getMonth()) + parseInt('1');
      stringDate = newdateString + "/";
     }

     if (cd.getDate() &amp;lt; 10) {
      stringDate = stringDate + "0" + cd.getDate() + "/";
     } else {
      stringDate = stringDate + cd.getDate() + "/";
     }

     stringDate = stringDate + cd.getFullYear();
     $('#hdnDate').val(stringDate);
     $('#calendaValue').html(stringDate);
     $('#mask, .window').hide();

    });
    $('#cancelButton').click(function() {
     $('#mask, .window').hide();
    });

    function updateF() {
     $('#year').val(dateFormat(cd, "yyyy"));
     $('#mon').val(dateFormat(cd, "mmm"));
     $('#day').val(dateFormat(cd, "dd"));
     $('#dStr').html(dateFormat(cd, "fullDate"));
    }

    //select all the a tag with name equal to modal
    $('#openCalendar').click(function(e) {
     //Cancel the link behavior
     e.preventDefault();
     //Get the A tag
     var id = $(this).attr('href');

     //Get the screen height and width
     var maskHeight = $(document).height();
     var maskWidth = $(window).width();

     //Set height and width to mask to fill up the whole screen
     $('#mask').css({
      'width' : maskWidth,
      'height' : maskHeight
     });

     //transition effect
     $('#mask').fadeIn(1000);
     $('#mask').fadeTo("slow", 0.8);

     //Get the window height and width
     var winH = $(window).height();
     var winW = $(window).width();

     //Set the popup window to center
     $(id).css('top', winH / 2 - $(id).height() / 2);
     $(id).css('left', winW / 2 - $(id).width() / 2);

     //transition effect
     $(id).fadeIn(2000);
     $('.window').show();

    });

    //if close button is clicked
    $('.window .close').click(function(e) {
     //Cancel the link behavior
     e.preventDefault();
     $('#mask, .window').hide();
    });

    //if mask is clicked
    $('#mask').click(function() {
     $(this).hide();
     $('.window').hide();
    });

   });

   function populateDays() {
    var mnth = parseInt(document.getElementById('drpMonth').selectedIndex);
    var selYr = document.getElementById('drpYear');
    var selDay = document.getElementById('drpDay');
    var yr = parseInt(selYr.options[selYr.selectedIndex].text);
    var monthStart = new Date(yr, mnth, 1);
    var monthEnd = new Date(yr, mnth + 1, 1);
    var monthLength = (monthEnd - monthStart) / (1000 * 60 * 60 * 24);
    var currDays = selDay.options.length;
    if (monthLength &amp;gt; currDays) {
     for (var i = currDays; i &amp;lt; monthLength; i++) {
      $('#drpDay').append($("&amp;lt;option&amp;gt;", {
       text : (i + 1),
       value : (i + 1)
      }));
     }
    } else if (monthLength &amp;lt; currDays) {
     for (var i = currDays; i &amp;gt; monthLength; i--) {
      selDay.options.remove(i - 1);
     }
    }
   }
  &amp;lt;/script&amp;gt;&lt;/pre&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;span style="font-family: monospace;"&gt;&lt;span style="white-space: pre;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
You need to have one button to start the datepicker and a div where you can set the value in the html. Finally at the end you will be having, your complete html page with css and js as :&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;pre style="background: rgb(197, 197, 197); border: 1px solid gray; color: #8a006e; font-weight: bold; height: 300px; overflow: scroll;"&gt; 
&amp;lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd"&amp;gt;
&amp;lt;html xmlns="http://www.w3.org/1999/xhtml"&amp;gt;
 &amp;lt;head&amp;gt;
  &amp;lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&amp;gt;
  &amp;lt;title&amp;gt;New Web Project&amp;lt;/title&amp;gt;
  &amp;lt;script type="text/javascript" src="jquery.js"&amp;gt;&amp;lt;/script&amp;gt;
  &amp;lt;script type="text/javascript" src="dFormat.js"&amp;gt;&amp;lt;/script&amp;gt;
  &amp;lt;style&amp;gt;
   .test {
    font-size: 30px;
    position: absolute;
    background-color: #000;
    color: #fff;
   }
   input {
    font-size: 20px;
    text-align: center;
   }
   /* Z-index of #mask must lower than #boxes .window */
   #mask {
    position: absolute;
    z-index: 9000;
    background-color: #000;
    display: none;
   }

   #boxes .window {
    position: fixed;
    width: 440px;
    height: 200px;
    display: none;
    z-index: 9999;
   }

   /* Customize your modal window here, you can add background image too */
   #boxes #dialog {
    width: 100%;
    height: 100%;
   }

  &amp;lt;/style&amp;gt;

  &amp;lt;script&amp;gt;
   $(document).ready(function() {
    $("#year").prop('disabled', true);
    $("#mon").prop('disabled', true);
    $("#day").prop('disabled', true);

    var cd = new Date();
    $('#dStr').html(dateFormat(cd, "fullDate"));
    $('#mon').val(dateFormat(cd, "mmm"));
    $('#day').val(dateFormat(cd, "dd"));
    $('#year').val(dateFormat(cd, "yyyy"));
    $('#pyear').click(function() {
     cd.setYear(cd.getFullYear() + 1);
     updateF();
    });
    $('#pmon').click(function() {
     cd.setMonth(cd.getMonth() + 1);
     updateF();
    });
    $('#pday').click(function() {
     cd.setDate(cd.getDate() + 1);
     updateF();
    });
    $('#myear').click(function() {
     cd.setYear(cd.getFullYear() - 1);
     updateF();
    });
    $('#mmon').click(function() {
     cd.setMonth(cd.getMonth() - 1);
     updateF();
    });
    $('#mday').click(function() {
     cd.setDate(cd.getDate() - 1);
     updateF();
    });
    $('#setButton').click(function() {

     var stringDate;

     if (parseInt(cd.getMonth()) &amp;lt; 9) {
      var newdateString = parseInt(cd.getMonth()) + parseInt('1');
      stringDate = "0" + newdateString + "/";
     } else {
      var newdateString = parseInt(cd.getMonth()) + parseInt('1');
      stringDate = newdateString + "/";
     }

     if (cd.getDate() &amp;lt; 10) {
      stringDate = stringDate + "0" + cd.getDate() + "/";
     } else {
      stringDate = stringDate + cd.getDate() + "/";
     }

     stringDate = stringDate + cd.getFullYear();
     $('#hdnDate').val(stringDate);
     $('#calendaValue').html(stringDate);
     $('#mask, .window').hide();

    });
    $('#cancelButton').click(function() {
     $('#mask, .window').hide();
    });

    function updateF() {
     $('#year').val(dateFormat(cd, "yyyy"));
     $('#mon').val(dateFormat(cd, "mmm"));
     $('#day').val(dateFormat(cd, "dd"));
     $('#dStr').html(dateFormat(cd, "fullDate"));
    }

    //select all the a tag with name equal to modal
    $('#openCalendar').click(function(e) {
     //Cancel the link behavior
     e.preventDefault();
     //Get the A tag
     var id = $(this).attr('href');

     //Get the screen height and width
     var maskHeight = $(document).height();
     var maskWidth = $(window).width();

     //Set height and width to mask to fill up the whole screen
     $('#mask').css({
      'width' : maskWidth,
      'height' : maskHeight
     });

     //transition effect
     $('#mask').fadeIn(1000);
     $('#mask').fadeTo("slow", 0.8);

     //Get the window height and width
     var winH = $(window).height();
     var winW = $(window).width();

     //Set the popup window to center
     $(id).css('top', winH / 2 - $(id).height() / 2);
     $(id).css('left', winW / 2 - $(id).width() / 2);

     //transition effect
     $(id).fadeIn(2000);
     $('.window').show();

    });

    //if close button is clicked
    $('.window .close').click(function(e) {
     //Cancel the link behavior
     e.preventDefault();
     $('#mask, .window').hide();
    });

    //if mask is clicked
    $('#mask').click(function() {
     $(this).hide();
     $('.window').hide();
    });

   });

   function populateDays() {
    var mnth = parseInt(document.getElementById('drpMonth').selectedIndex);
    var selYr = document.getElementById('drpYear');
    var selDay = document.getElementById('drpDay');
    var yr = parseInt(selYr.options[selYr.selectedIndex].text);
    var monthStart = new Date(yr, mnth, 1);
    var monthEnd = new Date(yr, mnth + 1, 1);
    var monthLength = (monthEnd - monthStart) / (1000 * 60 * 60 * 24);
    var currDays = selDay.options.length;
    if (monthLength &amp;gt; currDays) {
     for (var i = currDays; i &amp;lt; monthLength; i++) {
      $('#drpDay').append($("&amp;lt;option&amp;gt;", {
       text : (i + 1),
       value : (i + 1)
      }));
     }
    } else if (monthLength &amp;lt; currDays) {
     for (var i = currDays; i &amp;gt; monthLength; i--) {
      selDay.options.remove(i - 1);
     }
    }
   }
  &amp;lt;/script&amp;gt;

 &amp;lt;/head&amp;gt;
 &amp;lt;body&amp;gt;
  &amp;lt;h1&amp;gt;New Web Project Page&amp;lt;/h1&amp;gt;
  &amp;lt;input type="button" id="openCalendar" name="Open Calendar" value="Open Calendar"&amp;gt;
  &amp;lt;div id="calendaValue"&amp;gt;&amp;lt;/div&amp;gt;
  &amp;lt;div id="boxes"&amp;gt;
   &amp;lt;!-- #customize your modal window here --&amp;gt;
   &amp;lt;div id="dialog" class="window"&amp;gt;
    &amp;lt;table class='test' cellpadding='0' cellspacing='0'&amp;gt;
     &amp;lt;tr&amp;gt;
      &amp;lt;td colspan='3'&amp;gt;
      &amp;lt;div style='border-bottom: thin solid #fff; font-size: 20px; margin-bottom: 5px;
      padding: 5px; height: 50px;' class="calendarHeader"&amp;gt;
       
       &amp;lt;div id='dStr' style='width: 200px; float: left;'&amp;gt;
        Som date
       &amp;lt;/div&amp;gt;
      &amp;lt;/div&amp;gt;&amp;lt;/td&amp;gt;
     &amp;lt;/tr&amp;gt;
     &amp;lt;tr&amp;gt;
      &amp;lt;td&amp;gt;
      &amp;lt;div id="pmon" role="main" class="ui-content ui-body-a" data-role="content" data-theme="a"
      style="text-align: center; width: 90px; padding: 10px 0px; margin: 0px 2px;"&amp;gt;
       +
      &amp;lt;/div&amp;gt;&amp;lt;/td&amp;gt;
      &amp;lt;td&amp;gt;
      &amp;lt;div id="pday" role="main" class="ui-content ui-body-a" data-role="content" data-theme="a"
      style="text-align: center; width: 90px; padding: 10px 0px; margin: 0px 2px;"&amp;gt;
       +
      &amp;lt;/div&amp;gt;&amp;lt;/td&amp;gt;
      &amp;lt;td&amp;gt;
      &amp;lt;div id="pyear" role="main" class="ui-content ui-body-a" data-role="content" data-theme="a"
      style="text-align: center; width: 90px; padding: 10px 0px; margin: 0px 2px;"&amp;gt;
       +
      &amp;lt;/div&amp;gt;&amp;lt;/td&amp;gt;
     &amp;lt;/tr&amp;gt;
     &amp;lt;tr&amp;gt;
      &amp;lt;td&amp;gt;
      &amp;lt;input type="text" id="mon" style="width: 86px; padding: 0px; height: 38px; margin: 2px;" /&amp;gt;
      &amp;lt;/td&amp;gt;
      &amp;lt;td&amp;gt;
      &amp;lt;input type="text" id="day" style="width: 86px; padding: 0px; height: 38px; margin: 2px;" /&amp;gt;
      &amp;lt;/td&amp;gt;
      &amp;lt;td&amp;gt;
      &amp;lt;input type="text" id="year" style="width: 86px; padding: 0px; height: 38px; margin: 2px;" /&amp;gt;
      &amp;lt;/td&amp;gt;
     &amp;lt;/tr&amp;gt;
     &amp;lt;tr&amp;gt;
      &amp;lt;td&amp;gt;
      &amp;lt;div id="mmon" role="main" class="ui-content ui-body-a" data-role="content" data-theme="a"
      style="text-align: center; width: 90px; padding: 10px 0px; margin: 0px 2px 2px 2px;"&amp;gt;
       -
      &amp;lt;/div&amp;gt;&amp;lt;/td&amp;gt;
      &amp;lt;td&amp;gt;
      &amp;lt;div id="mday" role="main" class="ui-content ui-body-a" data-role="content" data-theme="a"
      style="text-align: center; width: 90px; padding: 10px 0px; margin: 0px 2px;"&amp;gt;
       -
      &amp;lt;/div&amp;gt;&amp;lt;/td&amp;gt;
      &amp;lt;td&amp;gt;
      &amp;lt;div id="myear" role="main" class="ui-content ui-body-a" data-role="content" data-theme="a"
      style="text-align: center; width: 90px; padding: 10px 0px; margin: 0px 2px;"&amp;gt;
       -
      &amp;lt;/div&amp;gt;&amp;lt;/td&amp;gt;
     &amp;lt;/tr&amp;gt;
     &amp;lt;tr&amp;gt;
      &amp;lt;td colspan='3' style="background-color: #a7a7a7;"&amp;gt;
      &amp;lt;table width="100%"&amp;gt;
       &amp;lt;tr&amp;gt;
        &amp;lt;td width="50%"&amp;gt;
        &amp;lt;div role="main" id="setButton" class="ui-content ui-body-a" data-role="content"
        data-theme="a" style="font-size: 20px; text-align: center; padding: 10px 0px;
        margin: 2px;"&amp;gt;
         Set
        &amp;lt;/div&amp;gt;&amp;lt;/td&amp;gt;
        &amp;lt;td&amp;gt;
        &amp;lt;div role="main" id="cancelButton" class="ui-content ui-body-a" data-role="content"
        data-theme="a" style="font-size: 20px; text-align: center; padding: 10px 0px;
        margin: 2px;"&amp;gt;
         Cancel
        &amp;lt;/div&amp;gt;&amp;lt;/td&amp;gt;
       &amp;lt;/tr&amp;gt;
      &amp;lt;/table&amp;gt;&amp;lt;/td&amp;gt;
     &amp;lt;/tr&amp;gt;
    &amp;lt;/table&amp;gt;
   &amp;lt;/div&amp;gt;
   &amp;lt;!-- Do not remove div#mask, because you'll need it to fill the whole screen --&amp;gt;
   &amp;lt;div id="mask"&amp;gt;&amp;lt;/div&amp;gt;
  &amp;lt;/div&amp;gt;
  &amp;lt;div class="modal"&amp;gt;
 &amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;


&lt;/pre&gt;
&lt;/div&gt;
</content><link rel='related' href='http://code-analyser.blogspot.com/2013/04/android-type-datepicker.html' title='Android Type DatePicker'/><link rel='replies' type='application/atom+xml' href='http://code-analyser.blogspot.com/feeds/8957063696668757463/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://code-analyser.blogspot.com/2013/04/android-type-datepicker.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/740816477032050978/posts/default/8957063696668757463?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/740816477032050978/posts/default/8957063696668757463?v=2'/><link rel='alternate' type='text/html' href='http://code-analyser.blogspot.com/2013/04/android-type-datepicker.html' title='Android Type DatePicker'/><author><name>Amrit Mishra</name><uri>https://plus.google.com/105696312174148735014</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-kZm5wWXRhc0/AAAAAAAAAAI/AAAAAAAAB-w/9IAPjrlCzgs/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/-5pCBIFWyTk8/UVu7N4UjWoI/AAAAAAAACEM/2D3o77CqVn0/s72-c/Capture.PNG' height='72' width='72'/><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;CU4GQ3c8fyp7ImA9WhBXEkw.&quot;'><id>tag:blogger.com,1999:blog-740816477032050978.post-5558263697639034823</id><published>2013-03-25T05:18:00.001-07:00</published><updated>2013-03-25T05:18:42.977-07:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2013-03-25T05:18:42.977-07:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='twitter api'/><category scheme='http://www.blogger.com/atom/ns#' term='javascripts'/><category scheme='http://www.blogger.com/atom/ns#' term='jquerymobile'/><category scheme='http://www.blogger.com/atom/ns#' term='jquery'/><category scheme='http://www.blogger.com/atom/ns#' term='ajax'/><title>Ajax using JQM - Twitter Example</title><content type='html'>In this tutorial I will be showing how to do an ajax request from jQuery Mobile.&lt;br /&gt;
So we will be using &amp;nbsp;JQM library, in our html page and run the application in localhost. I will try to connect to the twitter api, url : &lt;i&gt;&lt;span style="color: red;"&gt;http://api.twitter.com/1/statuses/user_timeline.json/&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
and I will be using my username : &lt;b&gt;&lt;i&gt;amritmishra1234&lt;/i&gt;&lt;/b&gt;. And will try to populate the list via my tweets&lt;br /&gt;
&amp;nbsp;as they have predefined server which responds to the ajax requests.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;HTML Code :&lt;/b&gt;&lt;br /&gt;
Add the following code in the &lt;b&gt;&lt;i&gt;index.html&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;pre style="background: rgb(197, 197, 197); border: 1px solid gray; color: #8a006e; font-weight: bold; height: 300px; overflow: scroll;"&gt;&amp;lt;!-- Copyright (c) 2012 Mobile Developer Solutions --&amp;gt;
&amp;lt;!DOCTYPE HTML&amp;gt;
&amp;lt;html&amp;gt;
&amp;lt;head&amp;gt;
&amp;lt;meta http-equiv="Content-type" name="viewport"
 content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no, width=device-width"&amp;gt;
&amp;lt;title&amp;gt;&amp;lt;/title&amp;gt;
&amp;lt;link rel="stylesheet" href="jquery.mobile-1.1.1.min.css" /&amp;gt;
&amp;lt;script type="text/javascript" charset="utf-8" src="jquery-1.7.1.min.js"&amp;gt;&amp;lt;/script&amp;gt;
&amp;lt;script type="text/javascript" charset="utf-8"
 src="jquery.mobile-1.1.1.min.js"&amp;gt;&amp;lt;/script&amp;gt;
&amp;lt;script type="text/javascript" charset="utf-8" src="app.js"&amp;gt;&amp;lt;/script&amp;gt;
&amp;lt;style type="text/css"&amp;gt;
ul{
 padding: 0px;
 margin: 0px;
 list-style-type: none;
}

li {
 text-decoration: none;
 padding: 10px;
 border: 1px solid gray;
 border-radius: 5px;
 background: lightblue;
 text-shadow: none;
 font-weight: bold;
}
&amp;lt;/style&amp;gt;
&amp;lt;/head&amp;gt;

&amp;lt;body&amp;gt;
 &amp;lt;div data-role="page" data-add-back-btn="true"&amp;gt;

  &amp;lt;div data-role="header" data-position="fixed"&amp;gt;
   &amp;lt;h1&amp;gt;Tweets&amp;lt;/h1&amp;gt;
  &amp;lt;/div&amp;gt;

  &amp;lt;div data-role="content"&amp;gt;
   &amp;lt;div id="jstwitter"&amp;gt;&amp;lt;/div&amp;gt;
  &amp;lt;/div&amp;gt;
  &amp;lt;!-- /content --&amp;gt;

 &amp;lt;/div&amp;gt;
 &amp;lt;!-- /page --&amp;gt;


&amp;lt;/body&amp;gt;

&amp;lt;/html&amp;gt;
&lt;/pre&gt;
&lt;b&gt;JAVASCRIPT Code :
&lt;/b&gt;&lt;br /&gt;
Add the following code in the &lt;b&gt;&lt;i&gt;app.js &lt;/i&gt;&lt;/b&gt;and connect the app.js to the html file.&lt;br /&gt;
&lt;br /&gt;
&lt;pre style="background: rgb(197, 197, 197); border: 1px solid gray; color: #8a006e; font-weight: bold; height: 300px; overflow: scroll;"&gt;JQTWEET = {
 
 loadTweets: function() {
  $.ajax({
   url: 'http://api.twitter.com/1/statuses/user_timeline.json/',
   type: 'GET',
   dataType: 'jsonp',
   data: {
    screen_name: "amritmishra1234",
    include_rts: true,
    count: 10,
    include_entities: true
   },
   success: function(data, textStatus, xhr) {

     var html = '&amp;lt;ul&amp;gt;';
  
     var list = "";
     for (var i = 0; i &amp;lt; data.length; i++) {
      list = list + "&amp;lt;li&amp;gt;"+data[i].text+"&amp;lt;/li&amp;gt;";
     }  
     
     $("#jstwitter").html(html+list+"&amp;lt;/ul&amp;gt;");
   } 

  });
  
 }
 
};



$(document).ready(function () {
    JQTWEET.loadTweets();
});
&lt;/pre&gt;
Once you have all the files in the proper location and  you have added the above code, You can run the application in your local server.</content><link rel='replies' type='application/atom+xml' href='http://code-analyser.blogspot.com/feeds/5558263697639034823/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://code-analyser.blogspot.com/2013/03/ajax-using-jqm-twitter-example.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/740816477032050978/posts/default/5558263697639034823?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/740816477032050978/posts/default/5558263697639034823?v=2'/><link rel='alternate' type='text/html' href='http://code-analyser.blogspot.com/2013/03/ajax-using-jqm-twitter-example.html' title='Ajax using JQM - Twitter Example'/><author><name>Amrit Mishra</name><uri>https://plus.google.com/105696312174148735014</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-kZm5wWXRhc0/AAAAAAAAAAI/AAAAAAAAB-w/9IAPjrlCzgs/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;DU4ARX4_fCp7ImA9WhBRFUk.&quot;'><id>tag:blogger.com,1999:blog-740816477032050978.post-2755380129247070041</id><published>2013-03-05T21:32:00.000-08:00</published><updated>2013-03-05T21:32:24.044-08:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2013-03-05T21:32:24.044-08:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='javascripts'/><category scheme='http://www.blogger.com/atom/ns#' term='jquerymobile'/><category scheme='http://www.blogger.com/atom/ns#' term='css'/><title>iOS Back Button in JQM using CSS</title><content type='html'>JQuery Mobile do provide back button feature, but it does not provide the look and feel of a Back button.&lt;br /&gt;
&lt;div&gt;
So in this tutorial I will be provide you with the code to make your JQM back button look like that of iOS.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
So,&lt;/div&gt;
&lt;div&gt;
make the button look like this :&lt;/div&gt;
&lt;div&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://1.bp.blogspot.com/-124C-6DmRfM/UTbTdld3p-I/AAAAAAAACDo/DdRrb2UQMxU/s1600/Capture.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://1.bp.blogspot.com/-124C-6DmRfM/UTbTdld3p-I/AAAAAAAACDo/DdRrb2UQMxU/s1600/Capture.PNG" height="25" width="500" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
but we want it to be like this :&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://4.bp.blogspot.com/-Imo1os59yhM/UTbTjM6JaWI/AAAAAAAACDw/FhV-i3pTN2A/s1600/Capture1.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://4.bp.blogspot.com/-Imo1os59yhM/UTbTjM6JaWI/AAAAAAAACDw/FhV-i3pTN2A/s1600/Capture1.PNG" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;u&gt;&lt;i&gt;Steps to do:&lt;/i&gt;&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;Step 1 :&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
Add following rule to the anchor tag&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;pre&gt;data-rel="back"&amp;nbsp;
data-theme="app-ios"&amp;nbsp;
data-corners="true"
data-shadow="true"&amp;nbsp;
data-iconshadow="true"&amp;nbsp;
data-wrapperels="span"
class="ui-btn-left ui-btn ui-shadow ui-btn-corner-all ui-btn-up-a"
&lt;/pre&gt;
So At the end the code for the button will be like this :&lt;br /&gt;
&lt;br /&gt;
&lt;pre style="background: rgb(197, 197, 197); border: 1px solid gray; color: #8a006e; font-weight: bold; overflow: scroll;"&gt;  &amp;lt;div class="ui-btn-left" data-type="horizontal"&amp;gt;
&amp;lt;a class="ui-btn-left ui-btn ui-shadow ui-btn-corner-all ui-btn-up-a" data-corners="true" data-iconshadow="true" data-rel="back" data-role="button" data-shadow="true" data-theme="app-ios" data-transition="slide" data-wrapperels="span" href="https://www.blogger.com/blogger.g?blogID=740816477032050978#"&amp;gt;
     &amp;lt;span class="ui-btn-inner ui-btn-corner-all"&amp;gt; &amp;lt;span class="ui-btn-text"&amp;gt; Back &amp;lt;/span&amp;gt;
    &amp;lt;/span&amp;gt;
    &amp;lt;/a&amp;gt;
   &amp;lt;/div&amp;gt;&lt;/pre&gt;
&lt;b&gt;Step 2 :&lt;/b&gt;&lt;br /&gt;
Now need to add extra class the button using js :&lt;br /&gt;
&lt;br /&gt;
&lt;pre style="background: rgb(197, 197, 197); border: 1px solid gray; color: #8a006e; font-weight: bold; overflow: scroll;"&gt;&amp;lt;script type="text/javascript"&amp;gt;
    $(document)
   .ready(
     function () {
         var backButton = $('a[data-theme="app-ios"]').filter(
        '[data-rel="back"]');
         backButton
        .append('&amp;lt;div class="ios-tip"&amp;gt;&amp;lt;span&amp;gt;&amp;amp;nbsp;&amp;lt;/span&amp;gt;&amp;lt;/div&amp;gt;');
     });
&amp;lt;/script&amp;gt;&amp;nbsp;&lt;/pre&gt;
&lt;b&gt;Step 3 :&lt;/b&gt;&lt;br /&gt;
Once we are done add the following css :
&lt;br /&gt;
&lt;pre style="background: rgb(197, 197, 197); border: 1px solid gray; color: #8a006e; font-weight: bold; overflow: scroll;"&gt;/* button background and borders color */
a[data-theme="app-ios"] {
 border: none;
}

a[data-theme="app-ios"] .ui-btn-corner-all {
 border: 1px solid rgba(0, 0, 0, 0.4);
 -webkit-border-radius: 5px;
 -webkit-box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25), inset 0 1px 1px
  rgba(0, 0, 0, 0.2);
 background: #ff3019; /* Old browsers */
 background: -moz-linear-gradient(top, #ff3019 0%, #cf0404 100%);
 /* FF3.6+ */
 background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #ff3019),
  color-stop(100%, #cf0404) ); /* Chrome,Safari4+ */
 background: -webkit-linear-gradient(top, #ff3019 0%, #cf0404 100%);
 /* Chrome10+,Safari5.1+ */
 background: -o-linear-gradient(top, #ff3019 0%, #cf0404 100%);
 /* Opera 11.10+ */
 background: -ms-linear-gradient(top, #ff3019 0%, #cf0404 100%);
 /* IE10+ */
 background: linear-gradient(to bottom, #ff3019 0%, #cf0404 100%);
 /* W3C */
 filter: progid:DXImageTransform.Microsoft.gradient(  startColorstr='#ff3019',
  endColorstr='#cf0404', GradientType=0 ); /* IE6-9 */
 overflow: visible;
 padding-left: 8px;
 padding-right: 8px;
}
/* shadows and label color */
a[data-theme="app-ios"].ui-shadow,a[data-theme="app-ios"] {
 box-shadow: none;
 -moz-box-shadow: none;
 -webkit-box-shadow: none;
 background-clip: none;
 -webkit-background-clip: none;
 -moz-background-clip: none;
 color: white;
 font-weight: bold;
 top: 5px;
 text-decoration: none;
 text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.4);
}

a[data-theme="app-ios"].ui-btn-left .ui-btn-corner-all {
 padding-left: 5px !important;
}
/* position the DIV that contains the point */
a[data-theme="app-ios"] .ios-tip {
 float: left;
 left: -9px;
 top: 4px;
 position: absolute;
 -webkit-transform: scale(.7, 1.0);
}
/* apply gradient */
a[data-theme="app-ios"] .ios-tip span {
 display: block;
 width: 18px;
 height: 18px;
 border: 2px solid rgba(0, 0, 0, 0.4);
 border-right: 0;
 border-top: 0;
 /* the gradient color mus be slightly different since the point is within the body of the button */
 background: #ff3019; /* Old browsers */
 background: -moz-linear-gradient(top, #ff3019 0%, #cf0404 100%);
 /* FF3.6+ */
 background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #ff3019),
  color-stop(100%, #cf0404) ); /* Chrome,Safari4+ */
 background: -webkit-linear-gradient(top, #ff3019 0%, #cf0404 100%);
 /* Chrome10+,Safari5.1+ */
 background: -o-linear-gradient(top, #ff3019 0%, #cf0404 100%);
 /* Opera 11.10+ */
 background: -ms-linear-gradient(top, #ff3019 0%, #cf0404 100%);
 /* IE10+ */
 background: linear-gradient(to bottom, #ff3019 0%, #cf0404 100%);
 /* W3C */
 filter: progid:DXImageTransform.Microsoft.gradient(  startColorstr='#ff3019',
  endColorstr='#cf0404', GradientType=0 ); /* IE6-9 */
 border-radius: 1px;
 -webkit-border-radius: 1px;
 -moz-border-radius: 1px;
 box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25);
 -webkit-box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25);
 -moz-box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25);
 -webkit-transform: rotate(45deg) scale(.9, .9);
}
&lt;/pre&gt;
Finally, we will have the button with a look and feel of iOS</content><link rel='replies' type='application/atom+xml' href='http://code-analyser.blogspot.com/feeds/2755380129247070041/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://code-analyser.blogspot.com/2013/03/ios-back-button-in-jqm-using-css.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/740816477032050978/posts/default/2755380129247070041?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/740816477032050978/posts/default/2755380129247070041?v=2'/><link rel='alternate' type='text/html' href='http://code-analyser.blogspot.com/2013/03/ios-back-button-in-jqm-using-css.html' title='iOS Back Button in JQM using CSS'/><author><name>Amrit Mishra</name><uri>https://plus.google.com/105696312174148735014</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-kZm5wWXRhc0/AAAAAAAAAAI/AAAAAAAAB-w/9IAPjrlCzgs/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/-124C-6DmRfM/UTbTdld3p-I/AAAAAAAACDo/DdRrb2UQMxU/s72-c/Capture.PNG' height='72' width='72'/><thr:total>0</thr:total><georss:featurename>Pune, Maharashtra, India</georss:featurename><georss:point>18.5204303 73.85674369999992</georss:point><georss:box>18.2795338 73.53402019999993 18.761326800000003 74.17946719999992</georss:box></entry><entry gd:etag='W/&quot;CkQBRHs9cCp7ImA9WhNREk0.&quot;'><id>tag:blogger.com,1999:blog-740816477032050978.post-4063606816393629760</id><published>2012-11-06T03:12:00.002-08:00</published><updated>2012-11-06T03:12:35.568-08:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2012-11-06T03:12:35.568-08:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='localstorage'/><category scheme='http://www.blogger.com/atom/ns#' term='HTML5'/><category scheme='http://www.blogger.com/atom/ns#' term='sencha touch 2'/><title>Using Localstorage in Sencha Touch.</title><content type='html'>LocalStorage is extremely useful for saving user-specific information without needing to build server-side
infrastructure to support it.&lt;br /&gt;
And in Sencha Touch 2 if you want to use local stoage then its very easy to do it.&lt;br /&gt;
We just need to use:&lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://docs.sencha.com/touch/2-0/#%21/api/Ext.data.proxy.LocalStorage" target="_blank"&gt;&lt;b&gt;Ext.data.proxy.LocalStorage&lt;/b&gt;&lt;/a&gt;&lt;br /&gt;
&lt;b&gt;proxy: localstorage&amp;nbsp;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
So, in this tutorial I will be showing how can we save Model using Local Storage, edit them and remove the saved local storage.&lt;br /&gt;
&lt;b&gt; &lt;/b&gt;&lt;br /&gt;
For localstorage we need to have one Model class and one Store class with &lt;b&gt;'localstorage'&lt;/b&gt; as type.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Model:&amp;nbsp;&amp;nbsp; &lt;/b&gt;while writing the model class we need to specify the model proxy&amp;nbsp; as localstorage type and add the required fields.&lt;br /&gt;
&lt;pre class="code" style="background-color: #b5cfe0; border: 2px solid rgb(0, 59, 98); color: black; font-family: verdana; font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; overflow: auto; padding: 5px 5px 20px; position: relative; text-indent: 0px; text-transform: none; widows: 2; width: 500px; word-spacing: 0px;"&gt;Ext.define('CodeAnalyzer.Model.LocalStorageModel', {
    extend: 'Ext.data.Model',

    requires:[
             'Ext.data.proxy.LocalStorage'
    ],

    config: {
        fields: [
            {name: 'first', type: 'string'},
            {name: 'second', type: 'string'}
        ],
        proxy: {
            type: 'localstorage',
            id  : '_codeAnalyzerLocalStorage'
        }
    }
});
&lt;/pre&gt;
&lt;br /&gt;
&lt;b&gt;Store: &lt;/b&gt;connect your model class to the store.&lt;br /&gt;
&lt;pre class="code" style="background-color: #b5cfe0; border: 2px solid rgb(0, 59, 98); color: black; font-family: verdana; font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; overflow: auto; padding: 5px 5px 20px; position: relative; text-indent: 0px; text-transform: none; widows: 2; width: 500px; word-spacing: 0px;"&gt;Ext.define('CodeAnalyzer.Store.LocalStorageStore', {
    extend: "Ext.data.Store",
    config: {
        storeId: '_codeAnalyzerStore',
        model: 'CodeAnalyzer.Model.LocalStorageModel'
    }
});
&lt;/pre&gt;
&lt;br /&gt;
&lt;b&gt;How to use the Store and the Model classes: &lt;/b&gt;&lt;br /&gt;
&lt;pre class="code" style="background-color: #b5cfe0; border: 2px solid rgb(0, 59, 98); color: black; font-family: verdana; font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; overflow: auto; padding: 5px 5px 20px; position: relative; text-indent: 0px; text-transform: none; widows: 2; width: 500px; word-spacing: 0px;"&gt;        var myLocalStore= Ext.getStore('_codeAnalyzerStore');
        //load the localStorage store
        myLocalStore.load();

        // check if the localStorage is having any data
        if ((myLocalStore.getCount()) == 0) {
            // nothing found so  we need to load the data from external source
            console.log('localStorage is empty');
        } else {
            
            console.log('localStorage data found');
            console.log('localStorage count:' + myLocalStore.getCount());
            var record =  myLocalStore.getAt(0);
            if(record !== undefined){
                var first = record.get('first');
                console.log('first '+first);
                var second = record.get('second');
                console.log('data '+second);
              
            }
        }
&lt;/pre&gt;
&lt;br /&gt;
So, now you can easy use the store if it is having any data.


&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;Adding data to local storage:&amp;nbsp;&amp;nbsp; &lt;/b&gt;here you need to add data to local storage and sync it up. This will update your local storage.&lt;br /&gt;
&lt;pre class="code" style="background-color: #b5cfe0; border: 2px solid rgb(0, 59, 98); color: black; font-family: verdana; font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; overflow: auto; padding: 5px 5px 20px; position: relative; text-indent: 0px; text-transform: none; widows: 2; width: 500px; word-spacing: 0px;"&gt;var myLocalStore= Ext.getStore('_codeAnalyzerStore');
myLocalStore.add('newValue');
markerStoreLocalStorage.sync();
&lt;/pre&gt;
Or else you can create any object and also add to local storage.&lt;br /&gt;
You can check the value being saved in Chrome browser also in Resources in Debug console and the in Localstorage.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://code-analyser.blogspot.com/feeds/4063606816393629760/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://code-analyser.blogspot.com/2012/11/using-localstorage-in-sencha-touch.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/740816477032050978/posts/default/4063606816393629760?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/740816477032050978/posts/default/4063606816393629760?v=2'/><link rel='alternate' type='text/html' href='http://code-analyser.blogspot.com/2012/11/using-localstorage-in-sencha-touch.html' title='Using Localstorage in Sencha Touch.'/><author><name>Amrit Mishra</name><uri>https://plus.google.com/105696312174148735014</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-kZm5wWXRhc0/AAAAAAAAAAI/AAAAAAAAB-w/9IAPjrlCzgs/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;CUICQ3k4eSp7ImA9WhNSF0k.&quot;'><id>tag:blogger.com,1999:blog-740816477032050978.post-5980466434368764847</id><published>2012-09-19T23:30:00.000-07:00</published><updated>2012-10-31T21:19:22.731-07:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2012-10-31T21:19:22.731-07:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='javascripts'/><category scheme='http://www.blogger.com/atom/ns#' term='Android'/><category scheme='http://www.blogger.com/atom/ns#' term='phonegap'/><title>Andriod Phonegap call Javascript from Native code</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
Consider you want to call javascript method from Android native code. or you want to send and data to the js code. Then you can use following snippet.&lt;br /&gt;
&lt;br /&gt;
Following code will demonstrate how to send application version number to js code in index.html&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
Java Code :&lt;br /&gt;
&lt;div&gt;
&lt;pre class="code" style="background-color: #b5cfe0; border: 2px solid rgb(0, 59, 98); color: black; font-family: verdana; font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; overflow: auto; padding: 5px 5px 20px; position: relative; text-indent: 0px; text-transform: none; widows: 2; width: 500px; word-spacing: 0px;"&gt;import android.app.Activity;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import android.os.Bundle;
import android.util.Log;
import org.apache.cordova.*;
import org.json.JSONException;
import org.json.JSONObject;

public class Android extends DroidGap {
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        super.loadUrl("file:///android_asset/www/index.html");

        PackageInfo pInfo = null;
        try {
            pInfo = getPackageManager().getPackageInfo(getPackageName(), 0);
        } catch (PackageManager.NameNotFoundException e) {
            e.printStackTrace();  //To change body of catch statement use File | Settings | File Templates.
        }
        final String version = pInfo.versionName;

        final Thread t = new Thread() {
            public void run() {
                try {
                        sleep(5000);
                        sendValue(version);
                } catch (Exception e) {
                    e.printStackTrace();
                }
            }
        };
        t.start();

    }

    public void sendValue( String value) {

        String js = String.format("window.checkValue('%s');", value);
        this.sendJavascript(js);
    }
}
    
&lt;/pre&gt;
&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;
Javascript Code :&lt;br /&gt;
&lt;div&gt;
&lt;pre class="code" style="background-color: #b5cfe0; border: 2px solid rgb(0, 59, 98); color: black; font-family: verdana; font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; overflow: auto; padding: 5px 5px 20px; position: relative; text-indent: 0px; text-transform: none; widows: 2; width: 500px; word-spacing: 0px;"&gt; 
var value;
 function checkValue(data){
            value= data;
        }&lt;/pre&gt;
&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://code-analyser.blogspot.com/feeds/5980466434368764847/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://code-analyser.blogspot.com/2012/09/andriod-phonegap-call-javascript-from.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/740816477032050978/posts/default/5980466434368764847?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/740816477032050978/posts/default/5980466434368764847?v=2'/><link rel='alternate' type='text/html' href='http://code-analyser.blogspot.com/2012/09/andriod-phonegap-call-javascript-from.html' title='Andriod Phonegap call Javascript from Native code'/><author><name>Amrit Mishra</name><uri>https://plus.google.com/105696312174148735014</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-kZm5wWXRhc0/AAAAAAAAAAI/AAAAAAAAB-w/9IAPjrlCzgs/s512-c/photo.jpg'/></author><thr:total>2</thr:total></entry><entry gd:etag='W/&quot;DU4NRnY4eip7ImA9WhJWFEU.&quot;'><id>tag:blogger.com,1999:blog-740816477032050978.post-3242528328049285668</id><published>2012-08-20T11:39:00.000-07:00</published><updated>2012-08-20T11:39:57.832-07:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2012-08-20T11:39:57.832-07:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='javascripts'/><category scheme='http://www.blogger.com/atom/ns#' term='html'/><title>Change Image in HtML Dynamically using Javascript</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
This following code helps you to change HTML code using&amp;nbsp;java script. Try creating a .html file and check the result.&lt;br /&gt;
&lt;br /&gt;
&lt;span style="color: #134f5c; font-family: Courier New, Courier, monospace; font-size: x-small;"&gt;&amp;lt;!DOCTYPE html&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: #134f5c; font-family: Courier New, Courier, monospace; font-size: x-small;"&gt;&amp;lt;html&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: #134f5c; font-family: Courier New, Courier, monospace; font-size: x-small;"&gt;&amp;lt;head&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: #134f5c; font-family: Courier New, Courier, monospace; font-size: x-small;"&gt;&amp;lt;script type="text/javascript"&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: #134f5c; font-family: Courier New, Courier, monospace; font-size: x-small;"&gt;function displayDate()&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: #134f5c; font-family: Courier New, Courier, monospace; font-size: x-small;"&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: #134f5c; font-family: Courier New, Courier, monospace; font-size: x-small;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="color: #134f5c; font-family: Courier New, Courier, monospace; font-size: x-small;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var img = document.createElement("IMG");&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: #134f5c; font-family: Courier New, Courier, monospace; font-size: x-small;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; img.src = "http://www.designerstalk.com/forums/image.php?u=6430&amp;amp;amp;dateline=1287752962";&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: #134f5c; font-family: Courier New, Courier, monospace; font-size: x-small;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; img.height="10";&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: #134f5c; font-family: Courier New, Courier, monospace; font-size: x-small;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; img.width="10";&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: #134f5c; font-family: Courier New, Courier, monospace; font-size: x-small;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; while (document.getElementById('demo').hasChildNodes()) {&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: #134f5c; font-family: Courier New, Courier, monospace; font-size: x-small;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; document.getElementById('demo').removeChild(document.getElementById('demo').lastChild);&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: #134f5c; font-family: Courier New, Courier, monospace; font-size: x-small;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="color: #134f5c; font-family: Courier New, Courier, monospace; font-size: x-small;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: #134f5c; font-family: Courier New, Courier, monospace; font-size: x-small;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; document.getElementById('demo').appendChild(img);&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: #134f5c; font-family: Courier New, Courier, monospace; font-size: x-small;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;br /&gt;
&lt;span style="color: #134f5c; font-family: Courier New, Courier, monospace; font-size: x-small;"&gt;};&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: #134f5c; font-family: Courier New, Courier, monospace; font-size: x-small;"&gt;&amp;lt;/script&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: #134f5c; font-family: Courier New, Courier, monospace; font-size: x-small;"&gt;&amp;lt;/head&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: #134f5c; font-family: Courier New, Courier, monospace; font-size: x-small;"&gt;&amp;lt;body&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: #134f5c; font-family: Courier New, Courier, monospace; font-size: x-small;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="color: #134f5c; font-family: Courier New, Courier, monospace; font-size: x-small;"&gt;&amp;lt;h1&amp;gt;My First Web Page&amp;lt;/h1&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: #134f5c; font-family: Courier New, Courier, monospace; font-size: x-small;"&gt;&amp;lt;p id="demo"&amp;gt;This is a paragraph.&amp;lt;/p&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: #134f5c; font-family: Courier New, Courier, monospace; font-size: x-small;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="color: #134f5c; font-family: Courier New, Courier, monospace; font-size: x-small;"&gt;&amp;lt;button type="button" onclick="displayDate();"&amp;gt;Display Date&amp;lt;/button&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: #134f5c; font-family: Courier New, Courier, monospace; font-size: x-small;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="color: #134f5c; font-family: Courier New, Courier, monospace; font-size: x-small;"&gt;&amp;lt;/body&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: #134f5c; font-family: Courier New, Courier, monospace; font-size: x-small;"&gt;&amp;lt;/html&amp;gt; &lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://code-analyser.blogspot.com/feeds/3242528328049285668/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://code-analyser.blogspot.com/2012/08/change-image-in-html-dynamically-using.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/740816477032050978/posts/default/3242528328049285668?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/740816477032050978/posts/default/3242528328049285668?v=2'/><link rel='alternate' type='text/html' href='http://code-analyser.blogspot.com/2012/08/change-image-in-html-dynamically-using.html' title='Change Image in HtML Dynamically using Javascript'/><author><name>Amrit Mishra</name><uri>https://plus.google.com/105696312174148735014</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-kZm5wWXRhc0/AAAAAAAAAAI/AAAAAAAAB-w/9IAPjrlCzgs/s512-c/photo.jpg'/></author><thr:total>1</thr:total><georss:featurename>Pune, Maharashtra, India</georss:featurename><georss:point>18.5204303 73.8567437</georss:point><georss:box>18.3999798 73.6988152 18.6408808 74.01467219999999</georss:box></entry><entry gd:etag='W/&quot;D0IHQHc8eCp7ImA9WhVUF0s.&quot;'><id>tag:blogger.com,1999:blog-740816477032050978.post-7506500570177865157</id><published>2012-05-23T02:20:00.001-07:00</published><updated>2012-05-23T02:32:11.970-07:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2012-05-23T02:32:11.970-07:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='mysql'/><category scheme='http://www.blogger.com/atom/ns#' term='mysql integration with php'/><category scheme='http://www.blogger.com/atom/ns#' term='php'/><category scheme='http://www.blogger.com/atom/ns#' term='database'/><title>MySql integration in PHP - 1</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;div&gt;
MySql is open source database system and both of these are make a great combination. In this tutorial I will be showing how to create a connection to database , create tables , save and modify data in that.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;center style="color: #b45f06;"&gt;&lt;span style="font-size: large;"&gt;&lt;b&gt;Create a connection to database:&lt;/b&gt;&lt;/span&gt;&lt;/center&gt;&lt;center&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/center&gt;&lt;/div&gt;
&lt;div&gt;
&lt;pre class="code" style="background-color: #b5cfe0; border: 2px solid rgb(0, 59, 98); color: black; font-family: verdana; font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; overflow: auto; padding: 5px 5px 20px; position: relative; text-indent: 0px; text-transform: none; widows: 2; width: 500px; word-spacing: 0px;"&gt;mysql_connect(servername,username,password);&lt;/pre&gt;
&lt;/div&gt;
&lt;b&gt;servername&lt;/b&gt;: specifies the server to connect to&lt;br /&gt;
&lt;b&gt;username&lt;/b&gt;: specifies the user to login with&lt;br /&gt;
&lt;b&gt;password&lt;/b&gt;: specifies the password&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;example&lt;/b&gt;: to create a connection and close the connection later.&lt;br /&gt;
&lt;pre class="code" style="background-color: #b5cfe0; border: 2px solid rgb(0, 59, 98); color: black; font-family: verdana; font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; overflow: auto; padding: 5px 5px 20px; position: relative; text-indent: 0px; text-transform: none; widows: 2; width: 500px; word-spacing: 0px;"&gt; 
$con = mysql_connect("localhost","codeanalyser","code123");
if (!$con)
  {
  die('Could not connect: ' . mysql_error());
  }
mysql_close($con);
&lt;/pre&gt;
&lt;div style="color: blue; text-align: center;"&gt;
&lt;br /&gt;
&lt;b&gt;&amp;nbsp;&lt;span style="color: #b45f06; font-size: large;"&gt;Create a database:&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
We can create database statement using the CREATE DATABASE statement in sql
&lt;br /&gt;
&lt;b&gt;example: &lt;/b&gt;this example establishes a connection and create a database with name "codeanalyser_db"&lt;br /&gt;
&lt;pre class="code" style="background-color: #b5cfe0; border: 2px solid rgb(0, 59, 98); color: black; font-family: verdana; font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; overflow: auto; padding: 5px 5px 20px; position: relative; text-indent: 0px; text-transform: none; widows: 2; width: 500px; word-spacing: 0px;"&gt; 
$con = mysql_connect("localhost","codeanalyser","code123");

if (!$con)
&amp;nbsp; {
&amp;nbsp; die('Could not connect: ' . mysql_error());
&amp;nbsp; }

if (mysql_query("CREATE DATABASE codeanalyser_db",$con))
&amp;nbsp; {
&amp;nbsp; echo "Database created";
&amp;nbsp; }
else
&amp;nbsp; {
&amp;nbsp; echo "Error creating database: " . mysql_error();
&amp;nbsp; }
mysql_close($con);&lt;/pre&gt;
&lt;pre class="code"&gt;&amp;nbsp;&lt;/pre&gt;
&lt;pre class="code"&gt; 
&lt;/pre&gt;
&lt;div style="color: blue; text-align: center;"&gt;
&lt;span style="font-size: large;"&gt;&lt;b&gt;&amp;nbsp;&lt;span style="color: #b45f06;"&gt;Create a Table:&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&amp;nbsp;CREATE TABLE statement in mysql&amp;nbsp; is used to create a table inside the database we have created.
&lt;br /&gt;
&lt;b&gt;example: &lt;/b&gt;this example establishes a connection and create a database with name "codeanalyser_db"&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="code" style="background-color: #b5cfe0; border: 2px solid rgb(0, 59, 98); color: black; font-family: verdana; font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; overflow: auto; padding: 5px 5px 20px; position: relative; text-indent: 0px; text-transform: none; widows: 2; width: 500px; word-spacing: 0px;"&gt;$con = mysql_connect("localhost","codeanalyser","code123");
if (!$con)
&amp;nbsp; {
&amp;nbsp; die('Could not connect: ' . mysql_error());
&amp;nbsp; }
if (mysql_query("CREATE DATABASE codeanalyser_db",$con))

&amp;nbsp;&amp;nbsp;{
&amp;nbsp; echo "Database created";
&amp;nbsp; }
else
&amp;nbsp; {
&amp;nbsp; echo "Error creating database: " . mysql_error();
&amp;nbsp; }
// Create table
mysql_select_db("my_db", $con);

$sql = "CREATE TABLE Users
(
personID int NOT NULL AUTO_INCREMENT,
PRIMARY KEY(personID),
FirstName varchar(15),
LastName varchar(15),
Age int
)";

// Execute query
mysql_query($sql,$con);

mysql_close($con);

&lt;/pre&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://code-analyser.blogspot.com/feeds/7506500570177865157/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://code-analyser.blogspot.com/2012/05/mysql-integration-in-php-1.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/740816477032050978/posts/default/7506500570177865157?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/740816477032050978/posts/default/7506500570177865157?v=2'/><link rel='alternate' type='text/html' href='http://code-analyser.blogspot.com/2012/05/mysql-integration-in-php-1.html' title='MySql integration in PHP - 1'/><author><name>Amrit Mishra</name><uri>https://plus.google.com/105696312174148735014</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-kZm5wWXRhc0/AAAAAAAAAAI/AAAAAAAAB-w/9IAPjrlCzgs/s512-c/photo.jpg'/></author><thr:total>1</thr:total><georss:featurename>Pune, Maharashtra, India</georss:featurename><georss:point>18.5204303 73.8567437</georss:point><georss:box>18.3999798 73.6988152 18.6408808 74.01467219999999</georss:box></entry><entry gd:etag='W/&quot;DEINQ34-fip7ImA9WhVUFko.&quot;'><id>tag:blogger.com,1999:blog-740816477032050978.post-5004554464317477626</id><published>2012-05-22T01:45:00.000-07:00</published><updated>2012-05-22T01:49:52.056-07:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2012-05-22T01:49:52.056-07:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='php'/><category scheme='http://www.blogger.com/atom/ns#' term='functions'/><title>Using functions in php</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
Definition : A function is just a name we give to a block of code that can be executed whenever we need it. This might not seem like that big of an idea, but believe me, when you understand and use functions you will be able to save a ton of time and write code that is much more readable!&lt;br /&gt;
&lt;br /&gt;
So the main advantage of using functions in any programming language we get is we can call a function as many time we need. We can also call the function to process some specific variable or task and show the desired output or result. Passing values/variables to a function decreases the burden on the programmer and also make the program easy to understand.&lt;br /&gt;
&lt;br /&gt;
Lets consider examples :&lt;br /&gt;
This is how we can define a function in php using the tags.&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="code" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: #b5cfe0; border: 2px solid rgb(0, 59, 98); color: black; font-family: verdana; font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; overflow: auto; padding: 5px 5px 20px; position: relative; text-align: -webkit-auto; text-indent: 0px; text-transform: none; widows: 2; width: 470px; word-spacing: 0px;"&gt;&amp;lt;?php
&lt;span style="color: red;"&gt;function display(){
}&lt;/span&gt;
?&amp;gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
Now lets add data inside our function which will be executed when the function is called.&lt;/div&gt;
&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;pre class="code" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: #b5cfe0; border: 2px solid rgb(0, 59, 98); color: black; font-family: verdana; font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; overflow: auto; padding: 5px 5px 20px; position: relative; text-align: -webkit-auto; text-indent: 0px; text-transform: none; widows: 2; width: 470px; word-spacing: 0px;"&gt;&amp;lt;?php
function display(){
    &lt;span style="color: red;"&gt;echo "Hello Every One &amp;lt;br /&amp;gt;";&lt;/span&gt;
}
?&amp;gt;&lt;/pre&gt;
&lt;/div&gt;
Now what the above function does is that. It processes the data inside the function and shows the output every time it is called.&lt;br /&gt;
Now when we add complete code this is what we get.&lt;br /&gt;
&lt;pre class="code" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: #b5cfe0; border: 2px solid rgb(0, 59, 98); color: black; font-family: verdana; font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; overflow: auto; padding: 5px 5px 20px; position: relative; text-align: -webkit-auto; text-indent: 0px; text-transform: none; widows: 2; width: 470px; word-spacing: 0px;"&gt;&amp;lt;?php
&lt;span style="color: red;"&gt;function &lt;/span&gt;display&lt;span style="color: red;"&gt;(){
  &lt;/span&gt;&lt;span style="color: red;"&gt;echo "Hello Every One &amp;lt;br /&amp;gt;";&lt;/span&gt;&lt;span style="color: red;"&gt;
}&lt;/span&gt;
echo "Welcome to Code Analyser &amp;lt;br /&amp;gt;";
display&lt;span style="color: red;"&gt;();&lt;/span&gt;&lt;span style="color: red;"&gt;&lt;/span&gt;
?&amp;gt;&lt;/pre&gt;
&amp;nbsp;output:&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="code" style="background-color: #b5cfe0; border: 2px solid rgb(0, 59, 98); color: black; font-family: verdana; font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; overflow: auto; padding: 5px 5px 20px; position: relative; text-indent: 0px; text-transform: none; widows: 2; width: 470px; word-spacing: 0px;"&gt;Welcome to Code Analyser
 Hello Every One &lt;/pre&gt;
&lt;br /&gt;
&lt;u&gt;&amp;nbsp;&lt;span style="font-size: large;"&gt;php Functions with Parameters: &lt;/span&gt;&lt;/u&gt;&lt;br /&gt;
passing values to function gives us upper hand to write effective and good code with less confusion.&lt;br /&gt;
We can pass values, arguments and make our function use them to show the result. Following code shows the way to pass values in php functions.&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="code" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: #b5cfe0; border: 2px solid rgb(0, 59, 98); color: black; font-family: verdana; font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; overflow: auto; padding: 5px 5px 20px; position: relative; text-align: -webkit-auto; text-indent: 0px; text-transform: none; widows: 2; width: 470px; word-spacing: 0px;"&gt;&amp;lt;?php
function display($firstName&lt;span style="color: red;"&gt;, $lastName&lt;/span&gt;){
    echo "Hello there ". $firstName .&lt;span style="color: red;"&gt;" ". $lastName ."&lt;/span&gt;!&amp;lt;br /&amp;gt;";
}
display("Jack", "Black");
display("Ahmed", "Zewail");
display("Julie", "Roberts");
display("Charles", "Schwab");
?&amp;gt;&lt;/pre&gt;
&lt;br /&gt;
The output we get is&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="code" style="background-color: #b5cfe0; border: 2px solid rgb(0, 59, 98); color: black; font-family: verdana; font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; overflow: auto; padding: 5px 5px 20px; position: relative; text-indent: 0px; text-transform: none; widows: 2; width: 470px; word-spacing: 0px;"&gt;&lt;span style="background-color: #b5cfe0; color: black; display: inline ! important; float: none; font-family: verdana; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"&gt;Hello there Jack Black! &lt;/span&gt;
&lt;span style="background-color: #b5cfe0; color: black; display: inline ! important; float: none; font-family: verdana; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"&gt;Hello there &lt;/span&gt;Ahmed&lt;span style="background-color: #b5cfe0; color: black; display: inline ! important; float: none; font-family: verdana; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"&gt; &lt;/span&gt;Zewail&lt;span style="background-color: #b5cfe0; color: black; display: inline ! important; float: none; font-family: verdana; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"&gt;! &lt;/span&gt;
&lt;span style="background-color: #b5cfe0; color: black; display: inline ! important; float: none; font-family: verdana; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"&gt;Hello there &lt;/span&gt;Julie Roberts&lt;span style="background-color: #b5cfe0; color: black; display: inline ! important; float: none; font-family: verdana; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"&gt;! &lt;/span&gt;
&lt;span style="background-color: #b5cfe0; color: black; display: inline ! important; float: none; font-family: verdana; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"&gt;Hello there &lt;/span&gt;Charles Schwab&lt;span style="background-color: #b5cfe0; color: black; display: inline ! important; float: none; font-family: verdana; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"&gt;!&lt;/span&gt;&lt;/pre&gt;
By the above way we can make our php application more better.&lt;br /&gt;
For more php tutorial check following links :&lt;br /&gt;
&lt;ol style="text-align: left;"&gt;
&lt;li&gt;&lt;a href="http://www.tizag.com/phpT/index.php" target="_blank"&gt;tizag. com&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://phptutorial.info/" target="_blank"&gt;php for beginners &lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.homeandlearn.co.uk/php/php.html" target="_blank"&gt;Beginner PHP&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://code-analyser.blogspot.com/feeds/5004554464317477626/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://code-analyser.blogspot.com/2012/05/using-functions-in-php.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/740816477032050978/posts/default/5004554464317477626?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/740816477032050978/posts/default/5004554464317477626?v=2'/><link rel='alternate' type='text/html' href='http://code-analyser.blogspot.com/2012/05/using-functions-in-php.html' title='Using functions in php'/><author><name>Amrit Mishra</name><uri>https://plus.google.com/105696312174148735014</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-kZm5wWXRhc0/AAAAAAAAAAI/AAAAAAAAB-w/9IAPjrlCzgs/s512-c/photo.jpg'/></author><thr:total>1</thr:total><georss:featurename>Pune, Maharashtra, India</georss:featurename><georss:point>18.5204303 73.8567437</georss:point><georss:box>18.3999798 73.6988152 18.6408808 74.01467219999999</georss:box></entry><entry gd:etag='W/&quot;DkEHRX48cCp7ImA9WhVUFko.&quot;'><id>tag:blogger.com,1999:blog-740816477032050978.post-3751801013129024405</id><published>2012-05-22T01:17:00.000-07:00</published><updated>2012-05-22T01:17:14.078-07:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2012-05-22T01:17:14.078-07:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='paypal'/><title>Using Paypal API</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
As a developer I always keeps on searching about new technologies or coding way to make my application more liked by user. And here I came up with&lt;a href="https://cms.paypal.com/us/cgi-bin/?cmd=_render-content&amp;amp;content_ID=developer/home"&gt; Paypal API&lt;/a&gt; which help developers to integrate paypal informations into there application., or create application which works on paypal. Paypal has done a great job by providing the complete documentation about the API and you can also find lots of &lt;a href="https://cms.paypal.com/us/cgi-bin/?cmd=_render-content&amp;amp;content_ID=developer/library_code"&gt;examples &lt;/a&gt;also.&lt;br /&gt;
&lt;br /&gt;
In this tutorial I will show some code to&lt;br /&gt;
&lt;ol style="text-align: left;"&gt;
&lt;li&gt;Connect to the paypal website.&lt;/li&gt;
&lt;li&gt;Get the permission token&lt;/li&gt;
&lt;li&gt;Use that token to perform transactions or get details.&lt;/li&gt;
&lt;/ol&gt;
The pemission API provides a lot help. main purpose of using this is that. paypal provides permission token using which we can perform transaction on behalf of user.&amp;nbsp; &lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://1.bp.blogspot.com/-Wri-Kd3V8W0/T6EXNzaKCNI/AAAAAAAABvY/eb2FQb6cPlU/s1600/Helix_Permissions_Service.gif" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="400" src="http://1.bp.blogspot.com/-Wri-Kd3V8W0/T6EXNzaKCNI/AAAAAAAABvY/eb2FQb6cPlU/s400/Helix_Permissions_Service.gif" width="378" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
The explanation with sample example is given in this &lt;a href="https://cms.paypal.com/us/cgi-bin/?cmd=_render-content&amp;amp;content_ID=developer/e_howto_api_PermissionsUsing"&gt;link.&lt;/a&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://code-analyser.blogspot.com/feeds/3751801013129024405/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://code-analyser.blogspot.com/2012/05/using-paypal-api.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/740816477032050978/posts/default/3751801013129024405?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/740816477032050978/posts/default/3751801013129024405?v=2'/><link rel='alternate' type='text/html' href='http://code-analyser.blogspot.com/2012/05/using-paypal-api.html' title='Using Paypal API'/><author><name>Amrit Mishra</name><uri>https://plus.google.com/105696312174148735014</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-kZm5wWXRhc0/AAAAAAAAAAI/AAAAAAAAB-w/9IAPjrlCzgs/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/-Wri-Kd3V8W0/T6EXNzaKCNI/AAAAAAAABvY/eb2FQb6cPlU/s72-c/Helix_Permissions_Service.gif' height='72' width='72'/><thr:total>0</thr:total><georss:featurename>Pune, Maharashtra, India</georss:featurename><georss:point>18.5204303 73.8567437</georss:point><georss:box>18.3999798 73.6988152 18.6408808 74.01467219999999</georss:box></entry><entry gd:etag='W/&quot;CUcESXo6eSp7ImA9WhRbE0g.&quot;'><id>tag:blogger.com,1999:blog-740816477032050978.post-6538809269473510523</id><published>2012-02-04T02:56:00.000-08:00</published><updated>2012-02-04T02:56:48.411-08:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2012-02-04T02:56:48.411-08:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='rcp'/><category scheme='http://www.blogger.com/atom/ns#' term='SWT'/><category scheme='http://www.blogger.com/atom/ns#' term='eclipse'/><title>My First SWT Standalone Application.</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;div style="text-align: -webkit-auto;"&gt;
While creating my first SWT(Standard widget toolkit) application I searched a bit. and I came across the &lt;a href="http://www.vogella.de/articles/SWT/article.html"&gt;SWT Tutorial &lt;/a&gt;of Lars Vogel. After going through this I under stood a little about SWt and its advantages.&lt;br /&gt;
&lt;br /&gt;
In the tutorial he has really explained in a cool manner about the Eclipse plugin projects, Swt , and many other things. After that I started creating my own example application. and here how I created :&lt;br /&gt;
&lt;br /&gt;
&lt;span style="background-color: #fbfff1; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px;"&gt;1. Download SWT library. For 3.1.2 version of eclipse, SWT library is available at&lt;/span&gt;&lt;a href="http://archive.eclipse.org/eclipse/downloads/drops/R-3.1.2-200601181600/index.php" style="background-color: #fbfff1; color: #046296; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; text-decoration: none;"&gt;http://archive.eclipse.org/eclipse/downloads/drops/R-3.1.2-200601181600/index.php&lt;/a&gt;&lt;span style="background-color: #fbfff1; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px;"&gt;&amp;nbsp;Look for the section titled SWT Binary and Source.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style="background-color: #fbfff1; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px;"&gt;2. From main menu tool bar, select "File" followed by "Import". Doing so will bring up the "Import wizard" dialog.&lt;/span&gt;&lt;br /&gt;
&lt;span style="background-color: #fbfff1; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px;"&gt;3. Now select "Existing Projects into Workspace" and click on "Next" button.&lt;/span&gt;&lt;br /&gt;
&lt;span style="background-color: #fbfff1; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px;"&gt;4. Click on "Select archive file" followed by "Browse" button. Now locate the SWT archive that you downloaded in step 1.&lt;/span&gt;&lt;br /&gt;
&lt;span style="background-color: #fbfff1; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px;"&gt;5. Click the Finish button to finish importing the SWT project into your workspace.&lt;/span&gt;&lt;br /&gt;
&lt;span style="background-color: #fbfff1; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px;"&gt;6. Create new java project from File &amp;gt; New Java Project.&lt;/span&gt;&lt;br /&gt;
&lt;span style="background-color: #fbfff1; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px;"&gt;7. Right-click on the project and select the Properties command to open the Properties dialog.&lt;/span&gt;&lt;br /&gt;
&lt;span style="background-color: #fbfff1; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px;"&gt;8. Select the Java Build Path followed by Projects tab and click the Add button.&lt;/span&gt;&lt;br /&gt;
&lt;span style="background-color: #fbfff1; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px;"&gt;9. Select the org.eclipse.swt project and click OK to finish adding the SWT libraries to your project's classpath&lt;/span&gt;
&lt;br /&gt;
&lt;span style="background-color: #fbfff1; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;pre class="brush:js;"&gt;import org.eclipse.swt.SWT;
import org.eclipse.swt.events.SelectionAdapter;
import org.eclipse.swt.events.SelectionEvent;
import org.eclipse.swt.graphics.Color;
import org.eclipse.swt.graphics.Point;
import org.eclipse.swt.layout.FillLayout;
import org.eclipse.swt.widgets.*;

public class FirstApplication {
 public static void main(String[] args) {

  Display myDisplay = new Display();
  final Shell myShell = new Shell(myDisplay);
  myShell.setText("This is a label");
  myShell.setBounds(100, 100, 200, 50);
  myShell.setLayout(new FillLayout());
  Label label = new Label(myShell, SWT.CENTER);
  label.setText("Hello World");
  Color red = new Color(myDisplay, 255, 0, 0);
  label.setForeground(red);

  // for adding buttons
  final Button button = new Button(myShell, SWT.PUSH);
  button.setText("Click here");
  button.addSelectionListener(new SelectionAdapter() {
   public void widgetSelected(SelectionEvent event) {
    button.setText(" clicked !");
   }
  });
  // for adding text
  final Text text = new Text(myShell, SWT.MULTI);

  // for adding Combo
  final Combo myCombo = new Combo(myShell, SWT.READ_ONLY);
  myCombo.setItems(new String[] { "option1", "option2", "option3",
    "option4", "option5" });
  myCombo.setText("option5");
  myCombo.addSelectionListener(new SelectionAdapter() {
   public void widgetSelected(SelectionEvent event) {
    System.out.println("you selected me: " + myCombo.getText());
   }
  });

  // for adding Table
  final Table myTable = new Table(myShell, SWT.SINGLE
    | SWT.FULL_SELECTION);
  TableColumn col1 = new TableColumn(myTable, SWT.NULL);
  col1.setText("First Column");
  col1.pack();
  TableColumn col2 = new TableColumn(myTable, SWT.NULL);
  col2.setText("Second Column");
  col2.pack();
  TableItem tableItem1 = new TableItem(myTable, SWT.NULL);
  tableItem1.setText(new String[] { "A1", "A2" });
  TableItem tableItem2 = new TableItem(myTable, SWT.NULL);
  tableItem2.setText(new String[] { "B1", "B2" });

  // for adding Tree
  final Tree tree = new Tree(myShell, SWT.SINGLE);
  for (int i = 1; i &amp;lt; 4; i++) {
   TreeItem parent1 = new TreeItem(tree, 0);
   parent1.setText("Paren1 - " + i);
   for (int j = 1; j &amp;lt; 4; j++) {
    TreeItem parent2 = new TreeItem(parent1, 0);
    parent2.setText("Parent2 - " + j);
    for (int k = 1; k &amp;lt; 4; k++) {
     TreeItem child = new TreeItem(parent2, 0);
     child.setText("Child - " + k);
    }
   }
  }
  tree.addListener(SWT.MouseDown, new Listener() {
   public void handleEvent(Event event) {
    Point point = new Point(event.x, event.y);
    TreeItem item = tree.getItem(point);
    if (item != null) {
     System.out.println("Mouse down: " + item);
    }
   }
  });

  // for adding Menu
  Menu myBar = new Menu(myShell, SWT.BAR);
  myShell.setMenuBar(myBar);
  MenuItem fileMenuItem = new MenuItem(myBar, SWT.CASCADE);
  fileMenuItem.setText("&amp;amp;First Menu");
  Menu subMenuItem = new Menu(myShell, SWT.DROP_DOWN);
  fileMenuItem.setMenu(subMenuItem);
  MenuItem selectMenuItem = new MenuItem(subMenuItem, SWT.NULL);
  selectMenuItem.setText("&amp;amp;HelloAll\tCtrl+S");
  selectMenuItem.setAccelerator(SWT.CTRL + 'S');
  selectMenuItem.addSelectionListener(new SelectionAdapter() {
   public void widgetSelected(SelectionEvent event) {
    System.out.println("Hello Selected!");
   }
  });

  MenuItem thisIsSeperator = new MenuItem(subMenuItem, SWT.SEPARATOR);
  MenuItem exitMenuItem = new MenuItem(subMenuItem, SWT.NULL);
  exitMenuItem.setText("&amp;amp;ByeAll");
  exitMenuItem.addSelectionListener(new SelectionAdapter() {
   public void widgetSelected(SelectionEvent event) {
    myShell.dispose();
   }
  });

  // for adding Composite
  Composite composite = new Composite(myShell, SWT.BORDER);
  composite.setBounds(35, 35, 155, 127);
  final Button button1 = new Button(composite, SWT.PUSH);
  button1.setBounds(30, 30, 110, 85);
  button1.setText("ClickMe");

  myShell.open();
  while (!myShell.isDisposed()) {
   if (!myDisplay.readAndDispatch())
    myDisplay.sleep();
  }
  red.dispose();
  myDisplay.dispose();
 }
}&lt;/pre&gt;
&lt;/div&gt;
Run the application and see all the controls in your first application.&lt;br /&gt;
For more tutorial check these :&lt;br /&gt;
&lt;br /&gt;
&lt;ol style="text-align: left;"&gt;
&lt;li&gt;&lt;a href="http://www.eclipsepluginsite.com/swt.html"&gt;Eclipse Plugin Site&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.rcp-vision.com/?p=349&amp;amp;lang=en"&gt;RCP Vision&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;div&gt;
Thanks,&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://code-analyser.blogspot.com/feeds/6538809269473510523/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://code-analyser.blogspot.com/2012/02/my-first-swt-standalone-application.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/740816477032050978/posts/default/6538809269473510523?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/740816477032050978/posts/default/6538809269473510523?v=2'/><link rel='alternate' type='text/html' href='http://code-analyser.blogspot.com/2012/02/my-first-swt-standalone-application.html' title='My First SWT Standalone Application.'/><author><name>Amrit Mishra</name><uri>https://plus.google.com/105696312174148735014</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-kZm5wWXRhc0/AAAAAAAAAAI/AAAAAAAAB-w/9IAPjrlCzgs/s512-c/photo.jpg'/></author><thr:total>1</thr:total></entry><entry gd:etag='W/&quot;CUMFRXc4fip7ImA9WhRbE0g.&quot;'><id>tag:blogger.com,1999:blog-740816477032050978.post-6798377154658910383</id><published>2012-02-04T02:39:00.000-08:00</published><updated>2012-02-04T03:03:34.936-08:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2012-02-04T03:03:34.936-08:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='jFace'/><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='SWT'/><category scheme='http://www.blogger.com/atom/ns#' term='eclipse'/><category scheme='http://www.blogger.com/atom/ns#' term='Treeviiewer'/><title>Creating JFace TreeViewer in Eclipse</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
JFace is a UI toolkit with classes for handling many common UI 
programming tasks. JFace is window-system-independent in both its API 
and implementation, and is designed to work with &lt;a href="http://wiki.eclipse.org/SWT" title="SWT"&gt;SWT&lt;/a&gt;
 without hiding it. JFace includes the usual UI toolkit components of 
image and font registries, text, dialog, preference and wizard 
frameworks, and progress reporting for long running operations. Two of 
its more interesting features are actions and viewers. The action 
mechanism allows user commands to be defined independently from their 
exact whereabouts in the UI. Viewers are model based adapters for 
certain SWT widgets, simplifying the presentation of application data 
structured as lists, tables or trees.&lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://wiki.eclipse.org/index.php/JFace#Setting_Up_an_Eclipse_Project_to_use_SWT_and_JFace"&gt;Read More...&amp;nbsp;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
I have taken one exmaple from the &amp;nbsp;java2s website. This helped me create a jface treeviewer. JFace treeviewer is more better than SWT TreeItem. Both can perform same thing. but JFace is much more better for applications with data provider technique.&lt;br /&gt;
&lt;br /&gt;
Create a Nornal java project in your eclipse add this class.FileTree.java. Add the plugins:&lt;br /&gt;
&lt;br /&gt;
&lt;ol style="text-align: left;"&gt;
&lt;li&gt;eclipse-rcp-indigo-SR1-win32/eclipse/plugins/org.eclipse.jface.source_3.7.0.I20110522-1430.jar&lt;/li&gt;
&lt;li&gt;org.eclipse.core.commands_3.6.0.I20110111-0800.jar&lt;/li&gt;
&lt;li&gt;org.eclipse.equinox.common_3.6.0.v20110523.jar&lt;/li&gt;
&lt;li&gt;add swt jars.&lt;/li&gt;
&lt;li&gt;and run the application&lt;/li&gt;
&lt;/ol&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="brush:js;"&gt;import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.util.ArrayList;
import java.util.List;

import org.eclipse.jface.viewers.ILabelProvider;
import org.eclipse.jface.viewers.ILabelProviderListener;
import org.eclipse.jface.viewers.ITreeContentProvider;
import org.eclipse.jface.viewers.LabelProviderChangedEvent;
import org.eclipse.jface.viewers.TreeViewer;
import org.eclipse.jface.viewers.Viewer;
import org.eclipse.jface.window.ApplicationWindow;
import org.eclipse.swt.SWT;
import org.eclipse.swt.events.SelectionAdapter;
import org.eclipse.swt.events.SelectionEvent;
import org.eclipse.swt.graphics.Image;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Control;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Shell;

/**
 * This class demonstrates TreeViewer. It shows the drives, directories, and
 * files on the system.
 */
public class FileTree extends ApplicationWindow {
 /**
  * FileTree constructor
  */
 public FileTree() {
  super(null);
 }

 /**
  * Runs the application
  */
 public void run() {
  // Don't return from open() until window closes
  setBlockOnOpen(true);

  // Open the main window
  open();

  // Dispose the display
  Display.getCurrent().dispose();
 }

 /**
  * Configures the shell
  * 
  * @param shell
  *            the shell
  */
 protected void configureShell(Shell shell) {
  super.configureShell(shell);

  // Set the title bar text and the size
  shell.setText("File Tree");
  shell.setSize(400, 400);
 }

 /**
  * Creates the main window's contents
  * 
  * @param parent
  *            the main window
  * @return Control
  */
 protected Control createContents(Composite parent) {
  Composite composite = new Composite(parent, SWT.NONE);
  composite.setLayout(new GridLayout(1, false));

  // Add a checkbox to toggle whether the labels preserve case
  Button preserveCase = new Button(composite, SWT.CHECK);
  preserveCase.setText("&amp;amp;Preserve case");

  // Create the tree viewer to display the file tree
  final TreeViewer tv = new TreeViewer(composite);
  tv.getTree().setLayoutData(new GridData(GridData.FILL_BOTH));
  tv.setContentProvider(new MyTreeContentProvider());
  tv.setLabelProvider(new MyTreeLabelProvider());
  tv.setInput("root"); // pass a non-null that will be ignored

  // When user checks the checkbox, toggle the preserve case attribute
  // of the label provider
  preserveCase.addSelectionListener(new SelectionAdapter() {
   public void widgetSelected(SelectionEvent event) {
    boolean preserveCase = ((Button) event.widget).getSelection();
    MyTreeLabelProvider ftlp = (MyTreeLabelProvider) tv
      .getLabelProvider();
    ftlp.setPreserveCase(preserveCase);
   }
  });
  return composite;
 }

 /**
  * The application entry point
  * 
  * @param args
  *            the command line arguments
  */
 public static void main(String[] args) {
  new FileTree().run();
 }
}

/**
 * This class provides the content for the tree in FileTree
 */

class MyTreeContentProvider implements ITreeContentProvider {
 /**
  * Gets the children of the specified object
  * 
  * @param arg0
  *            the parent object
  * @return Object[]
  */
 public Object[] getChildren(Object arg0) {
  // Return the files and subdirectories in this directory
  return ((File) arg0).listFiles();
 }

 /**
  * Gets the parent of the specified object
  * 
  * @param arg0
  *            the object
  * @return Object
  */
 public Object getParent(Object arg0) {
  // Return this file's parent file
  return ((File) arg0).getParentFile();
 }

 /**
  * Returns whether the passed object has children
  * 
  * @param arg0
  *            the parent object
  * @return boolean
  */
 public boolean hasChildren(Object arg0) {
  // Get the children
  Object[] obj = getChildren(arg0);

  // Return whether the parent has children
  return obj == null ? false : obj.length &amp;gt; 0;
 }

 /**
  * Gets the root element(s) of the tree
  * 
  * @param arg0
  *            the input data
  * @return Object[]
  */
 public Object[] getElements(Object arg0) {
  // These are the root elements of the tree
  // We don't care what arg0 is, because we just want all
  // the root nodes in the file system
  return File.listRoots();
 }

 /**
  * Disposes any created resources
  */
 public void dispose() {
  // Nothing to dispose
 }

 @Override
 public void inputChanged(Viewer viewer, Object oldInput, Object newInput) {
  // TODO Auto-generated method stub

 }
}

/**
 * This class provides the labels for the file tree
 */

class MyTreeLabelProvider implements ILabelProvider {
 // The listeners
 private List listeners;

 // Images for tree nodes
 private Image file;

 private Image dir;

 // Label provider state: preserve case of file names/directories
 boolean preserveCase;

 /**
  * Constructs a FileTreeLabelProvider
  */
 public MyTreeLabelProvider() {
  // Create the list to hold the listeners
  listeners = new ArrayList();

  // Create the images
  try {
   file = new Image(null, new FileInputStream("images/file.gif"));
   dir = new Image(null, new FileInputStream("images/directory.gif"));
  } catch (FileNotFoundException e) {
   // Swallow it; we'll do without images
  }
 }

 /**
  * Sets the preserve case attribute
  * 
  * @param preserveCase
  *            the preserve case attribute
  */
 public void setPreserveCase(boolean preserveCase) {
  this.preserveCase = preserveCase;

  // Since this attribute affects how the labels are computed,
  // notify all the listeners of the change.
  LabelProviderChangedEvent event = new LabelProviderChangedEvent(this);
  for (int i = 0, n = listeners.size(); i &amp;lt; n; i++) {
   ILabelProviderListener ilpl = (ILabelProviderListener) listeners
     .get(i);
   ilpl.labelProviderChanged(event);
  }
 }

 /**
  * Gets the image to display for a node in the tree
  * 
  * @param arg0
  *            the node
  * @return Image
  */
 public Image getImage(Object arg0) {
  // If the node represents a directory, return the directory image.
  // Otherwise, return the file image.
  return ((File) arg0).isDirectory() ? dir : file;
 }

 /**
  * Gets the text to display for a node in the tree
  * 
  * @param arg0
  *            the node
  * @return String
  */
 public String getText(Object arg0) {
  // Get the name of the file
  String text = ((File) arg0).getName();

  // If name is blank, get the path
  if (text.length() == 0) {
   text = ((File) arg0).getPath();
  }

  // Check the case settings before returning the text
  return preserveCase ? text : text.toUpperCase();
 }

 /**
  * Called when this LabelProvider is being disposed
  */
 public void dispose() {
  // Dispose the images
  if (dir != null)
   dir.dispose();
  if (file != null)
   file.dispose();
 }

 /**
  * Returns whether changes to the specified property on the specified
  * element would affect the label for the element
  * 
  * @param arg0
  *            the element
  * @param arg1
  *            the property
  * @return boolean
  */
 public boolean isLabelProperty(Object arg0, String arg1) {
  return false;
 }

 @Override
 public void addListener(ILabelProviderListener listener) {
  listeners.add(listener);

 }

 @Override
 public void removeListener(ILabelProviderListener listener) {
  listeners.remove(listener);

 }
}
&lt;/pre&gt;
More Examples : &lt;a href="http://www.java2s.com/Code/Java/SWT-JFace-Eclipse/DemonstratesTreeViewer.htm"&gt;click&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://code-analyser.blogspot.com/feeds/6798377154658910383/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://code-analyser.blogspot.com/2012/02/creating-jface-treeviewer-in-eclipse.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/740816477032050978/posts/default/6798377154658910383?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/740816477032050978/posts/default/6798377154658910383?v=2'/><link rel='alternate' type='text/html' href='http://code-analyser.blogspot.com/2012/02/creating-jface-treeviewer-in-eclipse.html' title='Creating JFace TreeViewer in Eclipse'/><author><name>Amrit Mishra</name><uri>https://plus.google.com/105696312174148735014</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-kZm5wWXRhc0/AAAAAAAAAAI/AAAAAAAAB-w/9IAPjrlCzgs/s512-c/photo.jpg'/></author><thr:total>1</thr:total></entry><entry gd:etag='W/&quot;C0QMRXY4fyp7ImA9WhRbEE0.&quot;'><id>tag:blogger.com,1999:blog-740816477032050978.post-8330975017901747547</id><published>2012-01-31T01:16:00.000-08:00</published><updated>2012-01-31T01:16:24.837-08:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2012-01-31T01:16:24.837-08:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='metro'/><category scheme='http://www.blogger.com/atom/ns#' term='grid'/><category scheme='http://www.blogger.com/atom/ns#' term='windows8'/><title>Windows 8 Metro Style</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;br /&gt;
Microsoft has taken a bold step with Windows 8. An operating system &amp;nbsp;which will be running in any kind of platform be it tablet, pcs, laptops,&amp;nbsp;servers. The best part of Windows 8 is the touch and the new Metro design&amp;nbsp;UI. Even though it is having the new Metro design Windows 8 managed to&amp;nbsp;keep it useful for Windows 7 users by keeping facility to go back to &amp;nbsp;W7 Ui.&amp;nbsp;User can opt for any thing he wants. And the hard ware acceleration in&amp;nbsp;windows 8 make it more faster than any other OS.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;System Requirements&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
The Windows 8 Developer Preview works great on the same hardware that&lt;br /&gt;
&lt;br /&gt;
powers Windows Vista and Windows 7:&lt;br /&gt;
1 gigahertz (GHz) or faster 32-bit (x86) or 64-bit (x64) processor&lt;br /&gt;
1 gigabyte (GB) RAM (32-bit) or 2 GB RAM (64-bit)&lt;br /&gt;
16 GB available hard disk space (32-bit) or 20 GB (64-bit)&lt;br /&gt;
DirectX 9 graphics device with WDDM 1.0 or higher driver&lt;br /&gt;
Taking advantage of touch input requires a screen that supports multi-touch&lt;br /&gt;
To run Metro style Apps, you need a screen resolution of 1024 X 768 or&amp;nbsp;greater&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here is a &lt;a href="http://windows.microsoft.com/en-US/windows-8/preview"&gt;preview of Windows &lt;/a&gt;8 from Microsoft. You can &lt;a href="http://msdn.microsoft.com/en-us/windows/apps/br2295"&gt;download &lt;/a&gt;your own copy of Windows 8.&lt;br /&gt;
&lt;br /&gt;
&lt;table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style="text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-7jNEHMuSnpc/TyexIXMcb_I/AAAAAAAABd0/O3zA6wnKbyU/s1600/1.png" imageanchor="1" style="margin-left: auto; margin-right: auto;"&gt;&lt;img border="0" height="250" src="http://2.bp.blogspot.com/-7jNEHMuSnpc/TyexIXMcb_I/AAAAAAAABd0/O3zA6wnKbyU/s400/1.png" width="400" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class="tr-caption" style="text-align: center;"&gt;My computer Windows 8 screeshot&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://code-analyser.blogspot.com/feeds/8330975017901747547/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://code-analyser.blogspot.com/2012/01/windows-8-metro-style.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/740816477032050978/posts/default/8330975017901747547?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/740816477032050978/posts/default/8330975017901747547?v=2'/><link rel='alternate' type='text/html' href='http://code-analyser.blogspot.com/2012/01/windows-8-metro-style.html' title='Windows 8 Metro Style'/><author><name>Amrit Mishra</name><uri>https://plus.google.com/105696312174148735014</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-kZm5wWXRhc0/AAAAAAAAAAI/AAAAAAAAB-w/9IAPjrlCzgs/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/-7jNEHMuSnpc/TyexIXMcb_I/AAAAAAAABd0/O3zA6wnKbyU/s72-c/1.png' height='72' width='72'/><thr:total>0</thr:total><georss:featurename>Koti Main Rd, Koti, Hyderabad, Andhra Pradesh, India</georss:featurename><georss:point>17.385044 78.486671</georss:point><georss:box>17.142593 78.17081400000001 17.627495 78.802528</georss:box></entry><entry gd:etag='W/&quot;AkYFQnw8fSp7ImA9WhRWF04.&quot;'><id>tag:blogger.com,1999:blog-740816477032050978.post-4632783461975114485</id><published>2012-01-04T20:11:00.000-08:00</published><updated>2012-01-04T20:35:13.275-08:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2012-01-04T20:35:13.275-08:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='app store'/><category scheme='http://www.blogger.com/atom/ns#' term='UIBarButtonItem'/><category scheme='http://www.blogger.com/atom/ns#' term='iPad'/><category scheme='http://www.blogger.com/atom/ns#' term='UISegmentedControl'/><title>Adding UISegmentedControl to UIToolBar</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;span class="Apple-style-span"&gt;Many a time the UIToolbar doesnot provides the options and the control we want in our application. Consider having a menu in iPad application.

To create a Menu like application in iPad application I am using UIToolBar with tool bar button items - UIBarButtonItem I was able to add them but so many UIBarButtonItem is making the UIToolBar look very odd. So I thought of adding&amp;nbsp;&lt;/span&gt;UIBarButtonItem&lt;span class="Apple-style-span"&gt;.
This helped me a lot by making my application look like having Menu at top 
&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="brush:js;"&gt;NSMutableArray *att = [[NSMutableArray alloc]init];
 [att addObject:@"1"];
 [att addObject:@"2"];
 [att addObject:@"3"];
 [att addObject:@"4"];
 [att addObject:@"5"];

UISegmentedControl *segControl = [[UISegmentedControl alloc]initWithItems:att];
    [segControl addTarget:self action:@selector(didChangeSegmentControl:) forControlEvents:UIControlEventValueChanged];
    [segControl setSegmentedControlStyle:UISegmentedControlStyleBar];
    [segControl setTintColor:[UIColor grayColor]];
    barButtonItem = [[UIBarButtonItem alloc] initWithCustomView:segControl];


&lt;/pre&gt;
now to get the action of the&amp;nbsp;UISegmentedControl :&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="brush:js;"&gt;-(void)didChangeSegmentControl:(UISegmentedControl*)control{
    
    NSString *title =[control titleForSegmentAtIndex:control.selectedSegmentIndex];
    [control setTintColor:[UIColor grayColor]];
        NSLog(@"title : %@",title);
 
    
}
&lt;/pre&gt;
after doing it will look like this :&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://4.bp.blogspot.com/-U8SnwyCvM7k/TwUoKMjsLKI/AAAAAAAABGU/Wd7bMtes5lM/s1600/1.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="40" src="http://4.bp.blogspot.com/-U8SnwyCvM7k/TwUoKMjsLKI/AAAAAAAABGU/Wd7bMtes5lM/s400/1.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://code-analyser.blogspot.com/feeds/4632783461975114485/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://code-analyser.blogspot.com/2012/01/adding-uisegmentedcontrol-to-uitoolbar.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/740816477032050978/posts/default/4632783461975114485?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/740816477032050978/posts/default/4632783461975114485?v=2'/><link rel='alternate' type='text/html' href='http://code-analyser.blogspot.com/2012/01/adding-uisegmentedcontrol-to-uitoolbar.html' title='Adding UISegmentedControl to UIToolBar'/><author><name>Amrit Mishra</name><uri>https://plus.google.com/105696312174148735014</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-kZm5wWXRhc0/AAAAAAAAAAI/AAAAAAAAB-w/9IAPjrlCzgs/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/-U8SnwyCvM7k/TwUoKMjsLKI/AAAAAAAABGU/Wd7bMtes5lM/s72-c/1.png' height='72' width='72'/><thr:total>0</thr:total><georss:featurename>Hyderabad, Andhra Pradesh, India</georss:featurename><georss:point>17.385044 78.486671</georss:point><georss:box>17.142593 78.17081400000001 17.627495 78.802528</georss:box></entry><entry gd:etag='W/&quot;CU8DQ3o8fyp7ImA9WhRSFkQ.&quot;'><id>tag:blogger.com,1999:blog-740816477032050978.post-2382907951036956505</id><published>2011-11-18T22:15:00.001-08:00</published><updated>2011-11-19T01:11:12.477-08:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2011-11-19T01:11:12.477-08:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='iOS'/><category scheme='http://www.blogger.com/atom/ns#' term='iphone'/><category scheme='http://www.blogger.com/atom/ns#' term='objective c'/><title>UISearchBar modification - Part 3 (Modifying keyboard panel)</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;span class="Apple-style-span" style="font-size: large;"&gt;Modifying UISeacrhBar buttons :&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
After reading my first two tutorial you are now ready to make your Search field more attractive &amp;amp; comfortable for you and for your application users.&lt;br /&gt;
&lt;br /&gt;
In this tutorial I will add how can we change the "Cancel " button text and how can we modify the keyboard panel key texts.&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://2.bp.blogspot.com/-kz3BTGMuWZk/TsdKYY5bseI/AAAAAAAABCM/ZQ_W0DpZrtE/s1600/uisearchbar02.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="320" src="http://2.bp.blogspot.com/-kz3BTGMuWZk/TsdKYY5bseI/AAAAAAAABCM/ZQ_W0DpZrtE/s320/uisearchbar02.jpg" width="213" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
Add the following code if you want to replace the "Search" text in search button to some thing else.&lt;br /&gt;
&lt;pre class="brush:js;"&gt;//my code
for (UIView *searchBarSubview in [commandTextField subviews]) {
       
        if ([searchBarSubview conformsToProtocol:@protocol(UITextInputTraits)]) {
            [(UITextField *)searchBarSubview setReturnKeyType:UIReturnKeySend];
            [(UITextField *)searchBarSubview setKeyboardAppearance:UIKeyboardAppearanceAlert];
        }
    }

&lt;/pre&gt;
and if you want to change the "Cancel" button text : Here I have shown how can you change the cancel button text to "Close"&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="brush:js;"&gt;//my code
- (void)searchBarTextDidBeginEditing:(UISearchBar *)searchBar {
    [searchBar setShowsCancelButton:YES animated:TRUE];
    for (UIView *searchBarSubview in [searchBar subviews]) {
        if([searchBarSubview isKindOfClass:[UIButton class]]){
            UIButton *but = (UIButton*)searchBarSubview;
            [but setTitle:@"Close" forState:UIControlStateNormal];
        }
    }
}
&lt;/pre&gt;
&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://code-analyser.blogspot.com/feeds/2382907951036956505/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://code-analyser.blogspot.com/2011/11/uisearchbar-modification-part-2_18.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/740816477032050978/posts/default/2382907951036956505?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/740816477032050978/posts/default/2382907951036956505?v=2'/><link rel='alternate' type='text/html' href='http://code-analyser.blogspot.com/2011/11/uisearchbar-modification-part-2_18.html' title='UISearchBar modification - Part 3 (Modifying keyboard panel)'/><author><name>Amrit Mishra</name><uri>https://plus.google.com/105696312174148735014</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-kZm5wWXRhc0/AAAAAAAAAAI/AAAAAAAAB-w/9IAPjrlCzgs/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/-kz3BTGMuWZk/TsdKYY5bseI/AAAAAAAABCM/ZQ_W0DpZrtE/s72-c/uisearchbar02.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;CUEER3Y-eSp7ImA9WhRSFkQ.&quot;'><id>tag:blogger.com,1999:blog-740816477032050978.post-7045924182696922677</id><published>2011-11-18T22:08:00.001-08:00</published><updated>2011-11-19T01:06:46.851-08:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2011-11-19T01:06:46.851-08:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='api'/><category scheme='http://www.blogger.com/atom/ns#' term='iOS'/><category scheme='http://www.blogger.com/atom/ns#' term='iphone'/><category scheme='http://www.blogger.com/atom/ns#' term='objective c'/><title>UISearchBar modification - Part 2 (Removing icon)</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;span class="Apple-style-span" style="font-size: large;"&gt;How can we remove the search icon appearing in the UISearchBar?&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Many times we want to use UISearchBar for our application as a normal text field. But presence of the search icon can make you app user confused. So to avoid the confussion you have two options&lt;br /&gt;
&lt;br /&gt;
&lt;ol style="text-align: left;"&gt;
&lt;li&gt;First use UITextField instead of Searchbar&lt;/li&gt;
&lt;li&gt;Or else do what I did.&lt;/li&gt;
&lt;/ol&gt;
&lt;div&gt;
I think if you want the flexibility of Seacrh bar to be implemented in your application you will go with me. &amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;
First creat the Searchbar &amp;nbsp;: Creating UISearchBar and then....&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
You dont have to do much. just few more lines of codes and Bingoooo!!!&lt;/div&gt;
&lt;div&gt;
Its done :&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;pre class="brush:js;"&gt;//my code
 for (UIView *searchBarSubview in [commandTextField subviews]) {
        
        if([searchBarSubview isKindOfClass:[UITextField class]]){
            UITextField *textField = (UITextField*)searchBarSubview;
            textField.leftView = nil;
        }

    }
&lt;/pre&gt;
&lt;br /&gt;
This code will remove the search icon in your Searchbar.&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://code-analyser.blogspot.com/feeds/7045924182696922677/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://code-analyser.blogspot.com/2011/11/uisearchbar-modification-part-2.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/740816477032050978/posts/default/7045924182696922677?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/740816477032050978/posts/default/7045924182696922677?v=2'/><link rel='alternate' type='text/html' href='http://code-analyser.blogspot.com/2011/11/uisearchbar-modification-part-2.html' title='UISearchBar modification - Part 2 (Removing icon)'/><author><name>Amrit Mishra</name><uri>https://plus.google.com/105696312174148735014</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-kZm5wWXRhc0/AAAAAAAAAAI/AAAAAAAAB-w/9IAPjrlCzgs/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;CU8GR3Y_fip7ImA9WhRSFkQ.&quot;'><id>tag:blogger.com,1999:blog-740816477032050978.post-88027546777817265</id><published>2011-11-18T21:52:00.001-08:00</published><updated>2011-11-19T01:10:26.846-08:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2011-11-19T01:10:26.846-08:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='iOS'/><category scheme='http://www.blogger.com/atom/ns#' term='iphone'/><category scheme='http://www.blogger.com/atom/ns#' term='objective c'/><title>UISearchBar modification - Part 1 (Creating programmatically)</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
Welcome to Code Analyser again.&lt;br /&gt;
&lt;br /&gt;
This time I am presenting you tutorial on UISearchbar. In this tutorial I will show you how can we modify UISearchBar so that we can use it in place of UITextField and access all the features of UISearchBar.&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://1.bp.blogspot.com/-V8V9YXxEbUM/TsdGgApjURI/AAAAAAAABCE/zOlZmnkrYTo/s1600/43558113.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://1.bp.blogspot.com/-V8V9YXxEbUM/TsdGgApjURI/AAAAAAAABCE/zOlZmnkrYTo/s1600/43558113.png" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
At the end of this blog you can modify your Seachbar and use it as the your requirement in your application. Making the application more comfortable to be used.&lt;br /&gt;
&lt;br /&gt;
Here I will be providing you series of tutorial to show the modification we can perform in our UISearchBar.&lt;br /&gt;
&lt;br /&gt;
First of all how to create a Search bar by code?&lt;br /&gt;
&lt;br /&gt;
So here are the steps:&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="brush:js;"&gt;//my code
    commandTextField = [[UISearchBar alloc]initWithFrame:CGRectMake(0,mainView.frame.size.height-40,screenWidth,44)];
    [commandTextField setDelegate:self];
    [commandTextField setBarStyle:UIBarStyleBlackOpaque];
    [commandTextField setPlaceholder:@"Enter your command here"];
    
    [commandTextField setKeyboardType:/*add keyboard type*/];
    
    
    for (UIView *searchBarSubview in [commandTextField subviews]) {
        
        if([searchBarSubview isKindOfClass:[UITextField class]]){
            UITextField *textField = (UITextField*)searchBarSubview;
            textField.leftView = nil;
        }
        
        if ([searchBarSubview conformsToProtocol:@protocol(UITextInputTraits)]) {
            [(UITextField *)searchBarSubview setReturnKeyType:UIReturnKeySend];
            [(UITextField *)searchBarSubview setKeyboardAppearance:UIKeyboardAppearanceAlert];
        }
    }
    
    [mainView addSubview:commandTextField];
&lt;/pre&gt;
&lt;br /&gt;
add the following delegate methods&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="brush:js;"&gt;//my code
#pragma mark - Search bar delegates 


- (void)searchBarTextDidBeginEditing:(UISearchBar *)searchBar {
     
}
- (void)searchBarCancelButtonClicked:(UISearchBar *)searchBar {
    
}

- (void)searchBarSearchButtonClicked:(UISearchBar *)searchBar { 
}
&lt;/pre&gt;
You can use these delegates for your specific purpose. Even if you dont add the Searchbar will work.&lt;br /&gt;
For more modifications in your search bar see my following tutorial :&lt;br /&gt;
&lt;br /&gt;
&lt;ol style="text-align: left;"&gt;
&lt;li&gt;&lt;a href="http://code-analyser.blogspot.com/2011/11/uisearchbar-modification-part-2.html"&gt;How to remove UISearchBar icon.&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://code-analyser.blogspot.com/2011/11/uisearchbar-modification-part-2_18.html"&gt;How to change the Search bar keyboard text&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;div&gt;
You can get more details about &lt;a href="http://developer.apple.com/library/IOs/#documentation/UIKit/Reference/UISearchBar_Class/Reference/Reference.html"&gt;UISearchbar &lt;/a&gt;in developer site.&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Thanks.&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://code-analyser.blogspot.com/feeds/88027546777817265/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://code-analyser.blogspot.com/2011/11/uisearchbar-modification-part-1.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/740816477032050978/posts/default/88027546777817265?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/740816477032050978/posts/default/88027546777817265?v=2'/><link rel='alternate' type='text/html' href='http://code-analyser.blogspot.com/2011/11/uisearchbar-modification-part-1.html' title='UISearchBar modification - Part 1 (Creating programmatically)'/><author><name>Amrit Mishra</name><uri>https://plus.google.com/105696312174148735014</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-kZm5wWXRhc0/AAAAAAAAAAI/AAAAAAAAB-w/9IAPjrlCzgs/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/-V8V9YXxEbUM/TsdGgApjURI/AAAAAAAABCE/zOlZmnkrYTo/s72-c/43558113.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;AkUAR3wyfip7ImA9WhRSFkU.&quot;'><id>tag:blogger.com,1999:blog-740816477032050978.post-5244324650621100650</id><published>2011-11-16T01:26:00.000-08:00</published><updated>2011-11-18T23:37:26.296-08:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2011-11-18T23:37:26.296-08:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='macos'/><category scheme='http://www.blogger.com/atom/ns#' term='iOS'/><category scheme='http://www.blogger.com/atom/ns#' term='iphone'/><title>Handling keyboard in iOS apps</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
This tutorial will show you how can you handle the iOS device keyboard &amp;amp; show the controls hidden below the keyboard. &lt;br /&gt;
The simple techniques to do that is by animating the control above the keyboard and placing it back to its original position after keyboard closes.&lt;br /&gt;
&lt;br /&gt;
Just copy these code to your application and it will work.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;pre class='brush:js;'&gt;#pragma mark -
#pragma mark keyboard delegates

-(void)textFieldDidBeginEditing:(UITextField *)sender
{
    if ([sender isEqual:commandTextField])
    {
        //move the main view, so that the keyboard does not hide it.
        if  (mainView.frame.origin.y &amp;gt;= 0)
        {
            [self setViewMovedUp:YES];
        }
    }
}

//method to move the view up/down whenever the keyboard is shown/dismissed
-(void)setViewMovedUp:(BOOL)movedUp
{
    [UIView beginAnimations:nil context:NULL];
    [UIView setAnimationDuration:0.5]; // if you want to slide up the view
    
    CGRect rect = mainView.frame;
    
    if (movedUp)
    {
        // 1. move the view's origin up so that the text field that will be hidden come above the keyboard 
        // 2. increase the size of the view so that the area behind the keyboard is covered up.
        rect.origin.y -= kOFFSET_FOR_KEYBOARD;
        rect.size.height += kOFFSET_FOR_KEYBOARD;
    }
    else
    {
        // revert back to the normal state.
        rect.origin.y += kOFFSET_FOR_KEYBOARD;
        rect.size.height -= kOFFSET_FOR_KEYBOARD;
    }
    mainView.frame = rect;
    
    [UIView commitAnimations];
}


- (void)keyboardWillShow:(NSNotification *)notif
{
    //keyboard will be shown now. depending for which textfield is active, move up or move down the view appropriately
    
    if ([commandTextField isFirstResponder] &amp;amp;&amp;amp; mainView.frame.origin.y &amp;gt;= 0)
    {
        [self setViewMovedUp:YES];
    }
    else if (![commandTextField isFirstResponder] &amp;amp;&amp;amp; mainView.frame.origin.y &amp;lt; 0)
    {
        [self setViewMovedUp:NO];
    }
}


- (void)viewWillAppear:(BOOL)animated
{
    // register for keyboard notifications
    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(keyboardWillShow:) 
                                                 name:UIKeyboardWillShowNotification object:self.view.window]; 
}

- (void)viewWillDisappear:(BOOL)animated
{
    // unregister for keyboard notifications while not visible.
    [[NSNotificationCenter defaultCenter] removeObserver:self name:UIKeyboardWillShowNotification object:nil]; 
}

  
&lt;/pre&gt;
&lt;br /&gt;
add this line above your class &lt;br /&gt;
&lt;pre class=".js" name="code"&gt;#define kOFFSET_FOR_KEYBOARD 50.0
&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Thanks &amp;amp; Regards&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://code-analyser.blogspot.com/feeds/5244324650621100650/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://code-analyser.blogspot.com/2011/11/handling-keyboard-in-ios-apps.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/740816477032050978/posts/default/5244324650621100650?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/740816477032050978/posts/default/5244324650621100650?v=2'/><link rel='alternate' type='text/html' href='http://code-analyser.blogspot.com/2011/11/handling-keyboard-in-ios-apps.html' title='Handling keyboard in iOS apps'/><author><name>Amrit Mishra</name><uri>https://plus.google.com/105696312174148735014</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-kZm5wWXRhc0/AAAAAAAAAAI/AAAAAAAAB-w/9IAPjrlCzgs/s512-c/photo.jpg'/></author><thr:total>0</thr:total><georss:featurename>Koti Main Rd, Koti, Hyderabad, Andhra Pradesh, India</georss:featurename><georss:point>17.385044 78.486671</georss:point><georss:box>17.142593 78.17081400000001 17.627495 78.802528</georss:box></entry><entry gd:etag='W/&quot;AkYCSH8_eCp7ImA9WhRWF04.&quot;'><id>tag:blogger.com,1999:blog-740816477032050978.post-2484362405124611932</id><published>2011-11-02T00:36:00.000-07:00</published><updated>2012-01-04T20:36:09.140-08:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2012-01-04T20:36:09.140-08:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='app store'/><category scheme='http://www.blogger.com/atom/ns#' term='NSXMLParser'/><category scheme='http://www.blogger.com/atom/ns#' term='xml parsing'/><category scheme='http://www.blogger.com/atom/ns#' term='macos'/><title>XML Parsing Mac OSX</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;Welcome to Code Analyser,&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;In this I will be showing how to parse xml file in Mac applications.&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;Mac API provides class to parse xml file calles &lt;b&gt;&lt;span class="Apple-style-span" style="color: red;"&gt;NSXMLParser&lt;/span&gt;&lt;/b&gt;. you just need to send the url or the path of the file.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class="p1" style="text-align: left;"&gt;
&lt;span class="Apple-style-span" style="color: orange; font-family: Times, 'Times New Roman', serif;"&gt;&lt;span class="s1"&gt;NSString&lt;/span&gt; *xmlFinalPath;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class="p1" style="text-align: left;"&gt;
&lt;span class="Apple-style-span" style="color: orange; font-family: Times, 'Times New Roman', serif;"&gt;xmlFinalPath = [[&lt;span class="s1"&gt;NSString&lt;/span&gt; &lt;span class="s2"&gt;alloc&lt;/span&gt;]&lt;span class="s2"&gt;initWithString&lt;/span&gt;:@"some xml file path"&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class="p3" style="text-align: left;"&gt;
&lt;span class="Apple-style-span" style="color: orange; font-family: Times, 'Times New Roman', serif;"&gt;&lt;span class="s1"&gt;NSURL&lt;/span&gt; * versionURL = [&lt;span class="s1"&gt;NSURL&lt;/span&gt; &lt;span class="s2"&gt;URLWithString&lt;/span&gt;:xmlFinalPath];&lt;/span&gt;&lt;/div&gt;
&lt;div class="p1" style="text-align: left;"&gt;
&lt;span class="Apple-style-span" style="color: orange; font-family: Times, 'Times New Roman', serif;"&gt;&lt;span class="s1"&gt;NSXMLParser&lt;/span&gt; * parser = [[&lt;span class="s1"&gt;NSXMLParser&lt;/span&gt; &lt;span class="s2"&gt;alloc&lt;/span&gt;] &lt;span class="s2"&gt;initWithContentsOfURL&lt;/span&gt;:versionURL];&lt;/span&gt;&lt;/div&gt;
&lt;div class="p1" style="text-align: left;"&gt;
&lt;span class="Apple-style-span" style="color: orange; font-family: Times, 'Times New Roman', serif;"&gt;[parser &lt;span class="s2"&gt;setDelegate&lt;/span&gt;:&lt;span class="s3"&gt;self&lt;/span&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;div class="p1" style="text-align: left;"&gt;
&lt;span class="Apple-style-span" style="color: orange; font-family: Times, 'Times New Roman', serif;"&gt;[parser &lt;span class="s2"&gt;parse&lt;/span&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;div class="p1" style="text-align: left;"&gt;
&lt;span class="Apple-style-span" style="color: orange; font-family: Times, 'Times New Roman', serif;"&gt;[parser &lt;span class="s2"&gt;release&lt;/span&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;div class="p1" style="text-align: left;"&gt;
&lt;span class="Apple-style-span" style="color: orange; font-family: Times, 'Times New Roman', serif;"&gt;[xmlFinalPath &lt;span class="s2"&gt;release&lt;/span&gt;];&lt;/span&gt;&lt;/div&gt;
&lt;div class="p1" style="text-align: left;"&gt;
&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="p1" style="text-align: left;"&gt;
&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;This NSXMLParser now calls its delegate methods to read the xml file&lt;/span&gt;&lt;/div&gt;
&lt;div class="p1" style="text-align: left;"&gt;
&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class="p2"&gt;
&lt;span class="Apple-style-span" style="color: orange; font-family: Times, 'Times New Roman', serif;"&gt;- (&lt;span class="s1"&gt;void&lt;/span&gt;)parserDidStartDocument:(&lt;span class="s2"&gt;NSXMLParser&lt;/span&gt; *)parser {&lt;/span&gt;&lt;/div&gt;
&lt;div class="p3"&gt;
&lt;span class="s3" style="font-family: Times, 'Times New Roman', serif;"&gt;&lt;span class="Apple-style-span" style="color: orange;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: lime;"&gt;//called when xml file is found &amp;amp; paring starts&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="p2"&gt;
&lt;span class="Apple-style-span" style="color: orange; font-family: Times, 'Times New Roman', serif;"&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;div class="p2"&gt;
&lt;/div&gt;
&lt;div class="p2"&gt;
&lt;span class="Apple-style-span" style="color: orange; font-family: Times, 'Times New Roman', serif;"&gt;- (&lt;span class="s1"&gt;void&lt;/span&gt;)parserDidEndDocument:(&lt;span class="s2"&gt;NSXMLParser&lt;/span&gt;&amp;nbsp;*)parser {&lt;/span&gt;&lt;/div&gt;
&lt;div class="p1"&gt;
&lt;span class="Apple-style-span" style="color: orange; font-family: Times, 'Times New Roman', serif;"&gt;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: lime; font-family: Times, 'Times New Roman', serif;"&gt; // called when parsing of xml file is completed&lt;/span&gt;&lt;/div&gt;
&lt;div class="p2"&gt;
&lt;span class="Apple-style-span" style="color: orange; font-family: Times, 'Times New Roman', serif;"&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;div class="p1"&gt;
&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="p1"&gt;
&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;You can use the below delegate methods to read the xml file &amp;amp; its elements.&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="p2"&gt;
&lt;span class="Apple-style-span" style="color: orange; font-family: Times, 'Times New Roman', serif;"&gt;- (&lt;span class="s1"&gt;void&lt;/span&gt;)parser:(&lt;span class="s2"&gt;NSXMLParser&lt;/span&gt; *)parser didStartElement:(&lt;span class="s2"&gt;NSString&lt;/span&gt; *)elementName namespaceURI:(&lt;span class="s2"&gt;NSString&lt;/span&gt; *)namespaceURI qualifiedName:(&lt;span class="s2"&gt;NSString&lt;/span&gt; *)qualifiedName attributes:(&lt;span class="s2"&gt;NSDictionary&lt;/span&gt; *)attributeDict {&lt;/span&gt;&lt;/div&gt;
&lt;div class="p2"&gt;
&lt;span class="Apple-style-span" style="color: orange; font-family: Times, 'Times New Roman', serif;"&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;div class="p2"&gt;
&lt;span class="Apple-style-span" style="color: orange; font-family: Times, 'Times New Roman', serif;"&gt;- (&lt;span class="s1"&gt;void&lt;/span&gt;)parser:(&lt;span class="s2"&gt;NSXMLParser&lt;/span&gt; *)parser&lt;/span&gt;&lt;/div&gt;
&lt;div class="p2"&gt;
&lt;span class="Apple-style-span" style="color: orange; font-family: Times, 'Times New Roman', serif;"&gt;&amp;nbsp;didEndElement:(&lt;span class="s2"&gt;NSString&lt;/span&gt; *)elementName&lt;/span&gt;&lt;/div&gt;
&lt;div class="p2"&gt;
&lt;span class="Apple-style-span" style="color: orange; font-family: Times, 'Times New Roman', serif;"&gt;&amp;nbsp; namespaceURI:(&lt;span class="s2"&gt;NSString&lt;/span&gt; *)namespaceURI&lt;/span&gt;&lt;/div&gt;
&lt;div class="p2"&gt;
&lt;span class="Apple-style-span" style="color: orange; font-family: Times, 'Times New Roman', serif;"&gt;&amp;nbsp;qualifiedName:(&lt;span class="s2"&gt;NSString&lt;/span&gt; *)qName&lt;/span&gt;&lt;/div&gt;
&lt;div class="p2"&gt;
&lt;span class="Apple-style-span" style="color: orange; font-family: Times, 'Times New Roman', serif;"&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;div class="p2"&gt;
&lt;span class="Apple-style-span" style="color: orange; font-family: Times, 'Times New Roman', serif;"&gt;&lt;span class="s5"&gt;NSLog&lt;/span&gt;&lt;span class="s3"&gt;(&lt;/span&gt;@"element names : %@"&lt;span class="s3"&gt;,&amp;nbsp;elementName);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="p2"&gt;
&lt;span class="Apple-style-span" style="color: orange; font-family: Times, 'Times New Roman', serif;"&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;div class="p2"&gt;
&lt;span class="Apple-style-span" style="color: orange; font-family: Times, 'Times New Roman', serif;"&gt;- (&lt;span class="s1"&gt;void&lt;/span&gt;)parser:(&lt;span class="s2"&gt;NSXMLParser&lt;/span&gt; *)parser foundCharacters:(&lt;span class="s2"&gt;NSString&lt;/span&gt; *)string {&lt;/span&gt;&lt;/div&gt;
&lt;div class="p5"&gt;
&lt;span class="Apple-style-span" style="color: orange; font-family: Times, 'Times New Roman', serif;"&gt;&lt;span class="s3"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span class="s5"&gt;NSLog&lt;/span&gt;&lt;span class="s3"&gt;(&lt;/span&gt;@"element names : %@"&lt;span class="s3"&gt;,string);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="p2"&gt;
&lt;span class="Apple-style-span" style="color: orange; font-family: Times, 'Times New Roman', serif;"&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;div class="p1"&gt;
&lt;span class="Apple-style-span" style="font-family: Times, 'Times New Roman', serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;Just add the methods to your mac application &amp;amp; see the xml file elements in your console.&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;Thanks hope you like the tutorial.&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;Stay tuned for more tutorials.&lt;/span&gt;&lt;/div&gt;
&lt;div class="p2"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://code-analyser.blogspot.com/feeds/2484362405124611932/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://code-analyser.blogspot.com/2011/11/xml-parsing-mac-osx.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/740816477032050978/posts/default/2484362405124611932?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/740816477032050978/posts/default/2484362405124611932?v=2'/><link rel='alternate' type='text/html' href='http://code-analyser.blogspot.com/2011/11/xml-parsing-mac-osx.html' title='XML Parsing Mac OSX'/><author><name>Amrit Mishra</name><uri>https://plus.google.com/105696312174148735014</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-kZm5wWXRhc0/AAAAAAAAAAI/AAAAAAAAB-w/9IAPjrlCzgs/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;C0QHR3k_eCp7ImA9WhRTEkw.&quot;'><id>tag:blogger.com,1999:blog-740816477032050978.post-2151995162246397749</id><published>2011-11-01T22:22:00.000-07:00</published><updated>2011-11-01T22:22:16.740-07:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2011-11-01T22:22:16.740-07:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='app store'/><category scheme='http://www.blogger.com/atom/ns#' term='app'/><category scheme='http://www.blogger.com/atom/ns#' term='samsung'/><category scheme='http://www.blogger.com/atom/ns#' term='environment'/><category scheme='http://www.blogger.com/atom/ns#' term='mobileOS'/><title>Mobile Application Development(Part 8) - Promotion</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span class="Apple-style-span" style="font-size: x-large;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Promotion - Spread the world&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://1.bp.blogspot.com/-VHKrJmTGl10/TrDTMM8Hx3I/AAAAAAAAAy4/N0oMJtAwI3M/s1600/social-media-promotion-opt.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="225" src="http://1.bp.blogspot.com/-VHKrJmTGl10/TrDTMM8Hx3I/AAAAAAAAAy4/N0oMJtAwI3M/s400/social-media-promotion-opt.jpg" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif; font-size: large;"&gt;Promotion of your application is essential, with the best applications naturally gaining the top spot. At launch, it’s crucial to build on the market awareness you gained at the Environmental Analysis phase. We would also recommend listening to your users, who may recommend potential upgrades, identify bugs or request additional features they may be willing to pay a premium for. Once your app is live, we recommend that you consider promoting it through a number of channels, including banners, social networks, email lists and lots more. You can create and submit marketing materials to support your application yourself.&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif; font-size: large;"&gt;● Make sure you help your application get discovered by giving it a relevant name and product description. Use keywords in the description that will help a user locate your application when they search for a generic term (like “fun” or “BlueTooth” etc.). Its worth investing some time into the applications presentation here. A poorly worded or one-line description can put a user off a potential sale.&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif; font-size: large;"&gt;● You might also try experimenting with pricing models - many application developers currently offer “Freemium” apps, providing a limited free or “lite” version to encourage adoption, with a richer experience available at a cost.&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif; font-size: large;"&gt;● Social Media can be a useful promotional tool to spread news of your latest application. Again, engaging with your peers &amp;amp; likeminded consumers can help - word of mouth, even with regard to digital applications can be a very powerful thing.&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif; font-size: large;"&gt;● Promotional videos showing the features and functionality of the application can be made and produced very cheaply - with a finished professional looking result shared online and via social networks. Additional methods to consider are mobile advertising, community promotion and discounts etc.&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://code-analyser.blogspot.com/feeds/2151995162246397749/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://code-analyser.blogspot.com/2011/11/mobile-application-developmentpart-8.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/740816477032050978/posts/default/2151995162246397749?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/740816477032050978/posts/default/2151995162246397749?v=2'/><link rel='alternate' type='text/html' href='http://code-analyser.blogspot.com/2011/11/mobile-application-developmentpart-8.html' title='Mobile Application Development(Part 8) - Promotion'/><author><name>Amrit Mishra</name><uri>https://plus.google.com/105696312174148735014</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-kZm5wWXRhc0/AAAAAAAAAAI/AAAAAAAAB-w/9IAPjrlCzgs/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/-VHKrJmTGl10/TrDTMM8Hx3I/AAAAAAAAAy4/N0oMJtAwI3M/s72-c/social-media-promotion-opt.jpg' height='72' width='72'/><thr:total>1</thr:total><georss:featurename>Koti Main Rd, Koti, Hyderabad, Andhra Pradesh, India</georss:featurename><georss:point>17.385044 78.486671</georss:point><georss:box>17.142593 78.17081400000001 17.627495 78.802528</georss:box></entry><entry gd:etag='W/&quot;D0QFQns6eip7ImA9WhdaEko.&quot;'><id>tag:blogger.com,1999:blog-740816477032050978.post-3912375469202284585</id><published>2011-10-22T02:20:00.000-07:00</published><updated>2011-10-22T02:21:53.512-07:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2011-10-22T02:21:53.512-07:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='app store'/><category scheme='http://www.blogger.com/atom/ns#' term='macos'/><title>My MAC Apps</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
Mac app store is now with more than 10000 apps. And some are best of time. I also got some time to learn Objective C and submit some of my mac applications. Here are the links of the apps.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://3.bp.blogspot.com/-rIx_Vr-9cyE/TnsQb4ZCpvI/AAAAAAAAAfs/QVm3PkNrNe0/s1600/mzi.lguygfuf.175x175-75.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://3.bp.blogspot.com/-rIx_Vr-9cyE/TnsQb4ZCpvI/AAAAAAAAAfs/QVm3PkNrNe0/s1600/mzi.lguygfuf.175x175-75.png" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://itunes.apple.com/in/app/my-yoga/id435061579?mt=12"&gt;My Yoga&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://4.bp.blogspot.com/--KYcXZuSDt4/TnsQcXYQbbI/AAAAAAAAAfw/VyfFm2WA6ZU/s1600/mzi.qypprmhj.175x175-75.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://4.bp.blogspot.com/--KYcXZuSDt4/TnsQcXYQbbI/AAAAAAAAAfw/VyfFm2WA6ZU/s1600/mzi.qypprmhj.175x175-75.png" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://itunes.apple.com/in/app/bp-tracker/id447304273?mt=12"&gt;BP Tracker&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://4.bp.blogspot.com/-ehW2h9x8EH0/TnsQcgOa41I/AAAAAAAAAf0/qbTjZLyzRys/s1600/mzi.rbfztjxx.175x175-75.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://4.bp.blogspot.com/-ehW2h9x8EH0/TnsQcgOa41I/AAAAAAAAAf0/qbTjZLyzRys/s1600/mzi.rbfztjxx.175x175-75.png" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://itunes.apple.com/in/app/quotes-for-facebook/id444078121?mt=12"&gt;Quotes for FaceBook&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://2.bp.blogspot.com/-kWkeW0KOiSg/TnsQc0SFKiI/AAAAAAAAAf4/KtIdqO6Efn4/s1600/mzi.uyuvleog.175x175-75.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://2.bp.blogspot.com/-kWkeW0KOiSg/TnsQc0SFKiI/AAAAAAAAAf4/KtIdqO6Efn4/s1600/mzi.uyuvleog.175x175-75.png" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://itunes.apple.com/in/app/win-a-million/id437750335?mt=12"&gt;Win a Million&lt;/a&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://3.bp.blogspot.com/-ITpGTJOmgy4/TqKKVYiqtDI/AAAAAAAAAyE/RL4EfmAzwR4/s1600/mzi.ieyadpco.175x175-75.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://3.bp.blogspot.com/-ITpGTJOmgy4/TqKKVYiqtDI/AAAAAAAAAyE/RL4EfmAzwR4/s1600/mzi.ieyadpco.175x175-75.png" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://itunes.apple.com/us/app/whats-the-deal/id437488320?ls=1&amp;amp;mt=12"&gt;What's the Deal&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://4.bp.blogspot.com/-ELLMVNt372c/TqKKVp_fsdI/AAAAAAAAAyM/9C53wCn2HDs/s1600/mzi.obuxjltd.175x175-75.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://4.bp.blogspot.com/-ELLMVNt372c/TqKKVp_fsdI/AAAAAAAAAyM/9C53wCn2HDs/s1600/mzi.obuxjltd.175x175-75.png" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://itunes.apple.com/us/app/glucose-tracker/id450771677?ls=1&amp;amp;mt=12"&gt;Glucose Tracker&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://2.bp.blogspot.com/-IHdohOfuQKM/TqKKV2qeYII/AAAAAAAAAyU/XNddERHvxL4/s1600/mzi.qyinbvnk.175x175-75.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://2.bp.blogspot.com/-IHdohOfuQKM/TqKKV2qeYII/AAAAAAAAAyU/XNddERHvxL4/s1600/mzi.qyinbvnk.175x175-75.png" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://itunes.apple.com/us/app/accounter/id447991983?ls=1&amp;amp;mt=12"&gt;Accounter&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://2.bp.blogspot.com/-5AilNVQ0Gi4/TqKKWnS1QqI/AAAAAAAAAyc/DB1O_Lc90_Q/s1600/mzi.zcarpieh.175x175-75.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://2.bp.blogspot.com/-5AilNVQ0Gi4/TqKKWnS1QqI/AAAAAAAAAyc/DB1O_Lc90_Q/s1600/mzi.zcarpieh.175x175-75.png" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://itunes.apple.com/us/app/cholesterol-tracker/id452500570?ls=1&amp;amp;mt=12"&gt;Cholestrol Tracker&lt;/a&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://code-analyser.blogspot.com/feeds/3912375469202284585/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://code-analyser.blogspot.com/2011/10/my-mac-apps.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/740816477032050978/posts/default/3912375469202284585?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/740816477032050978/posts/default/3912375469202284585?v=2'/><link rel='alternate' type='text/html' href='http://code-analyser.blogspot.com/2011/10/my-mac-apps.html' title='My MAC Apps'/><author><name>Amrit Mishra</name><uri>https://plus.google.com/105696312174148735014</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-kZm5wWXRhc0/AAAAAAAAAAI/AAAAAAAAB-w/9IAPjrlCzgs/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/-rIx_Vr-9cyE/TnsQb4ZCpvI/AAAAAAAAAfs/QVm3PkNrNe0/s72-c/mzi.lguygfuf.175x175-75.png' height='72' width='72'/><thr:total>0</thr:total><georss:featurename>Hyderabad, Andhra Pradesh, India</georss:featurename><georss:point>17.385044 78.486671</georss:point><georss:box>17.142593 78.17081400000001 17.627495 78.802528</georss:box></entry><entry gd:etag='W/&quot;A0EARH0zfSp7ImA9WhdVFko.&quot;'><id>tag:blogger.com,1999:blog-740816477032050978.post-6312062128186120132</id><published>2011-09-22T01:20:00.000-07:00</published><updated>2011-09-22T01:20:45.385-07:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2011-09-22T01:20:45.385-07:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='application'/><category scheme='http://www.blogger.com/atom/ns#' term='mobile market'/><category scheme='http://www.blogger.com/atom/ns#' term='smartphones'/><title>Mobile Application Development(Part 7) - Deployment</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: orange; font-size: x-large;"&gt;&lt;b&gt;Deployment - Take your application to market&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://2.bp.blogspot.com/-kDjyz75iQU8/TnrnXsyVu7I/AAAAAAAAAfo/2reUkFnmI50/s1600/appstore.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="248" src="http://2.bp.blogspot.com/-kDjyz75iQU8/TnrnXsyVu7I/AAAAAAAAAfo/2reUkFnmI50/s320/appstore.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
When you are satisfied with your test results and your app behaves as expected on its target device, you are ready to take it to market. You can do this by simply registering with your chosen distributor and uploading your app and any other required metadata, including images or descriptive text. Then your application will be available to download by the rest of the market.&lt;br /&gt;
&lt;br /&gt;
App Stores completes there own rigorous quality assurance testing to ensure applications submitted to the service do not contain illegal content or malicious code and generally behave as expected. This gives the &amp;nbsp;Apps user additional peace of mind, and they can be sure their download will work first time, every time. Understanding the QA process and the necessary prerequisites as part of the Environmental Analysis phase will ensure you can avoid any design inefficiencies.&lt;br /&gt;
&lt;br /&gt;
You can submit your applications by creating account in the individual app stores.&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://code-analyser.blogspot.com/feeds/6312062128186120132/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://code-analyser.blogspot.com/2011/09/mobile-application-developmentpart-7.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/740816477032050978/posts/default/6312062128186120132?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/740816477032050978/posts/default/6312062128186120132?v=2'/><link rel='alternate' type='text/html' href='http://code-analyser.blogspot.com/2011/09/mobile-application-developmentpart-7.html' title='Mobile Application Development(Part 7) - Deployment'/><author><name>Amrit Mishra</name><uri>https://plus.google.com/105696312174148735014</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-kZm5wWXRhc0/AAAAAAAAAAI/AAAAAAAAB-w/9IAPjrlCzgs/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/-kDjyz75iQU8/TnrnXsyVu7I/AAAAAAAAAfo/2reUkFnmI50/s72-c/appstore.jpg' height='72' width='72'/><thr:total>1</thr:total><georss:featurename>Koti Main Rd, Koti, Hyderabad, Andhra Pradesh, India</georss:featurename><georss:point>17.385044 78.486671</georss:point><georss:box>17.142593 78.17081400000001 17.627495 78.802528</georss:box></entry><entry gd:etag='W/&quot;CEIHQXc7cCp7ImA9WhdWFUo.&quot;'><id>tag:blogger.com,1999:blog-740816477032050978.post-5550649173095044329</id><published>2011-09-09T05:48:00.000-07:00</published><updated>2011-09-09T05:48:50.908-07:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2011-09-09T05:48:50.908-07:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='app store'/><category scheme='http://www.blogger.com/atom/ns#' term='application'/><category scheme='http://www.blogger.com/atom/ns#' term='mobile'/><category scheme='http://www.blogger.com/atom/ns#' term='mobile market'/><category scheme='http://www.blogger.com/atom/ns#' term='smartphones'/><category scheme='http://www.blogger.com/atom/ns#' term='building'/><category scheme='http://www.blogger.com/atom/ns#' term='environment'/><title>Mobile Application Development(Part 6) - Testing</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: orange;"&gt;&amp;nbsp;&lt;span class="Apple-style-span" style="font-size: x-large;"&gt;Testing - Testing your design&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://2.bp.blogspot.com/-0GAnpIB_w9E/TmoKjSOBioI/AAAAAAAAAfg/PJHhWc2A0pE/s1600/swtest.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="266" src="http://2.bp.blogspot.com/-0GAnpIB_w9E/TmoKjSOBioI/AAAAAAAAAfg/PJHhWc2A0pE/s400/swtest.jpg" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Times, 'Times New Roman', serif; font-size: large;"&gt;The test phase of any application is vital and you will need to ascertain the following:&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Times, 'Times New Roman', serif; font-size: large;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Times, 'Times New Roman', serif; font-size: large;"&gt;● Does every function of the app work as expected?&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Times, 'Times New Roman', serif; font-size: large;"&gt;● Do standard device functions (such as incoming phone call) work as expected?&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Times, 'Times New Roman', serif; font-size: large;"&gt;● Do these functions continue to operate with extended use?&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Times, 'Times New Roman', serif; font-size: large;"&gt;● Are the appropriate alerts and notifications displayed as expected?&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Times, 'Times New Roman', serif; font-size: large;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Times, 'Times New Roman', serif; font-size: large;"&gt;Ensuring your app gets maximum impact for the right reason is essential, so we would advise you to rigorously test your application prior to launch.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Times, 'Times New Roman', serif; font-size: large;"&gt;&amp;nbsp;Consumers have come to expect the same calibre apps on their smart devices, as they have on their desktop computers and the immediacy of the mobile download can increase frustration if an app doesn’t behave as expected or crashes. Users will react strongly against poor experiences - sharing negative feedback as they go. This can be avoided with thorough testing, best practice application design and peer review when possible.&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Times, 'Times New Roman', serif; font-size: large;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Times, 'Times New Roman', serif; font-size: large;"&gt;There are currently three recommended methods for testing your application. You can sideload it onto a physical device, use the powerful emulator (built into the IDE) or access Remote Test Lab (RTL) online. Samsung’s Remote Test Lab allows you to reserve and deploy your application to a physical device over the internet to remotely test its performance.&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Times, 'Times New Roman', serif; font-size: large;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Times, 'Times New Roman', serif; font-size: large;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
Thanks &amp;amp; Regards&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://code-analyser.blogspot.com/feeds/5550649173095044329/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://code-analyser.blogspot.com/2011/09/mobile-application-developmentpart-6.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/740816477032050978/posts/default/5550649173095044329?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/740816477032050978/posts/default/5550649173095044329?v=2'/><link rel='alternate' type='text/html' href='http://code-analyser.blogspot.com/2011/09/mobile-application-developmentpart-6.html' title='Mobile Application Development(Part 6) - Testing'/><author><name>Amrit Mishra</name><uri>https://plus.google.com/105696312174148735014</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-kZm5wWXRhc0/AAAAAAAAAAI/AAAAAAAAB-w/9IAPjrlCzgs/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/-0GAnpIB_w9E/TmoKjSOBioI/AAAAAAAAAfg/PJHhWc2A0pE/s72-c/swtest.jpg' height='72' width='72'/><thr:total>0</thr:total><georss:featurename>Koti Main Rd, Koti, Hyderabad, Andhra Pradesh, India</georss:featurename><georss:point>17.385044 78.486671</georss:point><georss:box>17.142593 78.17081400000001 17.627495 78.802528</georss:box></entry><entry gd:etag='W/&quot;C0cESX4_fyp7ImA9WhdWFEs.&quot;'><id>tag:blogger.com,1999:blog-740816477032050978.post-1424868596890997466</id><published>2011-09-07T22:50:00.000-07:00</published><updated>2011-09-07T22:50:08.047-07:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2011-09-07T22:50:08.047-07:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='mobile market'/><category scheme='http://www.blogger.com/atom/ns#' term='smartphones'/><category scheme='http://www.blogger.com/atom/ns#' term='building'/><category scheme='http://www.blogger.com/atom/ns#' term='implementation'/><title>Mobile Application Development(Part 5) - Implementation</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;span class="Apple-style-span" style="font-family: Times, 'Times New Roman', serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: cyan; font-family: Times, 'Times New Roman', serif; font-size: x-large;"&gt;&lt;b&gt;&amp;nbsp;Implementation - Building the dream&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span class="Apple-style-span" style="font-family: Times, 'Times New Roman', serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://3.bp.blogspot.com/-L3tWsWKjFgw/TmhKaoDEX3I/AAAAAAAAAfc/pBUG8Ha2WLc/s1600/319lfUqeA2L._SL500_AA300_.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://3.bp.blogspot.com/-L3tWsWKjFgw/TmhKaoDEX3I/AAAAAAAAAfc/pBUG8Ha2WLc/s1600/319lfUqeA2L._SL500_AA300_.jpg" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span class="Apple-style-span" style="font-family: Times, 'Times New Roman', serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Times, 'Times New Roman', serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Times, 'Times New Roman', serif; font-size: large;"&gt;With the storyboard complete, the construction of the application can begin. Generally speaking, when developing for a platform for the first time, you might choose to create a &lt;span class="Apple-style-span" style="color: red;"&gt;“Helloworld”&lt;/span&gt; style app to understand the functions available to you in your chosen platform’s IDE. For more information on this, refer to the following links for various platforms IDE’s.&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Times, 'Times New Roman', serif; font-size: large;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Times, 'Times New Roman', serif; font-size: large;"&gt;&lt;span class="Apple-style-span" style="color: red;"&gt;Platform IDE’s for Samsung-&lt;/span&gt; &lt;a href="http://developer.bada.com/devtools/sdk"&gt;bada&lt;/a&gt;, &lt;a href="http://msdn.microsoft.com/en-us/windowsmobile/bb264318"&gt;Windows Mobile&lt;/a&gt;, &lt;a href="http://www.oracle.com/technetwork/java/javame/javamobile/download/overview/index.html"&gt;Java&lt;/a&gt;, &lt;a href="http://developer.android.com/sdk/index.html"&gt;Android&lt;/a&gt;,&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Times, 'Times New Roman', serif; font-size: large;"&gt;&lt;span class="Apple-style-span" style="color: red;"&gt;Platform IDE’s for iPhone&lt;/span&gt;- &lt;a href="http://developer.apple.com/technologies/tools/"&gt;XCode&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Times, 'Times New Roman', serif;"&gt;&lt;span class="Apple-style-span" style="font-size: large;"&gt;&lt;span class="Apple-style-span" style="color: red;"&gt;Platform IDE’s for Blackberry&lt;/span&gt;-&amp;nbsp;&lt;a href="http://us.blackberry.com/developers/"&gt;Black berry&amp;nbsp;SDK&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Times, 'Times New Roman', serif;"&gt;&lt;span class="Apple-style-span" style="font-size: large;"&gt;&lt;span class="Apple-style-span" style="color: red;"&gt;Platform IDE’s for HP or Palm&lt;/span&gt;-&amp;nbsp;&lt;a href="https://developer.palm.com/"&gt;Web OS&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Times, 'Times New Roman', serif; font-size: large;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Times, 'Times New Roman', serif; font-size: large;"&gt;Your completed storyboard should have given you an idea of the functions, your app will require to operate. It can be useful to carry out a feasibility test at this point to ensure these your target device and OS are a good fit for your concept and its functions operate as expected. This involved finding the API’s required for the test code and applying them in a test. Each platform provides a wide range of API information.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Times, 'Times New Roman', serif; font-size: large;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Times, 'Times New Roman', serif; font-size: large;"&gt;&lt;span class="Apple-style-span" style="color: red;"&gt;Supported API’s for Samsung:&lt;/span&gt;&amp;nbsp;&lt;a href="http://developer.bada.com/apis/index.do"&gt;developer.bada&lt;/a&gt;,&amp;nbsp;&lt;a href="http://www.bada.com/whatisbada/ecosystem.html"&gt;bada.ecosystem&lt;/a&gt;,&amp;nbsp;&lt;a href="http://www.badadev.com/"&gt;badadev.com&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Times, 'Times New Roman', serif; font-size: large;"&gt;&lt;span class="Apple-style-span" style="color: red;"&gt;Supported API’s for iPhone &amp;amp; Mac:&lt;/span&gt;&amp;nbsp;&lt;a href="http://developer.apple.com/devcenter/ios/index.action"&gt;developer.apple&lt;/a&gt;,&amp;nbsp;&lt;a href="http://www.cocoadev.com/index.pl?search=NSTableView"&gt;cocoadev.com&lt;/a&gt;,&amp;nbsp;&lt;a href="http://cocoadevcentral.com/"&gt;cocoadevcentral.com&lt;/a&gt;,&amp;nbsp;&lt;a href="http://borkware.com/"&gt;borkware.com&lt;/a&gt;,&amp;nbsp;&lt;a href="http://macosx.com/"&gt;macosx.com&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Times, 'Times New Roman', serif; font-size: large;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Times, 'Times New Roman', serif; font-size: large;"&gt;It might save time and effort, when testing to use example code, available from a number of sources, including the SDK, the installation folder or online sites. When using open source materials, make sure the codes license policy allows your particular use scenario to avoid liability in future.&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Times, 'Times New Roman', serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
Thanks n Enjoy :D&amp;nbsp;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://code-analyser.blogspot.com/feeds/1424868596890997466/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://code-analyser.blogspot.com/2011/09/mobile-application-developmentpart-5.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/740816477032050978/posts/default/1424868596890997466?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/740816477032050978/posts/default/1424868596890997466?v=2'/><link rel='alternate' type='text/html' href='http://code-analyser.blogspot.com/2011/09/mobile-application-developmentpart-5.html' title='Mobile Application Development(Part 5) - Implementation'/><author><name>Amrit Mishra</name><uri>https://plus.google.com/105696312174148735014</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-kZm5wWXRhc0/AAAAAAAAAAI/AAAAAAAAB-w/9IAPjrlCzgs/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/-L3tWsWKjFgw/TmhKaoDEX3I/AAAAAAAAAfc/pBUG8Ha2WLc/s72-c/319lfUqeA2L._SL500_AA300_.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;DEQGR3g_eyp7ImA9WhdXGUg.&quot;'><id>tag:blogger.com,1999:blog-740816477032050978.post-5588703602957868261</id><published>2011-09-02T02:38:00.000-07:00</published><updated>2011-09-02T02:38:46.643-07:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2011-09-02T02:38:46.643-07:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='app store'/><category scheme='http://www.blogger.com/atom/ns#' term='mobile'/><category scheme='http://www.blogger.com/atom/ns#' term='app'/><category scheme='http://www.blogger.com/atom/ns#' term='social'/><category scheme='http://www.blogger.com/atom/ns#' term='api'/><category scheme='http://www.blogger.com/atom/ns#' term='ideas'/><category scheme='http://www.blogger.com/atom/ns#' term='smartphones'/><category scheme='http://www.blogger.com/atom/ns#' term='mobileOS'/><title>Mobile Application Development(Part 4) - Story board</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span class="Apple-style-span" style="color: orange;"&gt;Story board - Plan your user experience&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://3.bp.blogspot.com/-_m122acG_kk/TmCiKIOkt3I/AAAAAAAAAZw/Srfz6gc-MJ8/s1600/iPhoneElements-Yahoo.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="222" src="http://3.bp.blogspot.com/-_m122acG_kk/TmCiKIOkt3I/AAAAAAAAAZw/Srfz6gc-MJ8/s320/iPhoneElements-Yahoo.png" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Times, 'Times New Roman', serif;"&gt;After &lt;a href="http://code-analyser.blogspot.com/2011/08/mobile-application-developmentpart-2.html"&gt;Ideation &lt;/a&gt;and &lt;a href="http://code-analyser.blogspot.com/2011/08/mobile-application-developmentpart-3.html"&gt;target selection&lt;/a&gt;, the next step in creating your application is to prepare to begin building it. A simple way to do this is to represent the journey the user would take through it, screen by screen with a storyboard. Storyboards are an essential tool for those collaborating on the project, continuing to add form to the idea, eventually becoming the template for your working application. Storyboards help you map out the User Experience, providing high level visibility of the user journey through the application.&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Times, 'Times New Roman', serif;"&gt;Designing a complex app with lots of variable states can be simplified using a good storyboard, which will end up becoming a reference document for everyone working on the project. This process will save time and labour, identifying where you might be able to re-use a screen or some graphics in more than one location for example. Storyboards can also help you map out the application’s logic to shape your app’s identity, how it behaves and the feeling a user attains when using it, be it a simple form, or a complicated online experience. Last but not least, Storyboards can become an asset when seeking outside investment or collaboration for development.&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Times, 'Times New Roman', serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Times, 'Times New Roman', serif;"&gt;Storyboards are constructed using the following process:&lt;/span&gt;&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://3.bp.blogspot.com/-__DweApePtI/TmCiKqpXopI/AAAAAAAAAZ0/GLFA7QPt7LA/s1600/wireframeresource28.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="192" src="http://3.bp.blogspot.com/-__DweApePtI/TmCiKqpXopI/AAAAAAAAAZ0/GLFA7QPt7LA/s320/wireframeresource28.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span class="Apple-style-span" style="font-family: Times, 'Times New Roman', serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Times, 'Times New Roman', serif;"&gt;●&lt;span class="Apple-style-span" style="color: orange;"&gt; System Architecture Design&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Times, 'Times New Roman', serif;"&gt;Completing the Ideation process will provide you with a better understanding of the different requirements your application will have. If the application utilizes its own internal resource information without additional synchronization with an external server, you can construct a storyboard right away. If, however, your application requires server-synchronization, you will need to create a system composition diagram showing how this will happen.&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Times, 'Times New Roman', serif;"&gt;In setting out the general, then specific resources required, you can give a comprehensive account/description of the service. Moreover, a systematic arrangement of the System Architecture will allow you to identify potential issues before development begins. There are a number of resources available online to help with this.&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Times, 'Times New Roman', serif;"&gt;● &lt;span class="Apple-style-span" style="color: orange;"&gt;Summary of your application&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Times, 'Times New Roman', serif;"&gt;Next, you need a single page with a summary of your application. Briefly explain the main objectives, the functionalities and the target audience - it’s important to not go into too much detail - just summarise the focal concepts with the main app screen.&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Times, 'Times New Roman', serif;"&gt;● &lt;span class="Apple-style-span" style="color: orange;"&gt;Construct the flow of your application&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Times, 'Times New Roman', serif;"&gt;Here you can design the main framework of your application, literally, laying out every step a user might take while using your app, from starting it up with a tap, to submitting high scores or a full shopping basket at the point of&amp;nbsp;synchronization. It can be extremely helpful to represent each screen with a quarter size/thumbnail image, linking the required resources or directions a user might choose on each screen. Make sure you refer to your system architecture to list any external resource requirements.&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Times, 'Times New Roman', serif;"&gt;● &lt;span class="Apple-style-span" style="color: orange;"&gt;Filling in the details&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Times, 'Times New Roman', serif;"&gt;When the overall flow has been mapped out, you can re-visit your storyboard to fill in the details for each screen. We suggest showing the user interface of the screen on one side, with a detailed account of the functions available to the user on the other. Provide as much information as possible to facilitate swift development once this stage is complete. Include examples if they exist already and any screen grabs or graphical elements that illustrate your intentions. Again, if your application communicates with an external server resource, it would be useful to indicate it (including links and related information), for each screen/interaction here.&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;Thanks &amp;amp; Regards&lt;/i&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://code-analyser.blogspot.com/feeds/5588703602957868261/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://code-analyser.blogspot.com/2011/09/mobile-application-developmentpart-4.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/740816477032050978/posts/default/5588703602957868261?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/740816477032050978/posts/default/5588703602957868261?v=2'/><link rel='alternate' type='text/html' href='http://code-analyser.blogspot.com/2011/09/mobile-application-developmentpart-4.html' title='Mobile Application Development(Part 4) - Story board'/><author><name>Amrit Mishra</name><uri>https://plus.google.com/105696312174148735014</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-kZm5wWXRhc0/AAAAAAAAAAI/AAAAAAAAB-w/9IAPjrlCzgs/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/-_m122acG_kk/TmCiKIOkt3I/AAAAAAAAAZw/Srfz6gc-MJ8/s72-c/iPhoneElements-Yahoo.png' height='72' width='72'/><thr:total>0</thr:total><georss:featurename>Koti Main Rd, Koti, Hyderabad, Andhra Pradesh, India</georss:featurename><georss:point>17.385044 78.486671</georss:point><georss:box>17.142593 78.17081400000001 17.627495 78.802528</georss:box></entry><entry gd:etag='W/&quot;DEMNSXY6fyp7ImA9WhdXF00.&quot;'><id>tag:blogger.com,1999:blog-740816477032050978.post-4916978638982707568</id><published>2011-08-30T05:14:00.000-07:00</published><updated>2011-08-30T05:14:58.817-07:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2011-08-30T05:14:58.817-07:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='webkit'/><category scheme='http://www.blogger.com/atom/ns#' term='macos'/><category scheme='http://www.blogger.com/atom/ns#' term='webapp'/><title>Mac application opening links in new Browser</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;In this tutorial i will be showing you how to make an external link to open in the default browser of the mac system.&lt;br /&gt;
&lt;br /&gt;
If you have implemented WebView in your application to show a webpage and want to open external links in different browser then do the following&lt;br /&gt;
&lt;br /&gt;
&lt;ol style="text-align: left;"&gt;&lt;li&gt;Add the Policy delegates&lt;/li&gt;
&lt;li&gt;Add the UI delegates&lt;/li&gt;
&lt;pre class="brush:js"&gt;	[[webPage mainFrame] loadRequest:mainRequest];
	[webPage setPolicyDelegate:self];
	[webPage setUIDelegate:self];
&lt;/pre&gt;&lt;li&gt;And add the following methods or replace your methods with these&lt;/li&gt;
&lt;pre class="brush:js"&gt;- (void)webView:(WebView *)sender
mouseDidMoveOverElement:(NSDictionary *)elementInformation
  modifierFlags:(unsigned int)modifierFlags
{
	if( ! _loading ) {
    	NSString *status = nil;
    	NSURL *link = [elementInformation objectForKey: WebElementLinkURLKey];
    	if( link ) {
        	WebFrame *target = [elementInformation objectForKey: WebElementLinkTargetFrameKey];
        	// If the Command key is held down, the link will open in the web browser:
        	if( (modifierFlags &amp;amp; NSCommandKeyMask) || target != [webPage mainFrame] )
            	status = @"Open \"%@\" in browser";
        	else
            	status = @"Go to \"%@\"";
        	status = [NSString stringWithFormat: status, [link absoluteString]];
    	}
	}
}
- (BOOL) _sendBrowserRequest: (NSURLRequest*)request forAction: (NSDictionary*)actionInformation
{
	NSWorkspaceLaunchOptions options = NSWorkspaceLaunchDefault;
	unsigned modifiers = [[actionInformation objectForKey: WebActionModifierFlagsKey] unsignedIntValue];
	if( (modifiers &amp;amp; NSShiftKeyMask) )
    	options |= NSWorkspaceLaunchWithoutActivation;
	BOOL ok = [[NSWorkspace sharedWorkspace] openURLs: [NSArray arrayWithObject: [request URL]]
                          	withAppBundleIdentifier: nil
                                          	options: options
                   	additionalEventParamDescriptor: nil
                                	launchIdentifiers: NULL];
	if( ! ok )
    	NSBeep();
	return ok;
}

- (void)webView:(WebView *)sender decidePolicyForNewWindowAction:(NSDictionary *)actionInformation
    	request:(NSURLRequest *)request
   newFrameName:(NSString *)frameName
decisionListener:(id&lt;webpolicydecisionlistener&gt;)listener
{
	[self _sendBrowserRequest: request forAction: actionInformation];
	[listener ignore];
}

&lt;/webpolicydecisionlistener&gt;&lt;/pre&gt;&lt;/ol&gt;&lt;br /&gt;
All done now run your application and see your self.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Thanks &amp;amp; Regards&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://code-analyser.blogspot.com/feeds/4916978638982707568/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://code-analyser.blogspot.com/2011/08/mac-application-opening-links-in-new.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/740816477032050978/posts/default/4916978638982707568?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/740816477032050978/posts/default/4916978638982707568?v=2'/><link rel='alternate' type='text/html' href='http://code-analyser.blogspot.com/2011/08/mac-application-opening-links-in-new.html' title='Mac application opening links in new Browser'/><author><name>Amrit Mishra</name><uri>https://plus.google.com/105696312174148735014</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-kZm5wWXRhc0/AAAAAAAAAAI/AAAAAAAAB-w/9IAPjrlCzgs/s512-c/photo.jpg'/></author><thr:total>0</thr:total><georss:featurename>Hyderabad, Andhra Pradesh, India</georss:featurename><georss:point>17.385044 78.486671</georss:point><georss:box>17.2145055 78.261053 17.5555825 78.712289</georss:box></entry></feed>