tag:blogger.com,1999:blog-47716986705495671932024-03-21T14:57:08.117-07:00Streetwise Mobile Developement Tutorial"KNOWLEDGE BELONGS TO THE WHOLE WORLD"karanhttp://www.blogger.com/profile/16866753914754917995noreply@blogger.comBlogger25125tag:blogger.com,1999:blog-4771698670549567193.post-33444201312851071072014-02-25T08:14:00.000-08:002014-02-25T08:14:02.832-08:00<div dir="ltr" style="text-align: left;" trbidi="on">
<h2>
<span style="font-size: x-large;">iOS Tutorial on Enumeration </span></h2>
<div>
<span style="font-size: large;">So as we are talking about enumeration in iOS,the first thing comes into mind are Collections such as Arrays , Sets and Dictionaries.Why?? Because we need to enumerate i.e go one by one over the objects contained in the collection objects.For example we have a following array</span></div>
<div>
<span style="font-size: large;"><br /></span></div>
<div>
<div class="p1">
<i><span style="font-size: large;"><span class="s1">NSArray</span> *exampleArray = <span class="s2">@[</span><span class="s3">@"A"</span>,<span class="s3">@"B"</span>,<span class="s3">@"C"</span>,<span class="s3">@"D"</span><span class="s2">]</span>;</span></i></div>
<div class="p1">
<i><span style="font-size: large;"><br /></span></i></div>
<div class="p1">
<span style="font-size: large;">For accessing the elements of the array you can follow the standard method of C using For Loops i.e</span></div>
<div class="p1">
<span style="font-size: large;"><br /></span></div>
<div class="p1">
<b><span style="font-size: large;"><span class="s1">for</span> (<#initialization#>; <#condition#>; <#increment#>) {</span></b></div>
<div class="p1">
<b><span style="font-size: large;"> <#statements#></span></b></div>
<div class="p1">
</div>
<div class="p1">
<b><span style="font-size: large;"> }</span></b></div>
<div class="p1">
<span style="font-size: large;"><br /></span></div>
<div class="p1">
<span style="font-family: Times, Times New Roman, serif; font-size: large;">But its best practice to follow the following techniques described.</span></div>
<div class="p1">
<span style="font-family: Times, Times New Roman, serif; font-size: large;"><br /></span></div>
<div class="p1">
<span style="font-family: Times, Times New Roman, serif; font-size: large;">In Cocoa there are there basic techniques of enumeration</span></div>
<div class="p1">
<span style="font-family: Times, Times New Roman, serif; font-size: large;"><br /></span></div>
<div class="p1">
<span style="font-family: Times, Times New Roman, serif; font-size: large;">1)Fast Enumeration</span></div>
<div class="p1">
<span style="font-family: Times, Times New Roman, serif; font-size: large;">2)Block Based Enumeration</span></div>
<div class="p1">
<span style="font-family: Times, Times New Roman, serif; font-size: large;">3)Using an Enumerator.</span></div>
<div class="p1">
<span style="font-family: Times, Times New Roman, serif;"><br /></span></div>
<h3>
<span style="font-family: Times, Times New Roman, serif; font-size: x-large;">Fast Enumeration</span></h3>
<div>
<span style="font-family: Times, Times New Roman, serif; font-size: large;">Fast enumeration is the most preferred way of enumerating the collections.</span></div>
<div>
<span style="font-family: Times, Times New Roman, serif; font-size: large;"><br /></span></div>
<div>
<span style="font-family: Times, Times New Roman, serif; font-size: large;"><b>Why??</b></span></div>
<div class="p1">
</div>
<ul>
<li><span style="font-family: Times, Times New Roman, serif; font-size: large;">More efficient.</span></li>
<li><span style="font-family: Times, Times New Roman, serif; font-size: large;">Easy syntax.</span></li>
<li><span style="font-family: Times, Times New Roman, serif; font-size: large;">Doesn't allow to mutate(change) the collection you are trying to enumerate.</span></li>
<li><span style="font-family: Times, Times New Roman, serif; font-size: large;">Perform multiple enumerations concurrently.</span></li>
</ul>
<br />
<div class="p1">
<span style="font-family: Times, Times New Roman, serif; font-size: large;"><b>How to use it?</b></span></div>
<div class="p1">
<span style="font-family: Times, Times New Roman, serif; font-size: large;"><b><br /></b></span></div>
<div class="p1">
<span style="font-family: Times, Times New Roman, serif; font-size: large;"><b>Syntax - </b></span></div>
<div class="p1">
<span class="s1"><span style="font-size: large;"><br /></span></span></div>
<div class="p1">
<span style="font-size: large;"><span class="s1">for</span> (<#type *object#> <span class="s1">in</span> <#collection#>) {</span></div>
<div class="p1">
<span style="font-size: large;"> <#statements#></span></div>
<div class="p1">
<span style="font-size: large;"> }</span></div>
<div class="page" title="Page 101">
<div class="layoutArea">
<div class="column">
<br />
<span style="font-family: Times, Times New Roman, serif; font-size: large;">Examples :-</span><br />
<span style="font-family: Times, Times New Roman, serif; font-size: large;"><br /></span>
<div class="p1">
<span style="color: blue; font-size: large;"><span class="s1">NSArray</span> *exampleArray = <span class="s2">@[</span><span class="s3">@"A"</span>,<span class="s3">@"B"</span>,<span class="s3">@"C"</span>,<span class="s3">@"D"</span><span class="s2">]</span>;</span></div>
<div class="p1">
<span style="color: blue; font-size: large;"><span class="s1">NSDictionary</span> *exampleDictionary = <span class="s2">@{</span><span class="s3">@"Key1"</span>: <span class="s3">@"A"</span>,<span class="s3">@"Key2"</span>:<span class="s3">@"B"</span>,<span class="s3">@"Key3"</span>:<span class="s3">@"C"</span><span class="s2">}</span>;</span></div>
<div class="p2">
<span style="color: blue; font-size: large;"> </span></div>
<div class="p1">
<span style="color: blue; font-size: large;"> <span class="s4">for</span> (<span class="s1">NSString</span> *element <span class="s4">in</span> exampleArray) {</span></div>
<div class="p1">
<span style="color: blue; font-size: large;"> <span class="s5">NSLog</span>(<span class="s3">@"Element %@ \n"</span>,element);</span></div>
<div class="p1">
<span style="color: blue; font-size: large;"> }</span></div>
<div class="p1">
<span style="color: blue; font-size: large;"><br /></span></div>
<div class="p1">
<span style="color: blue; font-size: large;"> <span class="s4">for</span> (<span class="s1">NSString</span> *key <span class="s4">in</span> exampleDictionary) {</span></div>
<div class="p1">
<span style="color: blue; font-size: large;"> <span class="s5">NSLog</span>(<span class="s3">@"Element %@ with Key %@"</span>,[exampleDictionary <span class="s5">objectForKey</span>:key],key);</span></div>
<br />
<div class="p1">
<span style="color: blue; font-size: large;"> }</span></div>
<div class="p1">
<i><span style="font-size: large;"><br /></span></i></div>
<div class="p1">
<b><span style="font-size: large;">Output :</span></b></div>
<div class="p1">
<b><span style="font-size: large;">Element A </span></b></div>
<div class="p1">
<b><span style="font-size: large;">Element B </span></b></div>
<div class="p1">
<b><span style="font-size: large;">Element C </span></b></div>
<div class="p1">
<b><span style="font-size: large;">Element D </span></b></div>
<div class="p1">
<b><span style="font-size: large;">Element B with Key Key2</span></b></div>
<div class="p1">
<b><span style="font-size: large;">Element A with Key Key1</span></b></div>
<div class="p1">
</div>
<div class="p1">
<b><span style="font-size: large;">Element C with Key Key3</span></b></div>
<div class="p1">
<b><span style="font-family: Times, Times New Roman, serif; font-size: large;"><br /></span></b></div>
<div class="p1">
<span style="font-family: Times, Times New Roman, serif; font-size: large;"><span style="background-color: white;">Arrays and sets enumerate their contents, and dictionaries enumerate their keys. </span><code style="background-color: white; color: #666666;">NSIndexSet</code><span style="background-color: white;"> and </span><code style="background-color: white; color: #666666;">NSIndexPath</code><span style="background-color: white;"> do not support fast enumeration.In case of Array the enumeration of objects occurs in the order in which they are inserted.</span></span></div>
<div class="p1">
<span style="font-family: Times, Times New Roman, serif;"><span style="background-color: white;"><br /></span></span></div>
<h3>
<span style="font-family: Times, 'Times New Roman', serif;"><b><span style="font-size: x-large;">Block Based Enumeration</span></b></span></h3>
<div>
<span style="font-family: Times, Times New Roman, serif; font-size: large;">The collection objects allow to enumerate their objects using blocks(If you don't know them then you can read about them I would be posting a tutorial for them soon).So how to do it.Stay with me and you will get everything its easy.</span></div>
<div>
<span style="font-family: Times, Times New Roman, serif; font-size: large;"><br /></span></div>
<div>
<b style="font-family: Times, 'Times New Roman', serif;"><span style="font-size: large;">How to use it?</span></b></div>
<div>
<span style="font-size: large;"><br /></span></div>
<div>
<span style="font-family: Times, Times New Roman, serif; font-size: large;"><b>Syntax For Dictionary:-</b></span></div>
<div>
<span style="font-family: Times, Times New Roman, serif; font-size: large;"><br /></span></div>
<div>
<div class="p1">
<span style="color: blue; font-size: large;">[exampleDictionary enumerateKeysAndObjectsUsingBlock:<#^(id key, id obj, BOOL *stop)block#>];</span></div>
</div>
<div>
<span style="font-family: Times, Times New Roman, serif; font-size: large;"><br /></span></div>
<div>
<span style="font-family: Times, 'Times New Roman', serif;"><b><span style="font-size: large;">Example :-</span></b></span></div>
<div>
<span style="font-family: Times, 'Times New Roman', serif;"><b><span style="font-size: large;"><br /></span></b></span></div>
<div>
<div class="p1">
<span style="color: blue; font-size: large;">[exampleDictionary <span class="s1">enumerateKeysAndObjectsUsingBlock</span>:^(<span class="s2">NSString</span> *key,<span class="s2">NSString</span> *element,<span class="s3">BOOL</span> *stop){</span></div>
<div class="p1">
<span style="color: blue; font-size: large;"> <span class="s1">NSLog</span>(<span class="s4">@"Element %@ with Key %@"</span>,[exampleDictionary <span class="s1">objectForKey</span>:key],key);</span></div>
<div class="p1">
<span style="color: blue; font-size: large;"> <span class="s3">if</span> ([key <span class="s1">isEqualToString</span>:<span class="s4">@"Key2"</span>]) {</span></div>
<div class="p1">
<span style="color: blue; font-size: large;"> *stop = <span class="s3">YES</span>;</span></div>
<div class="p1">
<span style="color: blue; font-size: large;"> }</span></div>
<div class="p2">
<span style="color: blue; font-size: large;"> </span></div>
<div class="p1">
</div>
<div class="p1">
<span style="color: blue; font-size: large;"> }];</span></div>
<div class="p1">
<i><span style="font-size: large;"><br /></span></i></div>
<div class="p1">
<span style="font-size: large;"><br /></span></div>
<div class="p1">
<b><span style="font-size: large;">Syntax For Array:-</span></b></div>
<div class="p1">
<b><span style="font-size: large;"><br /></span></b></div>
<div class="p1">
</div>
<div class="p1">
<span style="color: blue; font-size: large;">[exampleArray enumerateObjectsUsingBlock:<#^(id obj, NSUInteger idx, BOOL *stop)block#>];</span></div>
<div class="p1">
<i><span style="font-size: large;"><br /></span></i></div>
<div class="p1">
<b><span style="font-size: large;">Example :-</span></b></div>
<div class="p1">
<b><span style="font-size: large;"><br /></span></b></div>
<div class="p1">
<span style="color: blue; font-size: large;">[exampleArray <span class="s1">enumerateObjectsUsingBlock</span>:^(<span class="s2">NSString</span> *element,<span class="s2">NSUInteger</span> index,<span class="s3">BOOL</span> *stop){</span></div>
<div class="p2">
<span style="color: blue; font-size: large;"> </span></div>
<div class="p1">
<span style="color: blue; font-size: large;"> <span class="s1">NSLog</span>(<span class="s4">@"Element %@ Index %d "</span>,element,index);</span></div>
<div class="p1">
<span style="color: blue; font-size: large;"> <span class="s3">if</span> (index == <span class="s5">2</span>) {</span></div>
<div class="p1">
<span style="color: blue; font-size: large;"> *stop = <span class="s3">YES</span>;</span></div>
<div class="p1">
<span style="color: blue; font-size: large;"> }</span></div>
<div class="p1">
</div>
<div class="p1">
<span style="color: blue; font-size: large;"> }];</span></div>
<div class="p1">
<span style="color: blue; font-size: large;"><br /></span></div>
<div class="p1">
<span style="color: blue; font-size: large;"><br /></span></div>
</div>
<div>
<div class="p1">
<span style="font-size: large;">The example is quite self explanatory but then also if you didn't got it I would explain one example. </span></div>
<div class="p1">
<span style="font-size: large;"><br /></span></div>
<div class="p1">
<span style="font-size: large;">exampleDictionary is the dictionary we created earlier in the tutorial.</span></div>
<div class="p1">
<span style="font-size: large;"><br /></span></div>
<div class="p1">
<span style="font-size: large;"><span style="color: blue;">enumerateKeysAndObjectsUsingBlock </span>is the instance method called upon the exampleDictionary and which takes a block with parameters <span style="color: blue;">(id key, id obj, BOOL *stop).</span></span></div>
<div class="p1">
<span style="font-size: large;"><br /></span></div>
<div class="p1">
<span style="color: blue;"><span style="font-size: large;">(id key, id obj, BOOL *stop) </span></span></div>
<div class="p1">
<span style="font-size: large;"><br /></span></div>
<div class="p1">
<span style="font-size: large;">id is used to represent the generic type and BOOL *stop parameter is used to check whether to stop enumerating or not i.e when the *stop is equal to YES the enumeration of collection will be stopped.</span></div>
<div class="p1">
</div>
<br />
<section><span style="font-size: large;"><a href="https://www.blogger.com/null" name="//apple_ref/doc/uid/20000135-SW2" style="background-color: white; color: #3366cc; font-family: 'Lucida Grande', 'Lucida Sans Unicode', Helvetica, Arial, Verdana, sans-serif;" title="Using an Enumerator"></a></span></section><br /><br />
<br />
<section><div style="margin-bottom: 0.833em;">
<span style="font-family: Times, Times New Roman, serif; font-size: large;"><i style="background-color: yellow;">The block-based enumeration methods for the other collections are slightly different in name and in block signature. See the respective class references for the method definitions.</i></span></div>
</section><br />
<div class="p1">
<b><span style="font-size: large;">WHY would i need to stop the enumeration ??</span></b></div>
<div class="p1">
<span style="font-size: large;">To increase the performance.You should stop enumerating the collection as soon as you find your object or complete your task.</span></div>
<div class="p1">
<span style="font-size: large;"><br /></span></div>
<div class="p1">
<span style="font-size: large;">if you have any doubts comment them i would be happy to clear your doubts.Stay tunned :)</span></div>
</div>
</div>
</div>
</div>
</div>
</div>
Anonymoushttp://www.blogger.com/profile/16377464012024495835noreply@blogger.com0tag:blogger.com,1999:blog-4771698670549567193.post-35482079226258477162014-02-16T05:22:00.002-08:002014-02-16T07:03:15.154-08:00<div dir="ltr" style="text-align: left;" trbidi="on">
<span style="font-size: x-large;"><u>iOS BLOCK BASED API's - UNIT TESTING</u></span><br />
<div>
<br />
<h4 style="text-align: left;">
UNIT TESTING?</h4>
</div>
<div>
<span style="font-family: Helvetica Neue, Arial, Helvetica, sans-serif; font-size: x-small;"><span style="background-color: white; line-height: 19.200000762939453px;">First of all just for the definition sake we can define unit testing as a method used to check the validity and consistency of individual units of your source code</span></span><br />
<span style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;"><span style="background-color: white; line-height: 19.200000762939453px;"><br /></span></span>
<br />
<h4 style="text-align: left;">
<span style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;"><span style="background-color: white; line-height: 19.200000762939453px;">WHAT DO YOU MEAN BY UNITS?</span></span></h4>
<span style="font-family: Helvetica Neue, Arial, Helvetica, sans-serif; font-size: x-small;"><span style="background-color: white; line-height: 19.200000762939453px;">Units can be defined as sets of modules of your computer program.Intuitively a unit can be defined as the smallest part of the application which can be tested.But it is not necessary it would be the smallest part of the application.In procedural programming it can be entire module,but commonly we test individual functions whereas in object oriented programming units are often an entire interface,but could be individual methods.</span></span><br />
<span style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;"><span style="background-color: white; line-height: 19.200000762939453px;"><br /></span></span>
<br />
<h4 style="text-align: left;">
<span style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;"><span style="background-color: white; line-height: 19.200000762939453px;">WHY SHOULD I USE IT?</span></span></h4>
<span style="font-family: Helvetica Neue, Arial, Helvetica, sans-serif;"><span style="background-color: white; font-size: 13px; line-height: 19.200000762939453px;">Unit Tests</span><span style="background-color: #fdfefe; color: #333333; font-size: 14px; line-height: 19px;"> are very useful for those large projects where you might loose sight of everything that’s going on and while you are adding new code to add feature Y you might be silently breaking feature X without even suspecting.</span></span><br />
<span style="font-family: Helvetica Neue, Arial, Helvetica, sans-serif;"><span style="background-color: #fdfefe; color: #333333; font-size: 14px; line-height: 19px;"><br /></span></span>
<span style="font-family: Helvetica Neue, Arial, Helvetica, sans-serif;"><span style="background-color: #fdfefe; color: #333333; font-size: 14px; line-height: 19px;"><br /></span></span>
<br />
<h4 style="text-align: left;">
<span style="color: #333333; font-family: Helvetica Neue, Arial, Helvetica, sans-serif;"><span style="background-color: #fdfefe; font-size: 14px; line-height: 19px;">SO WHAT ARE WE GOING TO LEARN TODAY?</span></span></h4>
<div>
<span style="color: #333333; font-family: Helvetica Neue, Arial, Helvetica, sans-serif;"><span style="background-color: #fdfefe; font-size: 14px; line-height: 19px;">Are we going to learn the complete unit testing?? No, i am going to discuss only about unit testing block based API's. If you are not familiar with the blocks i would recommend you to go through the <i><a href="https://developer.apple.com/library/ios/documentation/cocoa/Conceptual/Blocks/Articles/00_Introduction.html">Blocks Programming Topics</a></i> of Apple.If you have worked with the blocks one of the problems you might have faced is unit testing them.</span></span></div>
<div>
<span style="color: #333333; font-family: Helvetica Neue, Arial, Helvetica, sans-serif;"><span style="background-color: #fdfefe; font-size: 14px; line-height: 19px;"><br /></span></span></div>
<h4 style="text-align: left;">
<span style="color: #333333; font-family: Helvetica Neue, Arial, Helvetica, sans-serif;"><span style="background-color: #fdfefe; font-size: 14px; line-height: 19px;">HOW DO WE UNIT TEST THOSE BLOCKS ?</span></span></h4>
<div>
<span style="color: #333333; font-family: Helvetica Neue, Arial, Helvetica, sans-serif;"><span style="font-size: 14px; line-height: 19px;">If you are already using Xcode 5.The unit tests are already part of your project.For example If you keep the name of your project as Dedicate you would be saying something like following in your project.</span></span></div>
<div>
<span style="color: #333333; font-family: Helvetica Neue, Arial, Helvetica, sans-serif;"><span style="font-size: 14px; line-height: 19px;"><br /><div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhSj8QJgrHC2HdjhuO3ErUHjSN2Zyh1XCxy_jR4mf9JtTOj6inDXR1ML-i8mwwIKkdQc4j3dMU4gqGtL513ZEwo2IkUZlBPWmvfkw-al1cMmi7gTm8vRbxGF7a8PRIpH-02XR-Xrf6S-Yw/s1600/Screen+Shot+2014-02-16+at+6.09.07+pm.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhSj8QJgrHC2HdjhuO3ErUHjSN2Zyh1XCxy_jR4mf9JtTOj6inDXR1ML-i8mwwIKkdQc4j3dMU4gqGtL513ZEwo2IkUZlBPWmvfkw-al1cMmi7gTm8vRbxGF7a8PRIpH-02XR-Xrf6S-Yw/s1600/Screen+Shot+2014-02-16+at+6.09.07+pm.png" /></a></div>
</span></span></div>
<div>
<br /></div>
<span style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;"><span style="background-color: white; line-height: 19.200000762939453px;"><br /></span><span style="line-height: 19.200000762939453px;"><br /></span></span><br />
<span style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;"><span style="line-height: 19.200000762939453px;"><br /></span></span>
<span style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;"><span style="line-height: 19.200000762939453px;"><br /></span></span>
<span style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;"><span style="line-height: 19.200000762939453px;"><br /></span></span>
<span style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;"><span style="line-height: 19.200000762939453px;"><br /></span></span>
<span style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;"><span style="line-height: 19.200000762939453px;"><br /></span></span>
<span style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;"><span style="line-height: 19.200000762939453px;"><br /></span></span>
<span style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;"><span style="line-height: 19.200000762939453px;">So lets start with what we are trying to learn.Write a test case .Don't just copy paste the code.My assumption is you would be having a block based code similar to the following.</span></span><br />
<span style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;"><span style="line-height: 19.200000762939453px;"><br /></span></span>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg2iAlTlzYaClFaxD3cxAU8qiEmVkUggChBYrKYdyprpNTtJcxXhdYdhuoxe3A4otq7Dp73_T2EB0-OaQHuZbXIdCaTE4BjjtzosOzihCjOLtGlVTXHVRVI1F-0wIoQ94rcWa5-7IfXwmI/s1600/Screen+Shot+2014-02-16+at+6.19.26+pm.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg2iAlTlzYaClFaxD3cxAU8qiEmVkUggChBYrKYdyprpNTtJcxXhdYdhuoxe3A4otq7Dp73_T2EB0-OaQHuZbXIdCaTE4BjjtzosOzihCjOLtGlVTXHVRVI1F-0wIoQ94rcWa5-7IfXwmI/s1600/Screen+Shot+2014-02-16+at+6.19.26+pm.png" height="188" width="640" /></a></div>
<span style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;"><span style="line-height: 19.200000762939453px;"><br /></span></span>
<span style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;"><span style="line-height: 19.200000762939453px;"><br /></span></span>
<span style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;"><span style="line-height: 19.200000762939453px;"><br /></span></span>
<span style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;"><span style="line-height: 19.200000762939453px;"><br /></span></span>
<span style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;"><span style="line-height: 19.200000762939453px;"><br /></span></span>
<span style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;"><span style="line-height: 19.200000762939453px;"><br /></span></span>
<span style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;"><span style="line-height: 19.200000762939453px;"><br /></span></span>
<span style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;"><span style="line-height: 19.200000762939453px;"><br /></span></span>
<span style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;"><span style="line-height: 19.200000762939453px;"><br /></span></span>
<span style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;"><span style="line-height: 19.200000762939453px;"><br /></span></span>
<br />
<span style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;"><span style="line-height: 19.200000762939453px;">So run the test case and you would never get into the block where we print the log "I am inside the block".What the hell why i am not getting inside that code?. The reason is that the test case doesn't wait for the completion of your block.As a consequence you would be not able to test the block code in any condition.</span></span><br />
<span style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;"><span style="line-height: 19.200000762939453px;"><br /></span></span>
<h4 style="text-align: left;">
<span style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;"><span style="line-height: 19.200000762939453px;"><b>So Whats the solution?</b></span></span></h4>
</div>
<div>
<span style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;"><span style="line-height: 19.200000762939453px;">Have you heard the term semaphore?If you have then you might begin to think in the direction i am taking you too.But Hey wait I just googled the definition of Semaphore,and the wiki says :</span></span></div>
<div>
<span style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;"><span style="line-height: 19.200000762939453px;"><br /></span></span></div>
<div>
<i><span style="background-color: white; font-family: sans-serif; font-size: 13px; line-height: 19.200000762939453px;">In computer science, particularly in operating systems, </span><span style="background-color: yellow;"><span style="font-family: sans-serif; font-size: 13px; line-height: 19.200000762939453px;">a </span><b style="font-family: sans-serif; font-size: 13px; line-height: 19.200000762939453px;">semaphore</b><span style="font-family: sans-serif; font-size: 13px; line-height: 19.200000762939453px;"> is a </span><a class="mw-redirect" href="http://en.wikipedia.org/wiki/Variable_(programming)" style="background-image: none; color: #0b0080; font-family: sans-serif; font-size: 13px; line-height: 19.200000762939453px; text-decoration: none;" title="Variable (programming)">variable</a><span style="font-family: sans-serif; font-size: 13px; line-height: 19.200000762939453px;"> or </span><a href="http://en.wikipedia.org/wiki/Abstract_data_type" style="background-image: none; color: #0b0080; font-family: sans-serif; font-size: 13px; line-height: 19.200000762939453px; text-decoration: none;" title="Abstract data type">abstract data type</a><span style="font-family: sans-serif; font-size: 13px; line-height: 19.200000762939453px;"> that is used for controlling access</span></span><span style="background-color: white; font-family: sans-serif; font-size: 13px; line-height: 19.200000762939453px;">, by multiple </span><a href="http://en.wikipedia.org/wiki/Process_(computing)" style="background-color: white; background-image: none; color: #0b0080; font-family: sans-serif; font-size: 13px; line-height: 19.200000762939453px; text-decoration: none;" title="Process (computing)">processes</a><span style="background-color: white; font-family: sans-serif; font-size: 13px; line-height: 19.200000762939453px;">, to a common resource in a </span><a href="http://en.wikipedia.org/wiki/Parallel_computing" style="background-color: white; background-image: none; color: #0b0080; font-family: sans-serif; font-size: 13px; line-height: 19.200000762939453px; text-decoration: none;" title="Parallel computing">parallel programming</a><span style="background-color: white; font-family: sans-serif; font-size: 13px; line-height: 19.200000762939453px;"> or a </span><a class="mw-redirect" href="http://en.wikipedia.org/wiki/Multi_user" style="background-color: white; background-image: none; color: #0b0080; font-family: sans-serif; font-size: 13px; line-height: 19.200000762939453px; text-decoration: none;" title="Multi user">multi user</a><span style="background-color: white; font-family: sans-serif; font-size: 13px; line-height: 19.200000762939453px;"> environment.</span></i></div>
<div>
<i><span style="background-color: white; font-family: sans-serif; font-size: 13px; line-height: 19.200000762939453px;"><br /></span></i></div>
<div>
<span style="font-family: sans-serif; font-size: x-small;"><span style="line-height: 19.200000762939453px;">We are not talking about the multiple processes here,but just focus on the highlighted definition . Oh yeah baby, now it is making some sense.But there is still a question how to implement it.</span></span></div>
<div>
<span style="font-family: sans-serif; font-size: x-small;"><span style="line-height: 19.200000762939453px;">Implement a new class name Semaphore or whatever you like to keep it.</span></span></div>
<div>
<span style="font-family: sans-serif; font-size: x-small;"><span style="line-height: 19.200000762939453px;">Add the following lines in Semaphore.h file or xyz.h file whatever you have the kept the name of the class.Add the following lines.</span></span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi8CyqIMWBdUAVaSlSIA8CtOfng6ZoVZKr9dpHTavxVuHaAwrepuTK-xUzCZvYdEDP0fYtubbgp5G5Qdg9JWcJ6tONQmkfiFPaDs6CAoqx9ZZVYfASpHiSmdj44ndvzLIPH4YA76cky0xY/s1600/Screen+Shot+2014-02-16+at+6.44.36+pm.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi8CyqIMWBdUAVaSlSIA8CtOfng6ZoVZKr9dpHTavxVuHaAwrepuTK-xUzCZvYdEDP0fYtubbgp5G5Qdg9JWcJ6tONQmkfiFPaDs6CAoqx9ZZVYfASpHiSmdj44ndvzLIPH4YA76cky0xY/s1600/Screen+Shot+2014-02-16+at+6.44.36+pm.png" /></a></div>
<div>
<br /></div>
<div>
<span style="font-family: sans-serif; font-size: x-small;"><span style="line-height: 19.200000762939453px;"><br /></span></span></div>
<div>
<span style="font-family: sans-serif; font-size: x-small;"><span style="line-height: 19.200000762939453px;"><br /></span></span></div>
<div>
<span style="font-family: sans-serif; font-size: x-small;"><span style="line-height: 19.200000762939453px;"><br /></span></span></div>
<div>
<span style="font-family: sans-serif; font-size: x-small;"><span style="line-height: 19.200000762939453px;"><br /></span></span></div>
<div>
<span style="font-family: sans-serif; font-size: x-small;"><span style="line-height: 19.200000762939453px;"><br /></span></span></div>
<div>
<span style="font-family: sans-serif; font-size: x-small;"><span style="line-height: 19.200000762939453px;"><br /></span></span></div>
<div>
<span style="font-family: sans-serif; font-size: x-small;"><span style="line-height: 19.200000762939453px;"><br /></span></span></div>
<div>
<span style="font-family: sans-serif; font-size: x-small;"><span style="line-height: 19.200000762939453px;"><br /></span></span></div>
<div>
<span style="font-family: sans-serif; font-size: x-small;"><span style="line-height: 19.200000762939453px;"><br /></span></span></div>
<div>
<span style="font-family: sans-serif; font-size: x-small;"><span style="line-height: 19.200000762939453px;"><br /></span></span></div>
<div>
<span style="font-family: sans-serif; font-size: x-small;"><span style="line-height: 19.200000762939453px;"><br /></span></span></div>
<div>
<span style="font-family: sans-serif; font-size: x-small;"><span style="line-height: 19.200000762939453px;"><br /></span></span></div>
<div>
<span style="font-family: sans-serif; font-size: x-small;"><span style="line-height: 19.200000762939453px;"><br /></span></span></div>
<div>
<span style="font-family: sans-serif; font-size: x-small;"><span style="line-height: 19.200000762939453px;">Open the implementation file that is .m file and write the following code.</span></span></div>
<div>
<br /></div>
<div>
<div class="p1">
@implementation<span class="s1"> Semaphor</span></div>
<div class="p2">
<br /></div>
<div class="p1">
@synthesize<span class="s1"> flags;</span></div>
<div class="p2">
<br /></div>
<div class="p3">
+(Semaphor *)sharedInstance</div>
<div class="p3">
{ </div>
<div class="p3">
<span class="s2">static</span> Semaphor *sharedInstance = <span class="s2">nil</span>;</div>
<div class="p3">
<span class="s2">static</span> dispatch_once_t once;</div>
<div class="p2">
</div>
<div class="p3">
dispatch_once(&once, ^{</div>
<div class="p3">
sharedInstance = [Semaphor alloc];</div>
<div class="p3">
sharedInstance = [sharedInstance init];</div>
<div class="p3">
});</div>
<div class="p2">
</div>
<div class="p3">
<span class="s2">return</span> sharedInstance;</div>
<div class="p3">
}</div>
<div class="p2">
<br /></div>
<div class="p3">
-(<span class="s2">id</span>)init</div>
<div class="p3">
{</div>
<div class="p3">
<span class="s2">self</span> = [<span class="s2">super</span> init];</div>
<div class="p3">
<span class="s2">if</span> (<span class="s2">self</span> != <span class="s2">nil</span>) {</div>
<div class="p3">
<span class="s2">self</span>.flags = [NSMutableDictionary dictionaryWithCapacity:<span class="s3">10</span>];</div>
<div class="p3">
}</div>
<div class="p1">
<span class="s1"> </span>return<span class="s1"> </span>self<span class="s1">;</span></div>
<div class="p3">
}</div>
<div class="p2">
<br /></div>
<div class="p3">
-(<span class="s2">void</span>)dealloc</div>
<div class="p3">
{</div>
<div class="p3">
<span class="s2">self</span>.flags = <span class="s2">nil</span>;</div>
<div class="p3">
}</div>
<div class="p2">
<br /></div>
<div class="p3">
-(<span class="s2">BOOL</span>)isLifted:(NSString*)key</div>
<div class="p3">
{</div>
<div class="p3">
<span class="s2">return</span> [<span class="s2">self</span>.flags objectForKey:key]!=<span class="s2">nil</span>;</div>
<div class="p3">
}</div>
<div class="p2">
<br /></div>
<div class="p3">
-(<span class="s2">void</span>)lift:(NSString*)key</div>
<div class="p3">
{</div>
<div class="p3">
[<span class="s2">self</span>.flags setObject:<span class="s4">@"YES"</span> forKey: key];</div>
<div class="p3">
}</div>
<div class="p2">
<br /></div>
<div class="p3">
-(<span class="s2">void</span>)waitForKey:(NSString*)key</div>
<div class="p3">
{</div>
<div class="p3">
<span class="s2">BOOL</span> keepRunning = <span class="s2">YES</span>;</div>
<div class="p3">
<span class="s2">while</span> (keepRunning && [[NSRunLoop currentRunLoop] runMode: NSDefaultRunLoopMode beforeDate:[NSDate dateWithTimeIntervalSinceNow:<span class="s3">1.0</span>]]) {</div>
<div class="p3">
keepRunning = ![[Semaphor sharedInstance] isLifted: key];</div>
<div class="p3">
}</div>
<div class="p2">
<br /></div>
<div class="p3">
}</div>
<div class="p2">
<br /></div>
<div class="p1">
@end</div>
<div class="p1">
<br /></div>
<div class="p1">
<br /></div>
</div>
<div>
<span style="font-family: sans-serif; font-size: x-small;"><span style="line-height: 19.200000762939453px;"> Just add the following lines in your block code.</span></span></div>
<div>
<span style="font-family: sans-serif; font-size: x-small;"><span style="line-height: 19.200000762939453px;"><br /><div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiABSP3NnvAMvu5JFI0n0nIKTEKKmMJjiNO0kuATsao4PvswrwrdAO9rZoDfMdtgvgZ_OUxomll9uK2i8pcFvTS_NCkdY0l41313pwcHJgQ14dWj-kvM2sH4I_s0U8o91Z-GXoWgzIJrBQ/s1600/Screen+Shot+2014-02-16+at+6.35.57+pm.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiABSP3NnvAMvu5JFI0n0nIKTEKKmMJjiNO0kuATsao4PvswrwrdAO9rZoDfMdtgvgZ_OUxomll9uK2i8pcFvTS_NCkdY0l41313pwcHJgQ14dWj-kvM2sH4I_s0U8o91Z-GXoWgzIJrBQ/s1600/Screen+Shot+2014-02-16+at+6.35.57+pm.png" height="220" width="640" /></a></div>
</span></span><h4 style="text-align: left;">
<span style="font-family: sans-serif; font-size: x-small;"><span style="line-height: 19.200000762939453px;"><br /></span></span></h4>
<h4 style="text-align: left;">
<span style="font-family: sans-serif; font-size: x-small;"><span style="line-height: 19.200000762939453px;"><br /></span></span></h4>
<h4 style="text-align: left;">
<span style="font-family: sans-serif; font-size: x-small;"><span style="line-height: 19.200000762939453px;"><br /></span></span></h4>
<h4 style="text-align: left;">
<span style="font-family: sans-serif; font-size: x-small;"><span style="line-height: 19.200000762939453px;"><br /></span></span></h4>
<h4 style="text-align: left;">
<span style="font-family: sans-serif; font-size: x-small;"><span style="line-height: 19.200000762939453px;"><br /></span></span></h4>
<h4 style="text-align: left;">
<span style="font-family: sans-serif; font-size: x-small;"><span style="line-height: 19.200000762939453px;"><br /></span></span></h4>
<h4 style="text-align: left;">
<span style="font-family: sans-serif; font-size: x-small;"><span style="font-weight: normal; line-height: 19.200000762939453px;">Run the test case and </span></span><b style="font-family: sans-serif; font-size: small; line-height: 19.200000762939453px;">Voila </b><span style="font-family: sans-serif; font-size: x-small; font-weight: normal; line-height: 19.200000762939453px;">you would be able to go inside your block code.Stay connected for more interesting posts of iOS.:)</span><b style="font-family: sans-serif; font-size: small; line-height: 19.200000762939453px;"> </b></h4>
</div>
</div>
Anonymoushttp://www.blogger.com/profile/16377464012024495835noreply@blogger.com0tag:blogger.com,1999:blog-4771698670549567193.post-8824465969004384822012-05-11T04:47:00.002-07:002012-05-11T04:47:27.618-07:00Session maintenance using cookies.<div dir="ltr" style="text-align: left;" trbidi="on">
<h2 style="text-align: left;">
<u>Session maintenance using cookies.</u></h2>
<div>
In this post i am going to explain how to retrieve and save cookies from the HTTP Post request and send it further with HTTP Get requests.</div>
<div>
<br /></div>
<h3 style="text-align: left;">
<span style="font-weight: normal;"><u>Retrieving and storing cookies:</u></span></h3>
<div>
Suppose you have a login web service and after successfully authenticating the server provides you with a cookie then following snippet can be used to retrieve and store the cookies.</div>
<div>
<br /></div>
<div>
<blockquote class="tr_bq">
<i>DefaultHttpClient httpclient = new DefaultHttpClient();</i><i>HttpPost httppost = new HttpPost(URL);</i><i>httppost.setHeader("Content-Type", "application/x-www-form-urlencoded");</i><i></i><i>List<NameValuePair> nameValuePairs = new ArrayList<NameValuePair>(2); </i><i>nameValuePairs.add(new BasicNameValuePair("username", YOUR_USERNAME));</i><i>nameValuePairs.add(new BasicNameValuePair("password",YOUR_PASSWORD);</i><i>httppost.setEntity(new UrlEncodedFormEntity(nameValuePairs)); </i><i>HttpResponse httpResponse = null;</i><i>httpResponse = httpclient.execute(httppost);</i></blockquote>
<i>List<Cookie> cookies = httpclient.getCookieStore().getCookies(); <b>// Storing cookies</b></i><br />
<blockquote class="tr_bq">
<i><span class="Apple-tab-span" style="white-space: pre;"> </span>cookies = httpclient.getCookieStore().getCookies();</i><i><span class="Apple-tab-span" style="white-space: pre;"> </span>if (cookies.isEmpty()) {</i><i><span class="Apple-tab-span" style="white-space: pre;"> </span>System.out.println("None");<b>//No cookie found</b></i><i><span class="Apple-tab-span" style="white-space: pre;"> </span>} else {</i><i><span class="Apple-tab-span" style="white-space: pre;"> </span>for (int i = 0; i < cookies.size(); i++) {</i><i><span class="Apple-tab-span" style="white-space: pre;"> </span>System.out.println("- " + cookies.get(i).toString()); <b>//</b></i><b> C<i>ookie found</i> </b><i><br /></i><i><span class="Apple-tab-span" style="white-space: pre;"> </span></i><i>}</i><i><span class="Apple-tab-span" style="white-space: pre;"> </span>}</i></blockquote>
<br />
Now you have retrieved cookies and stored them in the Array List.<br />
Cookie has various parts as follows:<br />
1.Session ID.<br />
2.Cookie name.<br />
3.Domain etc...<br />
<br />
Save the required fields from in preferences of cookie store so that you can resend these cookies to get requests to make other services call.<br />
<br />
<h3 style="text-align: left;">
<span style="font-weight: normal;"><u>Sending cookies to make other web services calls:</u></span></h3>
</div>
<div>
Now you can send these cookies along with the get requests to make other web services calls.</div>
<div>
Following snippet shows how to do it.</div>
<div>
<br /></div>
<div>
<blockquote class="tr_bq">
<i>HttpClient httpclient = new DefaultHttpClient();</i><i>HttpGet httpget = new HttpGet(url);</i><i>HttpResponse response;</i><i></i><i>COOKIE_VALUE=PreferenceConnector.readString(activity, PreferenceConnector.COOKIE_SESSION_ID, null); </i><i><b>//I had stored the cookies in Prefrences and was retrieving the cookie session ID from there. </b></i></blockquote>
<blockquote class="tr_bq">
<i>httpget.setHeader("Cookie", "JSESSIONID="+COOKIE_VALUE); <b>//Here i am sending the Cookie session ID </b></i><i></i><i>try {</i><i><span class="Apple-tab-span" style="white-space: pre;"> </span>response = httpclient.execute(httpget);</i><i><span class="Apple-tab-span" style="white-space: pre;"> </span>HttpEntity entity = response.getEntity();</i><i><span class="Apple-tab-span" style="white-space: pre;"> </span>if (entity != null) {</i><i><span class="Apple-tab-span" style="white-space: pre;"> </span>InputStream instream = entity.getContent();</i><i><span class="Apple-tab-span" style="white-space: pre;"> </span>RESULT_FINAL = convertStreamToString(instream);</i><i><span class="Apple-tab-span" style="white-space: pre;"> </span>instream.close();</i><i><span class="Apple-tab-span" style="white-space: pre;"> </span>}</i><i><span class="Apple-tab-span" style="white-space: pre;"> </span>} catch (ClientProtocolException e) {</i><i><span class="Apple-tab-span" style="white-space: pre;"> </span>e.printStackTrace();</i><i><span class="Apple-tab-span" style="white-space: pre;"> </span>} catch (IOException e) {</i><i><span class="Apple-tab-span" style="white-space: pre;"> </span>e.printStackTrace();</i><i><span class="Apple-tab-span" style="white-space: pre;"> </span>}</i></blockquote>
<br />
<br />
Cheers...... </div>
</div>karanhttp://www.blogger.com/profile/16866753914754917995noreply@blogger.com2tag:blogger.com,1999:blog-4771698670549567193.post-16216650038210109052011-12-04T22:04:00.000-08:002011-12-04T22:04:46.553-08:00Android Saved Instance State Bundle<div dir="ltr" style="text-align: left;" trbidi="on">Hi,<br />
Normally when the device is tilted(i.e. screen orientation is changed) the activity is restarted.Whole activity is destroyed and recreated.So when activity is destroyed ,we need to save the state of activity.This can be done using the<b> onSaveInstanceState</b> and <b>on</b><b>RestoreInstanceState.</b><br />
<div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjBpqONihWYR423tciEW6Sv36OvjdVK8hliAWgDzCqXG-sELP75hXjpBMeE4tHYM6t3INvIdXA00wCC1gVwrHV4zx9MhByQ9oxr2XH4ZHUPbO9Rscjo2O-n7is1AzqP4RZ3s9goMHNUvuvH/s1600/device-2011-12-05-105802.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjBpqONihWYR423tciEW6Sv36OvjdVK8hliAWgDzCqXG-sELP75hXjpBMeE4tHYM6t3INvIdXA00wCC1gVwrHV4zx9MhByQ9oxr2XH4ZHUPbO9Rscjo2O-n7is1AzqP4RZ3s9goMHNUvuvH/s320/device-2011-12-05-105802.png" width="212" /></a></div><div class="separator" style="clear: both; text-align: left;"><br />
</div><div class="separator" style="clear: both; text-align: left;"></div><div class="separator" style="clear: both;"><i><br />
</i></div><div class="separator" style="clear: both;"><i>public class SavedInstanceActivity extends Activity {</i></div><div class="separator" style="clear: both;"><i><span class="Apple-tab-span" style="white-space: pre;"> </span>TextView main_text;</i></div><div class="separator" style="clear: both;"><i><span class="Apple-tab-span" style="white-space: pre;"> </span>Button update_button;</i></div><div class="separator" style="clear: both;"><i> @Override</i></div><div class="separator" style="clear: both;"><i> public void onCreate(Bundle savedInstanceState) {</i></div><div class="separator" style="clear: both;"><i> super.onCreate(savedInstanceState);</i></div><div class="separator" style="clear: both;"><i> setContentView(R.layout.main);</i></div><div class="separator" style="clear: both;"><i> main_text=(TextView)findViewById(R.id.main_text);</i></div><div class="separator" style="clear: both;"><i> update_button=(Button)findViewById(R.id.press_saved);</i></div><div class="separator" style="clear: both;"><i> update_button.setOnClickListener(new OnClickListener() {</i></div><div class="separator" style="clear: both;"><i><span class="Apple-tab-span" style="white-space: pre;"> </span>@Override</i></div><div class="separator" style="clear: both;"><i><span class="Apple-tab-span" style="white-space: pre;"> </span>public void onClick(View v) {</i></div><div class="separator" style="clear: both;"><i><span class="Apple-tab-span" style="white-space: pre;"> </span>main_text.setText("SAVED INSTANCE STATE");</i></div><div class="separator" style="clear: both;"><i><span class="Apple-tab-span" style="white-space: pre;"> </span>}</i></div><div class="separator" style="clear: both;"><i><span class="Apple-tab-span" style="white-space: pre;"> </span>});</i></div><div class="separator" style="clear: both;"><i> }</i></div><div class="separator" style="clear: both;"><i> </i></div><div class="separator" style="clear: both;"><i> @Override</i></div><div class="separator" style="clear: both;"><i> protected void onSaveInstanceState(Bundle outState) {</i></div><div class="separator" style="clear: both;"><i> <span class="Apple-tab-span" style="white-space: pre;"> </span>super.onSaveInstanceState(outState);</i></div><div class="separator" style="clear: both;"><i> <span class="Apple-tab-span" style="white-space: pre;"> </span>outState.putString("SAVED", main_text.getText().toString());</i></div><div class="separator" style="clear: both;"><i> }</i></div><div class="separator" style="clear: both;"><i> </i></div><div class="separator" style="clear: both;"><i> @Override</i></div><div class="separator" style="clear: both;"><i> protected void onRestoreInstanceState(Bundle savedInstanceState) {</i></div><div class="separator" style="clear: both;"><i> <span class="Apple-tab-span" style="white-space: pre;"> </span>super.onRestoreInstanceState(savedInstanceState);</i></div><div class="separator" style="clear: both;"><i> <span class="Apple-tab-span" style="white-space: pre;"> </span>main_text.setText(savedInstanceState.getString("SAVED"));</i></div><div class="separator" style="clear: both;"><i> }</i></div><div class="separator" style="clear: both;"><i>}</i></div><div class="separator" style="clear: both;"><i><br />
</i></div><div class="separator" style="clear: both;"><i>Like as you see in the above example if we had not used the onSavedInstanceState() then whole activty would have been recreated and textview would have been blank again.</i></div><div class="separator" style="clear: both;"><i><br />
</i></div><div class="separator" style="clear: both;"><i>Click to download the full source code: <a href="https://sites.google.com/site/quickandroidblog/download-stuff">SOURCE CODE</a></i></div></div>karanhttp://www.blogger.com/profile/16866753914754917995noreply@blogger.com0tag:blogger.com,1999:blog-4771698670549567193.post-56280878389791397332011-11-24T21:02:00.000-08:002011-11-24T21:02:55.422-08:00Steve Wozniak(Apple Co-Founder) with his Galaxy Nexus and a ice cream sandwich T-shirt to go with it.<div dir="ltr" style="text-align: left;" trbidi="on">Heck of a Strange thing happened in Google's campus in Mount View when Steve Wozniak the co founder of apple became the first person in US to get the Samsung Galaxy Nexus.<br />
<br />
This all happened when "Woz" tweeted that he was looking for the Samsung galaxy nexus ,but unfortunately it was not available in US.So "Woz" was invited by the Google's campus in mount view where he was presented the Brand new Samsung galaxy Nexus and a ice cream sandwich T-shirt.<br />
<br />
<img alt="gsmarena 001 Steve Wozniak gets a Galaxy Nexus from Google, and an Ice Cream Sandwich T Shirt to go with it" src="http://st.gsmarena.com/pics/11/11/woz-nexus/gsmarena_001.jpg" /><br />
<br />
<br />
<br />
<img src="http://9to5google.files.wordpress.com/2011/11/11-1.jpeg?w=657&h=492" /><br />
;-)....<br />
<br />
<span class="Apple-style-span" style="color: orange;"><a href="https://plus.google.com/107708120842840792570/posts/im9gtMiMdue">SOURCE</a></span></div>karanhttp://www.blogger.com/profile/16866753914754917995noreply@blogger.com0tag:blogger.com,1999:blog-4771698670549567193.post-34074095982203681762011-11-02T05:14:00.000-07:002011-11-02T05:31:43.311-07:00Android Views Animation Tutorial<div dir="ltr" style="text-align: left;" trbidi="on"><span class="Apple-style-span" style="font-family: verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif; font-size: x-small;"></span><br />
<div style="margin-bottom: .0001pt; margin: 0in;"><span class="Apple-style-span" style="font-family: Verdana, sans-serif;"></span><br />
<div style="margin-bottom: .0001pt; margin: 0in;"><span class="Apple-style-span" style="font-family: Verdana, sans-serif;"></span><br />
<div class="MsoNormal"><span class="Apple-style-span" style="font-family: Verdana, sans-serif;">In this section i will try to explain the 4 types of animation on views which can overall change the impression of the views.<br />
<br />
The attached program demonstrates the available types of animations which are:<br />
Alpha - Causes a fading in or fading out effect.<br />
Scale - The view's size smoothly changes.<br />
Rotate - The view rotates.<br />
Translate - The view moves to a different position.</span></div><span class="Apple-style-span" style="font-family: Verdana, sans-serif;"> </span><br />
<div class="MsoNormal"><span class="Apple-style-span" style="font-family: Verdana, sans-serif;"><br />
</span></div><div class="MsoNormal"><span class="Apple-style-span" style="font-family: Verdana, sans-serif;">You can individually use these animations or you can also combine these animations into one. Combining of animations is done with help of animation set.First i will explain how to use these animations individually.</span></div><div class="MsoNormal"><span class="Apple-style-span" style="font-family: Verdana, sans-serif;"><br />
</span></div><div class="MsoNormal"><span class="Apple-style-span" style="font-family: Verdana, sans-serif;">ALPHA ANIMATION: Alpha animation is used in fading in and fading out of views. </span></div><div class="MsoNormal"><span class="Apple-style-span" style="font-family: Verdana, sans-serif;"><br />
</span></div><div class="MsoNormal"><span class="Apple-style-span" style="font-family: Verdana, sans-serif;"><alpha </span></div><div class="MsoNormal"><span class="Apple-style-span" style="font-family: Verdana, sans-serif;">android:fromAlpha="0.0" </span></div><div class="MsoNormal"><span class="Apple-style-span" style="font-family: Verdana, sans-serif;">android:toAlpha="0.9"</span></div><div class="MsoNormal"><span class="Apple-style-span" style="font-family: Verdana, sans-serif;">android:duration="3000" /></span></div><div class="MsoNormal"><span class="Apple-style-span" style="font-family: Verdana, sans-serif;"><br />
</span></div><div class="MsoNormal"><span class="Apple-style-span" style="font-family: Verdana, sans-serif;">SCALE ANIMATION: Scale animation is used for changing the size of view.</span></div><div class="MsoNormal"><span class="Apple-style-span" style="font-family: Verdana, sans-serif;"><br />
</span></div><div class="MsoNormal"><span class="Apple-style-span" style="font-family: Verdana, sans-serif;"><br />
</span></div><div class="MsoNormal"><span class="Apple-style-span" style="font-family: Verdana, sans-serif;"><scale </span></div><div class="MsoNormal"><span class="Apple-style-span" style="font-family: Verdana, sans-serif;">android:fromXScale="1.0" </span></div><div class="MsoNormal"><span class="Apple-style-span" style="font-family: Verdana, sans-serif;">android:fromYScale="1.0"</span></div><div class="MsoNormal"><span class="Apple-style-span" style="font-family: Verdana, sans-serif;">android:toXScale="2.0" </span></div><div class="MsoNormal"><span class="Apple-style-span" style="font-family: Verdana, sans-serif;">android:toYScale="2.0" </span></div><div class="MsoNormal"><span class="Apple-style-span" style="font-family: Verdana, sans-serif;">android:duration="3000" /></span></div><div class="MsoNormal"><span class="Apple-style-span" style="font-family: Verdana, sans-serif;"><br />
</span></div><div class="MsoNormal"><span class="Apple-style-span" style="font-family: Verdana, sans-serif;">ROTATE ANIMATION: Rotate animation is used for rotating a view around a particular axis.</span></div><div class="MsoNormal"><span class="Apple-style-span" style="font-family: Verdana, sans-serif;"><br />
</span></div><div class="MsoNormal"><span class="Apple-style-span" style="font-family: Verdana, sans-serif;"><br />
</span></div><div class="MsoNormal"><span class="Apple-style-span" style="font-family: Verdana, sans-serif;"><rotate </span></div><div class="MsoNormal"><span class="Apple-style-span" style="font-family: Verdana, sans-serif;">android:fromDegrees="359" </span></div><div class="MsoNormal"><span class="Apple-style-span" style="font-family: Verdana, sans-serif;">android:toDegrees="0"</span></div><div class="MsoNormal"><span class="Apple-style-span" style="font-family: Verdana, sans-serif;">android:duration="3000" </span></div><div class="MsoNormal"><span class="Apple-style-span" style="font-family: Verdana, sans-serif;">android:pivotX="50%" </span></div><div class="MsoNormal"><span class="Apple-style-span" style="font-family: Verdana, sans-serif;">android:pivotY="50%" /></span></div><div class="MsoNormal"><span class="Apple-style-span" style="font-family: Verdana, sans-serif;"><br />
</span></div><div class="MsoNormal"><span class="Apple-style-span" style="font-family: Verdana, sans-serif;">TRANSLATE ANIMATION: Translate animation is used to change the position of a particular view.</span></div><div class="MsoNormal"><span class="Apple-style-span" style="font-family: Verdana, sans-serif;"><br />
</span></div><div class="MsoNormal"><span class="Apple-style-span" style="font-family: Verdana, sans-serif;"><translate </span></div><div class="MsoNormal"><span class="Apple-style-span" style="font-family: Verdana, sans-serif;">android:fromXDelta="300%" </span></div><div class="MsoNormal"><span class="Apple-style-span" style="font-family: Verdana, sans-serif;">android:toXDelta="0%" </span></div><div class="MsoNormal"><span class="Apple-style-span" style="font-family: Verdana, sans-serif;">android:fromYDelta="0%"</span></div><div class="MsoNormal"><span class="Apple-style-span" style="font-family: Verdana, sans-serif;">android:toYDelta="0%" </span></div><div class="MsoNormal"><span class="Apple-style-span" style="font-family: Verdana, sans-serif;">android:duration="3000" </span></div><div class="MsoNormal"><span class="Apple-style-span" style="font-family: Verdana, sans-serif;">android:zAdjustment="bottom" /></span></div><div class="MsoNormal"><span class="Apple-style-span" style="font-family: Verdana, sans-serif;"><br />
</span></div><div class="MsoNormal"><span class="Apple-style-span" style="font-family: Verdana, sans-serif;">You need to keep these XML files in anim folder in res folder.</span><br />
<span class="Apple-style-span" style="font-family: Verdana, sans-serif;">And finally to use this application in your Activity you need to use the following piece of code:</span><br />
<span class="Apple-style-span" style="font-family: Verdana, sans-serif;"><br />
</span><br />
<span class="Apple-style-span" style="font-family: Verdana, sans-serif;"><br />
</span><br />
<span class="Apple-style-span" style="font-family: Verdana, sans-serif;">final Animation anim=AnimationUtils.loadAnimation(getApplicationContext(), R.anim.animation);// where animation is the name of the anim file which contains any of the above mentioned animation.</span><br />
<span class="Apple-style-span" style="font-family: Verdana, sans-serif;"><br />
</span><br />
<span class="Apple-style-span" style="font-family: Verdana, sans-serif;"><br />
</span><br />
<span class="Apple-style-span" style="font-family: Verdana, sans-serif;">Download free source code <a href="https://sites.google.com/site/quickandroidblog/download-stuff">here</a>.</span></div><div class="MsoNormal"><span class="Apple-style-span" style="font-family: Verdana, sans-serif;"><a href="https://sites.google.com/site/quickandroidblog/download-stuff">https://sites.google.com/site/quickandroidblog/download-stuff</a></span></div><div class="MsoNormal"><span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: x-small;"><br />
</span></div></div></div></div>karanhttp://www.blogger.com/profile/16866753914754917995noreply@blogger.com0tag:blogger.com,1999:blog-4771698670549567193.post-43818553482207443512011-11-01T21:36:00.000-07:002011-11-01T21:36:26.478-07:00(Nokia choosing WP7 over Android)<div dir="ltr" style="text-align: left;" trbidi="on"> <span class="Apple-style-span" style="background-color: white; font-family: arial; font-size: 13px; line-height: 1px;"><img height="200" id="il_fi" src="http://www.thesearethedroids.com/wp-content/uploads/2010/02/AndroidvsWP7.jpg" style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; padding-bottom: 8px; padding-left: 8px; padding-right: 8px; padding-top: 8px;" width="168" /></span> As my title says i am going to talk about the thing which is in every one's mind i.e. why Nokia chose WP7 over Android although knowing the success of Android in the mobile market.So i m going to compare some of the features of Android and WP7.<div><br />
<div><span class="Apple-style-span" style="background-color: #fcfcfc; color: #333333; font-family: Tahoma, 'Trebuchet MS', 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 13px; line-height: 16px;"> </span>During the Q&A during Nokia's Capital Market Day, Elop said that Android did not allow them to differentiate enough. This seems weird, since Android is considerably more open and free than Windows Phone 7. However, I think what he meant is that Nokia would not have a say in the actual development direction of Android. And this is where Microsoft comes in.</div></div><br />
Nokia knew that it was too late to join the Android party—Android had become a crowded space. Creating a standout Android phone would not only be difficult given the experience of other companies but because it could get lost in the maul of Android phones available. Even Android phone makers would admit that it's hard to stay at the top of the Android power rankings—hell, doesn't it seem like the "best Android phone" only has a lifespan of a month before it gets dethroned? Nokia saw Google eventually getting all the profits as hardware gets commoditized.<br />
<br />
And maybe Windows Phone 7 will have those same hardware "issues" as Android but Nokia felt it could differentiate its handsets by dropping in Nokia specific features like their Navteq location-based services. That, they felt, would give them a leg up.<br />
<br />
But none of those arguments seem to matter as much as this one: Nokia didn't want to lose the smartphone wars without giving Google and Apple an honest fight. Choosing Android would mean that they'd become a bit player in a two-horse race (Apple vs Google). Choosing Windows Phone means they're hoping and fighting to add another horse. It might be too late and maybe Nokia had to sell their soul, who knows, but I respect any one who goes down swinging. </div>karanhttp://www.blogger.com/profile/16866753914754917995noreply@blogger.com0tag:blogger.com,1999:blog-4771698670549567193.post-10929280602918536802011-10-31T22:50:00.000-07:002011-11-01T01:40:20.675-07:00Lego robot beats human world record for solving the Rubik’s Cube with Android<div dir="ltr" style="text-align: left;" trbidi="on"><span class="Apple-style-span" style="color: #383838; font-family: Arial, Helvetica, sans-serif;"><span class="Apple-style-span" style="line-height: 16px;"><br />
</span></span><br />
<span class="Apple-style-span" style="background-color: white; color: #383838; font-family: Arial, Helvetica, 'Nimbus Sans L', sans-serif; font-size: 12px; line-height: 16px;"></span><br />
<div><span class="Apple-style-span" style="background-color: white; color: #383838; font-family: Arial, Helvetica, 'Nimbus Sans L', sans-serif; font-size: 12px; line-height: 16px;"><span class="Apple-style-span" style="color: #4b4c4f; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 20px;"></span></span><br />
<div style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: none; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 1.5em; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: none;"><span class="Apple-style-span" style="background-color: white; color: #383838; font-family: Arial, Helvetica, 'Nimbus Sans L', sans-serif; font-size: 12px; line-height: 16px;"><a href="http://singularityhub.com/wp-content/uploads/2011/10/cubestormer.jpg" style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: none; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #108195; font-weight: bold; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: none;"><img alt="cubestormer" class="alignleft size-full wp-image-42033" height="220" src="http://singularityhub.com/wp-content/uploads/2011/10/cubestormer.jpg" style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: none; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-color: initial; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-style: initial; border-style: initial; border-top-width: 0px; float: left; margin-bottom: 5px; margin-left: 0px; margin-right: 7px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: none;" title="cubestormer" width="300" /></a><i><br />
</i></span></div><div style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: none; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 1.5em; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: none;"><span class="Apple-style-span" style="color: #383838; font-family: Arial, Helvetica, 'Nimbus Sans L', sans-serif;"><span class="Apple-style-span" style="font-size: 12px; line-height: 16px;"></span></span><br />
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span class="Apple-style-span" style="color: #383838; font-family: Arial, Helvetica, 'Nimbus Sans L', sans-serif;"><span style="color: black; font-family: "Arial","sans-serif"; font-size: 10.0pt;">Solving the Rubik’s Cube puzzle popularized in the 1980s is an exercise in futility for many of us, but to a world class “speedcuber” it’s a challenge of mere moments. The currentofficial human record for the Rubik’s cube 3×3 puzzle is just 5.66 seconds. I know a robot that did it in 5.35 seconds. Take, that humanity! (Wait a second…) The puzzle solving bot is called CubeStomer II and you can watch its record breaking run in the video below. Made from Lego, powered by an Android smart phone, and created by two mad geniuses, CubeStormer II has a pedigree that sounds like it came from a children’s cartoon. That’s fitting, because I think the Lego NXT robot is a sure sign that humanity has gone meta. Why waste time on solving trivial puzzles when you can build a robot to waste time solving trivial puzzles for you instead?<o:p></o:p></span></span></div><span class="Apple-style-span" style="color: #383838; font-family: Arial, Helvetica, 'Nimbus Sans L', sans-serif;"> <div class="MsoNormal"><span style="color: black; font-family: "Arial","sans-serif"; font-size: 10.0pt; line-height: 115%;">CubeStormer II is controlled by four Lego NXT ‘bricks’ that communicate via Bluetooth with a Samsung Galaxy SII smart phone. A special app on the phone takes a picture of the cube, solves the puzzle virtually, and then relays the solution to the Lego robot. From click to finish the whole process takes just seconds. You have to see it to believe it:</span></div></span></div><div style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: none; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 1.5em; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: none;"><span class="Apple-style-span" style="background-color: white; color: #383838; font-family: Arial, Helvetica, 'Nimbus Sans L', sans-serif; font-size: 12px; line-height: 16px;"><b><u>Source:</u> </b></span><a href="http://www.helloandroid.com/content/lego-robot-beats-human-world-record-solving-rubik%E2%80%99s-cube-android">http://www.helloandroid.com/content/lego-robot-beats-human-world-record-solving-rubik%E2%80%99s-cube-android</a></div><span class="Apple-style-span" style="background-color: white; color: #383838; font-family: Arial, Helvetica, 'Nimbus Sans L', sans-serif; font-size: 12px; line-height: 16px;"> </span></div></div>karanhttp://www.blogger.com/profile/16866753914754917995noreply@blogger.com0tag:blogger.com,1999:blog-4771698670549567193.post-8386298812852509242011-10-31T03:51:00.000-07:002011-10-31T03:55:11.983-07:00New Rejoice for Mob.Application Developer.<div dir="ltr" style="text-align: left;" trbidi="on">Hi friends yet another IDE is out for mobile application developers(I-Phone, Blackberry,Android)<br />
Adobe Flash Builder 4.5<br />
<div class="articleAuthorDisplay authordisplay"><div class="LayoutRow"><img alt="Adobe logo" class="ImageShadow LayoutImage" src="http://wwwimages.adobe.com/www.adobe.com/content/dam/Adobe/en/devnet/authors/bio/a/adobe_logo_bio.jpg.adimg.mw.160.png" title="" /> </div></div>Now it seems as if the java developers have some competition.<br />
Language used to write the application markup language that Flash Builder uses to design application interfaces.<br />
When you create a Flex mobile project, Flash Builder generates the following files for the project (where <i>ProjectName</i> is the name you give your project in the first step of the wizard): <br />
<ul><li><b>ProjectName.mxml:</b> This is the application file for the project. Typically, you do not add content to the default application file directly.</li>
<li><b>ProjectNameHomeView.mxml:</b> This file represents the initial screen (or <i>view</i>) of the project. Flash Builder places the file in a package called "views."</li>
</ul>Now lets see if it brings the boom for the Flex developers...or bane for the Android java developers.<br />
<br />
For complete and full documentation for Adobe flash builder check out <a href="http://www.adobe.com/devnet/flash-builder/articles/hello-world.html">this </a>link. <br />
<a href="http://www.adobe.com/devnet/flash-builder/articles/hello-world.html">http://www.adobe.com/devnet/flash-builder/articles/hello-world.html</a><br />
<br />
<br />
<br />
</div>karanhttp://www.blogger.com/profile/16866753914754917995noreply@blogger.com0tag:blogger.com,1999:blog-4771698670549567193.post-72656973335193412512011-10-20T21:21:00.000-07:002011-10-20T21:36:32.104-07:00Apple's Siri vs. Android's Voice Actions: Feature Showdown<div dir="ltr" style="text-align: left;" trbidi="on"><span class="Apple-style-span" style="background-color: white; font-size: 15px;"><span class="Apple-style-span" style="color: white; font-family: proxima-nova-extra-condensed, 'Helvetica Neue Condensed Bold', 'Arial Narrow', Helvetica, Arial, sans-serif;"><span class="Apple-style-span" style="font-weight: 600; text-transform: uppercase;"><br />
</span></span></span><br />
<br />
<figure style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #2964bf; display: block; font-family: inherit; font-size: inherit; font-style: inherit; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; position: relative; text-align: left; vertical-align: baseline;"><img alt="Look out, Google: Siri could take Apple into search" height="150" src="http://i.i.com.com/cnwk.1d/i/tim/2011/10/19/siri_460x329_300x214.jpg" style="border-bottom-width: 0px; border-color: initial; border-color: initial; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-style: initial; border-style: initial; border-top-width: 0px; display: block; font-family: inherit; font-size: inherit; font-style: inherit; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left; vertical-align: baseline;" width="200" /></figure><span class="Apple-style-span" style="font-family: arial, verdana, helvetica, sans-serif;"><div id="articleText" style="list-style-type: none; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"><div class="articleBodyContent" style="list-style-type: none; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"><div style="font-size: 14px; line-height: 20px; list-style-type: none; margin-bottom: 10px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">Apple's new voice input-based digital assistant, <a href="http://www.pcworld.com/article/242003/hack_brings_siri_voice_control_to_older_iphone_4_sort_of.html" style="clear: none; color: #1c609f; list-style-type: none; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: none;">Siri for the iPhone 4S</a> pits the iPhone against <a href="http://www.google.com/mobile/voice-actions/" style="clear: none; color: #1c609f; list-style-type: none; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: none;">Android's Voice Actions</a>, a popular feature for Android phones running Android 2.2 (Froyo) or higher. Both Siri and Voice Actions promise to make your life easier by letting you speak--rather than type--your messages, web searches, notes, and navigation.</div><div style="font-size: 14px; line-height: 20px; list-style-type: none; margin-bottom: 10px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">In November, Google also plans to update Android's voice input engine with <a href="http://www.pcworld.com/article/242132/ice_cream_sandwich_the_most_delicious_android_yet.html" style="clear: none; color: #1c609f; list-style-type: none; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: none;">Android 4.0, or Ice Cream Sandwich</a> on the new <a href="http://www.pcworld.com/article/242126/samsung_galaxy_nexus_with_android_40_its_finally_here.html" style="clear: none; color: #1c609f; list-style-type: none; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: none;">Samsung Galaxy Nexus</a>. ICS will include a new hands free voice-activation feature, as well as an overhauled voice input engine.</div></div></div></span><span class="Apple-style-span" style="font-family: arial, verdana, helvetica, sans-serif; font-size: 14px; line-height: 20px;"><b>Read More: </b></span><span class="Apple-style-span" style="font-family: arial, verdana, helvetica, sans-serif; line-height: 20px;"><span class="Apple-style-span" style="font-size: x-small;"><a href="http://www.pcworld.com/article/242198/apples_siri_vs_androids_voice_actions_feature_showdown.html#tk.hp_fv"><b>http://www.pcworld.com/article/242198/apples_siri_vs_androids_voice_actions_feature_showdown.html#tk.hp_fv</b></a></span></span><span class="Apple-style-span" style="font-family: arial, verdana, helvetica, sans-serif;"><div style="list-style-type: none; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"><div class="articleBodyContent" style="list-style-type: none; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"><div style="font-size: 14px; line-height: 20px; list-style-type: none; margin-bottom: 10px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"><b><br />
</b></div></div></div></span></div>karanhttp://www.blogger.com/profile/16866753914754917995noreply@blogger.com0tag:blogger.com,1999:blog-4771698670549567193.post-83707537037515032872011-10-18T22:31:00.000-07:002011-10-18T22:31:08.680-07:00Innovation in Android 4.0<div dir="ltr" style="text-align: left;" trbidi="on"><br />
<h3 id="innovation" style="color: #172861;">Innovation</h3>Android is continously driving innovation forward, pushing the boundaries of communication and sharing with new capabilities and interactions.<br />
<div style="margin-bottom: 0.75em; margin-top: 1em;"><strong>Android Beam for NFC-based sharing</strong></div>Android Beam is an innovative, convenient feature for sharing across two NFC-enabled devices, It lets people instantly exchange favorite apps, contacts, music, videos — almost anything. It’s incredibly simple and convenient to use — there’s no menu to open, application to launch, or pairing needed. Just touch one Android-powered phone to another, then tap to send.<br />
For sharing apps, Android Beam pushes a link to the app's details page in Android Market. On the other device, the Market app launches and loads the details page, for easy downloading of the app. Individual apps can build on Android Beam to add other types of interactions, such as passing game scores, initiating a multiplayer game or chat, and more.<br />
<div style="padding-top: 0em;"> <div style="float: right; margin: 0.5em 1em 0pt; padding-bottom: 0pt; width: 160px;"> <a href="http://developer.android.com/sdk/images/4.0/face-unlock-lg.png" target="_android"> <img alt="" height="240" src="http://developer.android.com/sdk/images/4.0/face-unlock.png" style="border: 1px solid rgb(221, 221, 221);" width="144" /></a> <div style="font-size: 0.9em; margin-top: 0pt; padding-bottom: 1em; padding-left: 1em; padding-top: 0pt;">Face recognition lets you unlock your phone with your face.</div></div></div><div style="margin-bottom: 0.75em; margin-top: 1em;"><strong>Face Unlock</strong></div>Android 4.0 introduces a completely new approach to securing a device, making it even more personal — Face Unlock is a new screen-lock option that lets users unlock their devices with their faces. It takes advantage of state-of-the-art facial recognition technology to register a face and to recognize it later when unlocking the device. Users just hold their devices in front of their faces to unlock, or use a backup PIN or pattern. <br />
<div style="margin-bottom: 0.75em; margin-top: 1em;"><strong>Wi-Fi Direct and Bluetooth HDP</strong></div>Support for <strong>Wi-Fi Direct</strong> lets users connect directly to nearby peer devices over Wi-Fi, for more reliable, higher-speed communication. No internet connection or tethering is needed. Through third-party apps, users can connect to compatible devices to take advantage of new features such as instant sharing of files, photos, or other media; streaming video or audio from another device; or connecting to compatible printers or other devices.<br />
Android 4.0 also introduces built-in support for connecting to <strong>Bluetooth Health Device Profile (HDP)</strong> devices. With support from third-party apps, users can connect to wireless medical devices and sensors in hospitals, fitness centers, homes, and elsewhere. In addition, for connecting to higher quality Bluetooth audio devices, Android 4.0 adds support for Bluetooth Hands Free Profile (HFP) 1.6.<br />
<br />
<b>ReadMore: </b><a href="http://developer.android.com/sdk/android-4.0-highlights.html">http://developer.android.com/sdk/android-4.0-highlights.html</a><br />
</div>karanhttp://www.blogger.com/profile/16866753914754917995noreply@blogger.com0tag:blogger.com,1999:blog-4771698670549567193.post-19144591859791023012011-10-18T21:18:00.000-07:002011-10-18T21:18:48.836-07:00Samsung's Galaxy Nexus gets official: Android 4.0, 4.65-inch HD Super AMOLED display (video)<div dir="ltr" style="text-align: left;" trbidi="on">Wait no more. Google and Samsung have just made the long-awaited Galaxy Nexus (not longer the <a href="http://www.engadget.com/tag/NexusPrime/">Nexus Prime</a>, as we'd once heard) official here in Hong Kong, and the specifications are downright drool-worthy. Those with bantam hands need not apply, as this 4.65-inch behemoth is bound to bring back talk of <a href="http://www.engadget.com/2004/06/01/from-sidetalkin-to-um-rear-talkin-modding-your-n-gage/">Sidetalkin</a>'. Naturally, <a href="http://www.engadget.com/tag/IceCreamSandwich/">Ice Cream Sandwich</a> is onboard, with Google <i>finally</i> revealing the version number as 4.0. Other specs include an HD Super AMOLED display (1,280 x 720), a 1.2GHz dual-core processor, 5 megapixel rear camera (with LED flash), a 1.3 megapixel front-facing cam, 1080p video recording and playback, a newfangled panorama mode, a 3.5mm headphone jack and Bluetooth 3.0. You'll also find USB 2.0, 802.11a/b/g/n WiFi, an embedded NFC module, accelerometer, compass, gyro, proximity sensor and even a barometer -- yeah, a <a href="http://www.engadget.com/2011/06/22/sony-ericsson-introduces-the-xperia-ray-and-xperia-active-for-th/"><i>barometer</i></a>. Finishing things out, there's 1GB of RAM, 16 or 32GB of internal storage space and a 1,750mAh battery. As for radios? There's an HSPA+ model on tap, while an LTE version will "be available depending on region." There's nary a mention of carrier in the press release we're holding, but based on earlier leaks, a 4G build for Verizon Wireless seems a lock.<br />
<br />
<br />
<div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiXdEpAaiWEmd4SKGEsHWri5Uu0ErtSNalQbFpA7MY31AHWPdGMupkUjLa7v7MpT91jtELdPvfDE2hMol7UpakhXo6TuqQzhE0l09z8YdLtnniDMRLTnzo3pSEWGkBUDV1w1Vq45YegRmEB/s1600/galaxy-nexus-product-image-1.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="266" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiXdEpAaiWEmd4SKGEsHWri5Uu0ErtSNalQbFpA7MY31AHWPdGMupkUjLa7v7MpT91jtELdPvfDE2hMol7UpakhXo6TuqQzhE0l09z8YdLtnniDMRLTnzo3pSEWGkBUDV1w1Vq45YegRmEB/s320/galaxy-nexus-product-image-1.jpg" width="320" /></a></div><br />
<b>Read More:</b><a href="http://news.cnet.com/8301-1035_3-20122278-94/google-samsung-unveil-ice-cream-sandwich-powered-galaxy-nexus/?tag=mncol;topStories">http://www.engadget.com/2011/10/18/samsungs-galaxy-nexus-gets-official-android-4-0-4-65-inch-hd/</a></div>karanhttp://www.blogger.com/profile/16866753914754917995noreply@blogger.com1tag:blogger.com,1999:blog-4771698670549567193.post-30251353493989221572011-10-18T21:12:00.001-07:002011-10-18T21:12:44.051-07:00RIM announces BBX - the new platform for phones and tablets<div dir="ltr" style="text-align: left;" trbidi="on"><span id="intelliTxt">Quite expectedly RIM has just announced its new platform called BBX. BBX combines "the best of BlackBerry and the best of QNX", as RIM puts it. The new BBX-OS based on this BBX platform will be for both smartphones and tablets, and will offer support for apps developed for the previous BlackBerry OS 6 and OS 7, but also Adobe Air and Flash apps, HTML 5 or even for Android apps thanks to the BlackBerry Runtime for Android software module.</span><br />
<span id="intelliTxt">For more Information check the link below: </span><br />
<span id="intelliTxt"><br />
</span><br />
<span id="intelliTxt"><b>Source: </b><a href="http://www.gsmarena.com/rim_announces_bbx__the_new_blackberry_os_for_phones_and_tablets-news-3281.php">http://www.gsmarena.com/rim_announces_bbx__the_new_blackberry_os_for_phones_and_tablets-news-3281.php</a></span></div>karanhttp://www.blogger.com/profile/16866753914754917995noreply@blogger.com0tag:blogger.com,1999:blog-4771698670549567193.post-8734933257191793232011-10-16T21:09:00.000-07:002011-10-16T21:09:49.723-07:00Tech World Mourns Loss of Dennis Ritchie, Father of C and Unix<div dir="ltr" style="text-align: left;" trbidi="on"><br />
Dennis Ritchie, the computer scientist responsible for C and Unix, has passed away at age 70. His career leaves behind an operating system and programming language that form the basis of some of the world's most widely used technologies. "You've got all these operating systems, languages and programs all building on Dennis' work," Pike concluded. "It's hard to think of a bigger legacy."<br />
<br />
<b>Source:</b> <a href="http://www.technewsworld.com/story/Tech-World-Mourns-Loss-of-Dennis-Ritchie-Father-of-C-and-Unix-73496.html">http://www.technewsworld.com/story/Tech-World-Mourns-Loss-of-Dennis-Ritchie-Father-of-C-and-Unix-73496.html</a></div>karanhttp://www.blogger.com/profile/16866753914754917995noreply@blogger.com0tag:blogger.com,1999:blog-4771698670549567193.post-17445109449696255902011-10-10T21:36:00.000-07:002011-10-10T21:36:02.183-07:00funniest deprecation in the Java API<div dir="ltr" style="text-align: left;" trbidi="on">Hi,<br />
All the Java guys might be aware the term Depricated in java or android programming. <br />
From <a href="http://download.oracle.com/javase/1,5,0/docs/api/java/lang/Deprecated.html" rel="nofollow">the definition of deprecated</a>:<br />
<blockquote> <em>A program element annotated @Deprecated is one that programmers are discouraged from using, typically because it is dangerous, or because a better alternative exists.</em><br />
</blockquote>The <strong>funniest deprecation</strong> in the Java API, is imo, the <a href="http://java.sun.com/j2se/1.5.0/docs/api/java/awt/FontMetrics.html#getMaxDecent%28%29" rel="nofollow"><code>FontMetrics.getMaxDecent</code></a>.<br />
Reason for deprecation: Spelling error.<br />
<blockquote> <em>Deprecated. As of JDK version 1.1.1, replaced by getMaxDescent().</em></blockquote><br />
<br />
</div>karanhttp://www.blogger.com/profile/16866753914754917995noreply@blogger.com0tag:blogger.com,1999:blog-4771698670549567193.post-21352063641751851592011-10-10T21:18:00.000-07:002011-10-20T05:01:12.271-07:00Selecting ImageFrom Gallery<div dir="ltr" style="text-align: left;" trbidi="on">Hi ,<br />
In this post i am going to tell you about on how to pick a image from gallery and use that image in your application.<br />
<br />
<u><b>Step1: </b></u><br />
<i>Intent photo_pick=new Intent(Intent.ACTION_PICK);<br />
photo_pick.setType("image/*");<br />
photo_pick.setAction(Intent.ACTION_GET_CONTENT);<br />
startActivityForResult(Intent.createChooser(photo_pick,<br />
"Select Picture"), 1);</i><u><b> </b></u><br />
<div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh03_PmfC9nvPztsYgUHUIz-wSsoDactwcLsyk5V3dDJV3OodJloPbJsLDoCXQmPG9YBXFLxGaY_P3ssdZTiEP5PMiVOfUi4moasXRq_pywR0Lt9bD8I9yLUEja23w51kjD0DWDWlRPBWVu/s1600/device.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh03_PmfC9nvPztsYgUHUIz-wSsoDactwcLsyk5V3dDJV3OodJloPbJsLDoCXQmPG9YBXFLxGaY_P3ssdZTiEP5PMiVOfUi4moasXRq_pywR0Lt9bD8I9yLUEja23w51kjD0DWDWlRPBWVu/s320/device.png" width="213" /></a></div><br />
<u><b>Step2:</b></u><br />
As you have used the startActivityForResult so now you should check for the result using the onActivtyResult method as follows:<br />
<br />
<i>@Override<br />
protected void onActivityResult(int requestCode, int resultCode, Intent data) {<br />
super.onActivityResult(requestCode, resultCode, data);<br />
if(requestCode==1){<br />
/*** To get the path and image ***/ <br />
if(resultCode == RESULT_OK){ <br />
Uri selectedImage = data.getData();<br />
String[] filePathColumn = {MediaStore.Images.Media.DATA};<br />
Cursor cursor = getContentResolver().query(selectedImage, filePathColumn, null, null, null);<br />
cursor.moveToFirst();<br />
int columnIndex = cursor.getColumnIndex(filePathColumn[0]);<br />
String filePath = cursor.getString(columnIndex);<br />
Log.e("","filepath"+filePath);// file path of selected image<br />
cursor.close();<br />
Bitmap yourSelectedImage = BitmapFactory.decodeFile(filePath);<br />
_show_image.setImageBitmap(yourSelectedImage); <b>//set your bitmap in your imageView</b><br />
}</i><br />
<i>}</i><br />
<i><br />
</i><br />
<i><b>Source Code: </b></i><a href="https://sites.google.com/site/quickandroidblog/download-stuff">https://sites.google.com/site/quickandroidblog/download-stuff</a><br />
<br />
</div>karanhttp://www.blogger.com/profile/16866753914754917995noreply@blogger.com0tag:blogger.com,1999:blog-4771698670549567193.post-34167657443044531322011-09-15T01:44:00.000-07:002011-09-15T01:44:17.199-07:00Animation in Android<div dir="ltr" style="text-align: left;" trbidi="on">In this Post i will tell you about the simple blinking animation using apha property of android.<br />
First create a class as follows by extending the Animation class:<br />
<br />
<u><b>BlinkAnimation,java</b></u><br />
<br />
<i>public class BlinkAnimation extends Animation {<br />
private int totalBlinks;<br />
private boolean finishOff;<br />
<br />
public BlinkAnimation(int totalBlinks, boolean finishOff) {<br />
this.totalBlinks = totalBlinks;<br />
this.finishOff = finishOff;<br />
}<br />
<br />
@Override<br />
protected void applyTransformation(float interpolatedTime, Transformation t) {<br />
float period = interpolatedTime * totalBlinks * 3.14f + (finishOff ? 3.14f / 2 : 0);<br />
t.setAlpha(Math.abs(FloatMath.cos(period)));<br />
}<br />
<br />
@Override<br />
public boolean willChangeBounds() {<br />
return false;<br />
}<br />
<br />
@Override<br />
public boolean willChangeTransformationMatrix() {<br />
return false;<br />
}<br />
}</i><br />
<br />
Next step is to create a avtivity to instaniate the animation as follows:<br />
<br />
<u><b>TestActivity.java</b></u><br />
<i><br />
</i><br />
<i>public class TestActivity extends Activity implements OnClickListener, AnimationListener {<br />
private ImageView image;<br />
<br />
@Override<br />
public void onCreate(Bundle savedInstanceState) {<br />
super.onCreate(savedInstanceState);<br />
setContentView(R.layout.main);<br />
<br />
image = (ImageView) findViewById(R.id.image);<br />
((Button) findViewById(R.id.button)).setOnClickListener(this);<br />
}<br />
<br />
@Override<br />
public void onClick(View view) {<br />
if (view.getId() == R.id.button) {<br />
Animation animation;<br />
if (image.getVisibility() == View.VISIBLE) {<br />
animation = new BlinkAnimation(3, true);<br />
animation.setInterpolator(new DecelerateInterpolator());<br />
} else {<br />
animation = new BlinkAnimation(3, false);<br />
animation.setInterpolator(new AccelerateInterpolator());<br />
}<br />
animation.setDuration(1000L);<br />
animation.setAnimationListener(this);<br />
<br />
image.startAnimation(animation);<br />
}<br />
}<br />
<br />
@Override<br />
public void onAnimationEnd(Animation animation) {<br />
image.setVisibility(image.getVisibility() == View.VISIBLE ? <br />
View.INVISIBLE : View.VISIBLE);<br />
}<br />
<br />
@Override<br />
public void onAnimationRepeat(Animation animation) {}<br />
<br />
@Override<br />
public void onAnimationStart(Animation animation) {}<br />
}</i><br />
<br />
<br />
and your XML file would look like this a follows:<br />
<br />
<u><b>main.xml</b></u><br />
<br />
<i><?xml version="1.0" encoding="utf-8"?><br />
<LinearLayout<br />
xmlns:android="http://schemas.android.com/apk/res/android"<br />
android:orientation="vertical"<br />
android:layout_width="fill_parent"<br />
android:layout_height="fill_parent"><br />
<ImageView<br />
android:id="@+id/image"<br />
android:layout_width="wrap_content"<br />
android:layout_height="wrap_content"<br />
android:layout_gravity="center"<br />
android:layout_marginTop="30dip"<br />
android:src="@drawable/icon" /><br />
<Button<br />
android:id="@+id/button"<br />
android:layout_width="wrap_content"<br />
android:layout_height="wrap_content"<br />
android:layout_gravity="center"<br />
android:layout_marginTop="30dip"<br />
android:text="Please click me" /><br />
</LinearLayout></i></div>karanhttp://www.blogger.com/profile/16866753914754917995noreply@blogger.com0tag:blogger.com,1999:blog-4771698670549567193.post-3295553075729755212011-09-12T01:47:00.000-07:002011-09-12T01:47:38.761-07:00Netflix Now Works on Android 2.2 and 2.3 Devices<div dir="ltr" style="text-align: left;" trbidi="on">Netflix customers who want to watch the latest shows on the go using their smartphones have gotten some good news, but not everyone will be able to share in the party.<br />
<br />
<br />
Source:<a href="http://www.pcworld.com/article/239830/netflix_now_works_on_android_22_and_23_devices.html"> http://www.pcworld.com/article/239830/netflix_now_works_on_android_22_and_23_devices.html </a></div>karanhttp://www.blogger.com/profile/16866753914754917995noreply@blogger.com0tag:blogger.com,1999:blog-4771698670549567193.post-32986955311811836762011-09-10T11:21:00.000-07:002011-09-10T11:21:33.552-07:00Android Ice cream sandwich<div dir="ltr" style="text-align: left;" trbidi="on">Android users waiting for the <b>Ice Cream Sandwic</b>h version of the mobile operating system will see the latest flavor pop up sometime in October or November.<br />
Google's own executive chairman, Eric Schmidt, tipped off the time frame for the new version of <a href="http://www.cnet.com/android-atlas/">Android</a> in an interview yesterday with Salesforce CEO Marc Benioff.<br />
<div style="background-color: transparent; border: medium none; color: black; overflow: hidden; text-align: left; text-decoration: none;"><br />
Read more: <a href="http://news.cnet.com/8301-1023_3-20103248-93/ice-cream-sandwich-to-debut-in-oct-or-nov/#ixzz1XZirDJbD" style="color: #003399;">http://news.cnet.com/8301-1023_3-20103248-93/ice-cream-sandwich-to-debut-in-oct-or-nov/#ixzz1XZirDJbD</a></div></div>karanhttp://www.blogger.com/profile/16866753914754917995noreply@blogger.com0tag:blogger.com,1999:blog-4771698670549567193.post-57378266505057669412011-09-08T04:07:00.000-07:002011-09-08T04:07:23.011-07:00XMPP or Jabber for Chatting in Android<div dir="ltr" style="text-align: left;" trbidi="on"><div style="text-align: left;">This Tutorial will tell you how to create a XMPP Client for Android.<br />
You can connect to any Server like Gmail or Facebook or create your own Server using Open Fire.<br />
<br />
<ul style="text-align: left;"><li><link href="file:///C:%5CDOCUME%7E1%5Ckrana%5CLOCALS%7E1%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_filelist.xml" rel="File-List"></link><link href="file:///C:%5CDOCUME%7E1%5Ckrana%5CLOCALS%7E1%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_themedata.thmx" rel="themeData"></link><link href="file:///C:%5CDOCUME%7E1%5Ckrana%5CLOCALS%7E1%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_colorschememapping.xml" rel="colorSchemeMapping"></link><!--[if gte mso 9]><xml> <w:WordDocument> <w:View>Normal</w:View> <w:Zoom>0</w:Zoom> <w:TrackMoves/> <w:TrackFormatting/> <w:PunctuationKerning/> <w:ValidateAgainstSchemas/> <w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid> <w:IgnoreMixedContent>false</w:IgnoreMixedContent> <w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText> <w:DoNotPromoteQF/> <w:LidThemeOther>EN-US</w:LidThemeOther> <w:LidThemeAsian>X-NONE</w:LidThemeAsian> <w:LidThemeComplexScript>X-NONE</w:LidThemeComplexScript> <w:Compatibility> <w:BreakWrappedTables/> <w:SnapToGridInCell/> <w:WrapTextWithPunct/> <w:UseAsianBreakRules/> <w:DontGrowAutofit/> <w:SplitPgBreakAndParaMark/> <w:DontVertAlignCellWithSp/> <w:DontBreakConstrainedForcedTables/> <w:DontVertAlignInTxbx/> <w:Word11KerningPairs/> <w:CachedColBalance/> </w:Compatibility> <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel> <m:mathPr> <m:mathFont m:val="Cambria Math"/> <m:brkBin m:val="before"/> <m:brkBinSub m:val="--"/> <m:smallFrac m:val="off"/> <m:dispDef/> <m:lMargin m:val="0"/> <m:rMargin m:val="0"/> <m:defJc m:val="centerGroup"/> <m:wrapIndent m:val="1440"/> <m:intLim m:val="subSup"/> <m:naryLim m:val="undOvr"/> </m:mathPr></w:WordDocument> </xml><![endif]--><!--[if gte mso 9]><xml> <w:LatentStyles DefLockedState="false" DefUnhideWhenUsed="true"
DefSemiHidden="true" DefQFormat="false" DefPriority="99"
LatentStyleCount="267"> <w:LsdException Locked="false" Priority="0" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Normal"/> <w:LsdException Locked="false" Priority="9" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="heading 1"/> <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 2"/> <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 3"/> <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 4"/> <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 5"/> <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 6"/> <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 7"/> <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 8"/> <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 9"/> <w:LsdException Locked="false" Priority="39" Name="toc 1"/> <w:LsdException Locked="false" Priority="39" Name="toc 2"/> <w:LsdException Locked="false" Priority="39" Name="toc 3"/> <w:LsdException Locked="false" Priority="39" Name="toc 4"/> <w:LsdException Locked="false" Priority="39" Name="toc 5"/> <w:LsdException Locked="false" Priority="39" Name="toc 6"/> <w:LsdException Locked="false" Priority="39" Name="toc 7"/> <w:LsdException Locked="false" Priority="39" Name="toc 8"/> <w:LsdException Locked="false" Priority="39" Name="toc 9"/> <w:LsdException Locked="false" Priority="35" QFormat="true" Name="caption"/> <w:LsdException Locked="false" Priority="10" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Title"/> <w:LsdException Locked="false" Priority="1" Name="Default Paragraph Font"/> <w:LsdException Locked="false" Priority="11" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Subtitle"/> <w:LsdException Locked="false" Priority="22" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Strong"/> <w:LsdException Locked="false" Priority="20" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Emphasis"/> <w:LsdException Locked="false" Priority="59" SemiHidden="false"
UnhideWhenUsed="false" Name="Table Grid"/> <w:LsdException Locked="false" UnhideWhenUsed="false" Name="Placeholder Text"/> <w:LsdException Locked="false" Priority="1" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="No Spacing"/> <w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading"/> <w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List"/> <w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid"/> <w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1"/> <w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2"/> <w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1"/> <w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2"/> <w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1"/> <w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2"/> <w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3"/> <w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List"/> <w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading"/> <w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List"/> <w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid"/> <w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 1"/> <w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 1"/> <w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 1"/> <w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 1"/> <w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 1"/> <w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 1"/> <w:LsdException Locked="false" UnhideWhenUsed="false" Name="Revision"/> <w:LsdException Locked="false" Priority="34" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="List Paragraph"/> <w:LsdException Locked="false" Priority="29" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Quote"/> <w:LsdException Locked="false" Priority="30" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Intense Quote"/> <w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 1"/> <w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 1"/> <w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 1"/> <w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 1"/> <w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 1"/> <w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 1"/> <w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 1"/> <w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 1"/> <w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 2"/> <w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 2"/> <w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 2"/> <w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 2"/> <w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 2"/> <w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 2"/> <w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 2"/> <w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 2"/> <w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 2"/> <w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 2"/> <w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 2"/> <w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 2"/> <w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 2"/> <w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 2"/> <w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 3"/> <w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 3"/> <w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 3"/> <w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 3"/> <w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 3"/> <w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 3"/> <w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 3"/> <w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 3"/> <w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 3"/> <w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 3"/> <w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 3"/> <w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 3"/> <w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 3"/> <w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 3"/> <w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 4"/> <w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 4"/> <w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 4"/> <w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 4"/> <w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 4"/> <w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 4"/> <w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 4"/> <w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 4"/> <w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 4"/> <w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 4"/> <w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 4"/> <w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 4"/> <w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 4"/> <w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 4"/> <w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 5"/> <w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 5"/> <w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 5"/> <w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 5"/> <w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 5"/> <w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 5"/> <w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 5"/> <w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 5"/> <w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 5"/> <w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 5"/> <w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 5"/> <w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 5"/> <w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 5"/> <w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 5"/> <w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 6"/> <w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 6"/> <w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 6"/> <w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 6"/> <w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 6"/> <w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 6"/> <w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 6"/> <w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 6"/> <w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 6"/> <w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 6"/> <w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 6"/> <w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 6"/> <w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 6"/> <w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 6"/> <w:LsdException Locked="false" Priority="19" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Subtle Emphasis"/> <w:LsdException Locked="false" Priority="21" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Intense Emphasis"/> <w:LsdException Locked="false" Priority="31" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Subtle Reference"/> <w:LsdException Locked="false" Priority="32" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Intense Reference"/> <w:LsdException Locked="false" Priority="33" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Book Title"/> <w:LsdException Locked="false" Priority="37" Name="Bibliography"/> <w:LsdException Locked="false" Priority="39" QFormat="true" Name="TOC Heading"/> </w:LatentStyles> </xml><![endif]--><style>
<!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;
mso-font-charset:1;
mso-generic-font-family:roman;
mso-font-format:other;
mso-font-pitch:variable;
mso-font-signature:0 0 0 0 0 0;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;
mso-font-charset:0;
mso-generic-font-family:swiss;
mso-font-pitch:variable;
mso-font-signature:-1610611985 1073750139 0 0 159 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{mso-style-unhide:no;
mso-style-qformat:yes;
mso-style-parent:"";
margin:0in;
margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:11.0pt;
font-family:"Calibri","sans-serif";
mso-fareast-font-family:Calibri;
mso-fareast-theme-font:minor-latin;
mso-bidi-font-family:"Times New Roman";}
.MsoChpDefault
{mso-style-type:export-only;
mso-default-props:yes;
font-size:10.0pt;
mso-ansi-font-size:10.0pt;
mso-bidi-font-size:10.0pt;}
@page Section1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;
mso-header-margin:.5in;
mso-footer-margin:.5in;
mso-paper-source:0;}
div.Section1
{page:Section1;}
-->
</style><!--[if gte mso 10]> <style>
/* Style Definitions */
table.MsoNormalTable
{mso-style-name:"Table Normal";
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-noshow:yes;
mso-style-priority:99;
mso-style-qformat:yes;
mso-style-parent:"";
mso-padding-alt:0in 5.4pt 0in 5.4pt;
mso-para-margin:0in;
mso-para-margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:11.0pt;
font-family:"Calibri","sans-serif";
mso-ascii-font-family:Calibri;
mso-ascii-theme-font:minor-latin;
mso-fareast-font-family:"Times New Roman";
mso-fareast-theme-font:minor-fareast;
mso-hansi-font-family:Calibri;
mso-hansi-theme-font:minor-latin;
mso-bidi-font-family:"Times New Roman";
mso-bidi-theme-font:minor-bidi;}
</style> <![endif]--><b><span style="font-family: "Calibri","sans-serif"; font-size: 11pt;">For Information regarding how to setup Jabber Messaging Server and Use Miranda IM Client refer to:</span></b></li>
</ul><link href="file:///C:%5CDOCUME%7E1%5Ckrana%5CLOCALS%7E1%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_filelist.xml" rel="File-List"></link><link href="file:///C:%5CDOCUME%7E1%5Ckrana%5CLOCALS%7E1%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_themedata.thmx" rel="themeData"></link><link href="file:///C:%5CDOCUME%7E1%5Ckrana%5CLOCALS%7E1%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_colorschememapping.xml" rel="colorSchemeMapping"></link><!--[if gte mso 9]><xml> <w:WordDocument> <w:View>Normal</w:View> <w:Zoom>0</w:Zoom> <w:TrackMoves/> <w:TrackFormatting/> <w:PunctuationKerning/> <w:ValidateAgainstSchemas/> <w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid> <w:IgnoreMixedContent>false</w:IgnoreMixedContent> <w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText> <w:DoNotPromoteQF/> <w:LidThemeOther>EN-US</w:LidThemeOther> <w:LidThemeAsian>X-NONE</w:LidThemeAsian> <w:LidThemeComplexScript>X-NONE</w:LidThemeComplexScript> <w:Compatibility> <w:BreakWrappedTables/> <w:SnapToGridInCell/> <w:WrapTextWithPunct/> <w:UseAsianBreakRules/> <w:DontGrowAutofit/> <w:SplitPgBreakAndParaMark/> <w:DontVertAlignCellWithSp/> <w:DontBreakConstrainedForcedTables/> <w:DontVertAlignInTxbx/> <w:Word11KerningPairs/> <w:CachedColBalance/> </w:Compatibility> <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel> <m:mathPr> <m:mathFont m:val="Cambria Math"/> <m:brkBin m:val="before"/> <m:brkBinSub m:val="--"/> <m:smallFrac m:val="off"/> <m:dispDef/> <m:lMargin m:val="0"/> <m:rMargin m:val="0"/> <m:defJc m:val="centerGroup"/> <m:wrapIndent m:val="1440"/> <m:intLim m:val="subSup"/> <m:naryLim m:val="undOvr"/> </m:mathPr></w:WordDocument> </xml><![endif]--><!--[if gte mso 9]><xml> <w:LatentStyles DefLockedState="false" DefUnhideWhenUsed="true"
DefSemiHidden="true" DefQFormat="false" DefPriority="99"
LatentStyleCount="267"> <w:LsdException Locked="false" Priority="0" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Normal"/> <w:LsdException Locked="false" Priority="9" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="heading 1"/> <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 2"/> <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 3"/> <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 4"/> <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 5"/> <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 6"/> <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 7"/> <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 8"/> <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 9"/> <w:LsdException Locked="false" Priority="39" Name="toc 1"/> <w:LsdException Locked="false" Priority="39" Name="toc 2"/> <w:LsdException Locked="false" Priority="39" Name="toc 3"/> <w:LsdException Locked="false" Priority="39" Name="toc 4"/> <w:LsdException Locked="false" Priority="39" Name="toc 5"/> <w:LsdException Locked="false" Priority="39" Name="toc 6"/> <w:LsdException Locked="false" Priority="39" Name="toc 7"/> <w:LsdException Locked="false" Priority="39" Name="toc 8"/> <w:LsdException Locked="false" Priority="39" Name="toc 9"/> <w:LsdException Locked="false" Priority="35" QFormat="true" Name="caption"/> <w:LsdException Locked="false" Priority="10" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Title"/> <w:LsdException Locked="false" Priority="1" Name="Default Paragraph Font"/> <w:LsdException Locked="false" Priority="11" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Subtitle"/> <w:LsdException Locked="false" Priority="22" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Strong"/> <w:LsdException Locked="false" Priority="20" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Emphasis"/> <w:LsdException Locked="false" Priority="59" SemiHidden="false"
UnhideWhenUsed="false" Name="Table Grid"/> <w:LsdException Locked="false" UnhideWhenUsed="false" Name="Placeholder Text"/> <w:LsdException Locked="false" Priority="1" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="No Spacing"/> <w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading"/> <w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List"/> <w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid"/> <w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1"/> <w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2"/> <w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1"/> <w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2"/> <w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1"/> <w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2"/> <w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3"/> <w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List"/> <w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading"/> <w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List"/> <w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid"/> <w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 1"/> <w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 1"/> <w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 1"/> <w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 1"/> <w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 1"/> <w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 1"/> <w:LsdException Locked="false" UnhideWhenUsed="false" Name="Revision"/> <w:LsdException Locked="false" Priority="34" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="List Paragraph"/> <w:LsdException Locked="false" Priority="29" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Quote"/> <w:LsdException Locked="false" Priority="30" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Intense Quote"/> <w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 1"/> <w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 1"/> <w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 1"/> <w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 1"/> <w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 1"/> <w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 1"/> <w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 1"/> <w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 1"/> <w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 2"/> <w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 2"/> <w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 2"/> <w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 2"/> <w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 2"/> <w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 2"/> <w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 2"/> <w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 2"/> <w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 2"/> <w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 2"/> <w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 2"/> <w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 2"/> <w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 2"/> <w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 2"/> <w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 3"/> <w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 3"/> <w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 3"/> <w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 3"/> <w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 3"/> <w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 3"/> <w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 3"/> <w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 3"/> <w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 3"/> <w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 3"/> <w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 3"/> <w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 3"/> <w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 3"/> <w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 3"/> <w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 4"/> <w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 4"/> <w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 4"/> <w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 4"/> <w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 4"/> <w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 4"/> <w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 4"/> <w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 4"/> <w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 4"/> <w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 4"/> <w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 4"/> <w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 4"/> <w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 4"/> <w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 4"/> <w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 5"/> <w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 5"/> <w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 5"/> <w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 5"/> <w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 5"/> <w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 5"/> <w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 5"/> <w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 5"/> <w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 5"/> <w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 5"/> <w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 5"/> <w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 5"/> <w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 5"/> <w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 5"/> <w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 6"/> <w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 6"/> <w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 6"/> <w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 6"/> <w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 6"/> <w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 6"/> <w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 6"/> <w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 6"/> <w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 6"/> <w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 6"/> <w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 6"/> <w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 6"/> <w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 6"/> <w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 6"/> <w:LsdException Locked="false" Priority="19" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Subtle Emphasis"/> <w:LsdException Locked="false" Priority="21" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Intense Emphasis"/> <w:LsdException Locked="false" Priority="31" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Subtle Reference"/> <w:LsdException Locked="false" Priority="32" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Intense Reference"/> <w:LsdException Locked="false" Priority="33" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Book Title"/> <w:LsdException Locked="false" Priority="37" Name="Bibliography"/> <w:LsdException Locked="false" Priority="39" QFormat="true" Name="TOC Heading"/> </w:LatentStyles> </xml><![endif]--><style>
<!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;
mso-font-charset:1;
mso-generic-font-family:roman;
mso-font-format:other;
mso-font-pitch:variable;
mso-font-signature:0 0 0 0 0 0;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;
mso-font-charset:0;
mso-generic-font-family:swiss;
mso-font-pitch:variable;
mso-font-signature:-1610611985 1073750139 0 0 159 0;}
@font-face
{font-family:Verdana;
panose-1:2 11 6 4 3 5 4 4 2 4;
mso-font-charset:0;
mso-generic-font-family:swiss;
mso-font-pitch:variable;
mso-font-signature:536871559 0 0 0 415 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{mso-style-unhide:no;
mso-style-qformat:yes;
mso-style-parent:"";
margin:0in;
margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:11.0pt;
font-family:"Calibri","sans-serif";
mso-fareast-font-family:Calibri;
mso-fareast-theme-font:minor-latin;
mso-bidi-font-family:"Times New Roman";}
a:link, span.MsoHyperlink
{mso-style-noshow:yes;
mso-style-priority:99;
color:blue;
text-decoration:underline;
text-underline:single;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-noshow:yes;
mso-style-priority:99;
color:purple;
mso-themecolor:followedhyperlink;
text-decoration:underline;
text-underline:single;}
.MsoChpDefault
{mso-style-type:export-only;
mso-default-props:yes;
font-size:10.0pt;
mso-ansi-font-size:10.0pt;
mso-bidi-font-size:10.0pt;}
@page Section1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;
mso-header-margin:.5in;
mso-footer-margin:.5in;
mso-paper-source:0;}
div.Section1
{page:Section1;}
-->
</style><!--[if gte mso 10]> <style>
/* Style Definitions */
table.MsoNormalTable
{mso-style-name:"Table Normal";
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-noshow:yes;
mso-style-priority:99;
mso-style-qformat:yes;
mso-style-parent:"";
mso-padding-alt:0in 5.4pt 0in 5.4pt;
mso-para-margin:0in;
mso-para-margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:11.0pt;
font-family:"Calibri","sans-serif";
mso-ascii-font-family:Calibri;
mso-ascii-theme-font:minor-latin;
mso-fareast-font-family:"Times New Roman";
mso-fareast-theme-font:minor-fareast;
mso-hansi-font-family:Calibri;
mso-hansi-theme-font:minor-latin;
mso-bidi-font-family:"Times New Roman";
mso-bidi-theme-font:minor-bidi;}
</style> <![endif]--><span style="font-family: "Calibri","sans-serif"; font-size: 11pt;"><span> </span></span><span style="color: black; font-family: "Verdana","sans-serif"; font-size: 10pt;"><a href="http://www.wowtutorial.org/tutorial/52.html">http://www.wowtutorial.org/tutorial/52.html</a></span><br />
<br />
<link href="file:///C:%5CDOCUME%7E1%5Ckrana%5CLOCALS%7E1%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_filelist.xml" rel="File-List"></link><link href="file:///C:%5CDOCUME%7E1%5Ckrana%5CLOCALS%7E1%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_themedata.thmx" rel="themeData"></link><link href="file:///C:%5CDOCUME%7E1%5Ckrana%5CLOCALS%7E1%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_colorschememapping.xml" rel="colorSchemeMapping"></link><!--[if gte mso 9]><xml> <w:WordDocument> <w:View>Normal</w:View> <w:Zoom>0</w:Zoom> <w:TrackMoves/> <w:TrackFormatting/> <w:PunctuationKerning/> <w:ValidateAgainstSchemas/> <w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid> <w:IgnoreMixedContent>false</w:IgnoreMixedContent> <w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText> <w:DoNotPromoteQF/> <w:LidThemeOther>EN-US</w:LidThemeOther> <w:LidThemeAsian>X-NONE</w:LidThemeAsian> <w:LidThemeComplexScript>X-NONE</w:LidThemeComplexScript> <w:Compatibility> <w:BreakWrappedTables/> <w:SnapToGridInCell/> <w:WrapTextWithPunct/> <w:UseAsianBreakRules/> <w:DontGrowAutofit/> <w:SplitPgBreakAndParaMark/> <w:DontVertAlignCellWithSp/> <w:DontBreakConstrainedForcedTables/> <w:DontVertAlignInTxbx/> <w:Word11KerningPairs/> <w:CachedColBalance/> </w:Compatibility> <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel> <m:mathPr> <m:mathFont m:val="Cambria Math"/> <m:brkBin m:val="before"/> <m:brkBinSub m:val="--"/> <m:smallFrac m:val="off"/> <m:dispDef/> <m:lMargin m:val="0"/> <m:rMargin m:val="0"/> <m:defJc m:val="centerGroup"/> <m:wrapIndent m:val="1440"/> <m:intLim m:val="subSup"/> <m:naryLim m:val="undOvr"/> </m:mathPr></w:WordDocument> </xml><![endif]--><!--[if gte mso 9]><xml> <w:LatentStyles DefLockedState="false" DefUnhideWhenUsed="true"
DefSemiHidden="true" DefQFormat="false" DefPriority="99"
LatentStyleCount="267"> <w:LsdException Locked="false" Priority="0" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Normal"/> <w:LsdException Locked="false" Priority="9" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="heading 1"/> <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 2"/> <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 3"/> <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 4"/> <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 5"/> <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 6"/> <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 7"/> <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 8"/> <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 9"/> <w:LsdException Locked="false" Priority="39" Name="toc 1"/> <w:LsdException Locked="false" Priority="39" Name="toc 2"/> <w:LsdException Locked="false" Priority="39" Name="toc 3"/> <w:LsdException Locked="false" Priority="39" Name="toc 4"/> <w:LsdException Locked="false" Priority="39" Name="toc 5"/> <w:LsdException Locked="false" Priority="39" Name="toc 6"/> <w:LsdException Locked="false" Priority="39" Name="toc 7"/> <w:LsdException Locked="false" Priority="39" Name="toc 8"/> <w:LsdException Locked="false" Priority="39" Name="toc 9"/> <w:LsdException Locked="false" Priority="35" QFormat="true" Name="caption"/> <w:LsdException Locked="false" Priority="10" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Title"/> <w:LsdException Locked="false" Priority="1" Name="Default Paragraph Font"/> <w:LsdException Locked="false" Priority="11" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Subtitle"/> <w:LsdException Locked="false" Priority="22" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Strong"/> <w:LsdException Locked="false" Priority="20" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Emphasis"/> <w:LsdException Locked="false" Priority="59" SemiHidden="false"
UnhideWhenUsed="false" Name="Table Grid"/> <w:LsdException Locked="false" UnhideWhenUsed="false" Name="Placeholder Text"/> <w:LsdException Locked="false" Priority="1" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="No Spacing"/> <w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading"/> <w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List"/> <w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid"/> <w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1"/> <w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2"/> <w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1"/> <w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2"/> <w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1"/> <w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2"/> <w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3"/> <w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List"/> <w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading"/> <w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List"/> <w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid"/> <w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 1"/> <w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 1"/> <w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 1"/> <w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 1"/> <w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 1"/> <w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 1"/> <w:LsdException Locked="false" UnhideWhenUsed="false" Name="Revision"/> <w:LsdException Locked="false" Priority="34" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="List Paragraph"/> <w:LsdException Locked="false" Priority="29" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Quote"/> <w:LsdException Locked="false" Priority="30" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Intense Quote"/> <w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 1"/> <w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 1"/> <w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 1"/> <w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 1"/> <w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 1"/> <w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 1"/> <w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 1"/> <w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 1"/> <w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 2"/> <w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 2"/> <w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 2"/> <w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 2"/> <w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 2"/> <w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 2"/> <w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 2"/> <w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 2"/> <w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 2"/> <w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 2"/> <w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 2"/> <w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 2"/> <w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 2"/> <w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 2"/> <w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 3"/> <w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 3"/> <w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 3"/> <w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 3"/> <w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 3"/> <w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 3"/> <w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 3"/> <w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 3"/> <w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 3"/> <w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 3"/> <w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 3"/> <w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 3"/> <w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 3"/> <w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 3"/> <w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 4"/> <w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 4"/> <w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 4"/> <w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 4"/> <w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 4"/> <w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 4"/> <w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 4"/> <w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 4"/> <w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 4"/> <w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 4"/> <w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 4"/> <w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 4"/> <w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 4"/> <w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 4"/> <w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 5"/> <w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 5"/> <w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 5"/> <w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 5"/> <w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 5"/> <w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 5"/> <w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 5"/> <w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 5"/> <w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 5"/> <w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 5"/> <w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 5"/> <w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 5"/> <w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 5"/> <w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 5"/> <w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 6"/> <w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 6"/> <w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 6"/> <w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 6"/> <w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 6"/> <w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 6"/> <w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 6"/> <w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 6"/> <w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 6"/> <w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 6"/> <w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 6"/> <w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 6"/> <w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 6"/> <w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 6"/> <w:LsdException Locked="false" Priority="19" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Subtle Emphasis"/> <w:LsdException Locked="false" Priority="21" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Intense Emphasis"/> <w:LsdException Locked="false" Priority="31" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Subtle Reference"/> <w:LsdException Locked="false" Priority="32" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Intense Reference"/> <w:LsdException Locked="false" Priority="33" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Book Title"/> <w:LsdException Locked="false" Priority="37" Name="Bibliography"/> <w:LsdException Locked="false" Priority="39" QFormat="true" Name="TOC Heading"/> </w:LatentStyles> </xml><![endif]--><style>
<!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;
mso-font-charset:1;
mso-generic-font-family:roman;
mso-font-format:other;
mso-font-pitch:variable;
mso-font-signature:0 0 0 0 0 0;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;
mso-font-charset:0;
mso-generic-font-family:swiss;
mso-font-pitch:variable;
mso-font-signature:-1610611985 1073750139 0 0 159 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{mso-style-unhide:no;
mso-style-qformat:yes;
mso-style-parent:"";
margin:0in;
margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:11.0pt;
font-family:"Calibri","sans-serif";
mso-fareast-font-family:Calibri;
mso-fareast-theme-font:minor-latin;
mso-bidi-font-family:"Times New Roman";}
.MsoChpDefault
{mso-style-type:export-only;
mso-default-props:yes;
font-size:10.0pt;
mso-ansi-font-size:10.0pt;
mso-bidi-font-size:10.0pt;}
@page Section1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;
mso-header-margin:.5in;
mso-footer-margin:.5in;
mso-paper-source:0;}
div.Section1
{page:Section1;}
-->
</style><!--[if gte mso 10]> <style>
/* Style Definitions */
table.MsoNormalTable
{mso-style-name:"Table Normal";
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-noshow:yes;
mso-style-priority:99;
mso-style-qformat:yes;
mso-style-parent:"";
mso-padding-alt:0in 5.4pt 0in 5.4pt;
mso-para-margin:0in;
mso-para-margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:11.0pt;
font-family:"Calibri","sans-serif";
mso-ascii-font-family:Calibri;
mso-ascii-theme-font:minor-latin;
mso-fareast-font-family:"Times New Roman";
mso-fareast-theme-font:minor-fareast;
mso-hansi-font-family:Calibri;
mso-hansi-theme-font:minor-latin;
mso-bidi-font-family:"Times New Roman";
mso-bidi-theme-font:minor-bidi;}
</style> <![endif]--> <br />
<ul style="text-align: left;"><li><b>And download Miranda IM Client</b> </li>
</ul><ul style="text-align: left;"><li><b>Next thing is to Connect to this Server Using your own Android Application: </b></li>
</ul><i> You need to use the Smack Api for this purpose, which can be downloaded from the follwing link</i>:</div><div style="text-align: left;"><a href="http://www.jug-muenster.de/wp-content/uploads/2010/05/smack.jar_1.zip">http://www.jug-muenster.de/wp-content/uploads/2010/05/smack.jar_1.zip</a></div><div style="text-align: left;"><b>OR</b></div><div style="text-align: left;"><a href="http://www.igniterealtime.org/projects/smack/index.jsp">http://www.igniterealtime.org/projects/smack/index.jsp</a></div><div style="text-align: left;"> </div><div style="text-align: left;">After You have downlaoded the Smack Library Now you need to add it in your project's Refrenced Libraries.<b> </b></div><div style="text-align: left;"><b> </b></div><div style="text-align: left;"><b> 1.Connection With The Server:</b></div><div style="text-align: left;"><b> </b></div><pre style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: transparent none repeat scroll 0% 0%; font-family: monospace; font-size-adjust: none; font-size: 1em; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: 1.2em; margin: 0pt; padding: 0pt; vertical-align: top;"><i>private XMPPClient xmppClient;</i></pre><pre style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: transparent none repeat scroll 0% 0%; font-family: monospace; font-size-adjust: none; font-size: 1em; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: 1.2em; margin: 0pt; padding: 0pt; vertical-align: top;"><i><span style="color: black;"> private XMPPConnection connection;</span></i></pre><pre style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: transparent none repeat scroll 0% 0%; font-family: monospace; font-size-adjust: none; font-size: 1em; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: 1.2em; margin: 0pt; padding: 0pt; vertical-align: top;"><i><span style="color: black;"> private ArrayList<String> messages = new ArrayList(); </span>
<span style="color: #7f0055; font-weight: bold;">public</span> <span style="color: #7f0055; font-weight: bold;">void</span> login<span style="color: black;">(</span><a href="http://www.google.com/search?hl=en&q=allinurl%3Astring+java.sun.com&btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">String</span></a> userName, <a href="http://www.google.com/search?hl=en&q=allinurl%3Astring+java.sun.com&btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">String</span></a> password<span style="color: black;">)</span> <span style="color: #7f0055; font-weight: bold;">throws</span> XMPPException
<span style="color: black;">{</span>
ConnectionConfiguration config <span style="color: black;">=</span> <span style="color: #7f0055; font-weight: bold;">new</span> ConnectionConfiguration<span style="color: black;">(</span><span style="color: blue;">"HOST"</span>,<span style="color: #cc66cc;">PORT</span>, <span style="color: blue;">"SERVICE"</span><span style="color: black;">)</span><span style="color: black;">;</span>
connection <span style="color: black;">=</span> <span style="color: #7f0055; font-weight: bold;">new</span> XMPPConnection<span style="color: black;">(</span>config<span style="color: black;">)</span><span style="color: black;">;</span>
connection.<span style="color: black;">connect</span><span style="color: black;">(</span><span style="color: black;">)</span><span style="color: black;">;</span></i></pre><pre style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: transparent none repeat scroll 0% 0%; font-family: monospace; font-size-adjust: none; font-size: 1em; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: 1.2em; margin: 0pt; padding: 0pt; vertical-align: top;"><i><span style="color: black;"> </span></i></pre><pre style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: transparent none repeat scroll 0% 0%; font-family: monospace; font-size-adjust: none; font-size: 1em; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: 1.2em; margin: 0pt; padding: 0pt; vertical-align: top;"><i><span style="color: black;"> //LOGIN USING THE FOLLWING <b>login()</b> </span></i></pre><pre style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: transparent none repeat scroll 0% 0%; font-family: monospace; font-size-adjust: none; font-size: 1em; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: 1.2em; margin: 0pt; padding: 0pt; vertical-align: top;"><i><span style="color: black;"> </span>
connection.<span style="color: black;">login</span><span style="color: black;">(</span>userName, password<span style="color: black;">)</span><span style="color: black;">;</span></i></pre><pre style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: transparent none repeat scroll 0% 0%; font-family: monospace; font-size-adjust: none; font-size: 1em; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: 1.2em; margin: 0pt; padding: 0pt; vertical-align: top;"><i><span style="color: black;"> xmppClient.setConnection(connection); </span>
<span style="color: black;">}</span></i></pre><pre style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: transparent none repeat scroll 0% 0%; font-family: monospace; font-size-adjust: none; font-size: 1em; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: 1.2em; margin: 0pt; padding: 0pt; vertical-align: top;"><i><span style="color: black;"> </span></i></pre><pre style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: transparent none repeat scroll 0% 0%; font-family: monospace; font-size-adjust: none; font-size: 1em; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: 1.2em; margin: 0pt; padding: 0pt; vertical-align: top;"><i><span style="color: black;"> </span><span style="color: black;"><b> 2.</b></span><b>Send Message to a Person:</b></i></pre><pre style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: transparent none repeat scroll 0% 0%; font-family: monospace; font-size-adjust: none; font-size: 1em; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: 1.2em; margin: 0pt; padding: 0pt; vertical-align: top;"><i><b> </b></i></pre><pre style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: transparent none repeat scroll 0% 0%; font-family: monospace; font-size-adjust: none; font-size: 1em; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: 1.2em; margin: 0pt; padding: 0pt; vertical-align: top;"><i> Message msg = new Message("Recepiont", Message.Type.chat);
msg.setBody(text);
connection.sendPacket(msg); </i><b></b></pre><pre style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: transparent none repeat scroll 0% 0%; font-family: monospace; font-size-adjust: none; font-size: 1em; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: 1.2em; margin: 0pt; padding: 0pt; vertical-align: top;"><b>
</b></pre><pre style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: transparent none repeat scroll 0% 0%; font-family: monospace; font-size-adjust: none; font-size: 1em; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: 1.2em; margin: 0pt; padding: 0pt; vertical-align: top;"><b> 3.For incoming messages from other users:</b></pre><pre style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: transparent none repeat scroll 0% 0%; font-family: monospace; font-size-adjust: none; font-size: 1em; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: 1.2em; margin: 0pt; padding: 0pt; vertical-align: top;"><b> </b></pre><pre style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: transparent none repeat scroll 0% 0%; font-family: monospace; font-size-adjust: none; font-size: 1em; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: 1.2em; margin: 0pt; padding: 0pt; vertical-align: top;"><b> </b><i>public void setConnection
(XMPPConnection connection) {
this.connection = connection;
if (connection != null) {
// Add a packet listener to get messages sent to us
PacketFilter filter = new MessageTypeFilter(Message.Type.chat);
connection.addPacketListener(new PacketListener() {
public void processPacket(Packet packet) {
Message message = (Message) packet;
if (message.getBody() != null) {
String fromName = StringUtils.parseBareAddress(message.getFrom());
Log.i("XMPPClient", "Got text [" + message.getBody() + "] from [" + fromName + "]");
messages.add(fromName + ":");
messages.add(message.getBody());
// Add the incoming message to the list view
mHandler.post(new Runnable() {
public void run() {
setListAdapter();
}
});
}
}
}, filter);
}
}</i></pre><pre style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: transparent none repeat scroll 0% 0%; font-family: monospace; font-size-adjust: none; font-size: 1em; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: 1.2em; margin: 0pt; padding: 0pt; vertical-align: top;"><i> </i></pre><pre style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: transparent none repeat scroll 0% 0%; font-family: monospace; font-size-adjust: none; font-size: 1em; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: 1.2em; margin: 0pt; padding: 0pt; vertical-align: top;"><b> 4.To Sign Out or Disconnect from the Server: </b><i></i></pre><pre style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: transparent none repeat scroll 0% 0%; font-family: monospace; font-size-adjust: none; font-size: 1em; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: 1.2em; margin: 0pt; padding: 0pt; vertical-align: top;"><i>
public void signOut()
{
connection.disconnect();
}</i></pre><pre style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: transparent none repeat scroll 0% 0%; font-family: monospace; font-size-adjust: none; font-size: 1em; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: 1.2em; margin: 0pt; padding: 0pt; vertical-align: top;"><i> </i></pre><pre style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: transparent none repeat scroll 0% 0%; font-family: monospace; font-size-adjust: none; font-size: 1em; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: 1.2em; margin: 0pt; padding: 0pt; vertical-align: top;"><i> </i></pre><pre style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: transparent none repeat scroll 0% 0%; font-family: monospace; font-size-adjust: none; font-size: 1em; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: 1.2em; margin: 0pt; padding: 0pt; vertical-align: top;"><i> </i></pre><pre style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: transparent none repeat scroll 0% 0%; font-family: monospace; font-size-adjust: none; font-size: 1em; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: 1.2em; margin: 0pt; padding: 0pt; vertical-align: top;"><i></i></pre><pre style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: transparent none repeat scroll 0% 0%; font-family: monospace; font-size-adjust: none; font-size: 1em; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: 1.2em; margin: 0pt; padding: 0pt; vertical-align: top;"><i></i></pre><pre style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: transparent none repeat scroll 0% 0%; font-family: monospace; font-size-adjust: none; font-size: 1em; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: 1.2em; margin: 0pt; padding: 0pt; vertical-align: top;"><i> <b> </b></i><b>There are a lot of other things which you can do using smack API.</b></pre><pre style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: transparent none repeat scroll 0% 0%; font-family: monospace; font-size-adjust: none; font-size: 1em; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: 1.2em; margin: 0pt; padding: 0pt; vertical-align: top;"><b> You can find the detailed documentation of each class in the following link</b><i>:</i></pre><pre style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: transparent none repeat scroll 0% 0%; font-family: monospace; font-size-adjust: none; font-size: 1em; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: 1.2em; margin: 0pt; padding: 0pt; vertical-align: top;"><a href="http://www.blogger.com/goog_778920075"><i></i></a></pre><pre style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: transparent none repeat scroll 0% 0%; font-family: monospace; font-size-adjust: none; font-size: 1em; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: 1.2em; margin: 0pt; padding: 0pt; vertical-align: top;"><i><a href="http://www.igniterealtime.org/builds/smack/docs/latest/documentation/index.html"><u>http://www.igniterealtime.org/builds/smack/docs/latest/documentation/index.html</u></a></i></pre><br />
<br />
<br />
<br />
<br />
<br />
<b>SOURCE</b>: <a href="http://davanum.wordpress.com/2007/12/31/android-just-use-smack-api-for-xmpp/">http://davanum.wordpress.com/2007/12/31/android-just-use-smack-api-for-xmpp/</a><br />
<pre style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: transparent none repeat scroll 0% 0%; font-family: monospace; font-size-adjust: none; font-size: 1em; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: 1.2em; margin: 0pt; padding: 0pt; vertical-align: top;"><b>
</b></pre><pre style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: transparent none repeat scroll 0% 0%; font-family: monospace; font-size-adjust: none; font-size: 1em; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: 1.2em; margin: 0pt; padding: 0pt; vertical-align: top;"></pre><pre style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: transparent none repeat scroll 0% 0%; font-family: monospace; font-size-adjust: none; font-size: 1em; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: 1.2em; margin: 0pt; padding: 0pt; vertical-align: top;"></pre><div><span class="tl"></span><h3 class="r"><a class="l" href="http://www.balticnordic.com/kc_telephone%20and%20mail%20recepiont%20services%20in%20furnished%20offices" onmousedown="return rwt(this,'','','','4','AFQjCNEZjFybEKDGBgJfW4O1DifhlHrtfA','wVFIo9AF4R_q0lNA9kQJSw','0CCsQFjAD')"> <em><br />
</em></a></h3><div><div style="text-align: left;"><br />
</div><div style="text-align: left;"><br />
</div><div style="text-align: left;"><b> </b></div><div style="text-align: left;"></div></div></div></div>karanhttp://www.blogger.com/profile/16866753914754917995noreply@blogger.com8tag:blogger.com,1999:blog-4771698670549567193.post-972446913247899502011-08-29T04:32:00.000-07:002011-08-29T04:32:24.298-07:00Install/Uninstall App from code<div dir="ltr" style="text-align: left;" trbidi="on">Hi ,<br />
In this post i am going to tell you about how to uninstall the app from the code.<br />
<br />
<u><i><b>INTENT FILTERS FOR SUCH THING IS AS FOLLOWS:</b></i></u><br />
<br />
<br />
<div class="wp_syntax"><div class="code"><pre class="xml" style="font-family: monospace;"><span style="color: #009900;"><span style="color: black; font-weight: bold;"><activity</span> <span style="color: #000066;">android:name</span>=<span style="color: red;">".PackageInstallerActivity"</span><span style="color: black; font-weight: bold;">></span></span>
<span style="color: #009900;"><span style="color: black; font-weight: bold;"><intent-filter<span style="color: black; font-weight: bold;">></span></span></span>
<span style="color: #009900;"><span style="color: black; font-weight: bold;"><action</span> <span style="color: #000066;">android:name</span>=<span style="color: red;">"android.intent.action.VIEW"</span> <span style="color: black; font-weight: bold;">/></span></span>
<span style="color: #009900;"><span style="color: black; font-weight: bold;"><category</span> <span style="color: #000066;">android:name</span>=<span style="color: red;">"android.intent.category.DEFAULT"</span> <span style="color: black; font-weight: bold;">/></span></span>
<span style="color: #009900;"><span style="color: black; font-weight: bold;"><data</span> <span style="color: #000066;">android:scheme</span>=<span style="color: red;">"content"</span> <span style="color: black; font-weight: bold;">/></span></span>
<span style="color: #009900;"><span style="color: black; font-weight: bold;"><data</span> <span style="color: #000066;">android:scheme</span>=<span style="color: red;">"file"</span> <span style="color: black; font-weight: bold;">/></span></span>
<span style="color: #009900;"><span style="color: black; font-weight: bold;"><data</span> <span style="color: #000066;">android:mimeType</span>=<span style="color: red;">"application/vnd.android.package-archive"</span> <span style="color: black; font-weight: bold;">/></span></span>
<span style="color: #009900;"><span style="color: black; font-weight: bold;"></intent-filter<span style="color: black; font-weight: bold;">></span></span></span>
<span style="color: #009900;"><span style="color: black; font-weight: bold;"></activity<span style="color: black; font-weight: bold;">></span></span></span>
<span style="color: #009900;"><span style="color: black; font-weight: bold;"><activity</span> <span style="color: #000066;">android:name</span>=<span style="color: red;">".UninstallerActivity"</span><span style="color: black; font-weight: bold;">></span></span>
<span style="color: #009900;"><span style="color: black; font-weight: bold;"><intent-filter<span style="color: black; font-weight: bold;">></span></span></span>
<span style="color: #009900;"><span style="color: black; font-weight: bold;"><action</span> <span style="color: #000066;">android:name</span>=<span style="color: red;">"android.intent.action.VIEW"</span> <span style="color: black; font-weight: bold;">/></span></span>
<span style="color: #009900;"><span style="color: black; font-weight: bold;"><action</span> <span style="color: #000066;">android:name</span>=<span style="color: red;">"android.intent.action.DELETE"</span> <span style="color: black; font-weight: bold;">/></span></span>
<span style="color: #009900;"><span style="color: black; font-weight: bold;"><category</span> <span style="color: #000066;">android:name</span>=<span style="color: red;">"android.intent.category.DEFAULT"</span> <span style="color: black; font-weight: bold;">/></span></span>
<span style="color: #009900;"><span style="color: black; font-weight: bold;"><data</span> <span style="color: #000066;">android:scheme</span>=<span style="color: red;">"package"</span> <span style="color: black; font-weight: bold;">/></span></span>
<span style="color: #009900;"><span style="color: black; font-weight: bold;"></intent-filter<span style="color: black; font-weight: bold;">></span></span></span>
<span style="color: #009900;"><span style="color: black; font-weight: bold;"></activity<span style="color: black; font-weight: bold;">></span></span></span></pre><pre class="xml" style="font-family: monospace;"><span style="color: #009900;"><span style="color: black; font-weight: bold;"><span style="color: black; font-weight: bold;"> </span></span></span></pre><pre class="xml" style="font-family: monospace;"><span style="color: #009900;"><span style="color: black; font-weight: bold;"><span style="color: black; font-weight: bold;"> </span></span></span></pre><u><i><b>FOR UNINSTALLING THE APP:</b></i></u><br />
<br />
<pre class="java" style="font-family: monospace;">Uri packageURI <span style="color: #339933;">=</span> Uri.<span style="color: #006633;">parse</span><span style="color: #009900;">(</span><span style="color: blue;">"package:com.android.name_of_your_app"</span><span style="color: #009900;">)</span><span style="color: #339933;">;</span>
Intent uninstallIntent <span style="color: #339933;">=</span> <span style="color: black; font-weight: bold;">new</span> Intent<span style="color: #009900;">(</span>Intent.<span style="color: #006633;">ACTION_DELETE</span>, packageURI<span style="color: #009900;">)</span><span style="color: #339933;">;</span>
startActivity<span style="color: #009900;">(</span>uninstallIntent<span style="color: #009900;">)</span><span style="color: #339933;">;</span></pre><pre class="java" style="font-family: monospace;"><span style="color: #339933;"> </span></pre><pre class="java" style="font-family: monospace;"><span style="color: #339933;">
</span></pre><u><i><b>FOR INSTALLING THE APP:(To install apk from your SD card)</b></i></u><br />
<br />
<div class="wp_syntax"><div class="code"><pre class="java" style="font-family: monospace;"><span style="color: #003399;">String</span> fileName <span style="color: #339933;">=</span> <span style="color: #003399;">Environment</span>.<span style="color: #006633;">getExternalStorageDirectory</span><span style="color: #009900;">(</span><span style="color: #009900;">)</span> <span style="color: #339933;">+</span> <span style="color: blue;">"/</span><span style="color: blue;">name_of_your_app</span><span style="color: blue;">.apk"</span><span style="color: #339933;">;</span>
Intent intent <span style="color: #339933;">=</span> <span style="color: black; font-weight: bold;">new</span> Intent<span style="color: #009900;">(</span>Intent.<span style="color: #006633;">ACTION_VIEW</span><span style="color: #009900;">)</span><span style="color: #339933;">;</span>
intent.<span style="color: #006633;">setDataAndType</span><span style="color: #009900;">(</span>Uri.<span style="color: #006633;">fromFile</span><span style="color: #009900;">(</span><span style="color: black; font-weight: bold;">new</span> <span style="color: #003399;">File</span><span style="color: #009900;">(</span>fileName<span style="color: #009900;">)</span><span style="color: #009900;">)</span>, <span style="color: blue;">"application/vnd.android.package-archive"</span><span style="color: #009900;">)</span><span style="color: #339933;">;</span>
startActivity<span style="color: #009900;">(</span>intent<span style="color: #009900;">)</span><span style="color: #339933;">;</span></pre></div></div><br />
<pre class="java" style="font-family: monospace;"><span style="color: #339933;"> </span></pre></div></div></div>karanhttp://www.blogger.com/profile/16866753914754917995noreply@blogger.com1tag:blogger.com,1999:blog-4771698670549567193.post-18327777743716486362011-08-19T05:05:00.000-07:002011-08-19T05:05:25.851-07:00Fetch phone book contacts information<div dir="ltr" style="text-align: left;" trbidi="on">Hi, in this tutorial i am going to tell you about how to fetch Andorid phonebook contacts.<br />
Previously <b><u>people</u> </b>class was used to fetch phone book contacts, but in later versions we use <b><u>ContactsContract.</u></b><br />
(Remember that you follow these steps in proper order)<br />
<br />
<b>Step1:)First make the object of content resolver class(<i>This class provides applications access to the content model.)</i></b><br />
<br />
<i>ContentResolver cr = getContentResolver();</i><br />
<br />
<b>Step2:)Now create a cursor which will fetch data from ContactsContract class.</b><br />
<br />
<i>// this cursor will contain whole data </i><br />
<i>Cursor cur = cr.query(ContactsContract.Contacts.CONTENT_URI,null, null, null, null);</i><br />
<br />
<b>Step3)</b><i>: </i><b>Now we have all the data in the cursor so now we can fetch the required data from the cursor as follows:(in this step i am fetching all the names and the id's)</b><br />
<i><br />
</i><br />
<i>while (cur.moveToNext()) {<br />
String id = cur.getString(<br />
cur.getColumnIndex(ContactsContract.Contacts._ID));<br />
String name = cur.getString(<br />
cur.getColumnIndex(ContactsContract.Contacts.DISPLAY_NAME));</i><br />
<br />
<i>NAME.add(name); //all names are added in the arraylist named "<b>NAME</b>".</i><br />
<i>ID.add(id); //all names are added in the arraylist named "<b>ID</b>".</i><br />
<i>}</i><br />
<br />
<b>Step4):Now if you want to fetch further information like phone number or email.it can be fetched as follows: </b><i></i><br />
<b>To fetch Phone numbers of all contacts:</b><br />
<br />
<i>Cursor cphon=getContentResolver().query(ContactsContract.CommonDataKinds.Phone.CONTENT_URI, null, ContactsContract.CommonDataKinds.Phone.CONTACT_ID+"="+id, null, null);</i><br />
<i><br />
while(cphon.moveToNext())<br />
{ </i><br />
<i>//all phone numbers will be stored in the arraylist named <b>"PHONE_NUM" </b> PHONE_NUM=cphon.getString(cphon.getColumnIndex(ContactsContract.CommonDataKinds.Phone.NUMBER)); }</i><b> </b><br />
<b><br />
</b><br />
<b><br />
</b><br />
<b>To fetch Email id's of all contacts:</b><i></i><br />
<i><br />
</i><br />
<i>Cursor emailCur = cr.query( <br />
ContactsContract.CommonDataKinds.Email.CONTENT_URI, <br />
null,<br />
ContactsContract.CommonDataKinds.Email.CONTACT_ID + " = ?", <br />
new String[]{id}, null); <br />
<br />
while (emailCur.moveToNext()) { <br />
String email = emailCur.getString(<br />
emailCur.getColumnIndex(ContactsContract.CommonDataKinds.Email.DATA));<br />
<br />
EMAIL_ID.add(email); //I am saving all emails in arraylist named "<b>EMAIL_ID"</b> <br />
String emailType = emailCur.getString(<br />
emailCur.getColumnIndex(ContactsContract.CommonDataKinds.Email.TYPE)); <br />
} <br />
emailCur.close();</i><br />
<i><br />
</i><br />
<i><br />
</i><br />
<i><br />
</i><br />
<i><b>thats it..........................</b></i></div>karanhttp://www.blogger.com/profile/16866753914754917995noreply@blogger.com0tag:blogger.com,1999:blog-4771698670549567193.post-72638152510738570822011-08-19T01:20:00.000-07:002011-08-19T01:20:39.812-07:00Change the Ringer Mode<div dir="ltr" style="text-align: left;" trbidi="on">Today i am going to write about changing the ringer mode of the Android phone programmitically.<br />
Quite Simple: :-)<br />
<br />
<b>Step1):Make an object of Audio Manger class</b><br />
<i> AudioManager am;</i><br />
<i> am = (AudioManager)<br />
context.getSystemService(Context.AUDIO_SERVICE);</i><br />
<b><br />
</b><br />
<b>Step2)Now after you have created the object of audio manager class you can at any time change the Ringer mode as follows:</b><br />
<br />
<b>For Silent Mode:</b><br />
<i>am.setRingerMode(0); </i><br />
<i><br />
</i><br />
<b>For Vibrate mode:</b><i><br />
</i><br />
<i>am.setRingerMode(1); </i><br />
<i><br />
</i><br />
<b>For Normal mode:</b><i><br />
</i><br />
<i>am.setRingerMode(2); </i> <br />
<br />
<br />
:-)</div>karanhttp://www.blogger.com/profile/16866753914754917995noreply@blogger.com1tag:blogger.com,1999:blog-4771698670549567193.post-15357821713779275952011-08-18T03:52:00.000-07:002011-10-20T04:51:40.122-07:00Android Application Global class<div dir="ltr" style="text-align: left;" trbidi="on"><i>Hi in this blog i am going to write about the application global class.</i><br />
<i>You can provide your own implementation by specifying its name in your AndroidManifest.xml's <application> tag.</i><br />
<b>Below is the code tutorial of application global class: </b><br />
<b>Step1:)</b> <b>Create a new class which extends the application class as follows:</b><br />
<i><br />
</i><br />
<i>public class ApplicationSetterClass extends Application{</i><br />
<i> private String mname;</i><br />
<i> private String mage;</i><br />
<i> // This Method will get the name saved in application class</i><br />
<i> public String getName()</i><br />
<i> {</i><br />
<i> return mname;</i><br />
<i> }</i><br />
<br />
<i> // This Method will set the name in application class</i><br />
<i> public void setName(String mname)</i><br />
<i> {</i><br />
<i> this.mname=mname;</i><br />
<i> }</i><br />
<br />
<i> // This Method will get the age saved in application class</i><br />
<i> public String getAge()</i><br />
<i> {</i><br />
<i> return mage;</i><br />
<i> }</i><br />
<br />
<i> public void setAge(String mage)</i><br />
<i> {</i><br />
<i> this.mage=mage;</i><br />
<i> }</i><br />
<i>}</i><br />
<br />
<b>Step2):Now declare your application gobal class in application tag in android manifest file as follows</b><i>:</i><br />
<br />
<i><application android:icon="@drawable/icon" android:name="ApplicationSetterClass" android:label="@string/app_name"></i><br />
<i></application></i><br />
<i><br />
</i><br />
<b><i>Step3)</i></b><b>Now your applciation global class is ready to save the application state</b><i>:</i><b>Make a object of the ApplicationSetterClass in your activty where you want to use it as follows:</b><br />
<br />
<i>ApplicationSetterClass </i><i>appset=(ApplicationSetterClass) getApplication(); </i><br />
<b><br />
</b><br />
<b>Now you can save any data as follows:</b><i><br />
</i><br />
<i> appset.setName("Your droid tutorial");</i><br />
<i> appset.setAge("21");</i><br />
<i><br />
</i><br />
<b>And now this data will be available globally to whole application</b><i>:</i><br />
<b>You can retrieve data as follows:</b><i></i><br />
<i><br />
</i><br />
<i>appset.getName();</i><br />
<i>appset.getAge();</i><br />
<i><br />
</i><br />
<i><b>Source code</b>:</i><a href="https://sites.google.com/site/quickandroidblog/download-stuff">https://sites.google.com/site/quickandroidblog/download-stuff</a></div>karanhttp://www.blogger.com/profile/16866753914754917995noreply@blogger.com1tag:blogger.com,1999:blog-4771698670549567193.post-19162994698057206342011-08-18T01:02:00.000-07:002011-10-20T04:29:22.906-07:00Android tutorial to Change horizontal progress bar color and border<div dir="ltr" style="text-align: left;" trbidi="on"><span style="font-size: small;"><b>In this Android Tutorial i will tell you how to create your own custom progress bar </b></span><br />
<span style="font-size: small;"><b>Below are the steps to create your own </b><b>custom </b><b>progress bar.</b></span><br />
<span style="font-size: small;"><b> Just follow the steps :</b></span><br />
<br />
<span style="font-size: x-small;"><b>STEP - 1)</b></span><br />
<br />
<span style="color: maroon;"><span style="font-weight: bold;">main.xml<span style="color: black;">:</span></span><span style="color: black;">(add this to your main.xml):</span></span><br />
<br />
<code><i style="color: #666666;"><ProgressBar <br />
android:id="@+id/ProgressBar01" <br />
android:layout_width="121dp" <br />
android:layout_height="15dp" <br />
android:progress="50"<br />
android:max="100" <br />
android:secondaryProgress="0"<br />
style="?android:attr/progressBarStyleHorizontal" <br />
android:progressDrawable="@drawable/myprogressbar" <br />
android:layout_marginTop="10dp"<br />
/><br />
</LinearLayout></i></code><br />
<br />
<code><i style="color: #666666;"> </i></code><span style="font-size: x-small;"><b></b></span><br />
<span style="font-size: x-small;"><b>STEP - 2)</b></span><span style="font-weight: bold;"><span style="color: maroon;"> </span></span><br />
<span style="font-weight: bold;"><span style="color: maroon;">myprogressbar.xml<span style="color: white; font-size: x-small;"> </span></span></span><span style="color: black; font-size: small;">(<u><i>save this xml in drawable folder</i></u>)</span><br />
<div style="color: #999999;"><br />
</div><div style="color: #666666;"><code><i><layer-list xmlns:android="http://schemas.android.com/apk/res/android"><br />
<item android:id="@android:id/background"><br />
<shape><br />
<corners android:radius="25dip" /><br />
<gradient android:startColor="#C0C0C0" android:centerColor="#F8F8FF"<br />
android:centerY="0.75" android:endColor="#ffffff" android:angle="90" /><br />
<stroke android:width="1dp" android:color="#6B8E23" /><br />
</shape><br />
</item><br />
<item android:id="@android:id/progress"><br />
<clip><br />
<shape><br />
<corners android:radius="25dip" /><br />
<gradient android:startColor="#9ACD32" android:endColor="#FFFF00"<br />
android:angle="90" /><br />
<stroke android:width="1dp" android:color="#6B8E23" /><br />
</shape><br />
</clip><br />
</item><br />
</layer-list></i></code></div><div style="color: #666666;"><br />
</div></div>karanhttp://www.blogger.com/profile/16866753914754917995noreply@blogger.com13