<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-1315287361724052685</id><updated>2024-08-29T13:23:25.318+05:30</updated><category term="Android Solutions"/><category term="Android Basics"/><category term="Android Tutorial Series"/><category term="My Apps"/><title type='text'>Deepak Garg</title><subtitle type='html'>An Android Developer</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://gargengineer.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1315287361724052685/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://gargengineer.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/03311327316747211268</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>14</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-1315287361724052685.post-1152108575919371654</id><published>2015-05-24T14:57:00.000+05:30</published><updated>2015-05-24T14:59:08.563+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="My Apps"/><title type='text'>Android App - Split N Tip Calculator</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
I have developed new android app and published on Play Store.&lt;br /&gt;
&lt;div&gt;
Name - Split N Tip Calculator.&lt;/div&gt;
&lt;div&gt;
Description -&amp;nbsp;&lt;span style=&quot;background-color: whitesmoke; color: #333333; font-family: Roboto, UILanguageFont, Arial, sans-serif; font-size: 14px; line-height: 20px;&quot;&gt;Calculate tip and split the bill with Split N Tip - the ultimate tip calculator, built on Android Material design!&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;background-color: whitesmoke; color: #333333; font-family: Roboto, UILanguageFont, Arial, sans-serif; font-size: 14px; line-height: 20px;&quot;&gt;This tip calculator app not only calculates tip quickly and easily but also helps to split the bill between any number of people.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: whitesmoke; color: #333333; font-family: Roboto, UILanguageFont, Arial, sans-serif; font-size: 14px; line-height: 20px;&quot;&gt;Enter bill amount on the tip calculator and see changes to the tip amount, total amount and amount payable per person immediately.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: whitesmoke; color: #333333; font-family: Roboto, UILanguageFont, Arial, sans-serif; font-size: 14px; line-height: 20px;&quot;&gt;Settings to set default tip percentage value for each user.&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
https://play.google.com/store/apps/details?id=com.deeps.splitntipcalculator&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://gargengineer.blogspot.com/feeds/1152108575919371654/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gargengineer.blogspot.com/2015/05/i-have-developed-new-android-app-and.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1315287361724052685/posts/default/1152108575919371654'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1315287361724052685/posts/default/1152108575919371654'/><link rel='alternate' type='text/html' href='http://gargengineer.blogspot.com/2015/05/i-have-developed-new-android-app-and.html' title='Android App - Split N Tip Calculator'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/03311327316747211268</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1315287361724052685.post-7705550090159674444</id><published>2012-05-03T11:07:00.000+05:30</published><updated>2012-05-03T11:08:38.045+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Android Tutorial Series"/><title type='text'>Tutorial 2: Understanding Android Layouts</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;In
Android, there are various types of layouts available which are used to design
the screen or we can say, are used to arrange the order of various
widgets(like- TextView, EditText, Button, Image, ImageButton etc.) in the
required manner. In Android terms, the layouts are called as ViewGroups and
widgets are called as Views.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhWSUkPvps1Qhw1VazJhXEpXz_7mk9XVTUrkADV6L3Kbroto7imMiKHcJKku9g-YgvjSrUXtxqM05L6mW3LHTczQkE2zoL5yAv86jDdSIXc4Ia69bGMwuzbJ3-F296alf-z-x194AwITail/s1600/2.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhWSUkPvps1Qhw1VazJhXEpXz_7mk9XVTUrkADV6L3Kbroto7imMiKHcJKku9g-YgvjSrUXtxqM05L6mW3LHTczQkE2zoL5yAv86jDdSIXc4Ia69bGMwuzbJ3-F296alf-z-x194AwITail/s1600/2.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;The wise use of different layouts in the screen
can reduce the development time and effort and even can save you from the later
stage issues (like- inserting more widgets in the screen in later stage,
porting to different screen resolutions, we will discuss it in the upcoming
posts).&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;So,
Lets start understanding the behavior of different layouts:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span class=&quot;Heading2Char&quot;&gt;&lt;span style=&quot;color: #33cc33; font-family: Calibri;&quot;&gt;Linear Layout: &lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Heading2Char&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;Linear layout arranges all the children
widgets in one direction like- vertical or horizontal as shown in the image.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhQAkXzpu-H5nfZFbnB1hjmAlaj2tH4SjVjscyr4tE5cAN9PJUIGyhUtcLS5GfW37IbdRy6wMNXJteTldfXX037vMpipE39FFby8Ww2LhDJz-qu7D88mS7bN-D8I5XSa8Lk8f0xjSuNpTcF/s1600/linear_layout.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;277&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhQAkXzpu-H5nfZFbnB1hjmAlaj2tH4SjVjscyr4tE5cAN9PJUIGyhUtcLS5GfW37IbdRy6wMNXJteTldfXX037vMpipE39FFby8Ww2LhDJz-qu7D88mS7bN-D8I5XSa8Lk8f0xjSuNpTcF/s400/linear_layout.PNG&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span class=&quot;Heading2Char&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span class=&quot;Heading2Char&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;So,
where ever we want some widgets to be aligned in a single direction, we can
make use of Linear Layout.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhWSUkPvps1Qhw1VazJhXEpXz_7mk9XVTUrkADV6L3Kbroto7imMiKHcJKku9g-YgvjSrUXtxqM05L6mW3LHTczQkE2zoL5yAv86jDdSIXc4Ia69bGMwuzbJ3-F296alf-z-x194AwITail/s1600/2.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhWSUkPvps1Qhw1VazJhXEpXz_7mk9XVTUrkADV6L3Kbroto7imMiKHcJKku9g-YgvjSrUXtxqM05L6mW3LHTczQkE2zoL5yAv86jDdSIXc4Ia69bGMwuzbJ3-F296alf-z-x194AwITail/s1600/2.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span class=&quot;Heading2Char&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;Remember
that designing the android screen goes from top to down fashion.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span class=&quot;Heading2Char&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhWSUkPvps1Qhw1VazJhXEpXz_7mk9XVTUrkADV6L3Kbroto7imMiKHcJKku9g-YgvjSrUXtxqM05L6mW3LHTczQkE2zoL5yAv86jDdSIXc4Ia69bGMwuzbJ3-F296alf-z-x194AwITail/s1600/2.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhWSUkPvps1Qhw1VazJhXEpXz_7mk9XVTUrkADV6L3Kbroto7imMiKHcJKku9g-YgvjSrUXtxqM05L6mW3LHTczQkE2zoL5yAv86jDdSIXc4Ia69bGMwuzbJ3-F296alf-z-x194AwITail/s1600/2.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span class=&quot;Heading2Char&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;Android
has given three amazing properties- &lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Heading2Char&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;wrap_content&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Heading2Char&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;,
&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Heading2Char&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;match_parent&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Heading2Char&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;, &lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Heading2Char&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;fill_parent&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Heading2Char&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;
to declare the height and width of the layouts and widgets. The one should make
use of them very wisely. Never practice declaring the absolute height and width
of any view. The best way is to use property &lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Heading2Char&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;wrap_content&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Heading2Char&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt; maximally.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span class=&quot;Heading2Char&quot;&gt;&lt;span style=&quot;color: #33cc33; font-family: Calibri;&quot;&gt;Relative Layout: &lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Heading2Char&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;Relative layout arranges the children
widgets relative to the parent layout or relative to each other. Best way to
understand it, look at the image.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgWqAvWhWvfsDa9ryk-BXaK2iudEPW-eZltDugZlJVCwvfaqFMXTGMI2gw9icwAItgouPsM9dman7G-aTOOsbHE2FQr2DclQBvRRLiuk7-TTZ-U3Du4QBIoIJDPpFY_QOUb1wU7cN8OMkRj/s1600/relative_layout.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgWqAvWhWvfsDa9ryk-BXaK2iudEPW-eZltDugZlJVCwvfaqFMXTGMI2gw9icwAItgouPsM9dman7G-aTOOsbHE2FQr2DclQBvRRLiuk7-TTZ-U3Du4QBIoIJDPpFY_QOUb1wU7cN8OMkRj/s320/relative_layout.PNG&quot; width=&quot;313&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span class=&quot;Heading2Char&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span class=&quot;Heading2Char&quot;&gt;&lt;span style=&quot;color: #33cc33; font-family: Calibri;&quot;&gt;Table Layout: &lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Heading2Char&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;Table layout arranges the children
widgets in the table, i.e. rows and columns, look at the image.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjA0PQUmDOC2phNBsvwLM_BkYgj897WBSZD2QQQInSTy2fd7KgEVhJgOLpHVym1yXIonhlySfnIZNcNmEf62-H-AuL6fRvpq6GVdSUhes1RwLeELKnt2n3UEGEL2Ok-ur-rmo1SoIMqf7qP/s1600/table_layout.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjA0PQUmDOC2phNBsvwLM_BkYgj897WBSZD2QQQInSTy2fd7KgEVhJgOLpHVym1yXIonhlySfnIZNcNmEf62-H-AuL6fRvpq6GVdSUhes1RwLeELKnt2n3UEGEL2Ok-ur-rmo1SoIMqf7qP/s320/table_layout.PNG&quot; width=&quot;318&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span class=&quot;Heading2Char&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span class=&quot;Heading2Char&quot;&gt;&lt;span style=&quot;color: #33cc33; font-family: Calibri;&quot;&gt;Frame Layout: &lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Heading2Char&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;Frame layout arranges the children
widgets relative to top left point. In this way, the widgets may get overlapped
as shown in the image.&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Heading2Char&quot;&gt;&lt;span style=&quot;color: #33cc33; font-family: Calibri;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjTa3yBw-4Xg6tQFjx6RG69kemk9c3TOBiAtmbMSyWedW5jQXkQpfmZjkny7TBCf03z9oSMj922-oUNdy-Mli4DT2fpvx7ljRr5bK8e8SljOKiTM6onQkQuxIt6rhvDDcX5csppbBe6SQzh/s1600/frame_layout.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjTa3yBw-4Xg6tQFjx6RG69kemk9c3TOBiAtmbMSyWedW5jQXkQpfmZjkny7TBCf03z9oSMj922-oUNdy-Mli4DT2fpvx7ljRr5bK8e8SljOKiTM6onQkQuxIt6rhvDDcX5csppbBe6SQzh/s320/frame_layout.PNG&quot; width=&quot;284&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span class=&quot;Heading2Char&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span class=&quot;Heading2Char&quot;&gt;&lt;span style=&quot;color: #33cc33; font-family: Calibri;&quot;&gt;Absolute Layout: &lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Heading2Char&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;Absolute layout pins the children widgets
in the coordinate points as shown in the image.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj-SbHMMKnDoweG0BIZlqlizVoaM8l0pVYxQQ3xLWrkd-tzcs3resIXQKs8lWk22fiwJkuTWKE5WtG2PIWUfBLyvAKtmJO9D8C06Hd7EofENTDEE7yPnZkfhSQfGWj85ftNGw5sx1snlNWo/s1600/absolute_layout.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj-SbHMMKnDoweG0BIZlqlizVoaM8l0pVYxQQ3xLWrkd-tzcs3resIXQKs8lWk22fiwJkuTWKE5WtG2PIWUfBLyvAKtmJO9D8C06Hd7EofENTDEE7yPnZkfhSQfGWj85ftNGw5sx1snlNWo/s320/absolute_layout.PNG&quot; width=&quot;236&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;However,
this layout is advised not to practice as it raises the issues while designing
the same layout for different screen resolutions. Even it has been deprecated
in the latest versions of Android.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;Please
post your feedbacks/challenges &lt;/span&gt;&lt;span style=&quot;font-family: Wingdings;&quot;&gt;J&lt;/span&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gargengineer.blogspot.com/feeds/7705550090159674444/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gargengineer.blogspot.com/2012/05/tutorial-2-understanding-android.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1315287361724052685/posts/default/7705550090159674444'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1315287361724052685/posts/default/7705550090159674444'/><link rel='alternate' type='text/html' href='http://gargengineer.blogspot.com/2012/05/tutorial-2-understanding-android.html' title='Tutorial 2: Understanding Android Layouts'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/03311327316747211268</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhWSUkPvps1Qhw1VazJhXEpXz_7mk9XVTUrkADV6L3Kbroto7imMiKHcJKku9g-YgvjSrUXtxqM05L6mW3LHTczQkE2zoL5yAv86jDdSIXc4Ia69bGMwuzbJ3-F296alf-z-x194AwITail/s72-c/2.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1315287361724052685.post-2059189967332113496</id><published>2012-05-02T17:33:00.002+05:30</published><updated>2012-05-03T09:38:35.830+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Android Tutorial Series"/><title type='text'>Tutorial 1: Login Screen</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;Hi guys!! Here we open the
Android tutorial series with Login Screen tutorials.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;Tuts Approach: Initially
we will start learning Android UI creation and implementing small logic on them
or you can say various events on widgets(like- OnClick, OnTouch etc.) &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;

&lt;span class=&quot;Heading1Char&quot;&gt;&lt;span style=&quot;color: #99cc00; font-family: Calibri; font-size: 16pt;&quot;&gt;Requirement:&lt;/span&gt;&lt;/span&gt; &lt;span style=&quot;font-family: Calibri;&quot;&gt;A login screen which will accept a valid username
and password&lt;/span&gt;&lt;/h3&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;

&lt;span style=&quot;color: #99cc00; font-family: Calibri;&quot;&gt;Implementation:&lt;/span&gt;&lt;/h3&gt;
&lt;ul style=&quot;margin-top: 0in;&quot; type=&quot;disc&quot;&gt;
&lt;li class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;Select
Eclipse-&amp;gt;File-&amp;gt;New-&amp;gt;Android Project, in the dialog, fill the fields, Project
Name (ex: LoginExample), Build Target (to compile the application by a
particular Android SDK), Application Name (name of application, ex:
LoginExample), Package Name (ex: com.deepak.login), Create Activity (ex:
LoginActivity)&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;Click
on Next-&amp;gt;Finish. An android project folder with name ‘LoginExample’ will get
built in the left pane (Project Explorer) of Eclipse.&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Calibri; text-align: justify;&quot;&gt;On exploring the Project folder, you will be able
to see the sub folders &lt;/span&gt;&lt;b style=&quot;font-family: Calibri; text-align: justify;&quot;&gt;&lt;i&gt;/src&lt;/i&gt;&lt;/b&gt;&lt;i style=&quot;font-family: Calibri; text-align: justify;&quot;&gt;, &lt;b&gt;/gen&lt;/b&gt;, &lt;b&gt;/res&lt;/b&gt;&lt;/i&gt;&lt;span style=&quot;font-family: Calibri; text-align: justify;&quot;&gt; &amp;amp; &lt;/span&gt;&lt;b style=&quot;font-family: Calibri; text-align: justify;&quot;&gt;&lt;i&gt;AndroidManifest.xml&amp;nbsp;&lt;/i&gt;&lt;/b&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-left: .25in;&quot;&gt;
&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;Note:
The above steps are for project creation which will not be mentioned in the each
post. Please learn and practice them.&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-left: .25in;&quot;&gt;
&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span class=&quot;Heading2Char&quot;&gt;&lt;span style=&quot;color: #33cc33; font-family: Calibri;&quot;&gt;Creating Layout: &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;After the deciding the screen design by some doing
paper work or on paint file, we should create the layout first. Here, in our
case, I am not showing any raw paper work or paint file for screen design. Once
you will go through this layout till the end, you will get the idea for screen
designing.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;Source
code:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;In
res/values folder&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; text-align: left;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; text-align: left;&quot;&gt;in the project in your eclipse&lt;/span&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;, edit strings.xml file&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: teal; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;&amp;lt;?&lt;/span&gt;&lt;span style=&quot;color: #3f7f7f; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;xml&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt; &lt;span style=&quot;color: #7f007f;&quot;&gt;version&lt;/span&gt;=&lt;i&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;1.0&quot;&lt;/span&gt;&lt;/i&gt;
&lt;span style=&quot;color: #7f007f;&quot;&gt;encoding&lt;/span&gt;=&lt;i&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;utf-8&quot;&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;color: teal;&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: teal; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #3f7f7f; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;resources&lt;/span&gt;&lt;span style=&quot;color: teal; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: teal; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #3f7f7f; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;string&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt; &lt;span style=&quot;color: #7f007f;&quot;&gt;name&lt;/span&gt;=&lt;i&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;hello&quot;&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;color: teal;&quot;&gt;&amp;gt;&lt;/span&gt;Hello World, LoginActivity!&lt;span style=&quot;color: teal;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #3f7f7f;&quot;&gt;string&lt;/span&gt;&lt;span style=&quot;color: teal;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: teal; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #3f7f7f; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;string&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt; &lt;span style=&quot;color: #7f007f;&quot;&gt;name&lt;/span&gt;=&lt;i&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;app_name&quot;&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;color: teal;&quot;&gt;&amp;gt;&lt;/span&gt;LoginExample&lt;span style=&quot;color: teal;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #3f7f7f;&quot;&gt;string&lt;/span&gt;&lt;span style=&quot;color: teal;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: teal; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #3f7f7f; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;string&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt; &lt;span style=&quot;color: #7f007f;&quot;&gt;name&lt;/span&gt;=&lt;i&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;login_title&quot;&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;color: teal;&quot;&gt;&amp;gt;&lt;/span&gt;Login Screen&lt;span style=&quot;color: teal;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #3f7f7f;&quot;&gt;string&lt;/span&gt;&lt;span style=&quot;color: teal;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: teal; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #3f7f7f; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;string&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt; &lt;span style=&quot;color: #7f007f;&quot;&gt;name&lt;/span&gt;=&lt;i&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;username&quot;&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;color: teal;&quot;&gt;&amp;gt;&lt;/span&gt;Username&lt;span style=&quot;color: teal;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #3f7f7f;&quot;&gt;string&lt;/span&gt;&lt;span style=&quot;color: teal;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: teal; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #3f7f7f; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;string&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt; &lt;span style=&quot;color: #7f007f;&quot;&gt;name&lt;/span&gt;=&lt;i&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;password&quot;&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;color: teal;&quot;&gt;&amp;gt;&lt;/span&gt;Password&lt;span style=&quot;color: teal;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #3f7f7f;&quot;&gt;string&lt;/span&gt;&lt;span style=&quot;color: teal;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: teal; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #3f7f7f; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;string&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt; &lt;span style=&quot;color: #7f007f;&quot;&gt;name&lt;/span&gt;=&lt;i&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;login&quot;&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;color: teal;&quot;&gt;&amp;gt;&lt;/span&gt;Login&lt;span style=&quot;color: teal;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #3f7f7f;&quot;&gt;string&lt;/span&gt;&lt;span style=&quot;color: teal;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;color: teal; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #3f7f7f; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;resources&lt;/span&gt;&lt;span style=&quot;color: teal; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;In the string.xml file, we should declare all Strings which are going to use in the screen, so that we need not to hard code them in the Java code.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;Place the login.xml file
in res/layout/ folder in the project in your eclipse&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;Layout File : login.xml&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: teal; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;lt;?&lt;/span&gt;&lt;span style=&quot;color: #3f7f7f; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;xml&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt; &lt;span style=&quot;color: #7f007f;&quot;&gt;version&lt;/span&gt;=&lt;i&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;1.0&quot;&lt;/span&gt;&lt;/i&gt;
&lt;span style=&quot;color: #7f007f;&quot;&gt;encoding&lt;/span&gt;=&lt;i&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;utf-8&quot;&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;color: teal;&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: teal; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #3f7f7f; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;LinearLayout&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt; &lt;span style=&quot;color: #7f007f;&quot;&gt;xmlns:android&lt;/span&gt;=&lt;i&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;http://schemas.android.com/apk/res/android&quot;&lt;/span&gt;&lt;/i&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #7f007f;&quot;&gt;android:layout_width&lt;/span&gt;=&lt;i&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;fill_parent&quot;&lt;/span&gt;&lt;/i&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #7f007f;&quot;&gt;android:layout_height&lt;/span&gt;=&lt;i&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;fill_parent&quot;&lt;/span&gt;&lt;/i&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #7f007f;&quot;&gt;android:orientation&lt;/span&gt;=&lt;i&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;vertical&quot;&lt;/span&gt;&lt;/i&gt;
&lt;span style=&quot;color: teal;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #3f5fbf; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;lt;!-- Login Title --&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: teal; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #3f7f7f; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;TextView&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #7f007f;&quot;&gt;android:layout_width&lt;/span&gt;=&lt;i&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;fill_parent&quot;&lt;/span&gt;&lt;/i&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #7f007f;&quot;&gt;android:layout_height&lt;/span&gt;=&lt;i&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;wrap_content&quot;&lt;/span&gt;&lt;/i&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #7f007f;&quot;&gt;android:text&lt;/span&gt;=&lt;i&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;@string/login_title&quot;&lt;/span&gt;&lt;/i&gt;
&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #7f007f;&quot;&gt;android:gravity&lt;/span&gt;=&lt;i&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;center_horizontal&quot;&lt;/span&gt;&lt;/i&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #7f007f;&quot;&gt;android:textSize&lt;/span&gt;=&lt;i&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;20dp&quot;&lt;/span&gt;&lt;/i&gt;&amp;nbsp; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp; &lt;i&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;color: teal;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #3f5fbf; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;lt;!-- Login Image --&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;u&gt;&lt;span style=&quot;color: teal; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;/u&gt;&lt;u&gt;&lt;span style=&quot;color: #3f7f7f; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;ImageView&lt;/span&gt;&lt;/u&gt;&lt;u&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt; &lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #7f007f;&quot;&gt;android:layout_width&lt;/span&gt;=&lt;i&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;fill_parent&quot;&lt;/span&gt;&lt;/i&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #7f007f;&quot;&gt;android:layout_height&lt;/span&gt;=&lt;i&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;0dp&quot;&lt;/span&gt;&lt;/i&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #7f007f;&quot;&gt;android:gravity&lt;/span&gt;=&lt;i&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;center_horizontal&quot;&lt;/span&gt;&lt;/i&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #7f007f;&quot;&gt;android:src&lt;/span&gt;=&lt;i&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;@drawable/ic_launcher&quot;&lt;/span&gt;&lt;/i&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #7f007f;&quot;&gt;android:layout_weight&lt;/span&gt;=&lt;i&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;1.1&quot;&lt;/span&gt;&lt;/i&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #7f007f;&quot;&gt;android:padding&lt;/span&gt;=&lt;i&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;20dp&quot;&lt;/span&gt;&lt;/i&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: teal;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #3f5fbf; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;lt;!-- layout for Username --&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: teal; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #3f7f7f; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;LinearLayout&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #7f007f;&quot;&gt;android:layout_width&lt;/span&gt;=&lt;i&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;fill_parent&quot;&lt;/span&gt;&lt;/i&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #7f007f;&quot;&gt;android:layout_height&lt;/span&gt;=&lt;i&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;wrap_content&quot;&lt;/span&gt;&lt;/i&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #7f007f;&quot;&gt;android:orientation&lt;/span&gt;=&lt;i&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;horizontal&quot;&lt;/span&gt;&lt;/i&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #7f007f;&quot;&gt;android:layout_weight&lt;/span&gt;=&lt;i&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;0.01&quot;&lt;/span&gt;&lt;/i&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #7f007f;&quot;&gt;android:padding&lt;/span&gt;=&lt;i&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;10dp&quot;&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;color: teal;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: teal; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #3f7f7f; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;TextView&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #7f007f;&quot;&gt;android:layout_height&lt;/span&gt;=&lt;i&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;wrap_content&quot;&lt;/span&gt;&lt;/i&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;span style=&quot;color: #7f007f;&quot;&gt;android:layout_width&lt;/span&gt;=&lt;i&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;0dp&quot;&lt;/span&gt;&lt;/i&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;u&gt;&lt;span style=&quot;color: #7f007f;&quot;&gt;android:layout_weight&lt;/span&gt;=&lt;i&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;1.0&quot;&lt;/span&gt;&lt;/i&gt;&lt;/u&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #7f007f;&quot;&gt;android:text&lt;/span&gt;=&lt;i&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;@string/username&quot;&lt;/span&gt;&lt;/i&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #7f007f;&quot;&gt;android:textSize&lt;/span&gt;=&lt;i&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;18dp&quot;&lt;/span&gt;&lt;/i&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: teal;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: teal; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #3f7f7f; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;EditText&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #7f007f;&quot;&gt;android:id&lt;/span&gt;=&lt;i&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;@+id/username&quot;&lt;/span&gt;&lt;/i&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #7f007f;&quot;&gt;android:layout_width&lt;/span&gt;=&lt;i&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;0dp&quot;&lt;/span&gt;&lt;/i&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #7f007f;&quot;&gt;android:layout_height&lt;/span&gt;=&lt;i&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;wrap_content&quot;&lt;/span&gt;&lt;/i&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #7f007f;&quot;&gt;android:layout_weight&lt;/span&gt;=&lt;i&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;1.0&quot;&lt;/span&gt;&lt;/i&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #7f007f;&quot;&gt;android:ems&lt;/span&gt;=&lt;i&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;10&quot;&lt;/span&gt;&lt;/i&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #7f007f;&quot;&gt;android:inputType&lt;/span&gt;=&lt;i&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;text&quot;&lt;/span&gt;&lt;/i&gt;
&lt;span style=&quot;color: teal;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: teal; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #3f7f7f; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;requestFocus&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt; &lt;span style=&quot;color: teal;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: teal; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #3f7f7f; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;EditText&lt;/span&gt;&lt;span style=&quot;color: teal; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: teal; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #3f7f7f; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;LinearLayout&lt;/span&gt;&lt;span style=&quot;color: teal; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #3f5fbf; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;lt;!-- layout for Password --&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: teal; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #3f7f7f; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;LinearLayout&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #7f007f;&quot;&gt;android:layout_width&lt;/span&gt;=&lt;i&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;fill_parent&quot;&lt;/span&gt;&lt;/i&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #7f007f;&quot;&gt;android:layout_height&lt;/span&gt;=&lt;i&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;wrap_content&quot;&lt;/span&gt;&lt;/i&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #7f007f;&quot;&gt;android:orientation&lt;/span&gt;=&lt;i&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;horizontal&quot;&lt;/span&gt;&lt;/i&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #7f007f;&quot;&gt;android:layout_weight&lt;/span&gt;=&lt;i&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;0.01&quot;&lt;/span&gt;&lt;/i&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #7f007f;&quot;&gt;android:padding&lt;/span&gt;=&lt;i&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;10dp&quot;&lt;/span&gt;&lt;/i&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: teal;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: teal; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #3f7f7f; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;TextView&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #7f007f;&quot;&gt;android:layout_height&lt;/span&gt;=&lt;i&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;wrap_content&quot;&lt;/span&gt;&lt;/i&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #7f007f;&quot;&gt;android:layout_width&lt;/span&gt;=&lt;i&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;0dp&quot;&lt;/span&gt;&lt;/i&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;u&gt;&lt;span style=&quot;color: #7f007f;&quot;&gt;android:layout_weight&lt;/span&gt;=&lt;i&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;1.0&quot;&lt;/span&gt;&lt;/i&gt;&lt;/u&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #7f007f;&quot;&gt;android:text&lt;/span&gt;=&lt;i&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;@string/password&quot;&lt;/span&gt;&lt;/i&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #7f007f;&quot;&gt;android:textSize&lt;/span&gt;=&lt;i&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;18dp&quot;&lt;/span&gt;&lt;/i&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: teal;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: teal; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #3f7f7f; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;EditText&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #7f007f;&quot;&gt;android:id&lt;/span&gt;=&lt;i&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;@+id/password&quot;&lt;/span&gt;&lt;/i&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #7f007f;&quot;&gt;android:layout_height&lt;/span&gt;=&lt;i&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;wrap_content&quot;&lt;/span&gt;&lt;/i&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #7f007f;&quot;&gt;android:layout_width&lt;/span&gt;=&lt;i&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;0dp&quot;&lt;/span&gt;&lt;/i&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #7f007f;&quot;&gt;android:layout_weight&lt;/span&gt;=&lt;i&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;1.0&quot;&lt;/span&gt;&lt;/i&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #7f007f;&quot;&gt;android:inputType&lt;/span&gt;=&lt;i&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;textPassword&quot;&lt;/span&gt;&lt;/i&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: teal;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: teal; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #3f7f7f; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;LinearLayout&lt;/span&gt;&lt;span style=&quot;color: teal; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: teal; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #3f7f7f; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;Button&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #7f007f;&quot;&gt;android:id&lt;/span&gt;=&lt;i&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;@+id/login&quot;&lt;/span&gt;&lt;/i&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #7f007f;&quot;&gt;android:layout_width&lt;/span&gt;=&lt;i&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;match_parent&quot;&lt;/span&gt;&lt;/i&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #7f007f;&quot;&gt;android:layout_height&lt;/span&gt;=&lt;i&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;wrap_content&quot;&lt;/span&gt;&lt;/i&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #7f007f;&quot;&gt;android:text&lt;/span&gt;=&lt;i&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;@string/login&quot;&lt;/span&gt;&lt;/i&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #7f007f;&quot;&gt;android:layout_margin&lt;/span&gt;=&lt;i&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;10dp&quot;&lt;/span&gt;&lt;/i&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;i&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;color: teal;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-left: .25in;&quot;&gt;
&lt;span style=&quot;color: teal; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #3f7f7f; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;LinearLayout&lt;/span&gt;&lt;span style=&quot;color: teal; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-left: .25in;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-left: .25in;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;In the above layout, the
widgets which we have used are TextView (Title Label for the screen), ImageView
(Image for the Screen), Linear layout (for username TextView i.e. label and
EditText i.e. textbox), another Linear Layout (for password TextView i.e. label
and EditText i.e. textbox) and a button (for Login).&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;We have written the
properties to each of these widgets like-id, width, height, text, textsize,
padding, margin etc.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-left: .25in;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;For more in-depth
knowledge on UI elements: Follow this links &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;a href=&quot;http://developer.android.com/guide/topics/ui/index.html&quot;&gt;http://developer.android.com/guide/topics/ui/index.html&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;a href=&quot;http://developer.android.com/guide/topics/ui/declaring-layout.html&quot;&gt;http://developer.android.com/guide/topics/ui/declaring-layout.html&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-left: .25in;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span class=&quot;Heading2Char&quot;&gt;&lt;span style=&quot;color: #33cc33; font-family: Calibri;&quot;&gt;Writing Activity
Class:&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt; Now, we gotta write
Activity class which will contain the business logic. In Activity class, we
will bind the UI elements (which we have written in the layout xml file) in the
form of Java Class objects and perform action/events like getting inputs from
user, performing operation on the data and responding or doing action based on
that.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;Edit the file from
src/com.deepak.login/LoginActivity.java from your Eclipse&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;Source code:
LoginActivity.java&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;package&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;
com.deepak.login;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;import&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;
android.app.Activity;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;import&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;
android.os.Bundle;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;import&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;
android.view.View;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;import&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;
android.view.View.OnClickListener;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;import&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;
android.widget.Button;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;import&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;
android.widget.EditText;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;import&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;
android.widget.Toast;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;public&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt; &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;class&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt; LoginActivity &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;extends&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt; Activity {&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; String &lt;/span&gt;&lt;span style=&quot;color: #0000c0; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;userName&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #0000c0; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;passWord&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; EditText &lt;/span&gt;&lt;span style=&quot;color: #0000c0; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;username&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #0000c0; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;password&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Button &lt;/span&gt;&lt;span style=&quot;color: #0000c0; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;login&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #3f5fbf; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;/** Called when the activity is first
created. */&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #646464; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;@Override&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;public&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt; &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;void&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt; onCreate(Bundle
savedInstanceState) {&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;super&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;.onCreate(savedInstanceState);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; setContentView(R.layout.&lt;/span&gt;&lt;i&gt;&lt;span style=&quot;color: #0000c0; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;login&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #3f7f5f; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;// UI elements gets bind in form of
Java Objects&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000c0; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;username&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt; = (EditText)findViewById(R.id.&lt;/span&gt;&lt;i&gt;&lt;span style=&quot;color: #0000c0; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;username&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000c0; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;password&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt; = (EditText)findViewById(R.id.&lt;/span&gt;&lt;i&gt;&lt;span style=&quot;color: #0000c0; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;password&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000c0; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;login&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt; = (Button)findViewById(R.id.&lt;/span&gt;&lt;i&gt;&lt;span style=&quot;color: #0000c0; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;login&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #3f7f5f; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;// now we have got the handle over the
UI widgets&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #3f7f5f; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;// setting listener on Login Button &lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #3f7f5f; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;// i.e. OnClick Event&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000c0; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;login&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;.setOnClickListener(&lt;/span&gt;&lt;span style=&quot;color: #0000c0; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;loginListener&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;);&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;private&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt; OnClickListener
&lt;/span&gt;&lt;span style=&quot;color: #0000c0; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;loginListener&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt; = &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;new&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;
OnClickListener() {&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;public&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt; &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;void&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt; onClick(View v)
{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-left: .5in; mso-layout-grid-align: none; text-autospace: none; text-indent: .5in;&quot;&gt;
&lt;span style=&quot;color: #3f7f5f; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;//getting inputs from user and performing data operations&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;if&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000c0; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;username&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;.getText().toString().equals(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&quot;deepak&quot;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;) &amp;amp;&amp;amp; &lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000c0; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;password&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;.getText().toString().equals(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&quot;garg&quot;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;)){&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-left: 1.0in; mso-layout-grid-align: none; text-autospace: none; text-indent: .5in;&quot;&gt;
&lt;span style=&quot;color: #3f7f5f; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;// responding to the User inputs&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Toast.&lt;i&gt;makeText&lt;/i&gt;(getApplicationContext(),
&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&quot;Login
Successfully !!!&quot;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;, Toast.&lt;/span&gt;&lt;i&gt;&lt;span style=&quot;color: #0000c0; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;LENGTH_LONG&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;).show();&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;else&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Toast.&lt;i&gt;makeText&lt;/i&gt;(getApplicationContext(),
&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&quot;Login
Not Successful !!!&quot;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;, Toast.&lt;/span&gt;&lt;i&gt;&lt;span style=&quot;color: #0000c0; font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;LENGTH_LONG&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;).show();&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; };&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;h2&gt;

&lt;span style=&quot;color: #33cc33; font-family: Calibri; font-size: 12pt;&quot;&gt;Output:&amp;nbsp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/h2&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgCFdXA6nk8W-3sK19S-Mik-ZH5P1LvS1N_UGsaR7yFdgtnKXpfvjsLgWL5trxuzVfR7uzzStCGQ8YLawUR8z8YqRdxgCbSx9NiAkrtiPEasA0X2ZgAs_SpiLDmLZ9DjAIR4B2JijWaFf7W/s1600/login-1.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgCFdXA6nk8W-3sK19S-Mik-ZH5P1LvS1N_UGsaR7yFdgtnKXpfvjsLgWL5trxuzVfR7uzzStCGQ8YLawUR8z8YqRdxgCbSx9NiAkrtiPEasA0X2ZgAs_SpiLDmLZ9DjAIR4B2JijWaFf7W/s320/login-1.png&quot; width=&quot;213&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEidAyOFRpsvz8e2WYtgHS_slzFMh8VPbv20Sq_q1oGm3WVw-cFoRk2sgPRF1P1FXfPOMKi_QJTSqZ5xaXpkeE4HN6GBDSHIVHQuKOr1trPf1NCulyWQtcfySQs2QvE-Lf96V2LbMDdqbxry/s1600/login-2.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em; text-align: center;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEidAyOFRpsvz8e2WYtgHS_slzFMh8VPbv20Sq_q1oGm3WVw-cFoRk2sgPRF1P1FXfPOMKi_QJTSqZ5xaXpkeE4HN6GBDSHIVHQuKOr1trPf1NCulyWQtcfySQs2QvE-Lf96V2LbMDdqbxry/s320/login-2.png&quot; width=&quot;213&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgiKhM5ecKtJOhHLXYatSWmBX_a1e0TQAFSQMX-fimPMyxwAw8C7roiSQ64QenBHqnMkvgfe9ATyN6BFBnXnKDTGblQ-yEo1kUsEfSovh1HUQd2W2GotSnz-ad8G3PFFaotPPJmCRrr0JsG/s1600/login-3.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em; text-align: center;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgiKhM5ecKtJOhHLXYatSWmBX_a1e0TQAFSQMX-fimPMyxwAw8C7roiSQ64QenBHqnMkvgfe9ATyN6BFBnXnKDTGblQ-yEo1kUsEfSovh1HUQd2W2GotSnz-ad8G3PFFaotPPJmCRrr0JsG/s320/login-3.png&quot; width=&quot;213&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;Congs
for creating the first screen on android, the login screen. Guys! This tutorial
gives you the basic look on android development.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #33cc33; font-family: Calibri; mso-bidi-font-style: italic;&quot;&gt;Android recommends the Login Design in a different way:&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;The
above design is the typical Login screen design which we see on all desktop
applications or even on some mobile apps. Now, we will implement the login
design what Android recommends. We can make some changes in the earlier design
to reach to the new one; the new one is more specific to mobile screens.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;Create
a new layout xml file the login_android.xml file in res/layout/ folder in the
project in your eclipse&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;Source
code: login_android.xml&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: teal; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;&amp;lt;?&lt;/span&gt;&lt;span style=&quot;color: #3f7f7f; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;xml&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt; &lt;span style=&quot;color: #7f007f;&quot;&gt;version&lt;/span&gt;=&lt;i&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;1.0&quot;&lt;/span&gt;&lt;/i&gt;
&lt;span style=&quot;color: #7f007f;&quot;&gt;encoding&lt;/span&gt;=&lt;i&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;utf-8&quot;&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;color: teal;&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: teal; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #3f7f7f; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;LinearLayout&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt; &lt;span style=&quot;color: #7f007f;&quot;&gt;xmlns:android&lt;/span&gt;=&lt;i&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;http://schemas.android.com/apk/res/android&quot;&lt;/span&gt;&lt;/i&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #7f007f;&quot;&gt;android:layout_width&lt;/span&gt;=&lt;i&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;fill_parent&quot;&lt;/span&gt;&lt;/i&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #7f007f;&quot;&gt;android:layout_height&lt;/span&gt;=&lt;i&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;fill_parent&quot;&lt;/span&gt;&lt;/i&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #7f007f;&quot;&gt;android:orientation&lt;/span&gt;=&lt;i&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;vertical&quot;&lt;/span&gt;&lt;/i&gt;
&lt;span style=&quot;color: teal;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #3f5fbf; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;&amp;lt;!-- Login Title --&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: teal; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #3f7f7f; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;TextView&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #7f007f;&quot;&gt;android:layout_width&lt;/span&gt;=&lt;i&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;fill_parent&quot;&lt;/span&gt;&lt;/i&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #7f007f;&quot;&gt;android:layout_height&lt;/span&gt;=&lt;i&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;wrap_content&quot;&lt;/span&gt;&lt;/i&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #7f007f;&quot;&gt;android:text&lt;/span&gt;=&lt;i&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;@string/login_title&quot;&lt;/span&gt;&lt;/i&gt;
&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #7f007f;&quot;&gt;android:gravity&lt;/span&gt;=&lt;i&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;center_horizontal&quot;&lt;/span&gt;&lt;/i&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #7f007f;&quot;&gt;android:textSize&lt;/span&gt;=&lt;i&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;20dp&quot;&lt;/span&gt;&lt;/i&gt;&amp;nbsp; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: teal;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #3f5fbf; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;&amp;lt;!-- Login Image --&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;u&gt;&lt;span style=&quot;color: teal; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;/u&gt;&lt;u&gt;&lt;span style=&quot;color: #3f7f7f; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;ImageView&lt;/span&gt;&lt;/u&gt;&lt;u&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt; &lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #7f007f;&quot;&gt;android:layout_width&lt;/span&gt;=&lt;i&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;fill_parent&quot;&lt;/span&gt;&lt;/i&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #7f007f;&quot;&gt;android:layout_height&lt;/span&gt;=&lt;i&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;0dp&quot;&lt;/span&gt;&lt;/i&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #7f007f;&quot;&gt;android:gravity&lt;/span&gt;=&lt;i&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;center_horizontal&quot;&lt;/span&gt;&lt;/i&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #7f007f;&quot;&gt;android:src&lt;/span&gt;=&lt;i&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;@drawable/ic_launcher&quot;&lt;/span&gt;&lt;/i&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #7f007f;&quot;&gt;android:layout_weight&lt;/span&gt;=&lt;i&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;1.1&quot;&lt;/span&gt;&lt;/i&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #7f007f;&quot;&gt;android:padding&lt;/span&gt;=&lt;i&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;20dp&quot;&lt;/span&gt;&lt;/i&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: teal;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #3f5fbf; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;&amp;lt;!-- layout for Username --&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: teal; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #3f7f7f; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;LinearLayout&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #7f007f;&quot;&gt;android:layout_width&lt;/span&gt;=&lt;i&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;fill_parent&quot;&lt;/span&gt;&lt;/i&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #7f007f;&quot;&gt;android:layout_height&lt;/span&gt;=&lt;i&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;wrap_content&quot;&lt;/span&gt;&lt;/i&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #7f007f;&quot;&gt;android:orientation&lt;/span&gt;=&lt;i&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;horizontal&quot;&lt;/span&gt;&lt;/i&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #7f007f;&quot;&gt;android:layout_weight&lt;/span&gt;=&lt;i&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;0.01&quot;&lt;/span&gt;&lt;/i&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #7f007f;&quot;&gt;android:padding&lt;/span&gt;=&lt;i&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;10dp&quot;&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;color: teal;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: teal; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #3f7f7f; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;EditText&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #7f007f;&quot;&gt;android:id&lt;/span&gt;=&lt;i&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;@+id/username&quot;&lt;/span&gt;&lt;/i&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #7f007f;&quot;&gt;android:layout_width&lt;/span&gt;=&lt;i&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;0dp&quot;&lt;/span&gt;&lt;/i&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #7f007f;&quot;&gt;android:layout_height&lt;/span&gt;=&lt;i&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;wrap_content&quot;&lt;/span&gt;&lt;/i&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;u&gt;&lt;span style=&quot;color: #7f007f;&quot;&gt;android:layout_weight&lt;/span&gt;=&lt;i&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;1.0&quot;&lt;/span&gt;&lt;/i&gt;&lt;/u&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #7f007f;&quot;&gt;android:ems&lt;/span&gt;=&lt;i&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;10&quot;&lt;/span&gt;&lt;/i&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #7f007f;&quot;&gt;android:inputType&lt;/span&gt;=&lt;i&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;text&quot;&lt;/span&gt;&lt;/i&gt;
&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #7f007f;&quot;&gt;android:hint&lt;/span&gt;=&lt;i&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;@string/username&quot;&lt;/span&gt;&lt;/i&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: teal;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: teal; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #3f7f7f; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;requestFocus&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt; &lt;span style=&quot;color: teal;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: teal; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #3f7f7f; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;EditText&lt;/span&gt;&lt;span style=&quot;color: teal; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: teal; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #3f7f7f; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;LinearLayout&lt;/span&gt;&lt;span style=&quot;color: teal; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #3f5fbf; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;&amp;lt;!-- layout for Password --&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: teal; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #3f7f7f; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;LinearLayout&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #7f007f;&quot;&gt;android:layout_width&lt;/span&gt;=&lt;i&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;fill_parent&quot;&lt;/span&gt;&lt;/i&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #7f007f;&quot;&gt;android:layout_height&lt;/span&gt;=&lt;i&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;wrap_content&quot;&lt;/span&gt;&lt;/i&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #7f007f;&quot;&gt;android:orientation&lt;/span&gt;=&lt;i&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;horizontal&quot;&lt;/span&gt;&lt;/i&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #7f007f;&quot;&gt;android:layout_weight&lt;/span&gt;=&lt;i&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;0.01&quot;&lt;/span&gt;&lt;/i&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #7f007f;&quot;&gt;android:padding&lt;/span&gt;=&lt;i&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;10dp&quot;&lt;/span&gt;&lt;/i&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: teal;&quot;&gt;&amp;gt;&lt;/span&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: teal; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #3f7f7f; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;EditText&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #7f007f;&quot;&gt;android:id&lt;/span&gt;=&lt;i&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;@+id/password&quot;&lt;/span&gt;&lt;/i&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #7f007f;&quot;&gt;android:layout_height&lt;/span&gt;=&lt;i&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;wrap_content&quot;&lt;/span&gt;&lt;/i&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #7f007f;&quot;&gt;android:layout_width&lt;/span&gt;=&lt;i&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;0dp&quot;&lt;/span&gt;&lt;/i&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;u&gt;&lt;span style=&quot;color: #7f007f;&quot;&gt;android:layout_weight&lt;/span&gt;=&lt;i&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;1.0&quot;&lt;/span&gt;&lt;/i&gt;&lt;/u&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #7f007f;&quot;&gt;android:inputType&lt;/span&gt;=&lt;i&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;textPassword&quot;&lt;/span&gt;&lt;/i&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #7f007f;&quot;&gt;android:hint&lt;/span&gt;=&lt;i&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;@string/password&quot;&lt;/span&gt;&lt;/i&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: teal;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: teal; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #3f7f7f; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;LinearLayout&lt;/span&gt;&lt;span style=&quot;color: teal; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: teal; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #3f7f7f; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;Button&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #7f007f;&quot;&gt;android:id&lt;/span&gt;=&lt;i&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;@+id/login&quot;&lt;/span&gt;&lt;/i&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #7f007f;&quot;&gt;android:layout_width&lt;/span&gt;=&lt;i&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;match_parent&quot;&lt;/span&gt;&lt;/i&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #7f007f;&quot;&gt;android:layout_height&lt;/span&gt;=&lt;i&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;wrap_content&quot;&lt;/span&gt;&lt;/i&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #7f007f;&quot;&gt;android:text&lt;/span&gt;=&lt;i&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;@string/login&quot;&lt;/span&gt;&lt;/i&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #7f007f;&quot;&gt;android:layout_margin&lt;/span&gt;=&lt;i&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;10dp&quot;&lt;/span&gt;&lt;/i&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: teal;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: teal; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #3f7f7f; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;LinearLayout&lt;/span&gt;&lt;span style=&quot;color: teal; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span class=&quot;Heading2Char&quot;&gt;&lt;span style=&quot;color: #33cc33; font-family: Calibri;&quot;&gt;Activity:
&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Heading2Char&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;Now we just need to
set this layout file instead of the earlier one, so a small change in Activity
class.&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;In
the onCreate() function&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;setContentView(R.layout.&lt;/span&gt;&lt;i&gt;&lt;span style=&quot;color: #0000c0; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10.0pt;&quot;&gt;login_android&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;; font-size: 10pt;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #33cc33; font-family: Calibri;&quot;&gt;Output:&amp;nbsp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhZr3arcc07VtRDVeSEpiO519nOmbU97cRITRCIVVOnFma43LVol25_gGF_NCcVXZT25qlXBTWsjH37D9BPfTCLpQ31Ki5YE-fWJ-dMfnq4ZJ2HUWK6FWzbCBmd2gPLRS3NnOiq9V1rtEeS/s1600/login-4.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhZr3arcc07VtRDVeSEpiO519nOmbU97cRITRCIVVOnFma43LVol25_gGF_NCcVXZT25qlXBTWsjH37D9BPfTCLpQ31Ki5YE-fWJ-dMfnq4ZJ2HUWK6FWzbCBmd2gPLRS3NnOiq9V1rtEeS/s320/login-4.png&quot; width=&quot;213&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;In
the output screen, We have removed the Labels for username and password,
instead of this, we have provided hints with in the respective fields and even
user can type long username or password.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;Please
post your feedbacks/challenges &lt;/span&gt;&lt;span style=&quot;font-family: Wingdings;&quot;&gt;J&lt;/span&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gargengineer.blogspot.com/feeds/2059189967332113496/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gargengineer.blogspot.com/2012/05/tutorial-1-login-screen.html#comment-form' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1315287361724052685/posts/default/2059189967332113496'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1315287361724052685/posts/default/2059189967332113496'/><link rel='alternate' type='text/html' href='http://gargengineer.blogspot.com/2012/05/tutorial-1-login-screen.html' title='Tutorial 1: Login Screen'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/03311327316747211268</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgCFdXA6nk8W-3sK19S-Mik-ZH5P1LvS1N_UGsaR7yFdgtnKXpfvjsLgWL5trxuzVfR7uzzStCGQ8YLawUR8z8YqRdxgCbSx9NiAkrtiPEasA0X2ZgAs_SpiLDmLZ9DjAIR4B2JijWaFf7W/s72-c/login-1.png" height="72" width="72"/><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1315287361724052685.post-960056381727447987</id><published>2012-04-10T15:55:00.002+05:30</published><updated>2012-04-10T15:56:00.745+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Android Tutorial Series"/><title type='text'>Starting Android Tutorial Series</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
Hello Folks!! Apologies for being off from blogging for a while!&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;Well, the news is, soon&amp;nbsp;i am gonna start an Android Tutorial Series on my&amp;nbsp;blog&amp;nbsp;where&amp;nbsp;new&amp;nbsp;Android&amp;nbsp;developers can learn the android development step by step very easily. This series will help you to learn the android from scratch work to the application building.&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
We will start this series with&amp;nbsp;the exercises on creating different mobile&amp;nbsp;User Interfaces. &lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;And for the experienced developers,&amp;nbsp;I will keep posting my new research topics and implementation of android new features.&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
Please post your suggestions even if those are the silly ones. Really looking forward to yours comments, even i need&amp;nbsp;great motivation to get this work done. :)&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
﻿&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gargengineer.blogspot.com/feeds/960056381727447987/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gargengineer.blogspot.com/2012/04/starting-android-tutorial-series.html#comment-form' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1315287361724052685/posts/default/960056381727447987'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1315287361724052685/posts/default/960056381727447987'/><link rel='alternate' type='text/html' href='http://gargengineer.blogspot.com/2012/04/starting-android-tutorial-series.html' title='Starting Android Tutorial Series'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/03311327316747211268</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1315287361724052685.post-1899578571380138911</id><published>2012-02-08T14:57:00.001+05:30</published><updated>2012-02-16T11:23:11.548+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Android Solutions"/><title type='text'>Creating Android Phone Tablet application in a single apk</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;line-height: 115%;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;Guys!! It
was very difficult to believe that Android had introduced an entirely new API
(Fragment API) for Tablet App Development. Coming from Activity background, it
was really tough to digest this fragments concept while coding; even if it is
very interesting and more generalized one. Soon, i got to hear that we can
create a single apk file for both phone and Tablets by using Fragment API
itself. On digging more into it, it became quite easy and interesting to
implement.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;/div&gt;
&lt;h2 style=&quot;margin: 10pt 0cm 0pt; text-align: justify;&quot;&gt;


&lt;span style=&quot;color: #4f81bd; font-family: Cambria; font-size: medium;&quot;&gt;Functional Concept&lt;/span&gt;&lt;/h2&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;Basically, in such type of apps, we need to separate all
components of our application, and then convert each component to fragments.
For example- Dashboard Fragment for Dashboard screen, two fragments for List
and Details. Then, as our need, we can combine them to fit on the screens of
both phone and tablet based on the Space available and required functionality.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;/div&gt;
&lt;h2 style=&quot;margin: 10pt 0cm 0pt; text-align: justify;&quot;&gt;


&lt;span style=&quot;color: #4f81bd; font-family: Cambria; font-size: medium;&quot;&gt;Technical Concept&lt;/span&gt;&lt;/h2&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;The earlier concept (for mobile versions) was to have
activity class for each screen having business logic written for the respective
screen functionality. Here we will write the business logic once but only
different main screen layouts for both phone and tablet screens. Now, we will
have smaller components as Fragment classes &amp;amp; layouts and their respective
business logic in them.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0cm 0cm 10pt; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;As we know, we cannot show fragment directly on screen as it
needs to be in the form of Activity class.&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;
&lt;/span&gt;So for phone, we will convert the fragment to FragmentActivity class and
for tablet we will have separate layouts containing two or more fragments and
their respective FragmentActivity classes.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;Now, on deploying the same apk file to both phone and
tablet, it should take respective layouts for both.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;/div&gt;
&lt;h2 style=&quot;margin: 10pt 0cm 0pt; text-align: justify;&quot;&gt;


&lt;span style=&quot;color: #4f81bd; font-family: Cambria; font-size: medium;&quot;&gt;Sample Application&lt;/span&gt;&lt;/h2&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;So here is what i have created a way or you can say a ‘BASE
STRUCTURE’ for any Phone-Tablet Android Application. &lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0cm 0cm 10pt; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;Application Name&lt;/b&gt;:
TestPhoneTablet&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0cm 0cm 10pt; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;Deployment platforms:&lt;/b&gt;
Phone and Tablet versions both, i.e. Android 2.x &amp;amp; 3.x&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;External Jar file:&lt;/b&gt;
android-support-v4.jar (When we need to deploy our application on both phone
and tablet, all Fragment and Fragment Activity classes in our project should
extend from this jar).&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;Description: &lt;/b&gt;In
the application for phone, a list of countries will be displayed on first
screen; on clicking any of them, the country name will be displayed on the
second screen.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0cm 0cm 10pt; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;On the other hand in case of Tablet, on a single screen, the
list of countries will be displayed on left hand side and on clicking any of
them; the country name will be displayed on right side. &lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg3tKXvShZjoudRfl29DL66znooMGjc0QQ5RIKuWn7_p0KeRQsf07hEwf5Ne6ydw0HfxAgj_xrpj98gttjRk1owfbJS5hP1dzSdFGJ2HXl7Zw_26RjVmXM4tCVlC0tmU_y9dHYgS4rjz5FG/s1600/Phone-Tablet1.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg3tKXvShZjoudRfl29DL66znooMGjc0QQ5RIKuWn7_p0KeRQsf07hEwf5Ne6ydw0HfxAgj_xrpj98gttjRk1owfbJS5hP1dzSdFGJ2HXl7Zw_26RjVmXM4tCVlC0tmU_y9dHYgS4rjz5FG/s1600/Phone-Tablet1.png&quot; /&gt;&lt;/a&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;Brief Description for every element (classes and xmls) in
the above project:&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpFirst&quot; style=&quot;margin: 0cm 0cm 0pt 36pt; mso-list: l1 level1 lfo1; text-align: justify; text-indent: -18pt;&quot;&gt;
&lt;span style=&quot;font-family: Symbol; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;·&lt;span style=&quot;font-size-adjust: none; font-stretch: normal; font: 7pt/normal &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;com.deepak.test&lt;/b&gt;
: This package is for all the classes which will be common elements for both
phone and tablet build.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;line-height: normal; margin: 0cm 0cm 0pt 54pt; mso-add-space: auto; mso-layout-grid-align: none; mso-list: l0 level3 lfo2; text-align: justify; text-indent: -18pt;&quot;&gt;
&lt;span style=&quot;font-family: Wingdings; mso-bidi-font-family: Wingdings; mso-fareast-font-family: Wingdings;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;§&lt;span style=&quot;font-size-adjust: none; font-stretch: normal; font: 7pt/normal &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;BaseActivity.java&lt;/b&gt;: This class extended
by &lt;i style=&quot;mso-bidi-font-style: normal;&quot;&gt;FragmentActivity&lt;/i&gt; class is the base
class for our whole project. A base activity that defers common functionality across
app activities to an &lt;i style=&quot;mso-bidi-font-style: normal;&quot;&gt;ActivityHelper&lt;/i&gt;.
This class shouldn&#39;t be used directly; instead, activities should inherit from &lt;i style=&quot;mso-bidi-font-style: normal;&quot;&gt;BaseSinglePaneActivity&lt;/i&gt; or &lt;i style=&quot;mso-bidi-font-style: normal;&quot;&gt;BaseMultiPaneActivity&lt;/i&gt;.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;line-height: normal; margin: 0cm 0cm 0pt 54pt; mso-add-space: auto; mso-layout-grid-align: none; mso-list: l0 level3 lfo2; text-align: justify; text-indent: -18pt;&quot;&gt;
&lt;span style=&quot;font-family: Wingdings; mso-bidi-font-family: Wingdings; mso-fareast-font-family: Wingdings;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;§&lt;span style=&quot;font-size-adjust: none; font-stretch: normal; font: 7pt/normal &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;BaseMultiPaneActivity.java&lt;/b&gt;: This class
extended by &lt;i style=&quot;mso-bidi-font-style: normal;&quot;&gt;BaseActivity&lt;/i&gt; class and
all Tablet activities will extend to this class. It can contain multiple panes,
and has the ability to substitute fragments for activities when intents are
fired using &lt;i style=&quot;mso-bidi-font-style: normal;&quot;&gt;BaseActivity#openActivityOrFragment(android.content.Intent)&lt;/i&gt;.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;line-height: normal; margin: 0cm 0cm 0pt 54pt; mso-add-space: auto; mso-layout-grid-align: none; mso-list: l0 level3 lfo2; text-align: justify; text-indent: -18pt;&quot;&gt;
&lt;span style=&quot;font-family: Wingdings; mso-bidi-font-family: Wingdings; mso-fareast-font-family: Wingdings;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;§&lt;span style=&quot;font-size-adjust: none; font-stretch: normal; font: 7pt/normal &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;BaseSinglePaneActivity.java: &lt;/b&gt;This class
extended by &lt;i style=&quot;mso-bidi-font-style: normal;&quot;&gt;BaseActivity&lt;/i&gt; class and
all Phone activities will extend to this class. It simply contains a single
fragment. The intent used to invoke this activity is forwarded to the fragment
as arguments during fragment instantiation. &lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;line-height: normal; margin: 0cm 0cm 0pt 54pt; mso-add-space: auto; mso-layout-grid-align: none; mso-list: l0 level3 lfo2; text-align: justify; text-indent: -18pt;&quot;&gt;
&lt;span style=&quot;font-family: Wingdings; mso-bidi-font-family: Wingdings; mso-fareast-font-family: Wingdings;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;§&lt;span style=&quot;font-size-adjust: none; font-stretch: normal; font: 7pt/normal &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;Home Activity.java: &lt;/b&gt;This Activity class
is the launcher activity for our application and is only class which directly
extends to the &lt;i style=&quot;mso-bidi-font-style: normal;&quot;&gt;BaseActivity&lt;/i&gt; class
after &lt;i style=&quot;mso-bidi-font-style: normal;&quot;&gt;BaseSinglePaneActivity&lt;/i&gt; and &lt;i style=&quot;mso-bidi-font-style: normal;&quot;&gt;BaseMultiPaneActivity&lt;/i&gt; classes. It sets
the layout &lt;i style=&quot;mso-bidi-font-style: normal;&quot;&gt;activity_home.xml&lt;/i&gt; on
screen which is defined for both phone and tablet in their respective layout
folders. &lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;line-height: normal; margin: 0cm 0cm 0pt 54pt; mso-add-space: auto; mso-layout-grid-align: none; mso-list: l0 level3 lfo2; text-align: justify; text-indent: -18pt;&quot;&gt;
&lt;span style=&quot;font-family: Wingdings; mso-bidi-font-family: Wingdings; mso-fareast-font-family: Wingdings;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;§&lt;span style=&quot;font-size-adjust: none; font-stretch: normal; font: 7pt/normal &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;List_Fragment.java&lt;/b&gt;: This is List
Fragment class, containing a list of countries which is the first screen of our
application.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;line-height: normal; margin: 0cm 0cm 0pt 54pt; mso-add-space: auto; mso-layout-grid-align: none; mso-list: l0 level3 lfo2; text-align: justify; text-indent: -18pt;&quot;&gt;
&lt;span style=&quot;font-family: Wingdings; mso-bidi-font-family: Wingdings; mso-fareast-font-family: Wingdings;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;§&lt;span style=&quot;font-size-adjust: none; font-stretch: normal; font: 7pt/normal &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;DetailFragment.java&lt;/b&gt;: This is a Fragment
class which shows the selected country name. &lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin: 0cm 0cm 0pt 36pt; mso-list: l1 level1 lfo1; text-align: justify; text-indent: -18pt;&quot;&gt;
&lt;span style=&quot;font-family: Symbol; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;·&lt;span style=&quot;font-size-adjust: none; font-stretch: normal; font: 7pt/normal &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;com.deepak.test.phone&lt;/b&gt;
: The package for all phone activity classes.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin: 0cm 0cm 0pt 54pt; mso-add-space: auto; mso-list: l2 level3 lfo3; text-align: justify; text-indent: -18pt;&quot;&gt;
&lt;span style=&quot;font-family: Wingdings; mso-bidi-font-family: Wingdings; mso-fareast-font-family: Wingdings;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;§&lt;span style=&quot;font-size-adjust: none; font-stretch: normal; font: 7pt/normal &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;DetailActivity.java&lt;/b&gt;:
The FragmentActivity class on converting the DetailFragment class to an
activity and used to show only on Phone.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin: 0cm 0cm 0pt 36pt; mso-list: l1 level1 lfo1; text-align: justify; text-indent: -18pt;&quot;&gt;
&lt;span style=&quot;font-family: Symbol; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;·&lt;span style=&quot;font-size-adjust: none; font-stretch: normal; font: 7pt/normal &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;com.deepak.test.tablet&lt;/b&gt;
: The package for all tablet activity classes.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin: 0cm 0cm 0pt 36pt; mso-list: l1 level1 lfo1; text-align: justify; text-indent: -18pt;&quot;&gt;
&lt;span style=&quot;font-family: Symbol; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;·&lt;span style=&quot;font-size-adjust: none; font-stretch: normal; font: 7pt/normal &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;com.deepak.test.Utils&lt;/b&gt;
: The package for utility/helper classes in our project.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin: 0cm 0cm 0pt 54pt; mso-add-space: auto; mso-list: l2 level3 lfo3; text-align: justify; text-indent: -18pt;&quot;&gt;
&lt;span style=&quot;font-family: Wingdings; mso-bidi-font-family: Wingdings; mso-fareast-font-family: Wingdings;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;§&lt;span style=&quot;font-size-adjust: none; font-stretch: normal; font: 7pt/normal &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;ActivityHelper.java&lt;/b&gt;:
A class that handles some common activity-related functionality in the app,
such as setting up the action bar. This class provides functionality useful for
both phones and tablets, and does not require any Android 3.0-specific
features.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin: 0cm 0cm 0pt 54pt; mso-add-space: auto; mso-list: l2 level3 lfo3; text-align: justify; text-indent: -18pt;&quot;&gt;
&lt;span style=&quot;font-family: Wingdings; mso-bidi-font-family: Wingdings; mso-fareast-font-family: Wingdings;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;§&lt;span style=&quot;font-size-adjust: none; font-stretch: normal; font: 7pt/normal &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;ActivityHelperHoneycomb.java:&lt;/b&gt;
An extension of ActivityHelper that provides Android 3.0-specific functionality
for Honeycomb tablets. It thus requires API level 11.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin: 0cm 0cm 0pt 54pt; mso-add-space: auto; mso-list: l2 level3 lfo3; text-align: justify; text-indent: -18pt;&quot;&gt;
&lt;span style=&quot;font-family: Wingdings; mso-bidi-font-family: Wingdings; mso-fareast-font-family: Wingdings;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;§&lt;span style=&quot;font-size-adjust: none; font-stretch: normal; font: 7pt/normal &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;SimpleMenu.java:&lt;/b&gt;
An implementation of Menu Interface to show the action bar and Options menu in
tablet and phone respectively.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin: 0cm 0cm 0pt 54pt; mso-add-space: auto; mso-list: l2 level3 lfo3; text-align: justify; text-indent: -18pt;&quot;&gt;
&lt;span style=&quot;font-family: Wingdings; mso-bidi-font-family: Wingdings; mso-fareast-font-family: Wingdings;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;§&lt;span style=&quot;font-size-adjust: none; font-stretch: normal; font: 7pt/normal &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;&lt;strong&gt;SimpleMenuItem.java:&lt;/strong&gt; An implementation of
MenuItem interface.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin: 0cm 0cm 0pt 54pt; mso-add-space: auto; mso-list: l2 level3 lfo3; text-align: justify; text-indent: -18pt;&quot;&gt;
&lt;span style=&quot;font-family: Wingdings; mso-bidi-font-family: Wingdings; mso-fareast-font-family: Wingdings;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;§&lt;span style=&quot;font-size-adjust: none; font-stretch: normal; font: 7pt/normal &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;UIUtils.java:&lt;/b&gt;
A utility class which can have many UI helper functions like- to know the
version of device OS on which the app is deployed so that it could render
respective activities and layouts.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin: 0cm 0cm 0pt 36pt; mso-list: l2 level2 lfo3; text-align: justify; text-indent: -18pt;&quot;&gt;
&lt;span style=&quot;font-family: Symbol; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;·&lt;span style=&quot;font-size-adjust: none; font-stretch: normal; font: 7pt/normal &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;res/layout:&lt;/b&gt;
The layout files used for Fragments and Phone screens or we can say that common
layout files for phone and tablets.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpLast&quot; style=&quot;margin: 0cm 0cm 10pt 36pt; mso-list: l2 level2 lfo3; text-align: justify; text-indent: -18pt;&quot;&gt;
&lt;span style=&quot;font-family: Symbol; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;·&lt;span style=&quot;font-size-adjust: none; font-stretch: normal; font: 7pt/normal &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;res/layout-xlarge-v11:&lt;/b&gt;
the layout files for tablet screens. &lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhWSUkPvps1Qhw1VazJhXEpXz_7mk9XVTUrkADV6L3Kbroto7imMiKHcJKku9g-YgvjSrUXtxqM05L6mW3LHTczQkE2zoL5yAv86jDdSIXc4Ia69bGMwuzbJ3-F296alf-z-x194AwITail/s1600/2.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhWSUkPvps1Qhw1VazJhXEpXz_7mk9XVTUrkADV6L3Kbroto7imMiKHcJKku9g-YgvjSrUXtxqM05L6mW3LHTczQkE2zoL5yAv86jDdSIXc4Ia69bGMwuzbJ3-F296alf-z-x194AwITail/s1600/2.png&quot; /&gt;&lt;/a&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;If we want to make the same
layout look different on both phone and tablet, we can put the same layout with
same name and different design in both layout folders. On &amp;nbsp;deployment, we will
automatically render to the respective folder. Similary for &amp;nbsp;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;i style=&quot;mso-bidi-font-style: normal;&quot;&gt;drawable&lt;/i&gt;&lt;/b&gt;
&amp;amp; &lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;i style=&quot;mso-bidi-font-style: normal;&quot;&gt;drawable-xlarge-v11&lt;/i&gt;&lt;/b&gt; and &lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;i style=&quot;mso-bidi-font-style: normal;&quot;&gt;menu&lt;/i&gt;&lt;/b&gt; &amp;amp; &lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;i style=&quot;mso-bidi-font-style: normal;&quot;&gt;menu-xlarge-v11&lt;/i&gt;&lt;/b&gt; folders&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;/div&gt;
&lt;h2 style=&quot;margin: 10pt 0cm 0pt; text-align: justify;&quot;&gt;


&lt;span style=&quot;color: #4f81bd; font-family: Cambria; font-size: medium;&quot;&gt;App Screenshots:&lt;/span&gt;&lt;/h2&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0cm 0cm 10pt; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;Tablet Screen&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJOQxA6oP5qAqbYzjRuhkDfqB8pra2-Ghn5nyKoZFKskASHu5VSt-xsrGL1eFi0b3Ryllr-6QSsfW6H3PxCS4T9T9vWFog8FZ8jaJ8wrLot656SorNkvxOayRaSKIqQWXTNB6bbI5NCLq2/s1600/tablet.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJOQxA6oP5qAqbYzjRuhkDfqB8pra2-Ghn5nyKoZFKskASHu5VSt-xsrGL1eFi0b3Ryllr-6QSsfW6H3PxCS4T9T9vWFog8FZ8jaJ8wrLot656SorNkvxOayRaSKIqQWXTNB6bbI5NCLq2/s640/tablet.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;Phone Screen:&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEinEVfbVnApYjT-raMiTW5BI5LDn2dAXmOqy_yS6sAn0qXlydrtKV9XMeQqbEoWmfmCdwe5_16ehgvzNNuXG5NLniQIRJzyDft2DSOHpEqi3nLUkmJoo6c2zC_7oNeKX4bPbja6znxKv9jY/s1600/phone1.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEinEVfbVnApYjT-raMiTW5BI5LDn2dAXmOqy_yS6sAn0qXlydrtKV9XMeQqbEoWmfmCdwe5_16ehgvzNNuXG5NLniQIRJzyDft2DSOHpEqi3nLUkmJoo6c2zC_7oNeKX4bPbja6znxKv9jY/s1600/phone1.png&quot; /&gt;&lt;/a&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiAP-TAvObf7d6Iqz4n1ZssIvTzJTq9znFX1oEEYCgAT57E9subvYiTK6QFQGAxae2wp-SVUCKpdeJh2DFUINih5gZ6_tVUkPjJF4YqEN6C6hShieUrHY-qPsDE24H58dwjG0ldzIIRGFVn/s1600/phone2.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiAP-TAvObf7d6Iqz4n1ZssIvTzJTq9znFX1oEEYCgAT57E9subvYiTK6QFQGAxae2wp-SVUCKpdeJh2DFUINih5gZ6_tVUkPjJF4YqEN6C6hShieUrHY-qPsDE24H58dwjG0ldzIIRGFVn/s1600/phone2.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Here is link for source code. Enjoy doing some creative stuff and meeting your requirements.&lt;br /&gt;
&lt;a href=&quot;http://code.google.com/p/testphonetablet-androidapp/downloads/list&quot; target=&quot;_blank&quot;&gt;http://code.google.com/p/testphonetablet-androidapp/downloads/list&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0cm 0cm 10pt; text-align: justify;&quot;&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;Folks!! This is all about the project structure and files for this particular requirement.
&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;strong&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt; Please provide your
comments, ques and suggestions &lt;/span&gt;&lt;span style=&quot;font-family: Wingdings; mso-ascii-font-family: Calibri; mso-ascii-theme-font: minor-latin; mso-char-type: symbol; mso-hansi-font-family: Calibri; mso-hansi-theme-font: minor-latin; mso-symbol-font-family: Wingdings;&quot;&gt;&lt;span style=&quot;mso-char-type: symbol; mso-symbol-font-family: Wingdings;&quot;&gt;J&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gargengineer.blogspot.com/feeds/1899578571380138911/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gargengineer.blogspot.com/2012/02/creating-android-phone-tablet.html#comment-form' title='6 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1315287361724052685/posts/default/1899578571380138911'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1315287361724052685/posts/default/1899578571380138911'/><link rel='alternate' type='text/html' href='http://gargengineer.blogspot.com/2012/02/creating-android-phone-tablet.html' title='Creating Android Phone Tablet application in a single apk'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/03311327316747211268</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg3tKXvShZjoudRfl29DL66znooMGjc0QQ5RIKuWn7_p0KeRQsf07hEwf5Ne6ydw0HfxAgj_xrpj98gttjRk1owfbJS5hP1dzSdFGJ2HXl7Zw_26RjVmXM4tCVlC0tmU_y9dHYgS4rjz5FG/s72-c/Phone-Tablet1.png" height="72" width="72"/><thr:total>6</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1315287361724052685.post-8836189811603415610</id><published>2012-01-18T14:52:00.001+05:30</published><updated>2012-01-18T14:53:11.760+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Android Solutions"/><title type='text'>Android Application Performance Improvement (using DDMS/Traceview/MAT tool): Part-4</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 115%; mso-bidi-font-family: Calibri;&quot;&gt;Guys!! Here is the most awaited post on my blog!! The Performance analysis and Improvement ways&amp;nbsp;by using Eclipse MAT tool !!&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 115%; mso-bidi-font-family: Calibri;&quot;&gt;The
Application Performance improvement process is one of the real challenges in
the mobile application development. Android provides various tools to analyze
the performance of the application,&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 115%;&quot;&gt; like-DDMS, Traceview, Allocation Tracker. The memory
analysis can be done through Eclipse Memory Analysis Tool which a very powerful
tool. It provides various analysis, like-Histogram, Dominator Tree, Leak
Suspects along with chart analysis.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;

&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0cm 0cm 10pt; text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 115%;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;This post covers the memory analysis
of an application, i.e. Stock Watch Application (which is one of my in-house
developments) for an example, by using Eclipse MAT (Memory Analyzer Tool) tool
and the improvements observed in the application performance on post-optimization.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;h1 style=&quot;margin: 24pt 0cm 0pt; text-align: justify;&quot;&gt;




&lt;span style=&quot;mso-ansi-language: EN-IN;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;color: #365f91;&quot;&gt;&lt;span style=&quot;font-family: Cambria;&quot;&gt;Eclipse
Memory Analysis Tool (MAT)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h1&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0cm 0cm 10pt; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 115%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;The Eclipse &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;Memory
Analyzer is a fast, feature-rich Java heap analyzer that helps to identify
memory leakage. The Eclipse Memory Analyzer (MAT) provides a large selection of
features to help in analyzing a single snapshot of heap. MAT can be used to
identify memory leaks using a single click&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0cm 0cm 10pt; text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;In
Android, DDMS helps you creating the heap dump HPROF file of the application. A
Java heap dump is an image of the complete Java object graph at a certain point
in time. It includes all objects, Fields, Primitive types and object
references.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; margin: 0cm 0cm 10pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;The Eclipse MAT helps to&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 115%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt; &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;visualize based on Java heap dumps the
references to objects and provides tools to identify potential memory leaks. &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0cm 0cm 10pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;&quot;&gt;
&lt;span class=&quot;Heading2Char&quot;&gt;&lt;span style=&quot;line-height: 115%; mso-ansi-language: EN-IN;&quot;&gt;&lt;strong&gt;&lt;span style=&quot;color: #4f81bd; font-family: Cambria;&quot;&gt;Heap Dum&lt;/span&gt;&lt;/strong&gt;&lt;a href=&quot;http://www.blogger.com/&quot; name=&quot;heapdump&quot;&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style=&quot;color: #4f81bd;&quot;&gt;&lt;span style=&quot;font-family: Cambria;&quot;&gt;p -
Shallow Heap, Retained Heap&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0cm 0cm 10pt; text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;HPROF heap
dump is a snapshot of a Java heap at a particular instance in time. The garbage
collector is triggered before the dump is written. It contains information
about all objects, all classes, GCR, and all information about the remaining
objects. Heap does not contain allocation information. &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0cm 0cm 10pt; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;Shallow
heap&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt; is the total amount of memory used by all instances. &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0cm 0cm 10pt; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;Retained
Heap&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt; is the total amount of memory kept alive by all instances,
including other objects that they have references to.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0cm 0cm 10pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;&quot;&gt;
&lt;span class=&quot;Heading2Char&quot;&gt;&lt;span style=&quot;line-height: 115%; mso-ansi-language: EN-IN;&quot;&gt;&lt;strong&gt;&lt;span style=&quot;color: #4f81bd; font-family: Cambria;&quot;&gt;Eclipse MAT Pre-Optimization A&lt;/span&gt;&lt;/strong&gt;&lt;a href=&quot;http://www.blogger.com/&quot; name=&quot;eclipsematanalysis&quot;&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style=&quot;color: #4f81bd;&quot;&gt;&lt;span style=&quot;font-family: Cambria;&quot;&gt;nalysis&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0cm 0cm 10pt; text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;On running
the application, select the application process from the devices tab. DDMS
helps to create the heap dump HPROF file of the application by selecting the
‘Dump HPROF file’ Button as shown in the below image.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg70RZpa3ijX-rc2z_GLvp2pnWjF5IBIBkPE0YrjFriOeW1aP7C5agrQmGipC8RRT6lmL_v8pe2OYDJUuyEpcUB_HrOHGDyyiRF14U6o7OLTz6JXNaiVSTLxAJBpcNmFy_t5XveqH4jpt5e/s1600/performace+analyisis-1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;294&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg70RZpa3ijX-rc2z_GLvp2pnWjF5IBIBkPE0YrjFriOeW1aP7C5agrQmGipC8RRT6lmL_v8pe2OYDJUuyEpcUB_HrOHGDyyiRF14U6o7OLTz6JXNaiVSTLxAJBpcNmFy_t5XveqH4jpt5e/s320/performace+analyisis-1.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Calibri&amp;quot;,&amp;quot;sans-serif&amp;quot;; line-height: 115%; mso-ansi-language: EN-US; mso-bidi-language: AR-SA; mso-bidi-theme-font: minor-latin; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Calibri&amp;quot;,&amp;quot;sans-serif&amp;quot;; line-height: 115%; mso-ansi-language: EN-US; mso-bidi-language: AR-SA; mso-bidi-theme-font: minor-latin; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US;&quot;&gt;It will ask for the type of report to be
created. Select Leak Suspects Report and click Finish.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgFYrvmHm-rAcVZxRkiVMiNHpU6J4aODI_BKbyVxYXr1P_HunTNKRc7qsSCbUSl_Mo3ecRRSeqD83tvm55Tx3K7dsz_W7B-14ldPGnWa966DNia1B1unkQoLjv-0QmDeYCMK_MKEG4EQpZt/s1600/performace+analyisis-2.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;276&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgFYrvmHm-rAcVZxRkiVMiNHpU6J4aODI_BKbyVxYXr1P_HunTNKRc7qsSCbUSl_Mo3ecRRSeqD83tvm55Tx3K7dsz_W7B-14ldPGnWa966DNia1B1unkQoLjv-0QmDeYCMK_MKEG4EQpZt/s320/performace+analyisis-2.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0cm 0cm 10pt; text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;If we&#39;re
running ADT (which includes a plug-in version of DDMS) and have MAT installed
in Eclipse as well, clicking the “dump HPROF” button will automatically do the
conversion (using hprof-conv) and open the converted hprof file into Eclipse
(which will be opened by MAT).&lt;/span&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Calibri&amp;quot;,&amp;quot;sans-serif&amp;quot;; line-height: 115%; mso-ansi-language: EN-US; mso-bidi-language: AR-SA; mso-bidi-theme-font: minor-latin; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0cm 0cm 10pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;&quot;&gt;
&lt;span class=&quot;Heading2Char&quot;&gt;&lt;span style=&quot;line-height: 115%; mso-ansi-language: EN-IN;&quot;&gt;&lt;strong&gt;&lt;span style=&quot;color: #4f81bd;&quot;&gt;&lt;span style=&quot;font-family: Cambria;&quot;&gt;Analysis Overview&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0cm 0cm 10pt; text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;It will
display the overview of application performance analysis report like-total
memory size no. of objects and no. of classes in the application, a pie chart
showing biggest objects by retained size the application.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjlOgVPPcIbG34L0AuwkIxp1QrTfGsYl4OONip4vlS_FTKp0mD2VsUv4cCKru9T0871kx-tndQWgYcrf-yF2DsZUrLBkyVtPhBO_5Gdg509GHMMnwKV1V6F5CLnh-F060kaTTkF24f8MnTB/s1600/performace+analyisis-3.png&quot; /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0cm 0cm 10pt; text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;Also, it
shows the various action items which produce the various analysis reports based
on the different parameters as following:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;Histogram &lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;lists
number of instances per class.&lt;b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;Top
Consumers &lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;prints the most expensive objects grouped by
class and by package.&lt;b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;Leak
Suspects &lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;displays the leak suspects and a system
overview.&lt;b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;Top
Components &lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;list report for components bigger than 1
percent.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;Dominator
Tree&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt; lists the biggest objects what they keep alive.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;Duplicate
Classes &lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;detect classes loaded by multiple class
loaders.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Heading2Char&quot;&gt;&lt;span style=&quot;line-height: 115%; mso-ansi-language: EN-IN;&quot;&gt;&lt;strong&gt;&lt;span style=&quot;color: #4f81bd; font-family: Cambria;&quot;&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Heading2Char&quot;&gt;&lt;span style=&quot;line-height: 115%; mso-ansi-language: EN-IN;&quot;&gt;&lt;strong&gt;&lt;span style=&quot;color: #4f81bd; font-family: Cambria;&quot;&gt;Histo&lt;/span&gt;&lt;/strong&gt;&lt;a href=&quot;http://www.blogger.com/&quot; name=&quot;histogram1&quot;&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style=&quot;color: #4f81bd;&quot;&gt;&lt;span style=&quot;font-family: Cambria;&quot;&gt;gram&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;Using the
Histogram view, we can filter the object/classes based on the package names,
and you can see the incoming and outgoing references.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0cm 0cm 10pt; text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;If we sort
by shallow heap, we can see that instances of char [] are at the top.
Right-click on the char [] class and select List Objects &amp;gt; with incoming
references. This produces a list of all char arrays in the heap, which we can
sort based on Shallow Heap usage.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0cm 0cm 10pt; text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;Pick some
of the big objects, and drill down on them. This will show the path from the
root set to the object -- the chain of references that keeps this object alive.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgQy-rrWi00ofjhc3T8i1cH7x7WpdCWGOxrk6mXTMUFRJHyD6X8krgiEulCjulGGPhoL7YEc33oYvgEdAD-RUCnTskGH_zlIrqdL-g89v_Qq0O0TPWDcotP-SmanRJdsfhDFFpHmzkMDIZK/s1600/performace+analyisis-4.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgQy-rrWi00ofjhc3T8i1cH7x7WpdCWGOxrk6mXTMUFRJHyD6X8krgiEulCjulGGPhoL7YEc33oYvgEdAD-RUCnTskGH_zlIrqdL-g89v_Qq0O0TPWDcotP-SmanRJdsfhDFFpHmzkMDIZK/s1600/performace+analyisis-4.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;span id=&quot;goog_1084932000&quot;&gt;&lt;/span&gt;&lt;span id=&quot;goog_1084932001&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;In the
above image, we have found some of the objects are using large memory as
comparison to the other application objects as marked by red arrows. The array
objects &lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;i&gt;temp_data4&lt;/i&gt;&lt;/b&gt; and &lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;i&gt;temp_dataf&lt;/i&gt;&lt;/b&gt; are having more
allocated memory than the memory they are consuming. Also, &lt;i&gt;in &lt;/i&gt;object of
Input Stream Class is open. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span id=&quot;goog_1084932001&quot;&gt;

&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span id=&quot;goog_1084932001&quot;&gt;&lt;div class=&quot;MsoListParagraph&quot; style=&quot;margin: 0cm 0cm 10pt 36pt; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;&lt;span class=&quot;MsoIntenseEmphasis&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 115%;&quot;&gt;&lt;strong&gt;&lt;em&gt;&lt;span style=&quot;color: #4f81bd;&quot;&gt;Note:&lt;/span&gt;&lt;/em&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot;&gt; &lt;/span&gt;&lt;em&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Calibri&amp;quot;,&amp;quot;sans-serif&amp;quot;; line-height: 115%; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;MAT can&#39;t tell us for sure that this is
a leak, because it doesn&#39;t know whether these objects are needed or not -- only
the programmer can do that.&lt;/span&gt;&lt;/em&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0cm 0cm 10pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;&quot;&gt;
&lt;span class=&quot;Heading2Char&quot;&gt;&lt;span style=&quot;line-height: 115%; mso-ansi-language: EN-IN;&quot;&gt;&lt;strong&gt;&lt;span style=&quot;color: #4f81bd; font-family: Cambria;&quot;&gt;Top Consu&lt;/span&gt;&lt;/strong&gt;&lt;a href=&quot;http://www.blogger.com/&quot; name=&quot;topconsumer1&quot;&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style=&quot;color: #4f81bd;&quot;&gt;&lt;span style=&quot;font-family: Cambria;&quot;&gt;mers&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0cm 0cm 10pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;It will show us which object and classes
are the top consumers of memory in the application by using pie charts as shown
below.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhpDAy-to2RDI-k8YBhtTaYPLCFI2MKe9gbNIpBAEkSrdhfvxUfls-_nkJz_D4u-5ptJndpDWQF0JJJBxU0yLlYDl_e9WmYkFa3pjm9ct7t2mX9ucg-7H2nSC59-hPt3RJvjRJS0t8dVxqJ/s1600/performace+analyisis-5.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhpDAy-to2RDI-k8YBhtTaYPLCFI2MKe9gbNIpBAEkSrdhfvxUfls-_nkJz_D4u-5ptJndpDWQF0JJJBxU0yLlYDl_e9WmYkFa3pjm9ct7t2mX9ucg-7H2nSC59-hPt3RJvjRJS0t8dVxqJ/s1600/performace+analyisis-5.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0cm 0cm 10pt; text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;mso-bidi-font-style: italic;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;In the above image, we can analyze the
biggest objects.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjuWGW2mMS18eet7w8yZj1gfrJSYEw2mI0lG-UgGauZkYpPf4we8Ktu0B6hgDguTtKQMiHc9WpDTSB56daJzoaLqgC7l4agrpRTb5YiHbvK538dDSPOW85i3wIRZqklIHTaOK4N5m-HOaIR/s1600/performace+analyisis-6.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjuWGW2mMS18eet7w8yZj1gfrJSYEw2mI0lG-UgGauZkYpPf4we8Ktu0B6hgDguTtKQMiHc9WpDTSB56daJzoaLqgC7l4agrpRTb5YiHbvK538dDSPOW85i3wIRZqklIHTaOK4N5m-HOaIR/s1600/performace+analyisis-6.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0cm 0cm 10pt; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;&lt;span lang=&quot;EN-US&quot;&gt;The above image
is showing biggest top level dominator classes. As we can analyze that a large
amount of memory is used by &lt;em&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Calibri&amp;quot;,&amp;quot;sans-serif&amp;quot;; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;java.lang.class&lt;/span&gt;&lt;/b&gt;&lt;/em&gt;
and &lt;em&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Calibri&amp;quot;,&amp;quot;sans-serif&amp;quot;; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;java.lang.string&lt;/span&gt;&lt;/b&gt;&lt;/em&gt; classes&lt;/span&gt;&lt;em&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Calibri&amp;quot;,&amp;quot;sans-serif&amp;quot;; line-height: 115%; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;.&lt;/span&gt;&lt;/em&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0cm 0cm 0pt; mso-margin-top-alt: auto; text-align: justify;&quot;&gt;
&lt;span class=&quot;Heading2Char&quot;&gt;&lt;span style=&quot;line-height: 115%; mso-ansi-language: EN-IN;&quot;&gt;&lt;strong&gt;&lt;span style=&quot;color: #4f81bd; font-family: Cambria;&quot;&gt;Leak Sus&lt;/span&gt;&lt;/strong&gt;&lt;a href=&quot;http://www.blogger.com/&quot; name=&quot;leaksuspects1&quot;&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style=&quot;color: #4f81bd;&quot;&gt;&lt;span style=&quot;font-family: Cambria;&quot;&gt;pects&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 15.6pt; margin: 0cm 0cm 10pt; text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;We can get a higher level of leak suspect report with a pie chart
and list of leak suspects as shown in below image.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhXP5RdWPcOei33NxpF27jZ9OFOekc2MeBNB35lzz5iZc-VJyn5v8C1hx3DDpoXSTm1I7fJqn9v_DaaBM8xRNAc6bkcMXrwMHE0oai26jjLu1v6hb8BupfGfniua1Uw9n9yI313N-0sKxTQ/s1600/performace+analyisis-7.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhXP5RdWPcOei33NxpF27jZ9OFOekc2MeBNB35lzz5iZc-VJyn5v8C1hx3DDpoXSTm1I7fJqn9v_DaaBM8xRNAc6bkcMXrwMHE0oai26jjLu1v6hb8BupfGfniua1Uw9n9yI313N-0sKxTQ/s1600/performace+analyisis-7.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEim3czz2kZhKQuf1x7ioJqRtkxqTJ-EsU4_Mua08FiXrf5WVCRPKZKrPNGUedT9CHvUt2IA7bN_KUoqE1rwLMOOOZ6lfWqHcDwkqiijjlwUrQC68uvBQcBFpN6YkSw4IyemhNOqr5iP2MAt/s1600/performace+analyisis-8.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEim3czz2kZhKQuf1x7ioJqRtkxqTJ-EsU4_Mua08FiXrf5WVCRPKZKrPNGUedT9CHvUt2IA7bN_KUoqE1rwLMOOOZ6lfWqHcDwkqiijjlwUrQC68uvBQcBFpN6YkSw4IyemhNOqr5iP2MAt/s1600/performace+analyisis-8.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjPLATJHUe9zaLbvonZh9reY7HHyC18jFMJ0AmKvIgy3aG0_1A4WU2stev9c7kPSErNvQ_DL7MgKq9ad6dxM4u-PdJGFzc9Y5j_LSLpJvfC5qmH25MBZdh7M10Fjx8GUiaFqL_kGNTnTDfX/s1600/performace+analyisis-9.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjPLATJHUe9zaLbvonZh9reY7HHyC18jFMJ0AmKvIgy3aG0_1A4WU2stev9c7kPSErNvQ_DL7MgKq9ad6dxM4u-PdJGFzc9Y5j_LSLpJvfC5qmH25MBZdh7M10Fjx8GUiaFqL_kGNTnTDfX/s1600/performace+analyisis-9.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0cm 0cm 10pt; text-align: justify;&quot;&gt;
&lt;em&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Calibri&amp;quot;,&amp;quot;sans-serif&amp;quot;; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;From
the above Leak Suspects report, we can analyse which objects/classes can cause
the memory leaks. In this case, it is showing objects &lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;java.lang.string&lt;/b&gt; class as one of the leak suspects. For deep
analysis on the specific objects for this class, we can also make use of &lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;Dominator tree.&lt;/b&gt;&lt;/span&gt;&lt;/em&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0cm 0cm 10pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;&quot;&gt;
&lt;span class=&quot;Heading2Char&quot;&gt;&lt;span style=&quot;line-height: 115%; mso-ansi-language: EN-IN; mso-bidi-font-style: italic;&quot;&gt;&lt;strong&gt;&lt;span style=&quot;color: #4f81bd; font-family: Cambria;&quot;&gt;Domina&lt;/span&gt;&lt;/strong&gt;&lt;a href=&quot;http://www.blogger.com/&quot; name=&quot;dominatortree1&quot;&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style=&quot;color: #4f81bd; font-family: Cambria;&quot;&gt;tor Tree&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 15.6pt; margin: 0cm 0cm 10pt; text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;The
dominator tree is a data structure that allows you to answer the question about
the biggest objects in almost no time. The dominator tree can also be used to
find &lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;high memory usage&lt;/b&gt; in certain
areas, which is a &lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;much harder problem.&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 15.6pt; margin: 0cm 0cm 10pt; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;Using
the &quot;dominates&quot; relationship we can create a dominator tree out of
the graph of objects in memory. At each node of this tree we store the amount
of memory that would be freed (= &lt;/span&gt;&lt;span lang=&quot;EN-US&quot;&gt;&lt;a href=&quot;http://kohlerm.blogspot.com/2009/02/how-to-really-measure-memory-usage-of.html&quot;&gt;&lt;span style=&quot;color: windowtext; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; text-decoration: none; text-underline: none;&quot;&gt;retained size&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;).&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 15.6pt; margin: 0cm 0cm 10pt; text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;In
the below image of Dominator tree, we can see class of our application and
memory used by the different objects under this class.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg-sWhbNQfwCuv8z6HmTAr9m8_bInSbGyOdPOAM-utXu3tiDWAD35g2Zh0_qO_4GaRogxak6AWPiXin2lI26RoEG-Bxp7K5mXjJw8On8NhgvuAc9dJtu-CEiCQDNBfZJmgHDE-WdbTuNgb_/s1600/performace+analyisis-10.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg-sWhbNQfwCuv8z6HmTAr9m8_bInSbGyOdPOAM-utXu3tiDWAD35g2Zh0_qO_4GaRogxak6AWPiXin2lI26RoEG-Bxp7K5mXjJw8On8NhgvuAc9dJtu-CEiCQDNBfZJmgHDE-WdbTuNgb_/s1600/performace+analyisis-10.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh-HCoirDhw9yALGHgrX9pngODnYyO5mVCRBaZ9oREkOvBVbF7Oj4_j3KvOh0bQGnWCHSat3-VpYadkJ9wRyTS0l1eM6QfyYf6ZUxejWZMi85h8okbzLjjJaeuF79AFbv0EzETw7Buf9Cs2/s1600/performace+analyisis-11.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh-HCoirDhw9yALGHgrX9pngODnYyO5mVCRBaZ9oREkOvBVbF7Oj4_j3KvOh0bQGnWCHSat3-VpYadkJ9wRyTS0l1eM6QfyYf6ZUxejWZMi85h8okbzLjjJaeuF79AFbv0EzETw7Buf9Cs2/s1600/performace+analyisis-11.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 15.6pt; margin: 0cm 0cm 10pt; text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;Here we have found a many string arrays having some particular
length. But they are using the full memory as of their defined lengths. As
shown in the image, &lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;a&lt;/b&gt; &lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;string array of&lt;/b&gt; &lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;defined length 200 is containing only 39 items&lt;/b&gt; (e.g. string array
is using only 39 positions out of 200, leaving empty the remaining positions).&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;h1 style=&quot;margin: 24pt 0cm 0pt; text-align: justify;&quot;&gt;

&lt;a href=&quot;http://www.blogger.com/&quot; name=&quot;_Areas_for_Optimization&quot;&gt;&lt;/a&gt;&lt;span style=&quot;mso-ansi-language: EN-IN;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;color: #365f91;&quot;&gt;&lt;span style=&quot;font-family: Cambria;&quot;&gt;Areas for Optimization&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h1&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 115%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;From the above performance analysis, we can
see various areas of optimization in our application which is following.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;MsoListParagraphCxSpFirst&quot; style=&quot;margin: 0cm 0cm 0pt 36pt; mso-list: l1 level1 lfo1; text-align: justify; text-indent: -18pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Symbol; line-height: 115%; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size-adjust: none; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;em&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Calibri&amp;quot;,&amp;quot;sans-serif&amp;quot;; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;java.lang.Class&lt;/span&gt;&lt;/b&gt;&lt;/em&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 115%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt; – we need to reduce the number of objects of
this class&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin: 0cm 0cm 0pt 36pt; mso-list: l1 level1 lfo1; text-align: justify; text-indent: -18pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Symbol; line-height: 115%; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size-adjust: none; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;em&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Calibri&amp;quot;,&amp;quot;sans-serif&amp;quot;; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;java.lang.String&lt;/span&gt;&lt;/b&gt;&lt;/em&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 115%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;- The number of objects is quiet high, some of
string arrays have defined length but still not being used fully. &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin: 0cm 0cm 0pt 36pt; text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 115%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;We have found 9 string arrays of average
lengths 250 defined in the activity where 8 arrays are not being used fully and
containing the duplicate objects.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin: 0cm 0cm 0pt 36pt; mso-list: l0 level1 lfo2; text-align: justify; text-indent: -18pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Symbol; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size-adjust: none; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;em&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Calibri&amp;quot;,&amp;quot;sans-serif&amp;quot;; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;Lazy
Initialization&lt;/span&gt;&lt;/b&gt;&lt;/em&gt;&lt;span lang=&quot;EN-US&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;- we have found that the high
number of &lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;String array objects&lt;/b&gt;
looked suspicious. Also they retain not that much memory. So instead of always
using the default constructor it would most likely better to use &lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;lazy initialization&lt;/b&gt;&amp;nbsp;and only
initialize the field when it&#39;s first needed.&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpLast&quot; style=&quot;margin: 0cm 0cm 10pt 36pt; mso-list: l1 level1 lfo1; text-align: justify; text-indent: -18pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Symbol; line-height: 115%; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size-adjust: none; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;em&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Calibri&amp;quot;,&amp;quot;sans-serif&amp;quot;; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;java.io.inputStream&lt;/span&gt;&lt;/b&gt;&lt;/em&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 115%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt; objects- Some of the Inputstream objects are
not closed due to which the probability of leaks is more. &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;h1 style=&quot;margin: 24pt 0cm 0pt; text-align: justify;&quot;&gt;

&lt;a href=&quot;http://www.blogger.com/&quot; name=&quot;_Performance_Analysis_(Post-optimiza&quot;&gt;&lt;/a&gt;&lt;span style=&quot;mso-ansi-language: EN-IN;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;color: #365f91;&quot;&gt;&lt;span style=&quot;font-family: Cambria;&quot;&gt;Post-optimization - Performance Analysis&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h1&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0cm 0cm 10pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;&quot;&gt;
&lt;span class=&quot;Heading2Char&quot;&gt;&lt;span style=&quot;line-height: 115%; mso-ansi-language: EN-IN; mso-bidi-font-style: italic;&quot;&gt;&lt;strong&gt;&lt;span style=&quot;color: #4f81bd; font-family: Cambria;&quot;&gt;Eclipse M&lt;/span&gt;&lt;/strong&gt;&lt;a href=&quot;http://www.blogger.com/&quot; name=&quot;eclipsematoverviewanalysis2&quot;&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style=&quot;color: #4f81bd;&quot;&gt;&lt;span style=&quot;font-family: Cambria;&quot;&gt;AT Overview Analysis&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0cm 0cm 10pt; text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;The total amount
of memory consumed by the application has been &lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;reduced from 2.3 MB to 2.2 MB&lt;/b&gt;. Also the number of total objects has
been reduced.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi5OdN4C49DwIBA4RLLz5928JeiVDgrLfZIWtOAi26Pi-CVkHPX8fS7tpoMSBCuIWRenNAMgrUWwgMYI1qdnmi3bQdwuDP16dfKIqXF-LPvPhQAMJ6WRcxBmZ2P8fyRu3dvZ0rXii9tIJ96/s1600/performace+analyisis-12.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi5OdN4C49DwIBA4RLLz5928JeiVDgrLfZIWtOAi26Pi-CVkHPX8fS7tpoMSBCuIWRenNAMgrUWwgMYI1qdnmi3bQdwuDP16dfKIqXF-LPvPhQAMJ6WRcxBmZ2P8fyRu3dvZ0rXii9tIJ96/s1600/performace+analyisis-12.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0cm 0cm 10pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;&quot;&gt;
&lt;span class=&quot;Heading2Char&quot;&gt;&lt;span style=&quot;line-height: 115%; mso-ansi-language: EN-IN;&quot;&gt;&lt;strong&gt;&lt;span style=&quot;color: #4f81bd; font-family: Cambria;&quot;&gt;Hist&lt;/span&gt;&lt;/strong&gt;&lt;a href=&quot;http://www.blogger.com/&quot; name=&quot;histogram2&quot;&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style=&quot;color: #4f81bd;&quot;&gt;&lt;span style=&quot;font-family: Cambria;&quot;&gt;ogram&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0cm 0cm 10pt; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;The &lt;/span&gt;&lt;em&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Calibri&amp;quot;,&amp;quot;sans-serif&amp;quot;; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;inputstream&lt;/span&gt;&lt;/b&gt;&lt;/em&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;
objects has been closed as we can’t see memory allocated to &lt;/span&gt;&lt;em&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Calibri&amp;quot;,&amp;quot;sans-serif&amp;quot;; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;in&lt;/span&gt;&lt;/b&gt;&lt;/em&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt; object in
the below image. The objects of array strings are consuming less memory and not
having vacant spaces as marked by red arrow in the image.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh4DJE7cQuqm7BOTxKrv1Epi-Ic98xbH6n87G0bCsvMItleG5KELLi-6df7pR9n2xFjHQAXPW_x4EpBcWFR4outfWi29xDKcFR_LAKP0QwmOjAfYLbIM7MNOYUv8CxK5sn9PwmKCHspZ7sI/s1600/performace+analyisis-13.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh4DJE7cQuqm7BOTxKrv1Epi-Ic98xbH6n87G0bCsvMItleG5KELLi-6df7pR9n2xFjHQAXPW_x4EpBcWFR4outfWi29xDKcFR_LAKP0QwmOjAfYLbIM7MNOYUv8CxK5sn9PwmKCHspZ7sI/s1600/performace+analyisis-13.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0cm 0cm 10pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;&quot;&gt;
&lt;span class=&quot;Heading2Char&quot;&gt;&lt;span style=&quot;line-height: 115%; mso-ansi-language: EN-IN; mso-bidi-font-style: italic;&quot;&gt;&lt;strong&gt;&lt;span style=&quot;color: #4f81bd; font-family: Cambria;&quot;&gt;Top &lt;/span&gt;&lt;/strong&gt;&lt;a href=&quot;http://www.blogger.com/&quot; name=&quot;topconsumer2&quot;&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style=&quot;color: #4f81bd;&quot;&gt;&lt;span style=&quot;font-family: Cambria;&quot;&gt;Consumers&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0cm 0cm 10pt; text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;If we compare
the below image chart with the earlier one (e.g. before optimization), we have
found that objects of &lt;em&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Calibri&amp;quot;,&amp;quot;sans-serif&amp;quot;; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;BuySellHold&lt;/span&gt;&lt;/b&gt;&lt;/em&gt;
class are not being counted in the biggest objects (in the place of (&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;f)&lt;/b&gt; in the image)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhXmfRLJoFD1KYxOLD6xPszvYCGf5U_AmrsO4Ohs_dF-32Ri6RXmRWRJihluSqNo5L5-omp3Jr3M_cukgcjicC1Iit5cqanEyWDEpGf-34MD6osyIFFM-GDhD3n9LLQBOWEjZiju-FDNK-Y/s1600/performace+analyisis-14.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhXmfRLJoFD1KYxOLD6xPszvYCGf5U_AmrsO4Ohs_dF-32Ri6RXmRWRJihluSqNo5L5-omp3Jr3M_cukgcjicC1Iit5cqanEyWDEpGf-34MD6osyIFFM-GDhD3n9LLQBOWEjZiju-FDNK-Y/s1600/performace+analyisis-14.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0cm 0cm 10pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;&quot;&gt;
&lt;span class=&quot;Heading2Char&quot;&gt;&lt;span style=&quot;line-height: 115%; mso-ansi-language: EN-IN; mso-bidi-font-style: italic;&quot;&gt;&lt;strong&gt;&lt;span style=&quot;color: #4f81bd; font-family: Cambria;&quot;&gt;Leak S&lt;/span&gt;&lt;/strong&gt;&lt;a href=&quot;http://www.blogger.com/&quot; name=&quot;leaksuspects2&quot;&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style=&quot;color: #4f81bd;&quot;&gt;&lt;span style=&quot;font-family: Cambria;&quot;&gt;uspects&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0cm 0cm 10pt; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;&lt;span lang=&quot;EN-US&quot;&gt;We have reduced
the probability ratios of the leak suspects of both the classes &lt;em&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Calibri&amp;quot;,&amp;quot;sans-serif&amp;quot;; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;java.lang.Class&lt;/span&gt;&lt;/b&gt;&lt;/em&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 115%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt; &lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&lt;/span&gt;and &lt;/span&gt;&lt;em&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Calibri&amp;quot;,&amp;quot;sans-serif&amp;quot;; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;java.lang.String &lt;/span&gt;&lt;/b&gt;&lt;/em&gt;&lt;span lang=&quot;EN-US&quot;&gt;as shown in below images &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiNJNJY1fvOX1HEY8KIT0QAGDYkc2iYXTKb2z8pujwgQrEmv9uzTIJQSq3LuSG4qkKTlb9G3qSqHhNdLWcBvQUM7jxs6TPzgLcEhL8DRIkybfn_RRWmnUiEv_wawkmYB7DzJZS7l1FT6rvR/s1600/performace+analyisis-15.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiNJNJY1fvOX1HEY8KIT0QAGDYkc2iYXTKb2z8pujwgQrEmv9uzTIJQSq3LuSG4qkKTlb9G3qSqHhNdLWcBvQUM7jxs6TPzgLcEhL8DRIkybfn_RRWmnUiEv_wawkmYB7DzJZS7l1FT6rvR/s1600/performace+analyisis-15.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0cm 0cm 10pt; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgZN9bumoPe9ty0Qj7kXsg-5uscihe10uDAPRCMllQbMotvLMbugXCH5h_kvv8GmliOvUdYjACRlpJ35jyBRzLijDskv8MuQqn7sJUT1exDDsJr2lwoBcDQIYL0k1jQueMhhoI5eqKuVOAg/s1600/performace+analyisis-16.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgZN9bumoPe9ty0Qj7kXsg-5uscihe10uDAPRCMllQbMotvLMbugXCH5h_kvv8GmliOvUdYjACRlpJ35jyBRzLijDskv8MuQqn7sJUT1exDDsJr2lwoBcDQIYL0k1jQueMhhoI5eqKuVOAg/s1600/performace+analyisis-16.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhBwIN3s38DYb4pVqDrf5RDxjZdHqYzwpcsHUmgULSoiDjknwpoXtEpiFX6g0l5UV7jgmEc4uXsVWMsFhZfjTwOWNx1Q3aJmakoAZQhxCWwqD4-w4NJWUH4eurOZsl728RzMpLhP3etG0c3/s1600/performace+analyisis-17.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhBwIN3s38DYb4pVqDrf5RDxjZdHqYzwpcsHUmgULSoiDjknwpoXtEpiFX6g0l5UV7jgmEc4uXsVWMsFhZfjTwOWNx1Q3aJmakoAZQhxCWwqD4-w4NJWUH4eurOZsl728RzMpLhP3etG0c3/s1600/performace+analyisis-17.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0cm 0cm 10pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;&quot;&gt;
&lt;span class=&quot;Heading2Char&quot;&gt;&lt;span style=&quot;line-height: 115%; mso-ansi-language: EN-IN;&quot;&gt;&lt;strong&gt;&lt;span style=&quot;color: #4f81bd; font-family: Cambria;&quot;&gt;D&lt;/span&gt;&lt;/strong&gt;&lt;a href=&quot;http://www.blogger.com/&quot; name=&quot;dominatortree2&quot;&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style=&quot;color: #4f81bd;&quot;&gt;&lt;span style=&quot;font-family: Cambria;&quot;&gt;ominator
Tree&lt;span style=&quot;mso-bidi-font-style: italic;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiOEVgDot59RbY677tBm7RQY8xzs5iuq1nZjLDQ_HtmvNw8xeV7XUCK4LGMxy52q0NAjP8hnS267kkFlxC7SZPu76gjFd2bHJOqUYI55Ujvg7FUDNPdk0Rxv3xT5o4HbhHgmtiYcRn5XpSH/s1600/performace+analyisis-18.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiOEVgDot59RbY677tBm7RQY8xzs5iuq1nZjLDQ_HtmvNw8xeV7XUCK4LGMxy52q0NAjP8hnS267kkFlxC7SZPu76gjFd2bHJOqUYI55Ujvg7FUDNPdk0Rxv3xT5o4HbhHgmtiYcRn5XpSH/s1600/performace+analyisis-18.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;


&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0cm 0cm 10pt; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;line-height: 115%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;The &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;Percentage memory consumed by the
native class &lt;/span&gt;&lt;em&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Calibri&amp;quot;,&amp;quot;sans-serif&amp;quot;; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;com.myapp.stockwatcher.BuySellHold&lt;/span&gt;&lt;/b&gt;&lt;/em&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;
class has been &lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;reduced from 2.5% to
1.8%.&lt;/b&gt; Moreover, the number of string arrays has been reduced to 1.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;h1 style=&quot;margin: 24pt 0cm 0pt; text-align: justify;&quot;&gt;

&lt;a href=&quot;http://www.blogger.com/&quot; name=&quot;_Conclusion&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://www.blogger.com/&quot; name=&quot;_Performance_Improvements&quot;&gt;&lt;/a&gt;&lt;span style=&quot;mso-ansi-language: EN-IN;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;color: #365f91;&quot;&gt;&lt;span style=&quot;font-family: Cambria;&quot;&gt;Performance
Improvements&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h1&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0cm 0cm 0pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;Improving application performance in terms of time and memory is one
of the real challenges in mobile development. The android native tools
like-DDMS/Traceview and Eclipse MAT plays a significant role in improving the
performance. Also these performance tests can be executed during the
development life cycle. &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0cm 0cm 0pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;Following are the performance improvements by using both the tools:&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpFirst&quot; style=&quot;margin: 0cm 0cm 0pt 18pt; mso-add-space: auto; mso-list: l1 level1 lfo1; text-indent: -18pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Wingdings; mso-bidi-font-family: Wingdings; mso-fareast-font-family: Wingdings;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;v&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size-adjust: none; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;Using &lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;MAT:&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin: 0cm 0cm 0pt 36pt; mso-add-space: auto; mso-list: l0 level1 lfo2; text-indent: -18pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Symbol; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size-adjust: none; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;Memory consumption by the two
activities has been reduced from 2.3 MB to 2.2 MB&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin: 0cm 0cm 0pt 36pt; mso-add-space: auto; mso-list: l0 level1 lfo2; text-indent: -18pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Symbol; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size-adjust: none; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;Reduction in Percentage probability
of the leaks suspects&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin: 0cm 0cm 0pt 36pt; mso-add-space: auto; mso-list: l0 level1 lfo2; text-indent: -18pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Symbol; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size-adjust: none; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;Improved the program
performance by reducing the &lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;i style=&quot;mso-bidi-font-style: normal;&quot;&gt;java.lang.String&lt;/i&gt;&lt;/b&gt; objects&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin: 0cm 0cm 0pt 36pt; mso-add-space: auto; mso-list: l0 level1 lfo2; text-indent: -18pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Symbol; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size-adjust: none; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;Reduction in Duplicate String
arrays&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoListParagraphCxSpLast&quot; style=&quot;margin: 0cm 0cm 0pt 36pt; mso-add-space: auto; mso-list: l0 level1 lfo2; text-indent: -18pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Symbol; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;·&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size-adjust: none; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;Stream objects closed on time&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0cm 0cm 0pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;Although, Performance improvement is an ongoing process, there will
always be the scope of optimization. But by using these tools we can
significantly reduce the time taken in optimization process as these tools
enable us to hit the culprit areas directly. &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0cm 0cm 10pt;&quot;&gt;
&lt;b&gt;&lt;span lang=&quot;EN-US&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;Guys!!&amp;nbsp;This post covers the&amp;nbsp;most powerful tool&amp;nbsp;analysis to improve android app performance. Post your comments!! &lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Wingdings; mso-ascii-font-family: Calibri; mso-char-type: symbol; mso-hansi-font-family: Calibri; mso-symbol-font-family: Wingdings;&quot;&gt;&lt;span style=&quot;mso-char-type: symbol; mso-symbol-font-family: Wingdings;&quot;&gt;J&lt;/span&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gargengineer.blogspot.com/feeds/8836189811603415610/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gargengineer.blogspot.com/2012/01/android-application-performance_18.html#comment-form' title='7 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1315287361724052685/posts/default/8836189811603415610'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1315287361724052685/posts/default/8836189811603415610'/><link rel='alternate' type='text/html' href='http://gargengineer.blogspot.com/2012/01/android-application-performance_18.html' title='Android Application Performance Improvement (using DDMS/Traceview/MAT tool): Part-4'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/03311327316747211268</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg70RZpa3ijX-rc2z_GLvp2pnWjF5IBIBkPE0YrjFriOeW1aP7C5agrQmGipC8RRT6lmL_v8pe2OYDJUuyEpcUB_HrOHGDyyiRF14U6o7OLTz6JXNaiVSTLxAJBpcNmFy_t5XveqH4jpt5e/s72-c/performace+analyisis-1.png" height="72" width="72"/><thr:total>7</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1315287361724052685.post-2236658113306950147</id><published>2012-01-16T17:09:00.000+05:30</published><updated>2012-01-16T17:09:17.564+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Android Solutions"/><title type='text'>Android Application Performance Improvement (using DDMS-Traceview/MAT tool): Part-3</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;font-size: 13pt; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;DDMS - Viewing heap usage for a Process/Application&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: 12pt; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;DDMS allows you to
view how much heap memory a process is using. This information is useful in
tracking heap usage at a certain point of time during the execution of your
application. Also, you can invoke garbage collection, which enables the
collection of heap data.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;&lt;span style=&quot;font-size: 12pt; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;In DDMS, Devices
tab is on left side from where you can select the device and the process running
for your application and then, you can see the various log reports under different
tabs on the right side.&lt;/span&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;font-size: 13pt; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt; &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: 12pt; line-height: 115%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;Open
the application in Eclipse which you want to analysis the performance.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Calibri&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 12pt; line-height: 115%; mso-ansi-language: EN-IN; mso-ascii-theme-font: minor-latin; mso-bidi-language: AR-SA; mso-bidi-theme-font: minor-latin; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin; mso-hansi-theme-font: minor-latin;&quot;&gt;Select
&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;DDMS&lt;/b&gt; from the &lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;Eclipse&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjwS_NHOl5XV7tCKu0DugHk5P0-e0SNCeVo9Xl2uZPU_Gvz7qhk6OE0VIludf7h-7KMuM5fd8_yjhtd2J9L1jpgYInIzWUSoQXsX5HQgQMU_DXj-KI5l9gjuyZo1v3QQN2W_q5r3YlADOfW/s1600/heap-1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;360&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjwS_NHOl5XV7tCKu0DugHk5P0-e0SNCeVo9Xl2uZPU_Gvz7qhk6OE0VIludf7h-7KMuM5fd8_yjhtd2J9L1jpgYInIzWUSoQXsX5HQgQMU_DXj-KI5l9gjuyZo1v3QQN2W_q5r3YlADOfW/s640/heap-1.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0cm 0cm 10pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify; vertical-align: top;&quot;&gt;
&lt;span style=&quot;font-size: 12pt; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;On running
the application, you can analyse the heap memory usage as well. In &lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;DDMS&lt;/b&gt;, after the selecting application
process, select &lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;Heap&lt;/b&gt; tab from the
right side panel.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjhWqQ3DAIan0Fx-eYOyfOn7bNttT-M8fGWzhsiSIgkUMXy7Dq9pzFjPO30aCBpcQ5H1vrKRq7QMPt0NPIwxnI1MZoxfwPpOpttk5jc-OEPZnKPM8D_2E3nmC2qWkHY2TFqDedA8VtVDddt/s1600/heap-2.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;438&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjhWqQ3DAIan0Fx-eYOyfOn7bNttT-M8fGWzhsiSIgkUMXy7Dq9pzFjPO30aCBpcQ5H1vrKRq7QMPt0NPIwxnI1MZoxfwPpOpttk5jc-OEPZnKPM8D_2E3nmC2qWkHY2TFqDedA8VtVDddt/s640/heap-2.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0cm 0cm 10pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify; vertical-align: top;&quot;&gt;
&lt;span style=&quot;font-size: 12pt; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;&lt;o:p&gt;&lt;span style=&quot;font-family: Times New Roman;&quot;&gt;

&lt;/span&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 115%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;In the Devices tab, select the process
that you want to see the heap information for. Click the &lt;b&gt;Update Heap&lt;/b&gt;
button to enable heap information for the process as shown in the below image.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgqhIjSEhTIyysdQGWkMEA9D9-eNZRlSTmDYDnSmDZ3UKEYZAbRCaowA1FrLz0aNI73oh0EYwlEcC8eUB1GQmgJLV-TU_iWjRi5Q9yUqIBl1UMPSti_HDb27n7MJ49DMSHM5OhwU86owJCQ/s1600/heap-3.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgqhIjSEhTIyysdQGWkMEA9D9-eNZRlSTmDYDnSmDZ3UKEYZAbRCaowA1FrLz0aNI73oh0EYwlEcC8eUB1GQmgJLV-TU_iWjRi5Q9yUqIBl1UMPSti_HDb27n7MJ49DMSHM5OhwU86owJCQ/s320/heap-3.png&quot; width=&quot;232&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEipGO1nSTYsEJJoWpjsVacZjlF9uh27eq-4alo5RQQhyNFXJJIzNdsyQal39-0brIFLkfZpfoXf9q45PFJWFzlTvAFLNYLXx66dwJG_-u9geiPtPJtaNg9W6GoHxDW_C0imA8t34K_jjp4T/s1600/heap-4.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;556&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEipGO1nSTYsEJJoWpjsVacZjlF9uh27eq-4alo5RQQhyNFXJJIzNdsyQal39-0brIFLkfZpfoXf9q45PFJWFzlTvAFLNYLXx66dwJG_-u9geiPtPJtaNg9W6GoHxDW_C0imA8t34K_jjp4T/s640/heap-4.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0cm 0cm 10pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify; vertical-align: top;&quot;&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman;&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 115%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;You can see total Heap size, Allocated
&amp;amp; Free memory, percentage usage and no of objects. Also, the distribution
of heap memory size and count is available in different types of objects like,
free, data object, class objects, 1-byte array, 2-byte array etc.&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Times New Roman;&quot;&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 15.6pt; margin: 0cm 0cm 10pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;
&lt;span style=&quot;font-size: 12pt; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;In the &lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;Heap&lt;/b&gt;
tab, click &lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;Cause GC&lt;/b&gt; to invoke
garbage collection, which enables the collection of heap data. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjkeRtOp1HP72v9LlbzhKC9eDGPBSGjZK-sCKHIw-1aHDAPpG-qJzJCMilaCu0ZIstVmZ9ab02J4IynYE0cupRp6HMhIpOyVEZBNIQlJt9g0zZt7GpDCIBQA8IhNB0ZjXsXxrakiqKRNaKZ/s1600/heap-5.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;270&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjkeRtOp1HP72v9LlbzhKC9eDGPBSGjZK-sCKHIw-1aHDAPpG-qJzJCMilaCu0ZIstVmZ9ab02J4IynYE0cupRp6HMhIpOyVEZBNIQlJt9g0zZt7GpDCIBQA8IhNB0ZjXsXxrakiqKRNaKZ/s640/heap-5.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0cm 0cm 10pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify; vertical-align: top;&quot;&gt;
&lt;span style=&quot;font-size: 12pt; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;When the operation completes, you will see a
group of object types and the memory that has been allocated for each type. You
can click &lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;Cause GC&lt;/b&gt; again to refresh
the data.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 15.6pt; margin: 0cm 0cm 10pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;
&lt;span style=&quot;font-size: 12pt; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;Click on an object type in the list to see a
bar graph that shows the number of objects allocated for a particular memory
size in bytes.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi1T86pAuvslw9FX4jYRkxJ69dW_RGRQdoCkocKkJLhHz_p9CdZg_bBQ35yGVbw50ySC43QUm7SwQZKQQL2aM9b-Z2afULWZNV-mfFmEM5Pc7YS6gdscAY5VgbnNEIKjV5_fkJgPiaGQBQ0/s1600/heap-6.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;564&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi1T86pAuvslw9FX4jYRkxJ69dW_RGRQdoCkocKkJLhHz_p9CdZg_bBQ35yGVbw50ySC43QUm7SwQZKQQL2aM9b-Z2afULWZNV-mfFmEM5Pc7YS6gdscAY5VgbnNEIKjV5_fkJgPiaGQBQ0/s640/heap-6.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0cm 0cm 10pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify; vertical-align: top;&quot;&gt;
&lt;/div&gt;
&lt;/span&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0cm 0cm 10pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify; vertical-align: top;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Calibri&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 12pt; line-height: 115%; mso-ansi-language: EN-IN; mso-ascii-theme-font: minor-latin; mso-bidi-language: AR-SA; mso-bidi-theme-font: minor-latin; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin; mso-hansi-theme-font: minor-latin;&quot;&gt;In Bar graph of Allocation count per size, you
can analyse which size of objects are maximum/minimum in the application.&lt;/span&gt;&lt;/div&gt;
&lt;/span&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0cm 0cm 10pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify; vertical-align: top;&quot;&gt;
&lt;span style=&quot;font-size: 12pt; line-height: 115%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;mso-bidi-font-weight: bold;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;The performance of your application can be improved in terms of heap allocations to the objects.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-size: 12pt; line-height: 115%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0cm 0cm 10pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify; vertical-align: top;&quot;&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0cm 0cm 10pt;&quot;&gt;
&lt;b&gt;&lt;span lang=&quot;EN-US&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;Note:&amp;nbsp;The&amp;nbsp;next&amp;nbsp;part of this post will cover the analysis&amp;nbsp;by using&amp;nbsp;a powerful tool&amp;nbsp;Eclipse MAT. Keep an eye!! &lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Wingdings; mso-ascii-font-family: Calibri; mso-char-type: symbol; mso-hansi-font-family: Calibri; mso-symbol-font-family: Wingdings;&quot;&gt;&lt;span style=&quot;mso-char-type: symbol; mso-symbol-font-family: Wingdings;&quot;&gt;J&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/span&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0cm 0cm 10pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify; vertical-align: top;&quot;&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0cm 0cm 10pt;&quot;&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gargengineer.blogspot.com/feeds/2236658113306950147/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gargengineer.blogspot.com/2012/01/android-application-performance_16.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1315287361724052685/posts/default/2236658113306950147'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1315287361724052685/posts/default/2236658113306950147'/><link rel='alternate' type='text/html' href='http://gargengineer.blogspot.com/2012/01/android-application-performance_16.html' title='Android Application Performance Improvement (using DDMS-Traceview/MAT tool): Part-3'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/03311327316747211268</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjwS_NHOl5XV7tCKu0DugHk5P0-e0SNCeVo9Xl2uZPU_Gvz7qhk6OE0VIludf7h-7KMuM5fd8_yjhtd2J9L1jpgYInIzWUSoQXsX5HQgQMU_DXj-KI5l9gjuyZo1v3QQN2W_q5r3YlADOfW/s72-c/heap-1.png" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1315287361724052685.post-5072740811171658748</id><published>2012-01-16T16:55:00.000+05:30</published><updated>2012-01-16T17:00:13.696+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Android Solutions"/><title type='text'>Android Application Performance Improvement (using DDMS/Traceview/MAT tool): Part-2</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;


&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;font-size: 13pt; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;DDMS - Memory
Allocation Tracker&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;


&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0cm 0cm 10pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; vertical-align: top;&quot;&gt;
&lt;span style=&quot;font-size: 12pt; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;DDMS provides a
feature to track objects that are being allocated to memory and to see which
classes and threads are allocating the objects. Memory Allocation Tracker
allows the following:&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;ul type=&quot;disc&quot;&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0cm 0cm 10pt; mso-list: l0 level1 lfo1; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; tab-stops: list 36.0pt; vertical-align: top;&quot;&gt;&lt;span style=&quot;font-size: 12pt; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;Memory Usage &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0cm 0cm 10pt; mso-list: l0 level1 lfo1; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; tab-stops: list 36.0pt; vertical-align: top;&quot;&gt;&lt;span style=&quot;font-size: 12pt; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;Tracking of memory allocated to objects &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0cm 0cm 10pt; mso-list: l0 level1 lfo1; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; tab-stops: list 36.0pt; vertical-align: top;&quot;&gt;&lt;span style=&quot;font-size: 12pt; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;Tracking of threads &amp;amp; classes that are
     allocating objects&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0cm 0cm 10pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; vertical-align: top;&quot;&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;&lt;span style=&quot;font-size: 12pt; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;In DDMS, Devices
tab is on left side from where you can select the device and the process running
for your application and then, you can see the various log reports under different
tabs on the right side.&lt;/span&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;font-size: 13pt; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt; &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0cm 0cm 10pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify; vertical-align: top;&quot;&gt;
&lt;span style=&quot;font-size: 12pt; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;On running
the application, you can analyse the memory usage as well. In &lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;DDMS&lt;/b&gt;, after the selecting application
process, select &lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;Allocation Tracker&lt;/b&gt;
tab from the right side panel.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgu2CWeQ3SI0d9oVh9sdAZ6HYpKzhzxVKWpDqqSWnJEzUPRiTmdrkrReKGLdEn4iQVbjP7Il5kvH6aO5Rnun863ddyJAOMYwBSYJxfSDdhXzL50iKaaOg2IGHifAN3zxqvDXfjJWzufmS99/s1600/DDMS-mat-1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;215&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgu2CWeQ3SI0d9oVh9sdAZ6HYpKzhzxVKWpDqqSWnJEzUPRiTmdrkrReKGLdEn4iQVbjP7Il5kvH6aO5Rnun863ddyJAOMYwBSYJxfSDdhXzL50iKaaOg2IGHifAN3zxqvDXfjJWzufmS99/s400/DDMS-mat-1.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;


&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0cm 0cm 10pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify; vertical-align: top;&quot;&gt;
&lt;span style=&quot;font-size: 12pt; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;Select &lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;Start Tracking&lt;/b&gt; Button to start the
memory allocation tracking. You can navigate through the application/screens
where you want to track the memory usage.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 15.6pt; margin: 0cm 0cm 10pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;
&lt;span style=&quot;font-size: 12pt; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;Click &lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;Get Allocations&lt;/b&gt; to see
a list of objects that have been allocated since you clicked on the Start
Tracking button. You can click on &lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;Get
Allocations&lt;/b&gt; again to append to the list new objects that that have been
allocated.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiKP8Q3kCr5eHQNr2W5LpuvHOYrq6TrtpODZwLkEB0pMMOE4noCHEF6KoTfC-QE7Mu6DsUkyvSYgngQQJJzepJr2Mps_Sx9TWbdfiTn7FovZ7XtMQ2vTBGKm9YCCHWZfnJ0bbpBPDe8qP0z/s1600/DDMS-mat-2.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;228&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiKP8Q3kCr5eHQNr2W5LpuvHOYrq6TrtpODZwLkEB0pMMOE4noCHEF6KoTfC-QE7Mu6DsUkyvSYgngQQJJzepJr2Mps_Sx9TWbdfiTn7FovZ7XtMQ2vTBGKm9YCCHWZfnJ0bbpBPDe8qP0z/s400/DDMS-mat-2.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj1XMKlfjEVm6VCc1Kc14utrwS0ne2m_VuYlyQJAvnBZZ_dhJS89e2qpgvVMdu_8GLRdXdq-ckqJrMPDoycun4Yt7XNzzWbsMxi_6zExV97u6p8Zh1wu_6rc5PUSX30DTg3RxImOgOB_WDB/s1600/DDMS-mat-3.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;497&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj1XMKlfjEVm6VCc1Kc14utrwS0ne2m_VuYlyQJAvnBZZ_dhJS89e2qpgvVMdu_8GLRdXdq-ckqJrMPDoycun4Yt7XNzzWbsMxi_6zExV97u6p8Zh1wu_6rc5PUSX30DTg3RxImOgOB_WDB/s640/DDMS-mat-3.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0cm 0cm 10pt;&quot;&gt;
&lt;span style=&quot;font-size: 12pt; line-height: 115%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;It will display Allocation order,
size, class and thread for each object. On selecting any object, it will fetch
the details of selected object like, Class, Method, File and Line number in the
file. This allows you to track, in real time, where objects are being allocated
when you perform certain actions in your application. This information is
valuable for assessing memory usage that can affect application performance.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-size: 12pt; line-height: 115%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0cm 0cm 10pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;mso-bidi-font-weight: bold;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;Hope now you can take advantage of&amp;nbsp;MAT tool(provided by DDMS)&amp;nbsp;to improve the performance of your application.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0cm 0cm 10pt;&quot;&gt;
&lt;b&gt;&lt;span lang=&quot;EN-US&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;Note:&amp;nbsp;However, The Eclipse has also provided a MAT tool which&amp;nbsp;provides quite a strong features&amp;nbsp;to improve the application memory usage. The later parts of this post will cover it. Keep an eye!! &lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Wingdings; mso-ascii-font-family: Calibri; mso-char-type: symbol; mso-hansi-font-family: Calibri; mso-symbol-font-family: Wingdings;&quot;&gt;&lt;span style=&quot;mso-char-type: symbol; mso-symbol-font-family: Wingdings;&quot;&gt;J&lt;/span&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;/span&gt;

&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gargengineer.blogspot.com/feeds/5072740811171658748/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gargengineer.blogspot.com/2012/01/android-application-performance.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1315287361724052685/posts/default/5072740811171658748'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1315287361724052685/posts/default/5072740811171658748'/><link rel='alternate' type='text/html' href='http://gargengineer.blogspot.com/2012/01/android-application-performance.html' title='Android Application Performance Improvement (using DDMS/Traceview/MAT tool): Part-2'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/03311327316747211268</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgu2CWeQ3SI0d9oVh9sdAZ6HYpKzhzxVKWpDqqSWnJEzUPRiTmdrkrReKGLdEn4iQVbjP7Il5kvH6aO5Rnun863ddyJAOMYwBSYJxfSDdhXzL50iKaaOg2IGHifAN3zxqvDXfjJWzufmS99/s72-c/DDMS-mat-1.png" height="72" width="72"/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1315287361724052685.post-4365826232831499133</id><published>2011-12-17T17:12:00.000+05:30</published><updated>2011-12-17T17:13:08.065+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Android Solutions"/><title type='text'>Android Application Performance Improvement (using DDMS-Traceview/MAT tool): Part-1</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;


&lt;span style=&quot;font-family: Calibri;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-size: 12pt; line-height: 115%; mso-bidi-font-family: Calibri;&quot;&gt;The
Application Performance improvement process is one of the real challenges in
the mobile application development. Android provides various tools to analyze
the performance of the application,&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-size: 12pt; line-height: 115%;&quot;&gt; like-DDMS, Traceview, Allocation Tracker. The memory
analysis can be done through Eclipse Memory Analysis Tool which a very powerful
tool. It provides various analysis, like-Histogram, Dominator Tree, Leak
Suspects along with chart analysis.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;


&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0cm 0cm 10pt; text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-size: 12pt; line-height: 115%;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;This post covers the time analysis of
an application, i.e. Stock Watch Application (which is one of my in-house
developments) for an example, by using Traceview tool and the improvements observed
in the application performance on post-optimization.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;h1 style=&quot;margin: 24pt 0cm 0pt; text-align: justify;&quot;&gt;
&lt;span style=&quot;mso-ansi-language: EN-IN;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;color: #365f91;&quot;&gt;&lt;span style=&quot;font-family: Cambria;&quot;&gt;Traceview&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h1&gt;
&lt;br /&gt;
&lt;div style=&quot;line-height: 115%; text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Calibri&amp;quot;,&amp;quot;sans-serif&amp;quot;; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: Calibri;&quot;&gt;Traceview is a graphical viewer for
execution logs that you creates by using the &lt;/span&gt;&lt;span lang=&quot;EN-US&quot;&gt;&lt;a href=&quot;http://developer.android.com/reference/android/os/Debug.html&quot;&gt;&lt;span style=&quot;color: windowtext; font-family: &amp;quot;Calibri&amp;quot;,&amp;quot;sans-serif&amp;quot;; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: Calibri; text-decoration: none; text-underline: none;&quot;&gt;Debug&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Calibri&amp;quot;,&amp;quot;sans-serif&amp;quot;; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: Calibri;&quot;&gt; class to log tracing information in your code. Traceview
can help you debug your application and profile its performance. It displays
the log files data in two panels:&lt;/span&gt;&lt;/div&gt;
&lt;ul type=&quot;disc&quot;&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;margin: 0cm 0cm 10pt; mso-list: l0 level1 lfo1; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; tab-stops: list 36.0pt; text-align: justify; vertical-align: top;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-size: 12pt; line-height: 115%;&quot;&gt;A &lt;/span&gt;&lt;span lang=&quot;EN-US&quot;&gt;&lt;a href=&quot;http://developer.android.com/guide/developing/debugging/debugging-tracing.html#timelinepanel&quot;&gt;&lt;span style=&quot;color: windowtext; font-size: 12pt; line-height: 115%; text-decoration: none; text-underline: none;&quot;&gt;timeline panel&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-size: 12pt; line-height: 115%;&quot;&gt; -- describes when
     each thread and method started and stopped&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;color: #4f81bd; margin: 0cm 0cm 10pt; mso-list: l0 level1 lfo1; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-themecolor: accent1; tab-stops: list 36.0pt; text-align: justify; vertical-align: top;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: windowtext; font-size: 12pt; line-height: 115%;&quot;&gt;A &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: windowtext;&quot;&gt;&lt;a href=&quot;http://developer.android.com/guide/developing/debugging/debugging-tracing.html#timelinepanel&quot;&gt;&lt;span style=&quot;color: windowtext; font-size: 12pt; line-height: 115%; text-decoration: none; text-underline: none;&quot;&gt;profile panel&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: windowtext; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt; -- provides a summary of what happened inside a method&lt;/span&gt;&lt;span class=&quot;Heading2Char&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-size: 12pt; font-weight: normal; line-height: 115%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-IN;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0cm 0cm 10pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;&quot;&gt;
&lt;span class=&quot;Heading2Char&quot;&gt;&lt;span style=&quot;font-size: 13pt; line-height: 115%; mso-ansi-language: EN-IN;&quot;&gt;&lt;strong&gt;&lt;span style=&quot;color: #4f81bd; font-family: Cambria;&quot;&gt;Tracevie&lt;/span&gt;&lt;/strong&gt;&lt;a href=&quot;&quot; name=&quot;traceviewanalysis&quot;&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style=&quot;color: #4f81bd;&quot;&gt;&lt;span style=&quot;font-family: Cambria;&quot;&gt;w
Analysis on Pre-optimisation&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0cm 0cm 10pt; text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;Traceview
helps us to find out the time spent in each method so that we could track the
performance of each method we have written in the application.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoListParagraph&quot; style=&quot;margin: 0cm 0cm 10pt 36pt; mso-list: l1 level1 lfo2; text-align: justify; text-indent: -18pt;&quot;&gt;
&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;mso-bidi-font-family: Calibri;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;1.&lt;/span&gt;&lt;span style=&quot;font-size-adjust: none; font-stretch: normal; font: 7pt/normal &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;Start
with Traceview profiling: &lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;Open &lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;Eclipse-&amp;gt;DDMS-&amp;gt;Devices&lt;/b&gt;(Tab), select the process of your
application in the all the processes running on emulator/device. Now press ‘&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;Start Method Profiling&lt;/b&gt;’ button as shown
in below image.&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjnCDz0HtjE1lWyc1QmOOh33P29wYtA1LOFwvXfD7pDC46El_FWN0wWeHIbjG1o1Lg6VQ5NX4U41dp31HDpr280MR2iVxtxwiDj6H5wBulUZfx6uJIdFbmIVb2bsO8Ko2pbG5VuPRcBmX6W/s1600/1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;274&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjnCDz0HtjE1lWyc1QmOOh33P29wYtA1LOFwvXfD7pDC46El_FWN0wWeHIbjG1o1Lg6VQ5NX4U41dp31HDpr280MR2iVxtxwiDj6H5wBulUZfx6uJIdFbmIVb2bsO8Ko2pbG5VuPRcBmX6W/s320/1.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;


&lt;br /&gt;
&lt;div class=&quot;MsoListParagraphCxSpFirst&quot; style=&quot;margin: 0cm 0cm 0pt 36pt; mso-list: l0 level1 lfo1; text-align: justify; text-indent: -18pt;&quot;&gt;
&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;mso-bidi-font-family: Calibri;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;2.&lt;/span&gt;&lt;span style=&quot;font-size-adjust: none; font-stretch: normal; font: 7pt/normal &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;Application
Navigation:&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt; Navigate to the application parts for which you
want to create the profiling&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoListParagraphCxSpLast&quot; style=&quot;margin: 0cm 0cm 10pt 36pt; mso-list: l0 level1 lfo1; text-align: justify; text-indent: -18pt;&quot;&gt;
&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;mso-bidi-font-family: Calibri;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;3.&lt;/span&gt;&lt;span style=&quot;font-size-adjust: none; font-stretch: normal; font: 7pt/normal &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;Stop
Profiling: &lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;From the &lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;Devices&lt;/b&gt;
Tab, select ‘Stop Method Profiling’ button as shown in below image. A profiling
report will get generate automatically where you can start analysis.&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhrQM5j23SYFkoine3v4vMd6wFECtOLXtqtzv9SBt_jOdHSLqFrZPk0m4V9rMpGsn_iUPjqknLW8Jz3zGCEvPUXNl8cP-G8QuBIPvTeSCJT26v4PxjjQ5wussoowwK6nGLThmJXAk2LEY8G/s1600/2.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;279&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhrQM5j23SYFkoine3v4vMd6wFECtOLXtqtzv9SBt_jOdHSLqFrZPk0m4V9rMpGsn_iUPjqknLW8Jz3zGCEvPUXNl8cP-G8QuBIPvTeSCJT26v4PxjjQ5wussoowwK6nGLThmJXAk2LEY8G/s320/2.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;


&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0cm 0cm 10pt; text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;As shown
in the below image of Traceview report, the navigation time of these two
activities is 51000 milliseconds&lt;span style=&quot;color: red;&quot;&gt;*&lt;/span&gt;. The control
was in the main Asynchronous thread for a large amount of time.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0cm 0cm 10pt; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;&quot;&gt;*&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin; mso-themecolor: text1;&quot;&gt;since it is tested at android emulator; on
device we might found the time difference.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjd4JeZXFr435skxX8XbCVTjXilx-yLtEsk1JImK9Tg-jofMRbXKjTbMhHOFhAXI28_DDMi-I9RUdo8Ooh32lDiS9A4AxkovpJk1gUnmRQ8cAgWW9UHHFSnmb8WRMFjRGw5b5DmGSscZTgl/s1600/New+Picture+%25281%2529.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjd4JeZXFr435skxX8XbCVTjXilx-yLtEsk1JImK9Tg-jofMRbXKjTbMhHOFhAXI28_DDMi-I9RUdo8Ooh32lDiS9A4AxkovpJk1gUnmRQ8cAgWW9UHHFSnmb8WRMFjRGw5b5DmGSscZTgl/s1600/New+Picture+%25281%2529.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;


&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0cm 0cm 10pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;&quot;&gt;
&lt;span class=&quot;Heading2Char&quot;&gt;&lt;span style=&quot;font-size: 13pt; line-height: 115%; mso-ansi-language: EN-IN; mso-bidi-font-style: italic;&quot;&gt;&lt;strong&gt;&lt;span style=&quot;color: #4f81bd; font-family: Cambria;&quot;&gt;Tracev&lt;/span&gt;&lt;/strong&gt;&lt;a href=&quot;&quot; name=&quot;traceviewanalysis2&quot;&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style=&quot;color: #4f81bd; font-family: Cambria;&quot;&gt;iew Analysis&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;strong&gt;&lt;span style=&quot;color: #4f81bd;&quot;&gt;&lt;span style=&quot;font-family: Cambria;&quot;&gt;&lt;span class=&quot;Heading2Char&quot;&gt;&lt;span style=&quot;font-size: 13pt; line-height: 115%; mso-ansi-language: EN-IN;&quot;&gt; on
Post-optimisation&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Heading2Char&quot;&gt;&lt;span style=&quot;font-size: 13pt; font-weight: normal; line-height: 115%; mso-ansi-language: EN-IN; mso-bidi-font-style: italic; mso-bidi-font-weight: bold;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0cm 0cm 10pt; text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;After optimizing
the code, the navigation time has been &lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;reduced
from 51000 milliseconds to 42000 milliseconds. &lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgGdzaoBOUziQTaubNo6hgma5FRAgLmvcpr-4uL2RMSEIkObQns8UqZhaSSACVJwU_zK815PvBGYUgH7rGQ1BahBX6sWTUWmBqwPQDcy156auNC-_eormZksbAZHkvleyR7v0ngLd_G6LB7/s1600/New+Picture+%25282%2529.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgGdzaoBOUziQTaubNo6hgma5FRAgLmvcpr-4uL2RMSEIkObQns8UqZhaSSACVJwU_zK815PvBGYUgH7rGQ1BahBX6sWTUWmBqwPQDcy156auNC-_eormZksbAZHkvleyR7v0ngLd_G6LB7/s1600/New+Picture+%25282%2529.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;


&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0cm 0cm 10pt;&quot;&gt;
&lt;span class=&quot;Heading2Char&quot;&gt;&lt;span style=&quot;font-size: 13pt; line-height: 115%; mso-ansi-language: EN-IN; mso-bidi-font-style: italic;&quot;&gt;&lt;strong&gt;&lt;span style=&quot;color: #4f81bd;&quot;&gt;&lt;span style=&quot;font-family: Cambria;&quot;&gt;Performance
Improvements&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0cm 0cm 0pt; text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;Improving application performance in terms of time
and memory is one of the real challenges in mobile development. The android
native tools like-DDMS/Traceview plays a significant role in improving the
performance. Also these performance tests can be executed during the
development life cycle. &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0cm 0cm 0pt; text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;Following are the performance improvements by using
both the tools:&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoListParagraphCxSpFirst&quot; style=&quot;margin: 0cm 0cm 0pt 18pt; mso-add-space: auto; mso-list: l0 level1 lfo2; text-align: justify; text-indent: -18pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Wingdings; mso-bidi-font-family: Wingdings; mso-fareast-font-family: Wingdings;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;v&lt;span style=&quot;font-size-adjust: none; font-stretch: normal; font: 7pt/normal &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;Using &lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;Traceview:&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin: 0cm 0cm 0pt 37.5pt; mso-add-space: auto; mso-list: l1 level1 lfo1; text-align: justify; text-indent: -18pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Symbol; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;·&lt;span style=&quot;font-size-adjust: none; font-stretch: normal; font: 7pt/normal &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;Navigation time reduced by 18%&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoListParagraphCxSpLast&quot; style=&quot;margin: 0cm 0cm 0pt 37.5pt; mso-add-space: auto; mso-list: l1 level1 lfo1; text-align: justify; text-indent: -18pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Symbol; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;·&lt;span style=&quot;font-size-adjust: none; font-stretch: normal; font: 7pt/normal &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;Time spent by program control
in Asyn Thread is lessened.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0cm 0cm 10pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;mso-bidi-font-weight: bold;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;Hope now
you can take advantage of Traceview tool to improve the performance of your
application.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0cm 0cm 10pt;&quot;&gt;
&lt;b&gt;&lt;span lang=&quot;EN-US&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;Note: The later parts of this post will
cover the other tools analysis to improve android app performance. Keep an
eye!! &lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Wingdings; mso-ascii-font-family: Calibri; mso-char-type: symbol; mso-hansi-font-family: Calibri; mso-symbol-font-family: Wingdings;&quot;&gt;&lt;span style=&quot;mso-char-type: symbol; mso-symbol-font-family: Wingdings;&quot;&gt;J&lt;/span&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gargengineer.blogspot.com/feeds/4365826232831499133/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gargengineer.blogspot.com/2011/12/android-application-performance.html#comment-form' title='6 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1315287361724052685/posts/default/4365826232831499133'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1315287361724052685/posts/default/4365826232831499133'/><link rel='alternate' type='text/html' href='http://gargengineer.blogspot.com/2011/12/android-application-performance.html' title='Android Application Performance Improvement (using DDMS-Traceview/MAT tool): Part-1'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/03311327316747211268</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjnCDz0HtjE1lWyc1QmOOh33P29wYtA1LOFwvXfD7pDC46El_FWN0wWeHIbjG1o1Lg6VQ5NX4U41dp31HDpr280MR2iVxtxwiDj6H5wBulUZfx6uJIdFbmIVb2bsO8Ko2pbG5VuPRcBmX6W/s72-c/1.png" height="72" width="72"/><thr:total>6</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1315287361724052685.post-2080612048528032970</id><published>2011-12-15T13:32:00.002+05:30</published><updated>2011-12-17T16:45:28.008+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Android Basics"/><title type='text'>Deploying the Application on the Device (Mac or Windows or Linux)</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;


&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 13pt; margin: 0cm 0cm 0pt; text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-size: 10pt; mso-bidi-font-size: 11.0pt;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;The application is deployed to the Emulator directly
from the Eclipse. To deploy the application on the Android powered device,
following are the steps:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 13pt; margin: 0cm 0cm 0pt; text-align: justify;&quot;&gt;
&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #3e7a49; font-size: 12pt;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;Declare Application as
‘debuggable’&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 13pt; margin: 0cm 0cm 0pt; text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-size: 10pt; mso-bidi-font-size: 11.0pt;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;We will declare our application as &lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;‘debuggable’&lt;/b&gt; in &lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;Android Manifest.xml&lt;/b&gt; file shown in Fig.1 at position 6 by adding &lt;/span&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 9pt; mso-bidi-font-size: 11.0pt; mso-themecolor: text1;&quot;&gt;android: debuggable=&quot;true&quot;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 8pt; mso-bidi-font-size: 9.0pt;&quot;&gt; to the &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 9pt; mso-bidi-font-size: 11.0pt; mso-themecolor: text1;&quot;&gt;&amp;lt;application&amp;gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #333333; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 8pt; mso-bidi-font-size: 9.0pt;&quot;&gt;
element.&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-size: 10pt; mso-bidi-font-size: 11.0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 13pt; margin: 0cm 0cm 0pt; text-align: justify;&quot;&gt;
&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #3e7a49; font-size: 12pt;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;Android Device Setup &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 13pt; margin: 0cm 0cm 0pt; text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-size: 10pt; mso-bidi-font-size: 11.0pt;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;We will turn on the ‘USB Debugging’ on the device &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoListParagraphCxSpFirst&quot; style=&quot;line-height: 13pt; margin: 0cm 0cm 0pt 22.5pt; mso-add-space: auto; mso-list: l1 level1 lfo1; text-align: justify; text-indent: -13.5pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Symbol; font-size: 10pt; mso-bidi-font-family: Symbol; mso-bidi-font-size: 11.0pt; mso-fareast-font-family: Symbol;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;·&lt;span style=&quot;font-size-adjust: none; font-stretch: normal; font: 7pt/normal &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-size: 10pt; mso-bidi-font-size: 11.0pt;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;On the device, go to home screen, press &lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;MENU &lt;/b&gt;then select &lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;Application-&amp;gt;Development&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpLast&quot; style=&quot;line-height: 13pt; margin: 0cm 0cm 0pt 22.5pt; mso-add-space: auto; mso-list: l1 level1 lfo1; text-align: justify; text-indent: -13.5pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Symbol; font-size: 10pt; mso-bidi-font-family: Symbol; mso-bidi-font-size: 11.0pt; mso-fareast-font-family: Symbol;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;·&lt;span style=&quot;font-size-adjust: none; font-stretch: normal; font: 7pt/normal &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-size: 10pt; mso-bidi-font-size: 11.0pt;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;Enable &lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;‘USB
Debugging’&lt;/b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 13pt; margin: 0cm 0cm 0pt; text-align: justify;&quot;&gt;
&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #3e7a49; font-size: 12pt;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;System Setup to detect the
device&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 13pt; margin: 0cm 0cm 0pt; text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-size: 10pt; mso-bidi-font-size: 11.0pt;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;This step varies for different operating systems on
which we are developing our application.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 13pt; margin: 0cm 0cm 0pt; text-align: justify;&quot;&gt;
&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-size: 10pt; mso-bidi-font-size: 11.0pt;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;Windows&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 13pt; margin: 0cm 0cm 0pt; text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-size: 10pt; mso-bidi-font-size: 11.0pt;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;Install a USB driver for adb (Android debug Bridge)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 13pt; margin: 0cm 0cm 0pt; text-align: justify;&quot;&gt;
&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-size: 10pt; mso-bidi-font-size: 11.0pt;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;Mac OS&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 13pt; margin: 0cm 0cm 0pt; text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-size: 10pt; mso-bidi-font-size: 11.0pt;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;For Mac OS X, skip this step as it works fine.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 13pt; margin: 0cm 0cm 0pt; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-size: 10pt; mso-bidi-font-size: 11.0pt;&quot;&gt;Ubuntu Linux&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-size: 10pt; mso-bidi-font-size: 11.0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 13pt; margin: 0cm 0cm 0pt; text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-size: 10pt; mso-bidi-font-size: 11.0pt;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;In case of Ubuntu Linux, we need to add a rules file
that contains a USB configuration for the device (Vendor Id) which we are using
for development.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoListParagraphCxSpFirst&quot; style=&quot;line-height: 13pt; margin: 0cm 0cm 0pt 18pt; mso-add-space: auto; mso-list: l2 level1 lfo2; text-align: justify; text-indent: -13.5pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Symbol; font-size: 10pt; mso-bidi-font-family: Symbol; mso-bidi-font-size: 11.0pt; mso-fareast-font-family: Symbol;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;·&lt;span style=&quot;font-size-adjust: none; font-stretch: normal; font: 7pt/normal &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-size: 10pt; mso-bidi-font-size: 11.0pt;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;Log in as root and create this file: &lt;/span&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9pt; mso-bidi-font-size: 10.0pt;&quot;&gt;/etc/udev/rules.d/51-android.rules&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpLast&quot; style=&quot;line-height: 13pt; margin: 0cm 0cm 0pt 54pt; mso-add-space: auto; mso-list: l0 level1 lfo3; text-align: justify; text-indent: -18pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Wingdings; font-size: 10pt; mso-bidi-font-family: Wingdings; mso-bidi-font-size: 11.0pt; mso-fareast-font-family: Wingdings;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;§&lt;span style=&quot;font-size-adjust: none; font-stretch: normal; font: 7pt/normal &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-size: 10pt; mso-bidi-font-size: 11.0pt;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;For Gusty/Hardy,
edit the file to read:&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 13pt; margin: 0cm 0cm 0pt 36pt; text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9pt; mso-bidi-font-size: 10.0pt;&quot;&gt;SUBSYSTEM==&quot;usb&quot;,
SYSFS{idVendor}==&quot;0bb4&quot;, MODE=&quot;0666&quot;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoListParagraph&quot; style=&quot;line-height: 13pt; margin: 0cm 0cm 0pt 54pt; mso-add-space: auto; mso-list: l0 level1 lfo3; text-align: justify; text-indent: -18pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Wingdings; font-size: 10pt; mso-bidi-font-family: Wingdings; mso-bidi-font-size: 11.0pt; mso-fareast-font-family: Wingdings;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;§&lt;span style=&quot;font-size-adjust: none; font-stretch: normal; font: 7pt/normal &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-size: 10pt; mso-bidi-font-size: 11.0pt;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;For Dapper, edit
the file to read:&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 13pt; margin: 0cm 0cm 0pt 36pt; text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9pt; mso-bidi-font-size: 11.0pt;&quot;&gt;SUBSYSTEM==&quot;usb_device&quot;,
SYSFS{idVendor}==&quot;0bb4&quot;, MODE=&quot;0666&quot;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoListParagraph&quot; style=&quot;line-height: 13pt; margin: 0cm 0cm 0pt 18pt; mso-add-space: auto; mso-list: l2 level1 lfo2; text-align: justify; text-indent: -18pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Symbol; font-size: 10pt; mso-bidi-font-family: Symbol; mso-bidi-font-size: 11.0pt; mso-fareast-font-family: Symbol;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;·&lt;span style=&quot;font-size-adjust: none; font-stretch: normal; font: 7pt/normal &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-size: 10pt; mso-bidi-font-size: 11.0pt;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;Now execute:&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 13pt; margin: 0cm 0cm 0pt; text-align: justify; text-indent: 18pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 9pt; mso-bidi-font-size: 11.0pt;&quot;&gt;chmod
a+r /etc/udev/rules.d/51-android.rules &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 13pt; margin: 0cm 0cm 0pt; text-align: justify;&quot;&gt;
&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: #3e7a49; font-size: 12pt;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;Run the Application&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 13pt; margin: 0cm 0cm 0pt; text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-size: 10pt;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;If you
are using Eclipse, then select &lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;Eclipse-&amp;gt;Run-&amp;gt;Run
Configurations-&amp;gt;Run&lt;/b&gt;, in the available &lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;Device Chooser &lt;/b&gt;dialog that lists the available emulators and
connected devices, select the device and click&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt; Run &lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 13pt; margin: 0cm 0cm 0pt; text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-size: 10pt;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;If you
are using command line, then open the cmd window and run the following command
to run the application&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 13pt; margin: 0cm 0cm 0pt; text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;C:\[path_to_adb_tool] &amp;gt; adb install
[path_to_apk]\ [appname].apk&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0cm 0cm 10pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;Enjoy your application watching at your
mobile &lt;/span&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Wingdings; mso-ascii-font-family: Calibri; mso-ascii-theme-font: minor-latin; mso-char-type: symbol; mso-hansi-font-family: Calibri; mso-hansi-theme-font: minor-latin; mso-symbol-font-family: Wingdings;&quot;&gt;&lt;span style=&quot;mso-char-type: symbol; mso-symbol-font-family: Wingdings;&quot;&gt;J&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gargengineer.blogspot.com/feeds/2080612048528032970/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gargengineer.blogspot.com/2011/12/deploying-application-on-device-mac-or.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1315287361724052685/posts/default/2080612048528032970'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1315287361724052685/posts/default/2080612048528032970'/><link rel='alternate' type='text/html' href='http://gargengineer.blogspot.com/2011/12/deploying-application-on-device-mac-or.html' title='Deploying the Application on the Device (Mac or Windows or Linux)'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/03311327316747211268</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1315287361724052685.post-4290880238454975429</id><published>2011-12-14T12:48:00.000+05:30</published><updated>2012-01-04T16:37:12.647+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Android Basics"/><title type='text'>How to create Android Application?</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 13pt; margin-bottom: 0in; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-size: 10pt;&quot;&gt;The Android SDK
provides the tools and APIs necessary to develop applications on the Android
platform using the Java programming language.&lt;/span&gt;&lt;span style=&quot;font-size: 11.5pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;To start with Android application development, the
developer needs to have elementary knowledge of Java and XML.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 13pt; margin-bottom: 0in; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-size: 10pt;&quot;&gt;Well, starting with
the creation of first android application, &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpFirst&quot; style=&quot;line-height: 13pt; margin: 0in 0in 0in 22.5pt; mso-add-space: auto; mso-list: l0 level1 lfo1; text-align: justify; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;font-size: 10pt;&quot;&gt;a)&lt;span style=&quot;font-size-adjust: none; font-stretch: normal; font: 7pt/normal &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;Select &lt;b&gt;Eclipse-&amp;gt;File-&amp;gt;New-&amp;gt;Android
Project,&lt;/b&gt; in the dialog, fill the fields, &lt;b&gt;Project Name&lt;/b&gt; (ex: MyFirstApp), &lt;b&gt;Build &amp;nbsp;Target &lt;/b&gt;(to compile the application by a particular Android SDK), &lt;b&gt;Application Name &lt;/b&gt;(name of application,
ex: &amp;nbsp; &amp;nbsp; &amp;nbsp;MyFirstApp), &lt;b&gt;Package Name &lt;/b&gt;(ex:
com.myapp), &lt;b&gt;Create Activity &lt;/b&gt;(ex:
MyFirstActivity)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;line-height: 13pt; margin: 0in 0in 0in 17.1pt; mso-add-space: auto; mso-list: l0 level1 lfo1; text-align: justify; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;font-size: 10pt;&quot;&gt;&amp;nbsp; &amp;nbsp;b)&lt;span style=&quot;font-size-adjust: none; font-stretch: normal; font: 7pt/normal &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;Click on &lt;b&gt;Next-&amp;gt;Finish&lt;/b&gt;. An android project
folder with&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;line-height: 13pt; margin-left: 17.1pt; mso-add-space: auto; text-align: justify; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;font-size: 10pt;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Name
‘MyFirstApp’ will get built in the left pane (Project Explorer) of Eclipse.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpLast&quot; style=&quot;line-height: 13pt; margin: 0in 0in 0in 17.1pt; mso-add-space: auto; mso-list: l0 level1 lfo1; text-align: justify; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;font-size: 10pt;&quot;&gt;&amp;nbsp; &amp;nbsp;c)&lt;span style=&quot;font-size-adjust: none; font-stretch: normal; font: 7pt/normal &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;On exploring the Project
folder, you will be able to see the sub folders &lt;b&gt;&lt;i&gt;/src&lt;/i&gt;&lt;/b&gt;&lt;i&gt;, &lt;b&gt;/gen&lt;/b&gt;, &lt;b&gt;/res&lt;/b&gt;&lt;/i&gt; &amp;amp; &lt;b&gt;&lt;i&gt;AndroidManifest.xml&lt;/i&gt;&lt;/b&gt; as shown in the below image at positions 1, 2, 4 and 6 respectively.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 13pt; margin: 0in 0in 0in -0.9pt; text-align: justify;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;&lt;span id=&quot;goog_1288562509&quot;&gt;&lt;/span&gt;&lt;span id=&quot;goog_1288562510&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 13pt; margin: 0in 0in 0in -0.9pt; text-align: justify;&quot;&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgVb-XSXP21BKEyBqsXDghilnpCxK2cUoTky_eqkcCBSol-3zDtWFct1XE76sNZnFuObChyphenhyphenLcamG6fQNfSypuo2wWsc1tEqGPLP9yWxxS9zQTlWU4ns_08nnaErxF5yaVAQK5NUldekipTc/s1600/1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgVb-XSXP21BKEyBqsXDghilnpCxK2cUoTky_eqkcCBSol-3zDtWFct1XE76sNZnFuObChyphenhyphenLcamG6fQNfSypuo2wWsc1tEqGPLP9yWxxS9zQTlWU4ns_08nnaErxF5yaVAQK5NUldekipTc/s1600/1.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 13pt; margin: 0in 0in 0in -0.9pt; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 13pt; margin-bottom: 0pt;&quot;&gt;
&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhWSUkPvps1Qhw1VazJhXEpXz_7mk9XVTUrkADV6L3Kbroto7imMiKHcJKku9g-YgvjSrUXtxqM05L6mW3LHTczQkE2zoL5yAv86jDdSIXc4Ia69bGMwuzbJ3-F296alf-z-x194AwITail/s1600/2.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhWSUkPvps1Qhw1VazJhXEpXz_7mk9XVTUrkADV6L3Kbroto7imMiKHcJKku9g-YgvjSrUXtxqM05L6mW3LHTczQkE2zoL5yAv86jDdSIXc4Ia69bGMwuzbJ3-F296alf-z-x194AwITail/s1600/2.png&quot; /&gt;&lt;/a&gt;&lt;em&gt;&lt;span style=&quot;font-family: &amp;quot;Calibri&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10pt; mso-ascii-theme-font: minor-latin; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-bidi-theme-font: minor-bidi; mso-hansi-theme-font: minor-latin;&quot;&gt;There are four building
blocks to build an Android Application- &lt;b&gt;Activity
file&lt;/b&gt;, &lt;b&gt;R.java&lt;/b&gt;, &lt;b&gt;Resource files&lt;/b&gt; and &lt;b&gt;Android Manifest file&lt;/b&gt; as shown in above image at positions 1, 3, 4, 6
respectively. &lt;b&gt;Activity files&lt;/b&gt; are
used to write the Business logic of action happening on the Android Screen. The
&lt;b&gt;resource files&lt;/b&gt; are used to create
the layouts for the screen. The &lt;b&gt;Android
Manifest file&lt;/b&gt; presents the essential information about the application to
the Android OS, like- version, icon, activities and permissions given to
application, which Android requires before running any application. &lt;b&gt;R.java&lt;/b&gt; file does the mapping between
layout files and Activity file.&lt;/span&gt;&lt;/em&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-size: 10pt;&quot;&gt;

&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 13pt; margin-bottom: 0pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjQ27ZU3QvLSeURBv8PPBgQ3mlHlBdKAGapHQews0LHgLxVXdmsa-qhoewps6fuTIXeMXTEybUWWXBCzzPOztVwe3xoymj8Jyc7kwGI4mWEL-CUxqKsQsX-45XmfwxbTEviK8Q9xK_o4X2f/s1600/3.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjQ27ZU3QvLSeURBv8PPBgQ3mlHlBdKAGapHQews0LHgLxVXdmsa-qhoewps6fuTIXeMXTEybUWWXBCzzPOztVwe3xoymj8Jyc7kwGI4mWEL-CUxqKsQsX-45XmfwxbTEviK8Q9xK_o4X2f/s1600/3.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Calibri&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11pt; line-height: 115%; mso-ansi-language: EN-US; mso-ascii-theme-font: minor-latin; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-bidi-language: AR-SA; mso-bidi-theme-font: minor-bidi; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-fareast; mso-hansi-theme-font: minor-latin;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: blue;&quot;&gt;Activity
File&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 13pt; margin-bottom: 0pt;&quot;&gt;
&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;o:p&gt;&lt;br /&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: 13pt; margin-bottom: 0pt;&quot;&gt;
&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;&lt;div class=&quot;MsoListParagraphCxSpFirst&quot; style=&quot;line-height: 13pt; margin: 0in 0in 0pt 22.5pt; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;font-size: 10pt;&quot;&gt;Edit &lt;b&gt;&lt;i&gt;MyFirstActivity.java&lt;/i&gt;&lt;/b&gt;
in the package &lt;b&gt;&lt;i&gt;com.myapp&lt;/i&gt;&lt;/b&gt; (at position 1) as the code shown in the
above image.&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;&lt;div class=&quot;MsoListParagraphCxSpFirst&quot; style=&quot;line-height: 13pt; margin: 0in 0in 0pt 22.5pt; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;font-size: 10pt; mso-bidi-font-size: 11.0pt;&quot;&gt;Next, the Emulator is required to see the output screen. Following are
the steps to create emulator:&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;&lt;div class=&quot;MsoListParagraphCxSpFirst&quot; style=&quot;line-height: 13pt; margin: 0in 0in 0pt 22.5pt; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;font-size: 10pt; mso-bidi-font-size: 11.0pt;&quot;&gt;Select &lt;b&gt;Eclipse-&amp;gt;Window-&amp;gt;Android
SDK and AVD Manager&lt;/b&gt;. In the available dialog, select &lt;b&gt;Virtual devices &amp;gt;New&lt;/b&gt;.&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;&lt;div class=&quot;MsoListParagraphCxSpFirst&quot; style=&quot;line-height: 13pt; margin: 0in 0in 0pt 22.5pt; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;font-size: 10pt; mso-bidi-font-size: 11.0pt;&quot;&gt;In the available dialog, enter the name of emulator (ex: MyDevice) and
select the target API (Android version)for the emulator. Now click on &lt;b&gt;Create AVD &lt;/b&gt;button.&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;&lt;div class=&quot;MsoListParagraphCxSpFirst&quot; style=&quot;line-height: 13pt; margin: 0in 0in 0pt 22.5pt; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;font-size: 10pt; mso-bidi-font-size: 11.0pt;&quot;&gt;The emulator with name ‘MyDevice’ will be added in the list of existing
emulators (if any) on the previous dialog and to start the emulator select &lt;b&gt;Start &lt;/b&gt;from the dialog.&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;&lt;div class=&quot;MsoListParagraphCxSpFirst&quot; style=&quot;line-height: 13pt; margin: 0in 0in 0pt 22.5pt; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;font-size: 10pt; mso-bidi-font-size: 11.0pt;&quot;&gt;To run the application, select &lt;b&gt;Eclipse-&amp;gt;Run-&amp;gt;Run
Configurations.&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;&lt;div class=&quot;MsoListParagraphCxSpFirst&quot; style=&quot;line-height: 13pt; margin: 0in 0in 0pt 22.5pt; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;font-size: 10pt; mso-bidi-font-size: 11.0pt;&quot;&gt;In the available dialog click on &lt;b&gt;Run&lt;/b&gt; and see the log in the console
window of the Eclipse.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;div class=&quot;MsoListParagraphCxSpLast&quot; style=&quot;line-height: 13pt; margin: 0in 0in 0pt 22.5pt; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;font-size: 10pt; mso-bidi-font-size: 11.0pt;&quot;&gt;The eclipse itself installs the application on the Android Emulator and
the output can be seen in the Android Emulator as shown in the below image.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhgJBgV6wFgDZ31fg_x5E4WCGp2PLMhiY4uO5f_diCtnzb1OjemCYRMKxI5ZqDcupKqU9rqzzTs5BpkAXs7616OQNztjYTbbc70lKm1Bo4zoktkBZyrS1LlJGS642schqkYo36iNSZRX8eW/s1600/4.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhgJBgV6wFgDZ31fg_x5E4WCGp2PLMhiY4uO5f_diCtnzb1OjemCYRMKxI5ZqDcupKqU9rqzzTs5BpkAXs7616OQNztjYTbbc70lKm1Bo4zoktkBZyrS1LlJGS642schqkYo36iNSZRX8eW/s1600/4.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Calibri&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11pt; line-height: 115%; mso-ansi-language: EN-US; mso-ascii-theme-font: minor-latin; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-bidi-language: AR-SA; mso-bidi-theme-font: minor-bidi; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-fareast; mso-hansi-theme-font: minor-latin;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: blue;&quot;&gt;Output
screen on Android Emulator&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpLast&quot; style=&quot;line-height: 13pt; margin: 0in 0in 0pt 22.5pt; text-indent: -0.25in;&quot;&gt;
&lt;span style=&quot;font-size: 10pt; mso-bidi-font-size: 11.0pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpLast&quot; style=&quot;line-height: 13pt; margin: 0in 0in 0pt 22.5pt; text-indent: -0.25in;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gargengineer.blogspot.com/feeds/4290880238454975429/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gargengineer.blogspot.com/2011/12/how-to-create-android-application.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1315287361724052685/posts/default/4290880238454975429'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1315287361724052685/posts/default/4290880238454975429'/><link rel='alternate' type='text/html' href='http://gargengineer.blogspot.com/2011/12/how-to-create-android-application.html' title='How to create Android Application?'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/03311327316747211268</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgVb-XSXP21BKEyBqsXDghilnpCxK2cUoTky_eqkcCBSol-3zDtWFct1XE76sNZnFuObChyphenhyphenLcamG6fQNfSypuo2wWsc1tEqGPLP9yWxxS9zQTlWU4ns_08nnaErxF5yaVAQK5NUldekipTc/s72-c/1.png" height="72" width="72"/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1315287361724052685.post-3152287781684646021</id><published>2011-12-13T14:12:00.001+05:30</published><updated>2011-12-17T16:45:28.013+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Android Basics"/><title type='text'>Android Development Environment Setup</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;


&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0cm 0cm 0pt; text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;This post is for new Android Developers or for those who
have little interest in android development and wanna see the android li’l
closely &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Wingdings; mso-ascii-font-family: Arial; mso-bidi-font-family: Arial; mso-char-type: symbol; mso-hansi-font-family: Arial; mso-symbol-font-family: Wingdings;&quot;&gt;&lt;span style=&quot;mso-char-type: symbol; mso-symbol-font-family: Wingdings;&quot;&gt;J&lt;/span&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0cm 0cm 0pt; text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;Here are the
crisp steps to setup the android development environment!!&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0cm 0cm 0pt; text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;The
developers are able to setup Android development environment by using Netbeans
or Eclipse IDE and also by using command line tools (Apache Ant). But, Eclipse
IDE is the Android development environment recommended by Google. The Android
Development Tools (ADT) is a plugin for the Eclipse IDE designed to give a
powerful, integrated environment to build Android applications.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0cm 0cm 0pt; text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;Android ADT
plugin extends the functionalities of Eclipse and set up the Android projects
quickly and create application UI, add components based on the Android
Framework API, debug application using DDMS tool and export the apk (Android
Package) file to the emulator.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0cm 0cm 0pt; text-align: justify;&quot;&gt;
&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;Android
Development Environment Set up Using Eclipse&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoListParagraphCxSpFirst&quot; style=&quot;margin: 0cm 0cm 0pt 22.5pt; mso-add-space: auto; mso-list: l0 level1 lfo1; tab-stops: 22.5pt; text-align: justify; text-indent: -18pt;&quot;&gt;
&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; mso-fareast-font-family: Arial;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;a)&lt;span style=&quot;font-size-adjust: none; font-stretch: normal; font: 7pt/normal &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;Install JDK:&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt; Download and install JDK 5
or JDK 6 from &lt;/span&gt;&lt;span lang=&quot;EN-US&quot;&gt;&lt;a href=&quot;http://java.sun.com/javase/downloads&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;http://java.sun.com/javase/downloads&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin: 0cm 0cm 0pt 22.5pt; mso-add-space: auto; mso-list: l0 level1 lfo1; text-align: justify; text-indent: -18pt;&quot;&gt;
&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; mso-fareast-font-family: Arial;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;b)&lt;span style=&quot;font-size-adjust: none; font-stretch: normal; font: 7pt/normal &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;Install
Eclipse IDE:&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;
Download Eclipse Classic 3.5.1(or higher) &lt;/span&gt;&lt;span lang=&quot;EN-US&quot;&gt;&lt;a href=&quot;https://www.eclipse.org/downloads/&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;https://www.eclipse.org/downloads/&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt; and unzip it into the disk
(in any folder).&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin: 0cm 0cm 0pt 22.5pt; mso-add-space: auto; mso-list: l0 level1 lfo1; text-align: justify; text-indent: -18pt;&quot;&gt;
&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; mso-fareast-font-family: Arial;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;c)&lt;span style=&quot;font-size-adjust: none; font-stretch: normal; font: 7pt/normal &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;Download
ADT Plugin: &lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;Download
the latest version of Android ADT plugin for Eclipse &lt;/span&gt;&lt;span lang=&quot;EN-US&quot;&gt;&lt;a href=&quot;http://developer.android.com/sdk/eclipse-adt.html&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;http://developer.android.com/sdk/eclipse-adt.html&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt; and save it as a zip file
into the disk (in any folder).&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin: 0cm 0cm 0pt 22.5pt; mso-add-space: auto; mso-list: l0 level1 lfo1; text-align: justify; text-indent: -18pt;&quot;&gt;
&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; mso-fareast-font-family: Arial;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;d)&lt;span style=&quot;font-size-adjust: none; font-stretch: normal; font: 7pt/normal &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;Download
Android SDK starter package:&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt; Download the Android SDK pack .zip archive according to
the operating system of development computer (Windows/Linux i386/Mac OS X) &lt;/span&gt;&lt;span lang=&quot;EN-US&quot;&gt;&lt;a href=&quot;http://developer.android.com/sdk/index.html&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;http://developer.android.com/sdk/index.html&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt; and unpack it into the
disk (in any folder). By default, the SDK files are unpacked into a directory
named &lt;span style=&quot;color: black; mso-themecolor: text1;&quot;&gt;android-sdk-&amp;lt;machine-platform&amp;gt;.&lt;/span&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin: 0cm 0cm 0pt 18pt; mso-add-space: auto; mso-list: l0 level1 lfo1; text-align: justify; text-indent: -18pt;&quot;&gt;
&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; mso-fareast-font-family: Arial;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;e)&lt;span style=&quot;font-size-adjust: none; font-stretch: normal; font: 7pt/normal &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;Configure
ADT plugin with Eclipse:&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;Android offers a custom plugin for the
Eclipse IDE, Android Development Tools (ADT).&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;
&lt;/span&gt;Following the steps to configure it with the Eclipse.&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin: 0cm 0cm 0pt 36pt; mso-add-space: auto; mso-list: l2 level1 lfo2; text-align: justify; text-indent: -18pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Symbol; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;·&lt;span style=&quot;font-size-adjust: none; font-stretch: normal; font: 7pt/normal &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;Select
&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;Eclipse-&amp;gt;Help-&amp;gt;Install New
Software&lt;/b&gt;, in the available dialog Select &lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;Add&lt;/b&gt; and enter the name of plugin (ex: “Android Plugin”) in the Name
field and locate the ADT plugin zip file after selecting on &lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;Archive&lt;/b&gt;.&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin: 0cm 0cm 0pt 36pt; mso-add-space: auto; mso-list: l2 level1 lfo2; text-align: justify; text-indent: -18pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Symbol; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;·&lt;span style=&quot;font-size-adjust: none; font-stretch: normal; font: 7pt/normal &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;Select
the checkbox next to&amp;nbsp;Developer Tools, which will automatically select the
nested&lt;span class=&quot;apple-style-span&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;/span&gt;tools
Android&amp;nbsp;DDMS&amp;nbsp;and&amp;nbsp;Android Development Tools&amp;nbsp;and then
click&amp;nbsp;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;Next&lt;/b&gt;.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin: 0cm 0cm 0pt 36pt; mso-add-space: auto; mso-list: l2 level1 lfo2; text-align: justify; text-indent: -18pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Symbol; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;·&lt;span style=&quot;font-size-adjust: none; font-stretch: normal; font: 7pt/normal &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;On
the next dialog, click&amp;nbsp;Next&amp;nbsp;to read and accept the license agreement
and install any dependencies, then click&amp;nbsp;Finish.&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoListParagraphCxSpLast&quot; style=&quot;margin: 0cm 0cm 0pt 36pt; mso-add-space: auto; mso-list: l2 level1 lfo2; text-align: justify; text-indent: -18pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: Symbol; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;·&lt;span style=&quot;font-size-adjust: none; font-stretch: normal; font: 7pt/normal &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;Restart
Eclipse.&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0cm 0cm 0pt 18pt; text-align: justify; text-indent: -18pt;&quot;&gt;
&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;f)&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;Configure Android SDK Starter Package: &lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;Select &lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;Eclipse-&amp;gt;Window-&amp;gt;Preferences&lt;/b&gt;, in the available dialog, select
&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;Android &lt;/b&gt;from the left panel and in
the right panel of the dialog, click on &lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;Browse&lt;/b&gt;
to locate the Android SDK root directory named as &lt;span style=&quot;color: black; mso-themecolor: text1;&quot;&gt;android-sdk-&amp;lt;machine-platform&amp;gt; &lt;/span&gt;and click on &lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;Apply &lt;/b&gt;and &lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;OK&lt;/b&gt;.&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoListParagraph&quot; style=&quot;margin: 0cm 0cm 0pt 18pt; mso-add-space: auto; mso-list: l1 level1 lfo3; tab-stops: 18.0pt; text-align: justify; text-indent: -18pt;&quot;&gt;
&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; mso-fareast-font-family: Arial;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;g)&lt;span style=&quot;font-size-adjust: none; font-stretch: normal; font: 7pt/normal &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;Adding
SDK Platforms for different Android OS versions and samples: &lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;Select &lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;Eclipse-&amp;gt;Window-&amp;gt;Android SDK and AVD Manager&lt;/b&gt;. Now in
available dialog, select &lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;Available
Packages&lt;/b&gt; and install the latest version of the SDK.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0cm 0cm 10pt; text-align: justify;&quot;&gt;
&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;Exploring the
SDK directory (optional):&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;
On exploring the SDK directory, the contents inside the root directory are add-on/,
docs/, platform-tools/, platforms/, samples/, tools/, SDK Readme.txt,
SDkManager.txt&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0cm 0cm 10pt; text-align: justify;&quot;&gt;
&lt;span lang=&quot;EN-US&quot; style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;Enjoy coding for android :)&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gargengineer.blogspot.com/feeds/3152287781684646021/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gargengineer.blogspot.com/2011/12/android-development-environment-setup.html#comment-form' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1315287361724052685/posts/default/3152287781684646021'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1315287361724052685/posts/default/3152287781684646021'/><link rel='alternate' type='text/html' href='http://gargengineer.blogspot.com/2011/12/android-development-environment-setup.html' title='Android Development Environment Setup'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/03311327316747211268</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1315287361724052685.post-2047687921224810038</id><published>2011-12-11T16:59:00.000+05:30</published><updated>2011-12-11T17:15:19.997+05:30</updated><title type='text'>Android Solutions</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;Hi guys!!&lt;br /&gt;
&lt;br /&gt;
I am starting this blog as an Android Developer who is doing little R&amp;amp;D on application development level. I&#39;d like to ensure you that lots of posts are in pipeline to come on the blog which will resolve many of common &amp;amp; severe issues during android development, new adventures and feature exploration in android.&lt;br /&gt;
&lt;br /&gt;
Note: You can post your random questions related to Android App Development, which will be&amp;nbsp;responded at the earliest.&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;Thanks!!&lt;/div&gt;&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gargengineer.blogspot.com/feeds/2047687921224810038/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gargengineer.blogspot.com/2011/12/era-of-android.html#comment-form' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1315287361724052685/posts/default/2047687921224810038'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1315287361724052685/posts/default/2047687921224810038'/><link rel='alternate' type='text/html' href='http://gargengineer.blogspot.com/2011/12/era-of-android.html' title='Android Solutions'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/03311327316747211268</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1315287361724052685.post-3042323254216316376</id><published>2011-12-11T16:21:00.000+05:30</published><updated>2011-12-17T16:45:48.414+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Android Solutions"/><title type='text'>Proxy Settings in Android Emulator (For Corporate Network) to access internet</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;If you are sitting behind a proxy (like- corporate network or any other), you need to do the proxy settings to access the internet in Android Emulator browser by the following steps:&lt;/div&gt;&lt;ol style=&quot;text-align: left;&quot;&gt;&lt;li&gt;Get the Proxy Host Address and port number of your network&lt;/li&gt;
&lt;li&gt;Open the &lt;b style=&quot;text-indent: -24px;&quot;&gt;Menu-&amp;gt;settings-&amp;gt;Wireless &amp;amp; Networks-&amp;gt;Mobile Networks-&amp;gt;Access Point Names&lt;/b&gt; in Android Emulator&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Calibri, sans-serif; font-size: 15px; line-height: 17px;&quot;&gt;Open &lt;/span&gt;&lt;b style=&quot;font-family: Calibri, sans-serif; font-size: 15px; line-height: 17px;&quot;&gt;Telkila&lt;/b&gt;&lt;/li&gt;
&lt;li&gt;Edit&amp;nbsp;&lt;b style=&quot;text-indent: -24px;&quot;&gt;Proxy&lt;/b&gt;&amp;nbsp;to your Proxy Host Address like-10.117.123.169&lt;/li&gt;
&lt;li&gt;Edit&amp;nbsp;&lt;b style=&quot;text-indent: -24px;&quot;&gt;Port&lt;/b&gt;&amp;nbsp;to the your Port like-8080&lt;/li&gt;
&lt;li&gt;Remove * from&amp;nbsp;&lt;b style=&quot;text-indent: -24px;&quot;&gt;Username&lt;/b&gt;,&amp;nbsp;&lt;b style=&quot;text-indent: -24px;&quot;&gt;Password&lt;/b&gt;&amp;nbsp;and&amp;nbsp;&lt;b style=&quot;text-indent: -24px;&quot;&gt;Server&lt;/b&gt;&amp;nbsp;fields and make them blank(&amp;lt;not set&amp;gt;).&lt;/li&gt;
&lt;li&gt;Set&amp;nbsp;&lt;b style=&quot;text-indent: -24px;&quot;&gt;Authentication Type&lt;/b&gt;&amp;nbsp;as&amp;nbsp;&lt;b style=&quot;text-indent: -24px;&quot;&gt;“PAP or CHAP”&lt;/b&gt;&lt;/li&gt;
&lt;li&gt;Now, Press&lt;b style=&quot;text-indent: -24px;&quot;&gt;&amp;nbsp;Menu-&amp;gt;Save&lt;/b&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjG7BoYq1jxy1NI1RKZifSNeYL0dP52ZXWg52v9yvQ-f9gfTeFCiY-73CJZ3Xw20e5c-wUeX-XrRPEPtz-sw8ifscG59e4C5UTh_MlOEW4fdW2CTKPHydggy05gDYMjM1zYOBrxP-CH-rlT/s1600/1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em; text-align: center;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjG7BoYq1jxy1NI1RKZifSNeYL0dP52ZXWg52v9yvQ-f9gfTeFCiY-73CJZ3Xw20e5c-wUeX-XrRPEPtz-sw8ifscG59e4C5UTh_MlOEW4fdW2CTKPHydggy05gDYMjM1zYOBrxP-CH-rlT/s320/1.png&quot; width=&quot;213&quot; /&gt;&lt;/a&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhTYYb2PwBpUbIylNl6yQP9x6KQJWxtQPJLxHFA6ogvmw8pcpDJDim63ZVTPgv8M-_VyjTCnMhzQyFbhzJZy8ujIzwaXV8XwvVlo_XSk01heUzgmsflEery4zScLOFnDWgVQ_lGph_ceXaE/s1600/2.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em; text-align: center;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhTYYb2PwBpUbIylNl6yQP9x6KQJWxtQPJLxHFA6ogvmw8pcpDJDim63ZVTPgv8M-_VyjTCnMhzQyFbhzJZy8ujIzwaXV8XwvVlo_XSk01heUzgmsflEery4zScLOFnDWgVQ_lGph_ceXaE/s320/2.png&quot; width=&quot;214&quot; /&gt;&lt;/a&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;Well done!! Now your emulator is ready to receive the web packets &lt;span style=&quot;font-family: Wingdings;&quot;&gt;J&lt;/span&gt; Launch the Browser and test it.&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gargengineer.blogspot.com/feeds/3042323254216316376/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gargengineer.blogspot.com/2011/12/proxy-settings-in-android-emulator-for.html#comment-form' title='5 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1315287361724052685/posts/default/3042323254216316376'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1315287361724052685/posts/default/3042323254216316376'/><link rel='alternate' type='text/html' href='http://gargengineer.blogspot.com/2011/12/proxy-settings-in-android-emulator-for.html' title='Proxy Settings in Android Emulator (For Corporate Network) to access internet'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/03311327316747211268</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjG7BoYq1jxy1NI1RKZifSNeYL0dP52ZXWg52v9yvQ-f9gfTeFCiY-73CJZ3Xw20e5c-wUeX-XrRPEPtz-sw8ifscG59e4C5UTh_MlOEW4fdW2CTKPHydggy05gDYMjM1zYOBrxP-CH-rlT/s72-c/1.png" height="72" width="72"/><thr:total>5</thr:total></entry></feed>