<?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: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-5197277884634195738</id><updated>2012-02-28T03:10:30.819-08:00</updated><category term='show'/><category term='install'/><category term='calendar'/><category term='sdk 4.0'/><category term='dialog'/><category term='installation'/><category term='customized tab'/><category term='books'/><category term='SpannableString'/><category term='alertdialog with listview and radio button'/><category term='onListItemClick'/><category term='passing array in bundle'/><category term='info window'/><category term='corner'/><category term='android 2.1'/><category term='avd'/><category term='systemclock'/><category term='insallation'/><category term='service'/><category term='border'/><category term='insert'/><category term='custom listview'/><category term='phone'/><category term='BroadcastReceiver'/><category term='android tab'/><category term='google map'/><category term='popup'/><category term='shortcuts'/><category term='android 2.2'/><category term='license'/><category term='listactivity'/><category term='eclipse'/><category term='call from android'/><category term='onScroll'/><category term='zoom controls'/><category term='gradient'/><category term='marker'/><category term='radius'/><category term='tab'/><category term='show keyboard'/><category term='advantages'/><category term='secret code'/><category term='custom dialog'/><category term='handler'/><category term='linearlayout'/><category term='simple_list_item_single_choice'/><category term='interview'/><category term='animated'/><category term='android'/><category term='custom'/><category term='view'/><category term='TextView'/><category term='without xml'/><category term='add event'/><category term='onkeycode'/><category term='design'/><category term='hide keyboard'/><category term='picture sqlite'/><category term='scroll'/><category term='design without layout'/><category term='runnable'/><category term='underline'/><category term='Button'/><category term='listview'/><category term='transparent'/><category term='map'/><category term='event'/><category term='asynctask'/><category term='adk'/><category term='tabview'/><category term='ebook'/><category term='alertdialog with listview'/><category term='sleep'/><category term='phone call'/><category term='zoom'/><category term='item click'/><category term='download'/><category term='delete'/><category term='sdk'/><category term='Mac OS'/><category term='animation'/><category term='item color'/><category term='alertdialog'/><category term='hide'/><category term='hotkey'/><category term='simple_list_item_checked'/><category term='layout'/><category term='Cream Sandwich'/><category term='database'/><category term='apk'/><category term='key'/><category term='onScrollStateChanged'/><category term='radio'/><category term='platform'/><category term='run apk'/><category term='ebooks'/><category term='android installation'/><category term='calendar event'/><category term='sqlite'/><category term='configure'/><category term='adb'/><category term='item selection'/><category term='e-books'/><category term='version'/><category term='gradient-effect'/><category term='book'/><category term='blog'/><category term='thread'/><category term='create'/><category term='question'/><category term='viewflipper'/><category term='image sqlite'/><category term='bundle'/><category term='answer'/><category term='toast'/><category term='keystore'/><category term='keycode'/><title type='text'>Android Codes</title><subtitle type='html'>Codes for Android developers with examples</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://android-codes-examples.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5197277884634195738/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://android-codes-examples.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Keerthy</name><uri>http://www.blogger.com/profile/10048420864647222363</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>36</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-5197277884634195738.post-7517862684624831510</id><published>2011-11-21T22:27:00.000-08:00</published><updated>2011-11-21T22:40:02.839-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='service'/><category scheme='http://www.blogger.com/atom/ns#' term='BroadcastReceiver'/><category scheme='http://www.blogger.com/atom/ns#' term='android'/><title type='text'>Running a service in background on Android</title><content type='html'>&lt;div style="text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;Here the code is generate to run some process in background through service. For example we are running the time in background and displaying it in the UI. The service coding will be in a seperate class MyService.java&lt;div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="innerblock"&gt;&lt;strong&gt;MyService.java&lt;/strong&gt;&lt;br /&gt;&lt;pre class="innertextblock"&gt;package com.services.demo;&lt;br /&gt;&lt;br /&gt;import java.util.Date;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;import android.app.Service;&lt;br /&gt;import android.content.Intent;&lt;br /&gt;import android.os.Handler;&lt;br /&gt;import android.os.IBinder;&lt;br /&gt;&lt;br /&gt;public class MyService extends Service {&lt;br /&gt;public static final String BROADCAST_ACTION = "com.services.demo.ServiceDemoActivity";&lt;br /&gt;private final Handler handler = new Handler();&lt;br /&gt;Intent intent;&lt;pre class="innertextblock"&gt;&lt;/pre&gt;&lt;div style="text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;int counter = 0;&lt;br /&gt;&lt;br /&gt;@Override&lt;br /&gt;public void onCreate() {&lt;br /&gt;// Called on service created&lt;br /&gt;intent = new Intent(BROADCAST_ACTION);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;@Override&lt;pre class="innertextblock"&gt;&lt;pre class="innertextblock"&gt;&lt;/pre&gt;&lt;div style="text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;/pre&gt; public void onDestroy() {&lt;br /&gt;// Called on service stopped&lt;br /&gt;}&lt;br /&gt;&lt;pre class="innertextblock"&gt;&lt;pre class="innertextblock"&gt;&lt;/pre&gt;&lt;div style="text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;/pre&gt; @Override&lt;br /&gt;public void onStart(Intent intent, int startid) {&lt;br /&gt;int i = 0;&lt;br /&gt;while (i &amp;lt; 101) {    if (i &amp;gt; 100) {&lt;br /&gt;  this.onDestroy();&lt;br /&gt; } else {&lt;br /&gt;  counter = i;&lt;br /&gt;  i++;&lt;br /&gt;  handler.removeCallbacks(sendUpdatesToUI);&lt;br /&gt;        handler.postDelayed(sendUpdatesToUI, 1 * 1000); // 1 sec&lt;br /&gt; }&lt;pre class="innertextblock"&gt;&lt;pre class="innertextblock"&gt;&lt;/pre&gt;&lt;div style="text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;/pre&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;private Runnable sendUpdatesToUI = new Runnable() {&lt;br /&gt;    public void run() {&lt;br /&gt;        DisplayLoggingInfo();    &lt;br /&gt;        handler.postDelayed(this, 1 * 1000); // 1 sec&lt;br /&gt;    }&lt;pre class="innertextblock"&gt;&lt;pre class="innertextblock"&gt;&lt;/pre&gt;&lt;div style="text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;/pre&gt;     };&lt;br /&gt;&lt;br /&gt;   private void DisplayLoggingInfo() {&lt;br /&gt;&lt;br /&gt;    intent.putExtra("time", new Date().toLocaleString());&lt;br /&gt;    intent.putExtra("counter", String.valueOf(counter));&lt;br /&gt;    sendBroadcast(intent);&lt;br /&gt;   }&lt;pre class="innertextblock"&gt;&lt;pre class="innertextblock"&gt;&lt;/pre&gt;&lt;div style="text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;/pre&gt; public static boolean isRunning() {&lt;br /&gt;return true;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;@Override&lt;pre class="innertextblock"&gt;&lt;pre class="innertextblock"&gt;&lt;/pre&gt;&lt;div style="text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;/pre&gt; public IBinder onBind(Intent intent) {&lt;br /&gt;return null;&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;   &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;So for starting the service and stopping the service we will be using&lt;div&gt;&lt;br /&gt;&lt;div class="innerblock"&gt;&lt;br /&gt;&lt;strong&gt;Java&lt;/strong&gt;&lt;br /&gt;&lt;pre class="innertextblock"&gt;startService(new Intent(ServiceDemoActivity.this, MyService.class));&lt;br /&gt;stopService(new Intent(ServiceDemoActivity.this, MyService.class));&lt;br /&gt;&lt;/pre&gt;   &lt;/div&gt;&lt;br /&gt;For updating the UI we need to use the broadcast service. In that BroadcastReceiver we will update the UI&lt;br /&gt;&lt;div class="innerblock"&gt;&lt;br /&gt;&lt;strong&gt;Java&lt;/strong&gt;&lt;br /&gt;&lt;pre class="innertextblock"&gt;private BroadcastReceiver broadcastReceiver = new BroadcastReceiver() {&lt;br /&gt;@Override&lt;br /&gt;public void onReceive(Context context, Intent intent) {&lt;br /&gt;updateDate(intent);&lt;br /&gt;}&lt;pre class="innertextblock"&gt;&lt;pre class="innertextblock"&gt;&lt;/pre&gt;&lt;div style="text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;/pre&gt;};&lt;br /&gt;&lt;br /&gt;private void updateDate(Intent intent) {&lt;br /&gt;String time = intent.getStringExtra("time");&lt;br /&gt;TextView date = (TextView) findViewById(R.id.date);&lt;br /&gt;date.setText(time);&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;   &lt;/div&gt;&lt;pre class="innertextblock"&gt;&lt;div style="text-align: left; "&gt;&lt;span class="Apple-style-span" style="font-family: Georgia, serif; font-size: 16px; white-space: normal; "&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: left; "&gt;&lt;span class="Apple-style-span" style="font-family: Georgia, serif; font-size: 16px; white-space: normal; "&gt;In the MyService.java the method DisplayLoggingInfo() will send the broadcast to the activity to update the UI, the UI xml code is&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: left; "&gt;&lt;span class="Apple-style-span" style="font-family: Georgia, serif; font-size: 16px; white-space: normal; "&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;/pre&gt;&lt;div class="innerblock"&gt;&lt;strong&gt;main.xml&lt;/strong&gt;&lt;br /&gt;&lt;pre class="innertextblock"&gt;&amp;lt;?xml version="1.0" encoding="utf-8"?&amp;gt;&lt;br /&gt;&amp;lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"&lt;br /&gt; android:orientation="vertical"&lt;br /&gt; android:layout_width="fill_parent"&lt;br /&gt; android:layout_height="fill_parent"&lt;br /&gt; &amp;gt;&lt;br /&gt;&amp;lt;TextView&lt;br /&gt; android:layout_width="fill_parent"&lt;br /&gt; android:layout_height="wrap_content"&lt;br /&gt; android:text="@string/hello"&lt;br /&gt; android:id="@+id/notification"&lt;br /&gt; /&amp;gt;&lt;br /&gt;&lt;br /&gt; &amp;lt;TextView&lt;br /&gt; android:layout_width="fill_parent" android:id="@+id/date"&lt;br /&gt; android:layout_height="wrap_content" android:text="" android:gravity="center" android:textSize="20sp" android:padding="20dp"/&amp;gt;&lt;br /&gt; &amp;lt;Button android:id="@+id/stop" android:text="Stop Service" android:layout_width="wrap_content" android:layout_height="wrap_content" /&amp;gt;&lt;br /&gt;&amp;lt;/LinearLayout&amp;gt;&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;   &lt;/div&gt;&lt;br /&gt;If we are opening the application on the first time means, it will be like this&lt;br /&gt;&lt;a href="http://2.bp.blogspot.com/-KI0nLL3B3BY/TstBaYH798I/AAAAAAAAAJM/-gLClIZM-4o/s1600/service-started-android.JPG" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 320px; height: 162px;" src="http://2.bp.blogspot.com/-KI0nLL3B3BY/TstBaYH798I/AAAAAAAAAJM/-gLClIZM-4o/s320/service-started-android.JPG" border="0" alt="" id="BLOGGER_PHOTO_ID_5677703676638787522" /&gt;&lt;/a&gt;&lt;br /&gt;and if we go out and come back to the page means, it will be showing a message like this&lt;br /&gt;&lt;br /&gt;&lt;img src="http://1.bp.blogspot.com/-BJrXLhkUTNQ/TstBaTzadsI/AAAAAAAAAJE/4kplQGAG6rM/s320/service-continuing-android.JPG" border="0" alt="" id="BLOGGER_PHOTO_ID_5677703675478963906" style="display: block; margin-top: 0px; margin-right: auto; margin-bottom: 10px; margin-left: auto; text-align: center; cursor: pointer; width: 320px; height: 137px; " /&gt;and if we stop the service means, it will be showing a message like this&lt;div&gt;&lt;br /&gt;&lt;a href="http://3.bp.blogspot.com/-52zP5FyZAks/TstBanwjboI/AAAAAAAAAJU/ltoKDiSI7Ik/s1600/service-stopped-android.JPG" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 320px; height: 150px;" src="http://3.bp.blogspot.com/-52zP5FyZAks/TstBanwjboI/AAAAAAAAAJU/ltoKDiSI7Ik/s320/service-stopped-android.JPG" border="0" alt="" id="BLOGGER_PHOTO_ID_5677703680835677826" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;pre class="innertextblock" style="font-size: 13px; "&gt;&lt;pre class="innertextblock" style="text-align: center;"&gt;&lt;/pre&gt;&lt;/pre&gt;You can download the full source code&lt;div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="downloadblock"&gt;&lt;br /&gt;Download &lt;a href="http://www.ziddu.com/download/17470231/ServiceDemo.zip.html"&gt;source&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;Have a good day.&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5197277884634195738-7517862684624831510?l=android-codes-examples.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://android-codes-examples.blogspot.com/feeds/7517862684624831510/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://android-codes-examples.blogspot.com/2011/11/running-service-in-background-on.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5197277884634195738/posts/default/7517862684624831510'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5197277884634195738/posts/default/7517862684624831510'/><link rel='alternate' type='text/html' href='http://android-codes-examples.blogspot.com/2011/11/running-service-in-background-on.html' title='Running a service in background on Android'/><author><name>Keerthy</name><uri>http://www.blogger.com/profile/10048420864647222363</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/-KI0nLL3B3BY/TstBaYH798I/AAAAAAAAAJM/-gLClIZM-4o/s72-c/service-started-android.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5197277884634195738.post-6940714324776444097</id><published>2011-11-08T02:05:00.000-08:00</published><updated>2011-11-08T02:07:19.973-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='hotkey'/><category scheme='http://www.blogger.com/atom/ns#' term='key'/><category scheme='http://www.blogger.com/atom/ns#' term='android'/><category scheme='http://www.blogger.com/atom/ns#' term='shortcuts'/><title type='text'>Android Keyboard Shortcuts - hotkeys</title><content type='html'>&lt;!--[if gte mso 9]&gt;&lt;xml&gt;  &lt;w:worddocument&gt;   &lt;w:view&gt;Normal&lt;/w:View&gt;   &lt;w:zoom&gt;0&lt;/w:Zoom&gt;   &lt;w:trackmoves/&gt;   &lt;w:trackformatting/&gt;   &lt;w:punctuationkerning/&gt;   &lt;w:validateagainstschemas/&gt;   &lt;w:saveifxmlinvalid&gt;false&lt;/w:SaveIfXMLInvalid&gt;   &lt;w:ignoremixedcontent&gt;false&lt;/w:IgnoreMixedContent&gt;   &lt;w:alwaysshowplaceholdertext&gt;false&lt;/w:AlwaysShowPlaceholderText&gt;   &lt;w:donotpromoteqf/&gt;   &lt;w:lidthemeother&gt;EN-US&lt;/w:LidThemeOther&gt;   &lt;w:lidthemeasian&gt;X-NONE&lt;/w:LidThemeAsian&gt;   &lt;w:lidthemecomplexscript&gt;TA&lt;/w:LidThemeComplexScript&gt;   &lt;w:compatibility&gt;    &lt;w:breakwrappedtables/&gt;    &lt;w:snaptogridincell/&gt;    &lt;w:wraptextwithpunct/&gt;    &lt;w:useasianbreakrules/&gt;    &lt;w:dontgrowautofit/&gt;    &lt;w:splitpgbreakandparamark/&gt;    &lt;w:dontvertaligncellwithsp/&gt;    &lt;w:dontbreakconstrainedforcedtables/&gt;    &lt;w:dontvertalignintxbx/&gt;    &lt;w:word11kerningpairs/&gt;    &lt;w:cachedcolbalance/&gt;   &lt;/w:Compatibility&gt;   &lt;w:browserlevel&gt;MicrosoftInternetExplorer4&lt;/w:BrowserLevel&gt;   &lt;m:mathpr&gt;    &lt;m:mathfont val="Cambria Math"&gt;    &lt;m:brkbin val="before"&gt;    &lt;m:brkbinsub val="&amp;#45;-"&gt;    &lt;m:smallfrac val="off"&gt;    &lt;m:dispdef/&gt;    &lt;m:lmargin val="0"&gt;    &lt;m:rmargin val="0"&gt;    &lt;m:defjc val="centerGroup"&gt;    &lt;m:wrapindent val="1440"&gt;    &lt;m:intlim val="subSup"&gt;    &lt;m:narylim val="undOvr"&gt;   &lt;/m:mathPr&gt;&lt;/w:WordDocument&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;  &lt;w:latentstyles deflockedstate="false" defunhidewhenused="true" defsemihidden="true" defqformat="false" defpriority="99" latentstylecount="267"&gt;   &lt;w:lsdexception locked="false" priority="0" semihidden="false" unhidewhenused="false" qformat="true" name="Normal"&gt;   &lt;w:lsdexception locked="false" priority="9" semihidden="false" unhidewhenused="false" qformat="true" name="heading 1"&gt;   &lt;w:lsdexception locked="false" priority="9" qformat="true" name="heading 2"&gt;   &lt;w:lsdexception locked="false" priority="9" qformat="true" name="heading 3"&gt;   &lt;w:lsdexception locked="false" priority="9" qformat="true" name="heading 4"&gt;   &lt;w:lsdexception locked="false" priority="9" qformat="true" name="heading 5"&gt;   &lt;w:lsdexception locked="false" priority="9" qformat="true" name="heading 6"&gt;   &lt;w:lsdexception locked="false" priority="9" qformat="true" name="heading 7"&gt;   &lt;w:lsdexception locked="false" priority="9" qformat="true" name="heading 8"&gt;   &lt;w:lsdexception locked="false" priority="9" qformat="true" name="heading 9"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 1"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 2"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 3"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 4"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 5"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 6"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 7"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 8"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 9"&gt;   &lt;w:lsdexception locked="false" priority="35" qformat="true" name="caption"&gt;   &lt;w:lsdexception locked="false" priority="10" semihidden="false" unhidewhenused="false" qformat="true" name="Title"&gt;   &lt;w:lsdexception locked="false" priority="1" name="Default Paragraph Font"&gt;   &lt;w:lsdexception locked="false" priority="11" semihidden="false" unhidewhenused="false" qformat="true" name="Subtitle"&gt;   &lt;w:lsdexception locked="false" priority="22" semihidden="false" unhidewhenused="false" qformat="true" name="Strong"&gt;   &lt;w:lsdexception locked="false" priority="20" semihidden="false" unhidewhenused="false" qformat="true" name="Emphasis"&gt;   &lt;w:lsdexception locked="false" priority="59" semihidden="false" unhidewhenused="false" name="Table Grid"&gt;   &lt;w:lsdexception locked="false" unhidewhenused="false" name="Placeholder Text"&gt;   &lt;w:lsdexception locked="false" priority="1" semihidden="false" unhidewhenused="false" qformat="true" name="No Spacing"&gt;   &lt;w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading"&gt;   &lt;w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List"&gt;   &lt;w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid"&gt;   &lt;w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1"&gt;   &lt;w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2"&gt;   &lt;w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1"&gt;   &lt;w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2"&gt;   &lt;w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1"&gt;   &lt;w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2"&gt;   &lt;w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3"&gt;   &lt;w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List"&gt;   &lt;w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading"&gt;   &lt;w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List"&gt;   &lt;w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid"&gt;   &lt;w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 1"&gt;   &lt;w:lsdexception locked="false" unhidewhenused="false" name="Revision"&gt;   &lt;w:lsdexception locked="false" priority="34" semihidden="false" unhidewhenused="false" qformat="true" name="List Paragraph"&gt;   &lt;w:lsdexception locked="false" priority="29" semihidden="false" unhidewhenused="false" qformat="true" name="Quote"&gt;   &lt;w:lsdexception locked="false" priority="30" semihidden="false" unhidewhenused="false" qformat="true" name="Intense Quote"&gt;   &lt;w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="19" semihidden="false" unhidewhenused="false" qformat="true" name="Subtle Emphasis"&gt;   &lt;w:lsdexception locked="false" priority="21" semihidden="false" unhidewhenused="false" qformat="true" name="Intense Emphasis"&gt;   &lt;w:lsdexception locked="false" priority="31" semihidden="false" unhidewhenused="false" qformat="true" name="Subtle Reference"&gt;   &lt;w:lsdexception locked="false" priority="32" semihidden="false" unhidewhenused="false" qformat="true" name="Intense Reference"&gt;   &lt;w:lsdexception locked="false" priority="33" semihidden="false" unhidewhenused="false" qformat="true" name="Book Title"&gt;   &lt;w:lsdexception locked="false" priority="37" name="Bibliography"&gt;   &lt;w:lsdexception locked="false" priority="39" qformat="true" name="TOC Heading"&gt;  &lt;/w:LatentStyles&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 10]&gt; &lt;style&gt;  /* Style Definitions */  table.MsoNormalTable  {mso-style-name:"Table Normal";  mso-tstyle-rowband-size:0;  mso-tstyle-colband-size:0;  mso-style-noshow:yes;  mso-style-priority:99;  mso-style-qformat:yes;  mso-style-parent:"";  mso-padding-alt:0in 5.4pt 0in 5.4pt;  mso-para-margin-top:0in;  mso-para-margin-right:0in;  mso-para-margin-bottom:10.0pt;  mso-para-margin-left:0in;  line-height:115%;  mso-pagination:widow-orphan;  font-size:11.0pt;  font-family:"Calibri","sans-serif";  mso-ascii-font-family:Calibri;  mso-ascii-theme-font:minor-latin;  mso-hansi-font-family:Calibri;  mso-hansi-theme-font:minor-latin;  mso-bidi-language:AR-SA;} &lt;/style&gt; &lt;![endif]--&gt;  &lt;p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; line-height:normal"&gt;&lt;span style="font-size:12.0pt;font-family:&amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; mso-fareast-font-family:&amp;quot;Times New Roman&amp;quot;;mso-bidi-language:TA"&gt;We are going to see a set of keyboard shortcuts of Android OS to help you. Some hotkeys may vary from each device. Most of the them are listed here, &lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; line-height:normal"&gt;&lt;b&gt;&lt;span style="font-size:12.0pt;font-family:&amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; mso-fareast-font-family:&amp;quot;Times New Roman&amp;quot;;mso-bidi-language:TA"&gt;Android Keyboard Shortcuts: &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size:12.0pt;font-family:&amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; mso-fareast-font-family:&amp;quot;Times New Roman&amp;quot;;mso-bidi-language:TA"&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; line-height:normal"&gt;&lt;span style="font-size:12.0pt;font-family:&amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; mso-fareast-font-family:&amp;quot;Times New Roman&amp;quot;;mso-bidi-language:TA"&gt;• &lt;b&gt;Spacebar: &lt;/b&gt;Page down in any Web page/document view&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; line-height:normal"&gt;&lt;span style="font-size:12.0pt;font-family:&amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; mso-fareast-font-family:&amp;quot;Times New Roman&amp;quot;;mso-bidi-language:TA"&gt;• &lt;b&gt;Shift + Spacebar: &lt;/b&gt;Page up in any Web page/document view&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; line-height:normal;mso-outline-level:2"&gt;&lt;b&gt;&lt;span style="font-size:18.0pt; font-family:&amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;mso-fareast-font-family:&amp;quot;Times New Roman&amp;quot;; mso-bidi-language:TA"&gt;Android Keyboard Shortcuts: Typing&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; line-height:normal"&gt;&lt;span style="font-size:12.0pt;font-family:&amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; mso-fareast-font-family:&amp;quot;Times New Roman&amp;quot;;mso-bidi-language:TA"&gt;• &lt;b&gt;Alt + Spacebar: &lt;/b&gt;Insert a special character&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; line-height:normal"&gt;&lt;span style="font-size:12.0pt;font-family:&amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; mso-fareast-font-family:&amp;quot;Times New Roman&amp;quot;;mso-bidi-language:TA"&gt;• &lt;b&gt;Shift + Del: &lt;/b&gt;Delete the character to the right of the cursor&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; line-height:normal"&gt;&lt;span style="font-size:12.0pt;font-family:&amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; mso-fareast-font-family:&amp;quot;Times New Roman&amp;quot;;mso-bidi-language:TA"&gt;• &lt;b&gt;Alt + Del: &lt;/b&gt;Delete an entire line&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; line-height:normal"&gt;&lt;span style="font-size:12.0pt;font-family:&amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; mso-fareast-font-family:&amp;quot;Times New Roman&amp;quot;;mso-bidi-language:TA"&gt;• &lt;b&gt;Shift + Shift (press it twice): &lt;/b&gt;Activate caps-lock; press shift once more to exit&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; line-height:normal"&gt;&lt;span style="font-size:12.0pt;font-family:&amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; mso-fareast-font-family:&amp;quot;Times New Roman&amp;quot;;mso-bidi-language:TA"&gt;• &lt;b&gt;Alt + Trackball-Left: &lt;/b&gt;Move cursor to beginning of line&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; line-height:normal"&gt;&lt;span style="font-size:12.0pt;font-family:&amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; mso-fareast-font-family:&amp;quot;Times New Roman&amp;quot;;mso-bidi-language:TA"&gt;• &lt;b&gt;Alt + Trackball-Right: &lt;/b&gt;Move cursor to end of line&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; line-height:normal"&gt;&lt;span style="font-size:12.0pt;font-family:&amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; mso-fareast-font-family:&amp;quot;Times New Roman&amp;quot;;mso-bidi-language:TA"&gt;• &lt;b&gt;Alt + Trackball-Up: &lt;/b&gt;Move cursor to top of page&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; line-height:normal"&gt;&lt;span style="font-size:12.0pt;font-family:&amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; mso-fareast-font-family:&amp;quot;Times New Roman&amp;quot;;mso-bidi-language:TA"&gt;• &lt;b&gt;Alt + Trackball-Down: &lt;/b&gt;Move cursor to bottom of page&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; line-height:normal"&gt;&lt;span style="font-size:12.0pt;font-family:&amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; mso-fareast-font-family:&amp;quot;Times New Roman&amp;quot;;mso-bidi-language:TA"&gt;• &lt;b&gt;Shift + Trackball-Left/Right: &lt;/b&gt;Highlight text for cutting or copying&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; line-height:normal"&gt;&lt;span style="font-size:12.0pt;font-family:&amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; mso-fareast-font-family:&amp;quot;Times New Roman&amp;quot;;mso-bidi-language:TA"&gt;• &lt;b&gt;Menu + X: &lt;/b&gt;Cut text (will cut all text on-screen unless specific characters are highlighted)&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; line-height:normal"&gt;&lt;span style="font-size:12.0pt;font-family:&amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; mso-fareast-font-family:&amp;quot;Times New Roman&amp;quot;;mso-bidi-language:TA"&gt;• &lt;b&gt;Menu + C: &lt;/b&gt;Copy text to clipboard (will copy all text on-screen unless specific characters are highlighted)&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; line-height:normal"&gt;&lt;span style="font-size:12.0pt;font-family:&amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; mso-fareast-font-family:&amp;quot;Times New Roman&amp;quot;;mso-bidi-language:TA"&gt;• &lt;b&gt;Menu + V: &lt;/b&gt;Paste text from clipboard&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; line-height:normal"&gt;&lt;span style="font-size:12.0pt;font-family:&amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; mso-fareast-font-family:&amp;quot;Times New Roman&amp;quot;;mso-bidi-language:TA"&gt;• &lt;b&gt;Menu + A: &lt;/b&gt;Select all text in the current field&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; line-height:normal;mso-outline-level:2"&gt;&lt;b&gt;&lt;span style="font-size:18.0pt; font-family:&amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;mso-fareast-font-family:&amp;quot;Times New Roman&amp;quot;; mso-bidi-language:TA"&gt;Android Keyboard Shortcuts: Browsing&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; line-height:normal"&gt;&lt;span style="font-size:12.0pt;font-family:&amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; mso-fareast-font-family:&amp;quot;Times New Roman&amp;quot;;mso-bidi-language:TA"&gt;• &lt;b&gt;Menu + I: &lt;/b&gt;Zoom in&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; line-height:normal"&gt;&lt;span style="font-size:12.0pt;font-family:&amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; mso-fareast-font-family:&amp;quot;Times New Roman&amp;quot;;mso-bidi-language:TA"&gt;• &lt;b&gt;Menu + O: &lt;/b&gt;Zoom out&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; line-height:normal"&gt;&lt;span style="font-size:12.0pt;font-family:&amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; mso-fareast-font-family:&amp;quot;Times New Roman&amp;quot;;mso-bidi-language:TA"&gt;• &lt;b&gt;Menu + J: &lt;/b&gt;Go back a page&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; line-height:normal"&gt;&lt;span style="font-size:12.0pt;font-family:&amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; mso-fareast-font-family:&amp;quot;Times New Roman&amp;quot;;mso-bidi-language:TA"&gt;• &lt;b&gt;Menu + K: &lt;/b&gt;Go forward a page&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; line-height:normal"&gt;&lt;span style="font-size:12.0pt;font-family:&amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; mso-fareast-font-family:&amp;quot;Times New Roman&amp;quot;;mso-bidi-language:TA"&gt;• &lt;b&gt;Menu + R: &lt;/b&gt;Refresh current page&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; line-height:normal"&gt;&lt;span style="font-size:12.0pt;font-family:&amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; mso-fareast-font-family:&amp;quot;Times New Roman&amp;quot;;mso-bidi-language:TA"&gt;• &lt;b&gt;Menu + F: &lt;/b&gt;Find on page&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; line-height:normal"&gt;&lt;span style="font-size:12.0pt;font-family:&amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; mso-fareast-font-family:&amp;quot;Times New Roman&amp;quot;;mso-bidi-language:TA"&gt;• &lt;b&gt;Menu + B: &lt;/b&gt;Open bookmarks&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; line-height:normal"&gt;&lt;span style="font-size:12.0pt;font-family:&amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; mso-fareast-font-family:&amp;quot;Times New Roman&amp;quot;;mso-bidi-language:TA"&gt;• &lt;b&gt;Menu + S: &lt;/b&gt;Open social network sharing menu&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; line-height:normal"&gt;&lt;span style="font-size:12.0pt;font-family:&amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; mso-fareast-font-family:&amp;quot;Times New Roman&amp;quot;;mso-bidi-language:TA"&gt;• &lt;b&gt;Menu + H: &lt;/b&gt;View browsing history&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; line-height:normal"&gt;&lt;span style="font-size:12.0pt;font-family:&amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; mso-fareast-font-family:&amp;quot;Times New Roman&amp;quot;;mso-bidi-language:TA"&gt;• &lt;b&gt;Menu + S: &lt;/b&gt;Open browser settings&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; line-height:normal;mso-outline-level:2"&gt;&lt;b&gt;&lt;span style="font-size:18.0pt; font-family:&amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;mso-fareast-font-family:&amp;quot;Times New Roman&amp;quot;; mso-bidi-language:TA"&gt;Android Keyboard Shortcuts: Gmail&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; line-height:normal"&gt;&lt;span style="font-size:12.0pt;font-family:&amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; mso-fareast-font-family:&amp;quot;Times New Roman&amp;quot;;mso-bidi-language:TA"&gt;• &lt;b&gt;F: &lt;/b&gt;Forward current message (works only while inside the message)&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; line-height:normal"&gt;&lt;span style="font-size:12.0pt;font-family:&amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; mso-fareast-font-family:&amp;quot;Times New Roman&amp;quot;;mso-bidi-language:TA"&gt;• &lt;b&gt;R: &lt;/b&gt;Reply to current message (works only while inside the message)&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; line-height:normal"&gt;&lt;span style="font-size:12.0pt;font-family:&amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; mso-fareast-font-family:&amp;quot;Times New Roman&amp;quot;;mso-bidi-language:TA"&gt;• &lt;b&gt;A: &lt;/b&gt;Reply-all to current message (works only while inside the message)&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; line-height:normal"&gt;&lt;span style="font-size:12.0pt;font-family:&amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; mso-fareast-font-family:&amp;quot;Times New Roman&amp;quot;;mso-bidi-language:TA"&gt;• &lt;b&gt;Y: &lt;/b&gt;Archive message (works from within message or while on main inbox list)&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; line-height:normal"&gt;&lt;span style="font-size:12.0pt;font-family:&amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; mso-fareast-font-family:&amp;quot;Times New Roman&amp;quot;;mso-bidi-language:TA"&gt;• &lt;b&gt;Menu + U: &lt;/b&gt;Refresh inbox&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; line-height:normal"&gt;&lt;span style="font-size:12.0pt;font-family:&amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; mso-fareast-font-family:&amp;quot;Times New Roman&amp;quot;;mso-bidi-language:TA"&gt;• &lt;b&gt;Menu + C: &lt;/b&gt;Compose new e-mail&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; line-height:normal"&gt;&lt;span style="font-size:12.0pt;font-family:&amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; mso-fareast-font-family:&amp;quot;Times New Roman&amp;quot;;mso-bidi-language:TA"&gt;• &lt;b&gt;Enter: &lt;/b&gt;Open an e-mail (from the main inbox list)&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; line-height:normal"&gt;&lt;span style="font-size:12.0pt;font-family:&amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; mso-fareast-font-family:&amp;quot;Times New Roman&amp;quot;;mso-bidi-language:TA"&gt;• &lt;b&gt;Alt + Trackball-Up: &lt;/b&gt;Jump to top of inbox&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; line-height:normal"&gt;&lt;span style="font-size:12.0pt;font-family:&amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; mso-fareast-font-family:&amp;quot;Times New Roman&amp;quot;;mso-bidi-language:TA"&gt;• &lt;b&gt;Alt + Trackball-Down: &lt;/b&gt;Jump to bottom of inbox&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; line-height:normal"&gt;&lt;b&gt;&lt;span style="font-size:12.0pt;font-family:&amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; mso-fareast-font-family:&amp;quot;Times New Roman&amp;quot;;mso-bidi-language:TA"&gt;Android Keyboard Shortcuts: Apps&lt;/span&gt;&lt;/b&gt;&lt;span style="font-size:12.0pt;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;mso-fareast-font-family:&amp;quot;Times New Roman&amp;quot;;mso-bidi-language: TA"&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; line-height:normal"&gt;&lt;span style="font-size:12.0pt;font-family:&amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; mso-fareast-font-family:&amp;quot;Times New Roman&amp;quot;;mso-bidi-language:TA"&gt;• &lt;b&gt;Search + B: &lt;/b&gt;Open browser&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; line-height:normal"&gt;&lt;span style="font-size:12.0pt;font-family:&amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; mso-fareast-font-family:&amp;quot;Times New Roman&amp;quot;;mso-bidi-language:TA"&gt;• &lt;b&gt;Search + C: &lt;/b&gt;Open contacts&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; line-height:normal"&gt;&lt;span style="font-size:12.0pt;font-family:&amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; mso-fareast-font-family:&amp;quot;Times New Roman&amp;quot;;mso-bidi-language:TA"&gt;• &lt;b&gt;Search + E: &lt;/b&gt;Open e-mail&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; line-height:normal"&gt;&lt;span style="font-size:12.0pt;font-family:&amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; mso-fareast-font-family:&amp;quot;Times New Roman&amp;quot;;mso-bidi-language:TA"&gt;• &lt;b&gt;Search + G: &lt;/b&gt;Open Gmail&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; line-height:normal"&gt;&lt;span style="font-size:12.0pt;font-family:&amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; mso-fareast-font-family:&amp;quot;Times New Roman&amp;quot;;mso-bidi-language:TA"&gt;• &lt;b&gt;Search + I: &lt;/b&gt;Open calendar&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; line-height:normal"&gt;&lt;span style="font-size:12.0pt;font-family:&amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; mso-fareast-font-family:&amp;quot;Times New Roman&amp;quot;;mso-bidi-language:TA"&gt;• &lt;b&gt;Search + M: &lt;/b&gt;Open maps&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; line-height:normal"&gt;&lt;span style="font-size:12.0pt;font-family:&amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; mso-fareast-font-family:&amp;quot;Times New Roman&amp;quot;;mso-bidi-language:TA"&gt;• &lt;b&gt;Search + P: &lt;/b&gt;Open music&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; line-height:normal"&gt;&lt;span style="font-size:12.0pt;font-family:&amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; mso-fareast-font-family:&amp;quot;Times New Roman&amp;quot;;mso-bidi-language:TA"&gt;• &lt;b&gt;Search + S: &lt;/b&gt;Open text messaging&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; line-height:normal"&gt;&lt;span style="font-size:12.0pt;font-family:&amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; mso-fareast-font-family:&amp;quot;Times New Roman&amp;quot;;mso-bidi-language:TA"&gt;• &lt;b&gt;Search + Y: &lt;/b&gt;Open YouTube&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; line-height:normal"&gt;&lt;span style="font-size:12.0pt;font-family:&amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; mso-fareast-font-family:&amp;quot;Times New Roman&amp;quot;;mso-bidi-language:TA"&gt;You can also customize the keyboard shortcuts for applications: Just go into "Applications" off the main system settings menu, then select "Quick Launch." From there, you can change any of the above app-controlling hotkeys and add in your own.&lt;/span&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5197277884634195738-6940714324776444097?l=android-codes-examples.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://android-codes-examples.blogspot.com/feeds/6940714324776444097/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://android-codes-examples.blogspot.com/2011/11/android-keyboard-shortcuts-hotkeys.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5197277884634195738/posts/default/6940714324776444097'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5197277884634195738/posts/default/6940714324776444097'/><link rel='alternate' type='text/html' href='http://android-codes-examples.blogspot.com/2011/11/android-keyboard-shortcuts-hotkeys.html' title='Android Keyboard Shortcuts - hotkeys'/><author><name>Keerthy</name><uri>http://www.blogger.com/profile/10048420864647222363</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5197277884634195738.post-7338083937210980304</id><published>2011-11-07T23:23:00.000-08:00</published><updated>2011-11-07T23:24:30.160-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='hide keyboard'/><category scheme='http://www.blogger.com/atom/ns#' term='show keyboard'/><category scheme='http://www.blogger.com/atom/ns#' term='android'/><title type='text'>Show or Hide soft keyboard on opening a dialog or activity in android</title><content type='html'>For showing the soft keyboard on entering into the activity or to the dialog we can use this coding&lt;br /&gt;&lt;br /&gt;&lt;div class="innerblock"&gt;  &lt;br /&gt;&lt;strong&gt;Java&lt;/strong&gt;&lt;br /&gt;&lt;pre class="innertextblock"  &gt;&lt;br /&gt;&lt;br /&gt;InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE);&lt;br /&gt;imm.toggleSoftInput(InputMethodManager.SHOW_FORCED,0);&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;   &lt;/div&gt;&lt;br /&gt;&lt;br /&gt;and for hiding the keyboard&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="innerblock"&gt;  &lt;br /&gt;&lt;strong&gt;Java&lt;/strong&gt;&lt;br /&gt;&lt;pre class="innertextblock"  &gt;&lt;br /&gt;InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE);&lt;br /&gt;imm.hideSoftInputFromWindow(singleedittext.getWindowToken(),0); &lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;   &lt;/div&gt;&lt;br /&gt;&lt;br /&gt;Have a nice day!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5197277884634195738-7338083937210980304?l=android-codes-examples.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://android-codes-examples.blogspot.com/feeds/7338083937210980304/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://android-codes-examples.blogspot.com/2011/11/show-or-hide-soft-keyboard-on-opening.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5197277884634195738/posts/default/7338083937210980304'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5197277884634195738/posts/default/7338083937210980304'/><link rel='alternate' type='text/html' href='http://android-codes-examples.blogspot.com/2011/11/show-or-hide-soft-keyboard-on-opening.html' title='Show or Hide soft keyboard on opening a dialog or activity in android'/><author><name>Keerthy</name><uri>http://www.blogger.com/profile/10048420864647222363</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5197277884634195738.post-7794354315129920239</id><published>2011-11-01T23:14:00.001-07:00</published><updated>2011-11-01T23:21:14.762-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='show'/><category scheme='http://www.blogger.com/atom/ns#' term='viewflipper'/><category scheme='http://www.blogger.com/atom/ns#' term='layout'/><category scheme='http://www.blogger.com/atom/ns#' term='animation'/><category scheme='http://www.blogger.com/atom/ns#' term='hide'/><category scheme='http://www.blogger.com/atom/ns#' term='android'/><category scheme='http://www.blogger.com/atom/ns#' term='view'/><title type='text'>Animation for view and activities with and without viewflipper in Android</title><content type='html'>Now we are going to see some animations in android, three types of animation are given on this pack&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/-XbAdIgjE9yI/TrDgG6iUMcI/AAAAAAAAAIc/DF2oR5WXTC8/s1600/animation_viewflipper_layout_hide_show.JPG"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 318px; height: 320px;" src="http://2.bp.blogspot.com/-XbAdIgjE9yI/TrDgG6iUMcI/AAAAAAAAAIc/DF2oR5WXTC8/s320/animation_viewflipper_layout_hide_show.JPG" alt="" id="BLOGGER_PHOTO_ID_5670278340256477634" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Yes as shown in the image we are going to see all these types.&lt;br /&gt;First we can see about Animation using ViewFlipper&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/-0kRcsKG4glA/TrDgGBygDII/AAAAAAAAAIQ/D6_a-0qm2Z8/s1600/animation_viewflipper.JPG"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 320px; height: 138px;" src="http://3.bp.blogspot.com/-0kRcsKG4glA/TrDgGBygDII/AAAAAAAAAIQ/D6_a-0qm2Z8/s320/animation_viewflipper.JPG" alt="" id="BLOGGER_PHOTO_ID_5670278325023542402" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Here i had added three views in the viewflipper and i had called the animation changes on scrolling using touchevent, the xml section will be like this&lt;br /&gt;&lt;br /&gt;&lt;div class="innerblock"&gt;  &lt;br /&gt;&lt;strong&gt;viewer.xml&lt;/strong&gt;&lt;br /&gt;&lt;pre class="innertextblock"  &gt;&lt;br /&gt;&amp;lt;?xml version="1.0" encoding="utf-8"?&gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;ViewFlipper xmlns:android="http://schemas.android.com/apk/res/android"&lt;br /&gt;    android:layout_margin="5dip"&lt;br /&gt;    android:id="@+id/layoutswitcher"&lt;br /&gt;    android:layout_width="fill_parent"&lt;br /&gt;    android:layout_height="500dp"&gt;&lt;br /&gt;    &amp;lt;LinearLayout&lt;br /&gt;        android:layout_width="fill_parent"&lt;br /&gt;        android:layout_height="fill_parent"&gt;&lt;br /&gt;        &amp;lt;TextView&lt;br /&gt;            android:layout_height="wrap_content"&lt;br /&gt;            android:padding="20dip"&lt;br /&gt;            android:background="@android:color/background_light"&lt;br /&gt;            android:text="Currently you are in Page 1. Scroll right or left to see next page"&lt;br /&gt;            android:layout_width="fill_parent"&lt;br /&gt;            android:layout_weight="1"&lt;br /&gt;            android:textStyle="bold" &gt;&lt;br /&gt;        &amp;lt;/TextView&gt;&lt;br /&gt;    &amp;lt;/LinearLayout&gt;&lt;br /&gt;    &amp;lt;LinearLayout&lt;br /&gt;        android:layout_width="fill_parent"&lt;br /&gt;        android:layout_height="fill_parent"&gt;&lt;br /&gt;        &amp;lt;TextView&lt;br /&gt;            android:layout_height="wrap_content"&lt;br /&gt;            android:padding="20dip"&lt;br /&gt;            android:background="@android:color/darker_gray"&lt;br /&gt;            android:text="Currently you are in Page 2. Scroll right or left to see next page"&lt;br /&gt;            android:layout_width="fill_parent"&lt;br /&gt;            android:layout_weight="1"&lt;br /&gt;            android:textStyle="bold" &gt;&lt;br /&gt;        &amp;lt;/TextView&gt;&lt;br /&gt;    &amp;lt;/LinearLayout&gt;&lt;br /&gt;    &amp;lt;LinearLayout&lt;br /&gt;        android:layout_width="fill_parent"&lt;br /&gt;        android:layout_height="fill_parent"&gt;&lt;br /&gt;        &amp;lt;TextView&lt;br /&gt;            android:layout_height="wrap_content"&lt;br /&gt;            android:padding="20dip"&lt;br /&gt;            android:background="@android:color/white"&lt;br /&gt;            android:text="Currently you are in Page 3. Scroll right or left to see next page"&lt;br /&gt;            android:layout_width="fill_parent"&lt;br /&gt;            android:layout_weight="1"&lt;br /&gt;            android:textStyle="bold" &gt;&lt;br /&gt;        &amp;lt;/TextView&gt;&lt;br /&gt;    &amp;lt;/LinearLayout&gt;&lt;br /&gt;&amp;lt;/ViewFlipper&gt;&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;   &lt;/div&gt;&lt;br /&gt;&lt;br /&gt;and in the java we need to apply the animation on touchevent as &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="innerblock"&gt;  &lt;br /&gt;&lt;strong&gt;ViewerEffect.java&lt;/strong&gt;&lt;br /&gt;&lt;pre class="innertextblock"  &gt;&lt;br /&gt;package com.animmer;&lt;br /&gt;&lt;br /&gt;import android.app.Activity;&lt;br /&gt;import android.os.Bundle;&lt;br /&gt;import android.view.MotionEvent;&lt;br /&gt;import android.view.animation.AccelerateInterpolator;&lt;br /&gt;import android.view.animation.Animation;&lt;br /&gt;import android.view.animation.TranslateAnimation;&lt;br /&gt;import android.widget.ViewFlipper;&lt;br /&gt;&lt;br /&gt;public class ViewerEffect extends Activity {&lt;br /&gt; &lt;br /&gt;    private ViewFlipper vf;  &lt;br /&gt;    private float oldTouchValue;&lt;br /&gt;    &lt;br /&gt;    @Override&lt;br /&gt;    public void onCreate(Bundle savedInstanceState) {&lt;br /&gt;        super.onCreate(savedInstanceState);&lt;br /&gt;        setContentView(R.layout.viewer);&lt;br /&gt;        &lt;br /&gt;        vf = (ViewFlipper) findViewById(R.id.layoutswitcher);&lt;br /&gt;    }&lt;br /&gt;    &lt;br /&gt;  //for the previous movement&lt;br /&gt; public static Animation inFromRightAnimation() {&lt;br /&gt;&lt;br /&gt;     Animation inFromRight = new TranslateAnimation(&lt;br /&gt;     Animation.RELATIVE_TO_PARENT,  +1.0f, Animation.RELATIVE_TO_PARENT,  0.0f,&lt;br /&gt;     Animation.RELATIVE_TO_PARENT,  0.0f, Animation.RELATIVE_TO_PARENT,   0.0f&lt;br /&gt;     );&lt;br /&gt;     inFromRight.setDuration(400);&lt;br /&gt;     inFromRight.setInterpolator(new AccelerateInterpolator());&lt;br /&gt;     return inFromRight;&lt;br /&gt;     }&lt;br /&gt;    public static Animation outToLeftAnimation() {&lt;br /&gt;     Animation outtoLeft = new TranslateAnimation(&lt;br /&gt;      Animation.RELATIVE_TO_PARENT,  0.0f, Animation.RELATIVE_TO_PARENT,  -1.0f,&lt;br /&gt;      Animation.RELATIVE_TO_PARENT,  0.0f, Animation.RELATIVE_TO_PARENT,   0.0f&lt;br /&gt;     );&lt;br /&gt;     outtoLeft.setDuration(400);&lt;br /&gt;     outtoLeft.setInterpolator(new AccelerateInterpolator());&lt;br /&gt;     return outtoLeft;&lt;br /&gt;     }    &lt;br /&gt;    // for the next movement&lt;br /&gt;    public static Animation inFromLeftAnimation() {&lt;br /&gt;     Animation inFromLeft = new TranslateAnimation(&lt;br /&gt;     Animation.RELATIVE_TO_PARENT,  -1.0f, Animation.RELATIVE_TO_PARENT,  0.0f,&lt;br /&gt;     Animation.RELATIVE_TO_PARENT,  0.0f, Animation.RELATIVE_TO_PARENT,   0.0f&lt;br /&gt;     );&lt;br /&gt;     inFromLeft.setDuration(400);&lt;br /&gt;     inFromLeft.setInterpolator(new AccelerateInterpolator());&lt;br /&gt;     return inFromLeft;&lt;br /&gt;     }&lt;br /&gt;    public static Animation outToRightAnimation() {&lt;br /&gt;     Animation outtoRight = new TranslateAnimation(&lt;br /&gt;      Animation.RELATIVE_TO_PARENT,  0.0f, Animation.RELATIVE_TO_PARENT,  +1.0f,&lt;br /&gt;      Animation.RELATIVE_TO_PARENT,  0.0f, Animation.RELATIVE_TO_PARENT,   0.0f&lt;br /&gt;     );&lt;br /&gt;     outtoRight.setDuration(400);&lt;br /&gt;     outtoRight.setInterpolator(new AccelerateInterpolator());&lt;br /&gt;     return outtoRight;&lt;br /&gt;     }&lt;br /&gt;    &lt;br /&gt;    @Override&lt;br /&gt;    public boolean onTouchEvent(MotionEvent touchevent) {&lt;br /&gt;        switch (touchevent.getAction())&lt;br /&gt;        {&lt;br /&gt;            case MotionEvent.ACTION_DOWN:&lt;br /&gt;            {&lt;br /&gt;                oldTouchValue = touchevent.getX();&lt;br /&gt;                break;&lt;br /&gt;            }&lt;br /&gt;            case MotionEvent.ACTION_UP:&lt;br /&gt;            {&lt;br /&gt;                float currentX = touchevent.getX();&lt;br /&gt;                if (oldTouchValue &lt; currentX)&lt;br /&gt;                {&lt;br /&gt;                    vf.setInAnimation(inFromLeftAnimation());&lt;br /&gt;                    vf.setOutAnimation(outToRightAnimation());&lt;br /&gt;                    vf.showNext();&lt;br /&gt;                }&lt;br /&gt;                if (oldTouchValue &gt; currentX)&lt;br /&gt;                {&lt;br /&gt;                    vf.setInAnimation(inFromRightAnimation());&lt;br /&gt;                    vf.setOutAnimation(outToLeftAnimation());&lt;br /&gt;                    vf.showPrevious();&lt;br /&gt;                }&lt;br /&gt;            break;&lt;br /&gt;            }&lt;br /&gt;        }&lt;br /&gt;        return false;&lt;br /&gt;    }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;   &lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Likewise the next is animation between activities &lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/-IhcX3dRIwGg/TrDgEkXaXNI/AAAAAAAAAH4/FDE78GUK7wA/s1600/animation_between_activities.JPG"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 320px; height: 123px;" src="http://3.bp.blogspot.com/-IhcX3dRIwGg/TrDgEkXaXNI/AAAAAAAAAH4/FDE78GUK7wA/s320/animation_between_activities.JPG" alt="" id="BLOGGER_PHOTO_ID_5670278299945426130" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Yes we here we will be giving animation effect between activities&lt;br /&gt;For animation effects we need to put four files in the anim folder, they are slide_in_left, slide_out_left, slide_in_right and slide_out_right.&lt;br /&gt;&lt;br /&gt;&lt;div class="innerblock"&gt;  &lt;br /&gt;&lt;strong&gt;Java&lt;/strong&gt;&lt;br /&gt;&lt;pre class="innertextblock"  &gt;&lt;br /&gt;overridePendingTransition( R.anim.slide_in_left, R.anim.slide_out_left );&lt;br /&gt;&lt;/pre&gt;   &lt;/div&gt;&lt;br /&gt;&lt;br /&gt;The above code is used to move left to right&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="innerblock"&gt;  &lt;br /&gt;&lt;strong&gt;Java&lt;/strong&gt;&lt;br /&gt;&lt;pre class="innertextblock"  &gt;&lt;br /&gt;overridePendingTransition( R.anim.slide_in_right, R.anim.slide_out_right );&lt;br /&gt;&lt;/pre&gt;   &lt;/div&gt;&lt;br /&gt;&lt;br /&gt;The above code is used to move right to left&lt;br /&gt;&lt;br /&gt;The final animation technique is to hide and show the views&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/-QoDVl5m5OPE/TrDgFBxaTaI/AAAAAAAAAII/mOMXMPrq5Ks/s1600/animation_show_hide_view.JPG"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 320px; height: 164px;" src="http://1.bp.blogspot.com/-QoDVl5m5OPE/TrDgFBxaTaI/AAAAAAAAAII/mOMXMPrq5Ks/s320/animation_show_hide_view.JPG" alt="" id="BLOGGER_PHOTO_ID_5670278307839102370" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Here we will be using touch event to assign the animation part, the animation objects will be assigned as shown below&lt;br /&gt;&lt;br /&gt;&lt;div class="innerblock"&gt;  &lt;br /&gt;&lt;strong&gt;Java&lt;/strong&gt;&lt;br /&gt;&lt;pre class="innertextblock"  &gt;&lt;br /&gt;mAnimShow = AnimationUtils.loadAnimation(this, R.anim.slide_in_left);&lt;br /&gt;mAnimHide = AnimationUtils.loadAnimation(this, R.anim.slide_out_right);&lt;br /&gt;&lt;br /&gt;mAnimShow.setAnimationListener(new AnimationListener() {&lt;br /&gt;&lt;br /&gt;   @Override&lt;br /&gt;   public void onAnimationRepeat(Animation animation) {&lt;br /&gt;    // TODO Auto-generated method stub&lt;br /&gt;&lt;br /&gt;   }&lt;br /&gt;&lt;br /&gt;   @Override&lt;br /&gt;   public void onAnimationStart(Animation animation) {&lt;br /&gt;    overridePendingTransition( R.anim.slide_in_left, R.anim.slide_out_left );&lt;br /&gt;&lt;br /&gt;   }&lt;br /&gt;&lt;br /&gt;   @Override&lt;br /&gt;   public void onAnimationEnd(Animation animation) {&lt;br /&gt;   &lt;br /&gt;    &lt;br /&gt;   }&lt;br /&gt;&lt;br /&gt;  });&lt;br /&gt;&lt;br /&gt;mAnimHide.setAnimationListener(new AnimationListener() {&lt;br /&gt;&lt;br /&gt;   @Override&lt;br /&gt;   public void onAnimationRepeat(Animation animation) {&lt;br /&gt;    // TODO Auto-generated method stub&lt;br /&gt;&lt;br /&gt;   }&lt;br /&gt;&lt;br /&gt;   @Override&lt;br /&gt;   public void onAnimationStart(Animation animation) {&lt;br /&gt;    overridePendingTransition( R.anim.slide_in_right, R.anim.slide_out_right );&lt;br /&gt;&lt;br /&gt;   }&lt;br /&gt;&lt;br /&gt;   @Override&lt;br /&gt;   public void onAnimationEnd(Animation animation) {&lt;br /&gt;   &lt;br /&gt;    &lt;br /&gt;   }&lt;br /&gt;&lt;br /&gt;  });&lt;br /&gt;&lt;/pre&gt;   &lt;/div&gt;&lt;br /&gt;&lt;br /&gt;The full source code is provided below, you can apply these animation for any other purpose also, the animation technique is same, we need to put this in our logic.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;You can download the full source code&lt;br /&gt;&lt;br /&gt;&lt;div class="downloadblock"&gt;  &lt;br /&gt;Download &lt;a href="http://www.ziddu.com/download/17128599/AnimationObject.zip.html"&gt;source&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;Have a good day.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5197277884634195738-7794354315129920239?l=android-codes-examples.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://android-codes-examples.blogspot.com/feeds/7794354315129920239/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://android-codes-examples.blogspot.com/2011/11/animation-for-view-and-activities-with.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5197277884634195738/posts/default/7794354315129920239'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5197277884634195738/posts/default/7794354315129920239'/><link rel='alternate' type='text/html' href='http://android-codes-examples.blogspot.com/2011/11/animation-for-view-and-activities-with.html' title='Animation for view and activities with and without viewflipper in Android'/><author><name>Keerthy</name><uri>http://www.blogger.com/profile/10048420864647222363</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/-XbAdIgjE9yI/TrDgG6iUMcI/AAAAAAAAAIc/DF2oR5WXTC8/s72-c/animation_viewflipper_layout_hide_show.JPG' height='72' width='72'/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5197277884634195738.post-8008403757186229791</id><published>2011-10-24T01:49:00.000-07:00</published><updated>2011-10-24T01:51:41.200-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='sdk'/><category scheme='http://www.blogger.com/atom/ns#' term='Cream Sandwich'/><category scheme='http://www.blogger.com/atom/ns#' term='sdk 4.0'/><category scheme='http://www.blogger.com/atom/ns#' term='android'/><title type='text'>Google unveils what's new in Android 4 'Ice Cream Sandwich'</title><content type='html'>&lt;span class="Apple-style-span" style="font-family: 'Lucida Grande', Arial, sans-serif; font-size: 12px; line-height: 18px; background-color: rgb(255, 255, 255); "&gt;&lt;h2 style="font-size: 1.333em; line-height: 1.33em; margin-top: 3px; margin-right: 0px; margin-bottom: 8px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-weight: bold; color: rgb(0, 0, 0); font-family: Georgia, times, serif; "&gt;Unified mobile OS for tablets and smartphones clones some iOS features and focuses on a slicker UI and new developer APIs&lt;/h2&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Lucida Grande', Arial, sans-serif; font-size: 12px; line-height: 18px; background-color: rgb(255, 255, 255); "&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; font-size: 1em; line-height: 1.7em; "&gt;Google has finally unveiled Android 4.0, the unified version of its mobile OS for smartphones and tablets best known by its "Ice Cream Sandwich" code name. The revised Android, which made its debut on a &lt;a href="http://youtu.be/-F_ke3rxopc" target="_blank" style="outline-style: none; outline-width: initial; outline-color: initial; color: rgb(0, 102, 204); text-decoration: none; font-weight: bold; "&gt;Samsung Galaxy Nexus smartphone&lt;/a&gt; (video) also unveiled Tuesday, features a bevy of UI enhancements, social networking integration, and other APIs meant to encourage human and application-based sharing. Android has also beefed up some of its security capabilities, though most are in the form of API support that developers can use as desired.&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; font-size: 1em; line-height: 1.7em; "&gt;Google did not provide a release date for Android 4, but did say the Galaxy Nexus running it would be available in November. Available now is the &lt;a href="http://developer.android.com/sdk/index.html" target="_blank" style="outline-style: none; outline-width: initial; outline-color: initial; color: rgb(0, 102, 204); text-decoration: none; font-weight: bold; "&gt;updated Android SDK&lt;/a&gt;, so developers can begin modifying or creating applications for Android 4.&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; font-size: 1em; line-height: 1.7em; "&gt;&lt;strong&gt;[ Paul Krill shares &lt;a href="http://www.infoworld.com/d/application-development/developers-expect-much-todays-android-4-upgrade-176396?source=fssr" style="outline-style: none; outline-width: initial; outline-color: initial; color: rgb(0, 102, 204); text-decoration: none; font-weight: bold; "&gt;developers' expectations for Android 4&lt;/a&gt;. | See how badly Apple's &lt;a href="http://www.infoworld.com/d/mobile-technology/mobile-deathmatch-apple-ios-5-vs-google-android-os-169752?source=fssr" style="outline-style: none; outline-width: initial; outline-color: initial; color: rgb(0, 102, 204); text-decoration: none; font-weight: bold; "&gt;iOS 5 trounced Android 3.2 "Honeycomb" and Android 2.3 "Gingerbread"&lt;/a&gt; in InfoWorld's tests. | Subscribe to &lt;a href="http://www.infoworld.com/newsletters/subscribe?showlist=infoworld_mobile_rpt&amp;amp;source=ifwelg_fssr" style="outline-style: none; outline-width: initial; outline-color: initial; color: rgb(0, 102, 204); text-decoration: none; font-weight: bold; "&gt;InfoWorld's Mobilize newsletter&lt;/a&gt; for the latest developments in mobile technology. ]&lt;/strong&gt;&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; font-size: 1em; line-height: 1.7em; "&gt;For business users, Android 4 integrates multiple email accounts more completely and now supports Exchange email folders. It also lets users take screenshots from their devices. (Both are longtime iOS capabilities.) Google made some minor adjustments to Android's security and management capabilities by supporting the most recent version of &lt;a href="http://www.infoworld.com/d/mobilize/how-avoid-smartphone-exchange-policy-lie-004" style="outline-style: none; outline-width: initial; outline-color: initial; color: rgb(0, 102, 204); text-decoration: none; font-weight: bold; "&gt;Microsoft's Exchange ActiveSync (EAS) protocol&lt;/a&gt;, including newfound support for EAS certificate authentication, use of ABQ strings for device type and mode, an option for IT to disable automatic sync while roaming, and an option for IT to limit attachment size or disable attachments. Also added is support for disabling the device's camera via EAS.&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; font-size: 1em; line-height: 1.7em; "&gt;On the security front, Android 4 adopts the better security capabilities found in the tablet version of Android ("Honeycomb") such as on-device encryption, but appears to be &lt;a href="http://www.infoworld.com/d/mobile-technology/want-secure-android-devices-theyll-cost-you-175139" style="outline-style: none; outline-width: initial; outline-color: initial; color: rgb(0, 102, 204); text-decoration: none; font-weight: bold; "&gt;leaving deeper management APIs to third parties&lt;/a&gt; such as 3LM.&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; font-size: 1em; line-height: 1.7em; "&gt;But Android 4 does have a new keychain API, and underlying encrypted storage lets applications store and retrieve private keys and their corresponding certificate chains. Applications can use the keychain API to install and store user certificates and certificate authorities. Android 4 also provides &lt;a href="http://www.infoworld.com/d/mobile-technology/apple-ios-why-its-the-most-secure-os-period-792-0" style="outline-style: none; outline-width: initial; outline-color: initial; color: rgb(0, 102, 204); text-decoration: none; font-weight: bold; "&gt;address space layout randomization (ASLR)&lt;/a&gt; -- a feature that has helped iOS lead in terms of onboard security capabilities -- to protect system and third-party applications from exploitation due to memory-management issues.&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; font-size: 1em; line-height: 1.7em; "&gt;&lt;br /&gt;&lt;/p&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Lucida Grande', Arial, sans-serif; font-size: 12px; line-height: 18px; background-color: rgb(255, 255, 255); "&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; font-size: 1em; line-height: 1.7em; "&gt;Android 4 also borrows some features introduced in &lt;a href="http://www.infoworld.com/d/mobile-technology/ios-5-and-icloud-the-infoworld-visual-tour-169705" style="outline-style: none; outline-width: initial; outline-color: initial; color: rgb(0, 102, 204); text-decoration: none; font-weight: bold; "&gt;Apple's iOS 5&lt;/a&gt;, such as the ability to apply silly effects to video (using the Photo Booth app in iOS), to edit and adjust photos (an enhancement to iOS 5's Photos app), and to sync Chrome browser bookmarks via the cloud (one component of Apple's iCloud service). Camera enhancements include single-motion panoramic capture, automatic facial focus, and stabilized image zoom. The latter two are enhancements found in the recently released &lt;a href="http://www.infoworld.com/d/mobile-technology/iphone-4s-upgraded-iphone-offers-intelligent-assistant-174976" style="outline-style: none; outline-width: initial; outline-color: initial; color: rgb(0, 102, 204); text-decoration: none; font-weight: bold; "&gt;Apple iPhone 4S&lt;/a&gt;.&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; font-size: 1em; line-height: 1.7em; "&gt;Unique capabilities in Android 4 include face identification that can be used in lieu of passwords and the ability in the Chrome browser to tell websites to provide their full desktop vesions rather than their mobile-optimized versions.&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; font-size: 1em; line-height: 1.7em; "&gt;In the revised OS, a new social API lets developers create applications that can integrate contacts, profile data, and calendar events from any of the user's activities or social networks. Calendar services are also now made accessible to apps. A new sharing API lets apps share data through a standard mechanism across the OS.&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; font-size: 1em; line-height: 1.7em; "&gt;Android 4 also supports Wi-Fi Direct, a recent standard for creating ad hoc wireless networks among devices, and Bluetooth-based health care devices, such as wireless monitoring equipment. Android 4 now supports styli with a set of APIs that can distinguish pressure, angle, and other pen-oriented input nuances. The combination of support for Bluetooth-enabled medical equipment and pen input suggests Google may be making a push into the health care market with its tablets.&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; font-size: 1em; line-height: 1.7em; "&gt;As previously promised, Android 4 also supports near-field communications for use in &lt;a href="http://www.infoworld.com/d/mobile-technology/why-the-mobile-payments-frenzy-doesnt-matter-944" style="outline-style: none; outline-width: initial; outline-color: initial; color: rgb(0, 102, 204); text-decoration: none; font-weight: bold; "&gt;mobile payment systems&lt;/a&gt; and for "beaming" bursts of data between devices.&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; font-size: 1em; line-height: 1.7em; "&gt;The UI changes appear meant to provide more customized information to users, such as sizable widgets and configurable alert displays, as well as more gesture controls for interacting with tasks rather than relying so heavily on Android's menus. Google has published a &lt;a href="http://developer.android.com/sdk/android-4.0-highlights.html" target="_blank" style="outline-style: none; outline-width: initial; outline-color: initial; color: rgb(0, 102, 204); text-decoration: none; font-weight: bold; "&gt;summary of the Android 4 changes&lt;/a&gt; at its website.&lt;/p&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Lucida Grande', Arial, sans-serif; font-size: 12px; line-height: 20px; background-color: rgb(255, 255, 255); "&gt;&lt;i&gt;source is taken from  &lt;/i&gt;&lt;/span&gt;&lt;a href="http://www.infoworld.com/d/mobile-technology/google-unveils-whats-new-in-android-4-ice-cream-sandwich-176549?page=0,0&amp;amp;source=IFWNLE_nlt_daily_2011-10-19"&gt;http://www.infoworld.com/d/mobile-technology/google-unveils-whats-new-in-android-4-ice-cream-sandwich-176549?page=0,0&amp;amp;source=IFWNLE_nlt_daily_2011-10-19&lt;/a&gt;&lt;span class="Apple-style-span" style="font-family: 'Lucida Grande', Arial, sans-serif; font-size: 12px; line-height: 18px; background-color: rgb(255, 255, 255); "&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; font-size: 1em; line-height: 1.7em; "&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/p&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5197277884634195738-8008403757186229791?l=android-codes-examples.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://android-codes-examples.blogspot.com/feeds/8008403757186229791/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://android-codes-examples.blogspot.com/2011/10/google-unveils-whats-new-in-android-4.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5197277884634195738/posts/default/8008403757186229791'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5197277884634195738/posts/default/8008403757186229791'/><link rel='alternate' type='text/html' href='http://android-codes-examples.blogspot.com/2011/10/google-unveils-whats-new-in-android-4.html' title='Google unveils what&apos;s new in Android 4 &apos;Ice Cream Sandwich&apos;'/><author><name>Keerthy</name><uri>http://www.blogger.com/profile/10048420864647222363</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5197277884634195738.post-2616458605131144466</id><published>2011-10-18T00:29:00.000-07:00</published><updated>2011-10-18T00:32:29.181-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='service'/><category scheme='http://www.blogger.com/atom/ns#' term='android'/><title type='text'>Check whether service is running or not in android application</title><content type='html'>Using the below given code we can check whether a particular service in our application is running or not&lt;br /&gt;&lt;br /&gt;&lt;div class="innerblock"&gt;  &lt;br /&gt;&lt;strong&gt;Java&lt;/strong&gt;&lt;br /&gt;&lt;pre class="innertextblock"  &gt;&lt;br /&gt;private boolean isMyServiceRunning() {&lt;br /&gt;    ActivityManager manager = (ActivityManager) getSystemService(ACTIVITY_SERVICE);&lt;br /&gt;    for (RunningServiceInfo service : manager.getRunningServices(Integer.MAX_VALUE)) {&lt;br /&gt; if ("com.dir.pack.DemoService".equals(service.service.getClassName())) {&lt;br /&gt;     return true;&lt;br /&gt; }&lt;br /&gt;    }&lt;br /&gt;    return false;&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;   &lt;/div&gt;&lt;br /&gt;&lt;br /&gt;Here in the if condition we need to give the service file name with the package. So on the checking area you can simply call this function in the if statement like&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="innerblock"&gt;  &lt;br /&gt;&lt;strong&gt;Java&lt;/strong&gt;&lt;br /&gt;&lt;pre class="innertextblock"  &gt;&lt;br /&gt;if(isMyServiceRunning()) {&lt;br /&gt;  System.out.println("Service is running");&lt;br /&gt;} else {&lt;br /&gt;  System.out.println("Service is not running");&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;   &lt;/div&gt;&lt;br /&gt;&lt;br /&gt;Have a nice day&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5197277884634195738-2616458605131144466?l=android-codes-examples.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://android-codes-examples.blogspot.com/feeds/2616458605131144466/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://android-codes-examples.blogspot.com/2011/10/check-whether-service-is-running-or-not.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5197277884634195738/posts/default/2616458605131144466'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5197277884634195738/posts/default/2616458605131144466'/><link rel='alternate' type='text/html' href='http://android-codes-examples.blogspot.com/2011/10/check-whether-service-is-running-or-not.html' title='Check whether service is running or not in android application'/><author><name>Keerthy</name><uri>http://www.blogger.com/profile/10048420864647222363</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5197277884634195738.post-2399257593571061841</id><published>2011-09-23T22:05:00.001-07:00</published><updated>2011-09-23T22:05:47.783-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='blog'/><category scheme='http://www.blogger.com/atom/ns#' term='picture sqlite'/><category scheme='http://www.blogger.com/atom/ns#' term='listview'/><category scheme='http://www.blogger.com/atom/ns#' term='sqlite'/><category scheme='http://www.blogger.com/atom/ns#' term='database'/><category scheme='http://www.blogger.com/atom/ns#' term='android'/><category scheme='http://www.blogger.com/atom/ns#' term='image sqlite'/><title type='text'>Image and content is populated from Sqlite in Android</title><content type='html'>In this below application we had populated the listview's data and image from the sqlite&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;a href="http://1.bp.blogspot.com/-Ioqc_gFkmyw/TngnjgEsiyI/AAAAAAAAAHY/OWYTYdWsC_M/s1600/listview_from_sqlite_populate.JPG" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 320px; height: 152px;" src="http://1.bp.blogspot.com/-Ioqc_gFkmyw/TngnjgEsiyI/AAAAAAAAAHY/OWYTYdWsC_M/s320/listview_from_sqlite_populate.JPG" border="0" alt="" id="BLOGGER_PHOTO_ID_5654312823022193442" /&gt;&lt;/a&gt;&lt;div&gt;&lt;br /&gt;Here we are using a java class for creating the table&lt;br /&gt;&lt;br /&gt;&lt;div class="innerblock"&gt; &lt;br /&gt;&lt;strong&gt;PlaceDataSQL.java&lt;/strong&gt;&lt;br /&gt;&lt;pre class="innertextblock"&gt;package com.data.pack;&lt;br /&gt;&lt;br /&gt;package com.data.pack;&lt;br /&gt;&lt;br /&gt;import android.content.Context;&lt;br /&gt;import android.database.SQLException;&lt;br /&gt;import android.database.sqlite.SQLiteDatabase;&lt;br /&gt;import android.database.sqlite.SQLiteException;&lt;br /&gt;import android.database.sqlite.SQLiteOpenHelper;&lt;br /&gt;import android.util.Log;&lt;br /&gt;&lt;br /&gt;/** Helper to the database, manages versions and creation */&lt;br /&gt;public class PlaceDataSQL extends SQLiteOpenHelper {&lt;br /&gt; private static final String DATABASE_NAME = "sample.db";&lt;br /&gt; private static final int DATABASE_VERSION = 1;&lt;br /&gt;&lt;br /&gt; private Context context;&lt;br /&gt;&lt;br /&gt; public PlaceDataSQL(Context context) {&lt;br /&gt;  super(context, DATABASE_NAME, null, DATABASE_VERSION);&lt;br /&gt;  this.context = context;&lt;br /&gt; }&lt;br /&gt;&lt;br /&gt; @Override&lt;br /&gt; public void onCreate(SQLiteDatabase db) {&lt;br /&gt;  db.execSQL("CREATE TABLE gallery (id varchar(20), image BLOB,caption varchar(160),description varchar(200))");&lt;br /&gt; }&lt;br /&gt;&lt;br /&gt; private void versionUpdation(SQLiteDatabase db) {&lt;br /&gt;&lt;br /&gt; }&lt;br /&gt;&lt;br /&gt; /**&lt;br /&gt;  * Check if the database already exist to avoid re-copying the file each&lt;br /&gt;  * time you open the application.&lt;br /&gt;  * &lt;br /&gt;  * @return true if it exists, false if it doesn't&lt;br /&gt;  */&lt;br /&gt; public boolean checkDataBase(String db) {&lt;br /&gt;&lt;br /&gt;  SQLiteDatabase checkDB = null;&lt;br /&gt;&lt;br /&gt;  try {&lt;br /&gt;   String myPath = "data/data/com.data.pack/databases/" + db;&lt;br /&gt;   checkDB = SQLiteDatabase.openDatabase(myPath, null,&lt;br /&gt;     SQLiteDatabase.OPEN_READONLY);&lt;br /&gt;&lt;br /&gt;  } catch (SQLiteException e) {&lt;br /&gt;&lt;br /&gt;   // database does't exist yet.&lt;br /&gt;&lt;br /&gt;  } catch (Exception e) {&lt;br /&gt;&lt;br /&gt;  }&lt;br /&gt;&lt;br /&gt;  if (checkDB != null) {&lt;br /&gt;&lt;br /&gt;   checkDB.close();&lt;br /&gt;&lt;br /&gt;  }&lt;br /&gt;&lt;br /&gt;  return checkDB != null ? true : false;&lt;br /&gt; }&lt;br /&gt;&lt;br /&gt; @Override&lt;br /&gt; public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {&lt;br /&gt;  if (oldVersion &gt;= newVersion)&lt;br /&gt;   return;&lt;br /&gt;&lt;br /&gt;  if (oldVersion == 1) {&lt;br /&gt;   Log.d("New Version", "Datas can be upgraded");&lt;br /&gt;  }&lt;br /&gt;&lt;br /&gt;  Log.d("Sample Data", "onUpgrade : " + newVersion);&lt;br /&gt; }&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;   &lt;/div&gt;&lt;br /&gt;&lt;br /&gt;Here in the onCreate function the table is created, here for image we are using blog, so that we can insert the image inside the table itself and the onUpgrade function is used to upgrade the table on the next release, for example you had create an application and published it in market and a guy is using your application, now suddenly you like to add another field on your table means you need to change the " DATABASE_VERSION " to 2 and in the onUpgrade funtion you need to write the alter query there. Likewise i had using a funtion checkDataBase(), this is to check whether the database is exist or not.&lt;br /&gt;&lt;br /&gt;Then in the main activity we are calling delete to delete the table content, likewise we will be using a function insertData, inside this function we will be inserting data to the table, like that we will be using getDataAndPopulate(), here we will be retrieving data from the table and displaying in the list.&lt;br /&gt;&lt;br /&gt;The main thing is we inserting the image to database for this we are using HttpClient and on the retriving time it is very easy to assign the data, so while calling on the next time we can assign and there is no need of url call for showing image.&lt;br /&gt;&lt;br /&gt;&lt;div class="innerblock"&gt; &lt;br /&gt;&lt;strong&gt;SqliteDBActivity.java&lt;/strong&gt;&lt;br /&gt;&lt;pre class="innertextblock"&gt;package com.data.pack;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;package com.data.pack;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;import java.io.IOException;&lt;br /&gt;import java.io.InputStream;&lt;br /&gt;import java.net.HttpURLConnection;&lt;br /&gt;import java.net.MalformedURLException;&lt;br /&gt;import java.net.URL;&lt;br /&gt;import java.util.ArrayList;&lt;br /&gt;&lt;br /&gt;import org.apache.http.HttpEntity;&lt;br /&gt;import org.apache.http.HttpResponse;&lt;br /&gt;import org.apache.http.HttpStatus;&lt;br /&gt;import org.apache.http.client.ClientProtocolException;&lt;br /&gt;import org.apache.http.client.methods.HttpGet;&lt;br /&gt;import org.apache.http.impl.client.DefaultHttpClient;&lt;br /&gt;import org.apache.http.util.EntityUtils;&lt;br /&gt;&lt;br /&gt;import android.app.ListActivity;&lt;br /&gt;import android.content.ContentValues;&lt;br /&gt;import android.content.Context;&lt;br /&gt;import android.database.Cursor;&lt;br /&gt;import android.database.sqlite.SQLiteDatabase;&lt;br /&gt;import android.graphics.Bitmap;&lt;br /&gt;import android.graphics.BitmapFactory;&lt;br /&gt;import android.os.Bundle;&lt;br /&gt;import android.view.LayoutInflater;&lt;br /&gt;import android.view.View;&lt;br /&gt;import android.view.ViewGroup;&lt;br /&gt;import android.widget.BaseAdapter;&lt;br /&gt;import android.widget.Button;&lt;br /&gt;import android.widget.ImageView;&lt;br /&gt;import android.widget.TextView;&lt;br /&gt;&lt;br /&gt;public class SqliteDBActivity extends ListActivity {&lt;br /&gt; private static PlaceDataSQL placeData;&lt;br /&gt; private ArrayList&lt;String&gt; id = new ArrayList&lt;String&gt;();&lt;br /&gt; private ArrayList&lt;byte[]&gt; image = new ArrayList&lt;byte[]&gt;();&lt;br /&gt; private ArrayList&lt;String&gt; caption = new ArrayList&lt;String&gt;();&lt;br /&gt; private ArrayList&lt;String&gt; description = new ArrayList&lt;String&gt;();&lt;br /&gt; private Button populate;&lt;br /&gt; &lt;br /&gt;    /** Called when the activity is first created. */&lt;br /&gt;    @Override&lt;br /&gt;    public void onCreate(Bundle savedInstanceState) {&lt;br /&gt;        super.onCreate(savedInstanceState);&lt;br /&gt;        setContentView(R.layout.main);&lt;br /&gt;        populate = (Button) findViewById(R.id.populate);&lt;br /&gt;        placeData = new PlaceDataSQL(this);&lt;br /&gt;        &lt;br /&gt;        SQLiteDatabase db = placeData.getWritableDatabase();&lt;br /&gt;        &lt;br /&gt;        Cursor cursors = getRawEvents("select * from gallery");&lt;br /&gt;&lt;br /&gt;  if (cursors.moveToNext()) {&lt;br /&gt;   populate.setVisibility(View.GONE);&lt;br /&gt;   getDataAndPopulate();&lt;br /&gt;  } else {&lt;br /&gt;   populate.setVisibility(View.VISIBLE);&lt;br /&gt;  }&lt;br /&gt;  &lt;br /&gt;    &lt;br /&gt;        db.delete("gallery", "id=?", new String[] {&lt;br /&gt;    "12" });&lt;br /&gt;        populate.setOnClickListener(new View.OnClickListener() {&lt;br /&gt;   &lt;br /&gt;   @Override&lt;br /&gt;   public void onClick(View v) {&lt;br /&gt;    try {&lt;br /&gt;     callInsertion("1","http://2.bp.blogspot.com/-bkmnlZUKXPs/TjZeTVCgp9I/AAAAAAAAAHI/SPnWJYqq4uQ/s1600/twitter_follow.gif","First","This is the first item");&lt;br /&gt;     callInsertion("2","http://1.bp.blogspot.com/-HDNFnyRU2Cw/TcuMbBaL70I/AAAAAAAAAGc/7eWN1qnZbAw/s320/seek.JPG","Second","This is the second item");&lt;br /&gt;    } catch (ClientProtocolException e) {&lt;br /&gt;     // TODO Auto-generated catch block&lt;br /&gt;     e.printStackTrace();&lt;br /&gt;    } catch (IOException e) {&lt;br /&gt;     // TODO Auto-generated catch block&lt;br /&gt;     e.printStackTrace();&lt;br /&gt;    }  &lt;br /&gt;        &lt;br /&gt;    getDataAndPopulate();&lt;br /&gt;   }&lt;br /&gt;  });&lt;br /&gt;  &lt;br /&gt;    }&lt;br /&gt;    &lt;br /&gt;    private void callInsertion(String id, String url, String caption, String description) throws ClientProtocolException, IOException {&lt;br /&gt;     DefaultHttpClient mHttpClient = new DefaultHttpClient();&lt;br /&gt;  HttpGet mHttpGet = new HttpGet(url);&lt;br /&gt;  HttpResponse mHttpResponse = mHttpClient.execute(mHttpGet);&lt;br /&gt;  if (mHttpResponse.getStatusLine().getStatusCode() == HttpStatus.SC_OK) {&lt;br /&gt;    HttpEntity entity = mHttpResponse.getEntity();&lt;br /&gt;      if ( entity != null) {&lt;br /&gt;        // insert to database         &lt;br /&gt;        insertData(id,EntityUtils.toByteArray(entity),caption,description);&lt;br /&gt;      }&lt;br /&gt;  }&lt;br /&gt;    }&lt;br /&gt;    &lt;br /&gt;    private void insertData(String id, byte[] image, String caption, String description) {&lt;br /&gt;     SQLiteDatabase db = placeData.getWritableDatabase();&lt;br /&gt;     ContentValues values;&lt;br /&gt;  values = new ContentValues();&lt;br /&gt;  values.put("id", id);&lt;br /&gt;  values.put("image", image);&lt;br /&gt;  values.put("caption", caption);&lt;br /&gt;  values.put("description", description);&lt;br /&gt;  &lt;br /&gt;  db.insert("gallery", null, values);&lt;br /&gt;    }&lt;br /&gt;    &lt;br /&gt;    private void getDataAndPopulate() {&lt;br /&gt;     id = new ArrayList&lt;String&gt;();&lt;br /&gt;     image = new ArrayList&lt;byte[]&gt;();&lt;br /&gt;     caption = new ArrayList&lt;String&gt;();&lt;br /&gt;     description = new ArrayList&lt;String&gt;();&lt;br /&gt;     Cursor cursor = getEvents("gallery");&lt;br /&gt;  while (cursor.moveToNext()) {&lt;br /&gt;   String temp_id = cursor.getString(0);&lt;br /&gt;   byte[] temp_image = cursor.getBlob(1);&lt;br /&gt;   String temp_caption = cursor.getString(2);&lt;br /&gt;   String temp_description = cursor.getString(3);&lt;br /&gt;   id.add(temp_id);&lt;br /&gt;   image.add(temp_image);&lt;br /&gt;   caption.add(temp_caption);&lt;br /&gt;   description.add(temp_description);&lt;br /&gt;  }&lt;br /&gt;  String[] captionArray = (String[]) caption.toArray(&lt;br /&gt;    new String[caption.size()]);&lt;br /&gt;  &lt;br /&gt;  ItemsAdapter itemsAdapter = new ItemsAdapter(&lt;br /&gt;    SqliteDBActivity.this, R.layout.item,&lt;br /&gt;    captionArray);&lt;br /&gt;  setListAdapter(itemsAdapter);&lt;br /&gt;  populate.setVisibility(View.GONE);&lt;br /&gt;    }&lt;br /&gt;    &lt;br /&gt;    &lt;br /&gt;    private class ItemsAdapter extends BaseAdapter {&lt;br /&gt;  String[] items;&lt;br /&gt;&lt;br /&gt;  public ItemsAdapter(Context context, int textViewResourceId,&lt;br /&gt;    String[] items) {&lt;br /&gt;   this.items = items;&lt;br /&gt;  }&lt;br /&gt;&lt;br /&gt;  @Override&lt;br /&gt;  public View getView(final int POSITION, View convertView,&lt;br /&gt;    ViewGroup parent) {&lt;br /&gt;   TextView desc;&lt;br /&gt;   TextView cap;&lt;br /&gt;   View view = convertView;&lt;br /&gt;   ImageView img;&lt;br /&gt;   if (view == null) {&lt;br /&gt;    LayoutInflater vi = (LayoutInflater) getSystemService(Context.LAYOUT_INFLATER_SERVICE);&lt;br /&gt;    view = vi.inflate(R.layout.item, null);&lt;br /&gt;    &lt;br /&gt;   } &lt;br /&gt;   img = (ImageView) view.findViewById(R.id.image);&lt;br /&gt;   cap = (TextView) view.findViewById(R.id.caption);&lt;br /&gt;   &lt;br /&gt;   desc = (TextView) view.findViewById(R.id.description);&lt;br /&gt;   &lt;br /&gt;   cap.setText(caption.get(POSITION));&lt;br /&gt;   desc.setText(description.get(POSITION));&lt;br /&gt;   img.setImageBitmap(BitmapFactory.decodeByteArray(image.get(POSITION), 0, image.get(POSITION).length));&lt;br /&gt;   &lt;br /&gt;&lt;br /&gt;   return view;&lt;br /&gt;  }&lt;br /&gt;&lt;br /&gt;  public int getCount() {&lt;br /&gt;   return items.length;&lt;br /&gt;  }&lt;br /&gt;&lt;br /&gt;  public Object getItem(int position) {&lt;br /&gt;   return position;&lt;br /&gt;  }&lt;br /&gt;&lt;br /&gt;  public long getItemId(int position) {&lt;br /&gt;   return position;&lt;br /&gt;  }&lt;br /&gt; }&lt;br /&gt;    &lt;br /&gt;    private Cursor getRawEvents(String sql) {&lt;br /&gt;  SQLiteDatabase db = (placeData).getReadableDatabase();&lt;br /&gt;  Cursor cursor = db.rawQuery(sql, null);&lt;br /&gt;&lt;br /&gt;  startManagingCursor(cursor);&lt;br /&gt;  return cursor;&lt;br /&gt; }&lt;br /&gt;&lt;br /&gt; private Cursor getEvents(String table) {&lt;br /&gt;  SQLiteDatabase db = (placeData).getReadableDatabase();&lt;br /&gt;  Cursor cursor = db.query(table, null, null, null, null, null, null);&lt;br /&gt;&lt;br /&gt;  startManagingCursor(cursor);&lt;br /&gt;  return cursor;&lt;br /&gt; }&lt;br /&gt;}&lt;/pre&gt;   &lt;/div&gt;&lt;br /&gt;&lt;br /&gt;In this example i had wrote two types of retrieving methods from the table, by writing the query and specifying the table name itself.&lt;br /&gt;&lt;br /&gt;You can download the full source code&lt;br /&gt;&lt;br /&gt;&lt;div class="downloadblock"&gt; &lt;br /&gt;Download &lt;a href="http://www.ziddu.com/download/16496213/SqliteDB.zip.html"&gt;source&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;Have a good day.&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5197277884634195738-2399257593571061841?l=android-codes-examples.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://android-codes-examples.blogspot.com/feeds/2399257593571061841/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://android-codes-examples.blogspot.com/2011/09/image-and-content-is-populated-from.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5197277884634195738/posts/default/2399257593571061841'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5197277884634195738/posts/default/2399257593571061841'/><link rel='alternate' type='text/html' href='http://android-codes-examples.blogspot.com/2011/09/image-and-content-is-populated-from.html' title='Image and content is populated from Sqlite in Android'/><author><name>Keerthy</name><uri>http://www.blogger.com/profile/10048420864647222363</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/-Ioqc_gFkmyw/TngnjgEsiyI/AAAAAAAAAHY/OWYTYdWsC_M/s72-c/listview_from_sqlite_populate.JPG' height='72' width='72'/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5197277884634195738.post-8069160512380644659</id><published>2011-09-19T23:08:00.001-07:00</published><updated>2011-09-19T23:17:20.720-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='tabview'/><category scheme='http://www.blogger.com/atom/ns#' term='tab'/><category scheme='http://www.blogger.com/atom/ns#' term='android tab'/><category scheme='http://www.blogger.com/atom/ns#' term='customized tab'/><category scheme='http://www.blogger.com/atom/ns#' term='android'/><title type='text'>Customize the tab in Android</title><content type='html'>I had attached two tab examples&lt;br /&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;br /&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;br /&gt;&lt;a href="http://3.bp.blogspot.com/-PT9h4bmpfec/TnguDwiRvWI/AAAAAAAAAHo/aDNQzjr7qhY/s1600/custom_tab_designs.JPG" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}"&gt;&lt;img style="float:right; margin:0 0 10px 10px;cursor:pointer; cursor:hand;width: 228px; height: 320px;" src="http://3.bp.blogspot.com/-PT9h4bmpfec/TnguDwiRvWI/AAAAAAAAAHo/aDNQzjr7qhY/s320/custom_tab_designs.JPG" border="0" alt="" id="BLOGGER_PHOTO_ID_5654319974266813794" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href="http://4.bp.blogspot.com/-1vqlWTniEFo/TnguAU9ETOI/AAAAAAAAAHg/EeTDhMk5vpE/s1600/custom_tab_design.JPG" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}"&gt;&lt;img style="float:left; margin:0 10px 10px 0;cursor:pointer; cursor:hand;width: 221px; height: 320px;" src="http://4.bp.blogspot.com/-1vqlWTniEFo/TnguAU9ETOI/AAAAAAAAAHg/EeTDhMk5vpE/s320/custom_tab_design.JPG" border="0" alt="" id="BLOGGER_PHOTO_ID_5654319915323378914" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;br /&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;br /&gt;First we are going to see about First example&lt;br /&gt;&lt;br /&gt;&lt;div class="innerblock"&gt;  &lt;br /&gt;&lt;strong&gt;CustomTabActivity.java&lt;/strong&gt;&lt;br /&gt;&lt;pre class="innertextblock"  &gt;&lt;br /&gt;package com.customs.tabs;&lt;br /&gt;&lt;br /&gt;import com.customs.tabs.R;&lt;br /&gt;import android.app.TabActivity;&lt;br /&gt;import android.content.Intent;&lt;br /&gt;import android.os.Bundle;&lt;br /&gt;import android.view.LayoutInflater;&lt;br /&gt;import android.view.View;&lt;br /&gt;import android.widget.ImageView;&lt;br /&gt;import android.widget.TabHost;&lt;br /&gt;import android.widget.TextView;&lt;br /&gt;&lt;br /&gt;public class CustomTabActivity extends TabActivity{&lt;br /&gt; private TabHost tabHost;&lt;br /&gt; &lt;br /&gt;    @Override&lt;br /&gt;    public void onCreate(Bundle savedInstanceState) {&lt;br /&gt;        super.onCreate(savedInstanceState);&lt;br /&gt;        setContentView(R.layout.main);&lt;br /&gt;        setTabs();&lt;br /&gt;    }&lt;br /&gt;    &lt;br /&gt;  private void setTabs() {&lt;br /&gt;  tabHost = getTabHost();&lt;br /&gt;  &lt;br /&gt;  addTab(R.string.tab_1, R.drawable.info);&lt;br /&gt;  addTab(R.string.tab_2, R.drawable.info);&lt;br /&gt;  addTab(R.string.tab_3, R.drawable.info);&lt;br /&gt; }&lt;br /&gt; &lt;br /&gt; private void addTab(int labelId, int drawableId) {&lt;br /&gt;  Intent intent = new Intent(this, TabAct.class);&lt;br /&gt;  TabHost.TabSpec spec = tabHost.newTabSpec("tab" + labelId);  &lt;br /&gt;  &lt;br /&gt;  View tabIndicator = LayoutInflater.from(this).inflate(R.layout.indicator, getTabWidget(), false);&lt;br /&gt;  &lt;br /&gt;  TextView title = (TextView) tabIndicator.findViewById(R.id.title);&lt;br /&gt;  title.setText(labelId);&lt;br /&gt;  ImageView icon = (ImageView) tabIndicator.findViewById(R.id.icon);&lt;br /&gt;  icon.setImageResource(drawableId);&lt;br /&gt;  &lt;br /&gt;  spec.setIndicator(tabIndicator);&lt;br /&gt;  spec.setContent(intent);&lt;br /&gt;  tabHost.addTab(spec);&lt;br /&gt;  &lt;br /&gt; }&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;   &lt;/div&gt;&lt;br /&gt;&lt;br /&gt;The class extends TabActivity and the header of the tab is provided in seperate activity which is called on the addTab method. The selection / unselection / active colors are mentioned in the indicator xml file in the layout&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="innerblock"&gt;  &lt;br /&gt;&lt;strong&gt;indicator.xml&lt;/strong&gt;&lt;br /&gt;&lt;pre class="innertextblock"  &gt;&lt;br /&gt;&amp;lt;?xml version="1.0" encoding="utf-8"?&gt;&lt;br /&gt;&amp;lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"&lt;br /&gt;    android:layout_width="0dip"&lt;br /&gt;    android:layout_height="64dip"    &lt;br /&gt;    android:layout_weight="1"&lt;br /&gt;    android:orientation="vertical"&lt;br /&gt;    android:background="@drawable/indicator"&lt;br /&gt;    android:padding="5dp"&gt;&lt;br /&gt;&lt;br /&gt;    &amp;lt;ImageView android:id="@+id/icon"&lt;br /&gt;        android:layout_width="wrap_content"&lt;br /&gt;        android:layout_height="wrap_content"&lt;br /&gt;        android:layout_centerHorizontal="true"&lt;br /&gt;    /&gt;&lt;br /&gt;&lt;br /&gt;    &amp;lt;TextView android:id="@+id/title"&lt;br /&gt;        android:layout_width="wrap_content"&lt;br /&gt;        android:layout_height="wrap_content"&lt;br /&gt;        android:layout_alignParentBottom="true"&lt;br /&gt;        android:layout_centerHorizontal="true"&lt;br /&gt;        style="?android:attr/tabWidgetStyle"&lt;br /&gt;    /&gt;    &lt;br /&gt;&amp;lt;/RelativeLayout&gt;&lt;br /&gt;&lt;/pre&gt;   &lt;/div&gt;&lt;br /&gt;&lt;br /&gt;Now we can see the Second example of Tab&lt;br /&gt;&lt;br /&gt;Here we are not going to extend the tabactivity, instead of that we can set the tab headers through setting background images or colors using xml and without using xml&lt;br /&gt;&lt;br /&gt;&lt;div class="innerblock"&gt;  &lt;br /&gt;&lt;strong&gt;CustomTabs.java&lt;/strong&gt;&lt;br /&gt;&lt;pre class="innertextblock"  &gt;&lt;br /&gt;package com.customized.tabs;&lt;br /&gt;&lt;br /&gt;import com.customized.tabs.R;&lt;br /&gt;&lt;br /&gt;import android.app.Activity;&lt;br /&gt;import android.content.Context;&lt;br /&gt;import android.os.Bundle;&lt;br /&gt;import android.view.LayoutInflater;&lt;br /&gt;import android.view.View;&lt;br /&gt;import android.widget.TabHost;&lt;br /&gt;import android.widget.TextView;&lt;br /&gt;import android.widget.TabHost.TabContentFactory;&lt;br /&gt;import android.widget.TabHost.TabSpec;&lt;br /&gt;&lt;br /&gt;public class CustomTabs extends Activity {&lt;br /&gt;&lt;br /&gt; private TabHost mTabHost;&lt;br /&gt; private TextView mTabLayout;&lt;br /&gt;&lt;br /&gt; private void setupTabHost() {&lt;br /&gt;  mTabHost = (TabHost) findViewById(android.R.id.tabhost);&lt;br /&gt;  mTabHost.setup();&lt;br /&gt;  mTabLayout = (TextView) findViewById(R.id.taber);&lt;br /&gt;  mTabHost.setOnTabChangedListener(new TabHost.OnTabChangeListener() {&lt;br /&gt;   &lt;br /&gt;   @Override&lt;br /&gt;   public void onTabChanged(String tabId) {&lt;br /&gt;    mTabHost.getTabWidget().getChildAt(0)&lt;br /&gt;    .setBackgroundResource(R.drawable.m2);&lt;br /&gt;    if ("Tab 1".equals(tabId)) {&lt;br /&gt;     mTabHost.getTabWidget().getChildAt(0)&lt;br /&gt;       .setBackgroundResource(R.drawable.m1);&lt;br /&gt;     mTabLayout.setText("This is Tab 1");&lt;br /&gt;    } else if("Tab 2".equals(tabId)) {&lt;br /&gt;     mTabLayout.setText("This is Tab 2");&lt;br /&gt;    } else {&lt;br /&gt;     mTabLayout.setText("This is Tab 3");&lt;br /&gt;    }&lt;br /&gt;   }&lt;br /&gt;  });&lt;br /&gt; }&lt;br /&gt;&lt;br /&gt; /** Called when the activity is first created. */&lt;br /&gt; @Override&lt;br /&gt; public void onCreate(Bundle savedInstanceState) {&lt;br /&gt;  super.onCreate(savedInstanceState);&lt;br /&gt;  // construct the tabhost&lt;br /&gt;  setContentView(R.layout.main);&lt;br /&gt;&lt;br /&gt;  setupTabHost();&lt;br /&gt;  &lt;br /&gt;  //mTabHost.getTabWidget().setDividerDrawable(R.drawable.divider);&lt;br /&gt;&lt;br /&gt;  setupTab(new TextView(this), "Tab 1");&lt;br /&gt;  setupTab(new TextView(this), "Tab 2");&lt;br /&gt;  setupTab(new TextView(this), "Tab 3");&lt;br /&gt; }&lt;br /&gt;&lt;br /&gt; private void setupTab(final View view, final String tag) {&lt;br /&gt;  View tabview = createTabView(mTabHost.getContext(), tag);&lt;br /&gt;  &lt;br /&gt;  TabSpec setContent = mTabHost.newTabSpec(tag).setIndicator(tabview).setContent(new TabContentFactory() {&lt;br /&gt;   public View createTabContent(String tag) {return view;}&lt;br /&gt;  });&lt;br /&gt;  mTabHost.addTab(setContent);&lt;br /&gt;  if ("Tab 1".equals(tag))&lt;br /&gt;   mTabHost.getTabWidget().getChildAt(0).setBackgroundResource(&lt;br /&gt;     R.drawable.m1);&lt;br /&gt;  &lt;br /&gt;&lt;br /&gt; }&lt;br /&gt;&lt;br /&gt; private static View createTabView(final Context context, final String text) {&lt;br /&gt;  View view = LayoutInflater.from(context).inflate(R.layout.bg, null);&lt;br /&gt;  TextView tv = (TextView) view.findViewById(R.id.tabsText);&lt;br /&gt;  tv.setText(text);&lt;br /&gt;  return view;&lt;br /&gt; }&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;   &lt;/div&gt;&lt;br /&gt;&lt;br /&gt;In the above code i had commented the divider between each header, if you need means you can uncomment and i had set a different image for the Tab 1 alone, if you need you can set different images for each tab like that. Then in the bg_selector.xml i had commented the xml files for background color and i had set images for that&lt;br /&gt;&lt;br /&gt;You can download the full source code&lt;br /&gt;&lt;br /&gt;&lt;div class="downloadblock"&gt;  &lt;br /&gt;Download &lt;a href="http://www.ziddu.com/download/16446477/tab.zip.html"&gt;source&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;Have a good day.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5197277884634195738-8069160512380644659?l=android-codes-examples.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://android-codes-examples.blogspot.com/feeds/8069160512380644659/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://android-codes-examples.blogspot.com/2011/09/customize-tab-in-android.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5197277884634195738/posts/default/8069160512380644659'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5197277884634195738/posts/default/8069160512380644659'/><link rel='alternate' type='text/html' href='http://android-codes-examples.blogspot.com/2011/09/customize-tab-in-android.html' title='Customize the tab in Android'/><author><name>Keerthy</name><uri>http://www.blogger.com/profile/10048420864647222363</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/-PT9h4bmpfec/TnguDwiRvWI/AAAAAAAAAHo/aDNQzjr7qhY/s72-c/custom_tab_designs.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5197277884634195738.post-5642260222373976789</id><published>2011-09-19T22:40:00.000-07:00</published><updated>2011-09-19T22:45:30.817-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='listview'/><category scheme='http://www.blogger.com/atom/ns#' term='sqlite'/><category scheme='http://www.blogger.com/atom/ns#' term='database'/><category scheme='http://www.blogger.com/atom/ns#' term='android'/><title type='text'>Using Sqlite to populate a ListView in Android</title><content type='html'>In this below application we had populated the listview using the data from the sqlite&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;a href="http://1.bp.blogspot.com/-Ioqc_gFkmyw/TngnjgEsiyI/AAAAAAAAAHY/OWYTYdWsC_M/s1600/listview_from_sqlite_populate.JPG" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 320px; height: 152px;" src="http://1.bp.blogspot.com/-Ioqc_gFkmyw/TngnjgEsiyI/AAAAAAAAAHY/OWYTYdWsC_M/s320/listview_from_sqlite_populate.JPG" border="0" alt="" id="BLOGGER_PHOTO_ID_5654312823022193442" /&gt;&lt;/a&gt;&lt;div&gt;&lt;br /&gt;Here we are using a java class for creating the table&lt;br /&gt;&lt;br /&gt;&lt;div class="innerblock"&gt; &lt;br /&gt;&lt;strong&gt;PlaceDataSQL.java&lt;/strong&gt;&lt;br /&gt;&lt;pre class="innertextblock"&gt;package com.data.pack;&lt;br /&gt;&lt;br /&gt;import android.content.Context;&lt;br /&gt;import android.database.SQLException;&lt;br /&gt;import android.database.sqlite.SQLiteDatabase;&lt;br /&gt;import android.database.sqlite.SQLiteException;&lt;br /&gt;import android.database.sqlite.SQLiteOpenHelper;&lt;br /&gt;import android.util.Log;&lt;br /&gt;&lt;br /&gt;/** Helper to the database, manages versions and creation */&lt;br /&gt;public class PlaceDataSQL extends SQLiteOpenHelper {&lt;br /&gt; private static final String DATABASE_NAME = "sample.db";&lt;br /&gt; private static final int DATABASE_VERSION = 1;&lt;br /&gt;&lt;br /&gt; private Context context;&lt;br /&gt;&lt;br /&gt; public PlaceDataSQL(Context context) {&lt;br /&gt;  super(context, DATABASE_NAME, null, DATABASE_VERSION);&lt;br /&gt;  this.context = context;&lt;br /&gt; }&lt;br /&gt;&lt;br /&gt; @Override&lt;br /&gt; public void onCreate(SQLiteDatabase db) {&lt;br /&gt;  db.execSQL("CREATE TABLE gallery (id varchar(20), image varchar(2000),caption varchar(160),description varchar(200))");&lt;br /&gt; }&lt;br /&gt;&lt;br /&gt; private void versionUpdation(SQLiteDatabase db) {&lt;br /&gt;&lt;br /&gt; }&lt;br /&gt;&lt;br /&gt; /**&lt;br /&gt;  * Check if the database already exist to avoid re-copying the file each&lt;br /&gt;  * time you open the application.&lt;br /&gt;  *&lt;br /&gt;  * @return true if it exists, false if it doesn't&lt;br /&gt;  */&lt;br /&gt; public boolean checkDataBase(String db) {&lt;br /&gt;&lt;br /&gt;  SQLiteDatabase checkDB = null;&lt;br /&gt;&lt;br /&gt;  try {&lt;br /&gt;   String myPath = "data/data/com.data.pack/databases/" + db;&lt;br /&gt;   checkDB = SQLiteDatabase.openDatabase(myPath, null,&lt;br /&gt;     SQLiteDatabase.OPEN_READONLY);&lt;br /&gt;&lt;br /&gt;  } catch (SQLiteException e) {&lt;br /&gt;&lt;br /&gt;   // database does't exist yet.&lt;br /&gt;&lt;br /&gt;  } catch (Exception e) {&lt;br /&gt;&lt;br /&gt;  }&lt;br /&gt;&lt;br /&gt;  if (checkDB != null) {&lt;br /&gt;&lt;br /&gt;   checkDB.close();&lt;br /&gt;&lt;br /&gt;  }&lt;br /&gt;&lt;br /&gt;  return checkDB != null ? true : false;&lt;br /&gt; }&lt;br /&gt;&lt;br /&gt; @Override&lt;br /&gt; public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {&lt;br /&gt;  if (oldVersion &amp;gt;= newVersion)&lt;br /&gt;   return;&lt;br /&gt;&lt;br /&gt;  if (oldVersion == 1) {&lt;br /&gt;   Log.d("New Version", "Datas can be upgraded");&lt;br /&gt;  }&lt;br /&gt;&lt;br /&gt;  Log.d("Sample Data", "onUpgrade : " + newVersion);&lt;br /&gt; }&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;   &lt;/div&gt;&lt;br /&gt;&lt;br /&gt;Here in the onCreate function the table is created and the onUpgrade function is used to upgrade the table on the next release, for example you had create an application and published it in market and a guy is using your application, now suddenly you like to add another field on your table means you need to change the " DATABASE_VERSION " to 2 and in the onUpgrade funtion you need to write the alter query there. Likewise i had using a funtion checkDataBase(), this is to check whether the database is exist or not.&lt;br /&gt;&lt;br /&gt;Then in the main activity we are calling delete to delete the table content, likewise we will be using a function insertData, inside this function we will be inserting data to the table, like that we will be using getDataAndPopulate(), here we will be retrieving data from the table and displaying in the list.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="innerblock"&gt; &lt;br /&gt;&lt;strong&gt;SqliteDBActivity.java&lt;/strong&gt;&lt;br /&gt;&lt;pre class="innertextblock"&gt;package com.data.pack;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;import java.io.IOException;&lt;br /&gt;import java.io.InputStream;&lt;br /&gt;import java.net.HttpURLConnection;&lt;br /&gt;import java.net.MalformedURLException;&lt;br /&gt;import java.net.URL;&lt;br /&gt;import java.util.ArrayList;&lt;br /&gt;&lt;br /&gt;import android.app.ListActivity;&lt;br /&gt;import android.content.ContentValues;&lt;br /&gt;import android.content.Context;&lt;br /&gt;import android.database.Cursor;&lt;br /&gt;import android.database.sqlite.SQLiteDatabase;&lt;br /&gt;import android.graphics.Bitmap;&lt;br /&gt;import android.graphics.BitmapFactory;&lt;br /&gt;import android.os.Bundle;&lt;br /&gt;import android.view.LayoutInflater;&lt;br /&gt;import android.view.View;&lt;br /&gt;import android.view.ViewGroup;&lt;br /&gt;import android.widget.BaseAdapter;&lt;br /&gt;import android.widget.Button;&lt;br /&gt;import android.widget.ImageView;&lt;br /&gt;import android.widget.TextView;&lt;br /&gt;&lt;br /&gt;public class SqliteDBActivity extends ListActivity {&lt;br /&gt; private static PlaceDataSQL placeData;&lt;br /&gt; private ArrayList&lt;string&gt; id = new ArrayList&lt;string&gt;();&lt;br /&gt; private ArrayList&lt;string&gt; image = new ArrayList&lt;string&gt;();&lt;br /&gt; private ArrayList&lt;string&gt; caption = new ArrayList&lt;string&gt;();&lt;br /&gt; private ArrayList&lt;string&gt; description = new ArrayList&lt;string&gt;();&lt;br /&gt; private Button populate;&lt;br /&gt; &lt;br /&gt;   /** Called when the activity is first created. */&lt;br /&gt;   @Override&lt;br /&gt;   public void onCreate(Bundle savedInstanceState) {&lt;br /&gt;       super.onCreate(savedInstanceState);&lt;br /&gt;       setContentView(R.layout.main);&lt;br /&gt;       populate = (Button) findViewById(R.id.populate);&lt;br /&gt;       placeData = new PlaceDataSQL(this);&lt;br /&gt;      &lt;br /&gt;       SQLiteDatabase db = placeData.getWritableDatabase();&lt;br /&gt;      &lt;br /&gt;       Cursor cursors = getRawEvents("select * from gallery");&lt;br /&gt;&lt;br /&gt;  if (cursors.moveToNext()) {&lt;br /&gt;   populate.setVisibility(View.GONE);&lt;br /&gt;   getDataAndPopulate();&lt;br /&gt;  } else {&lt;br /&gt;   populate.setVisibility(View.VISIBLE);&lt;br /&gt;  }&lt;br /&gt;  &lt;br /&gt;  &lt;br /&gt;       db.delete("gallery", "id=?", new String[] {&lt;br /&gt;    "12" });&lt;br /&gt;       populate.setOnClickListener(new View.OnClickListener() {&lt;br /&gt;   &lt;br /&gt;   @Override&lt;br /&gt;   public void onClick(View v) {&lt;br /&gt;    insertData("1","http://2.bp.blogspot.com/-bkmnlZUKXPs/TjZeTVCgp9I/AAAAAAAAAHI/SPnWJYqq4uQ/s1600/twitter_follow.gif","First","This is the first item");&lt;br /&gt;    insertData("2","http://1.bp.blogspot.com/-HDNFnyRU2Cw/TcuMbBaL70I/AAAAAAAAAGc/7eWN1qnZbAw/s320/seek.JPG","Second","This is the second item");&lt;br /&gt;    getDataAndPopulate();&lt;br /&gt;   }&lt;br /&gt;  });&lt;br /&gt;  &lt;br /&gt;   }&lt;br /&gt;  &lt;br /&gt;   private void insertData(String id, String image, String caption, String description) {&lt;br /&gt;    SQLiteDatabase db = placeData.getWritableDatabase();&lt;br /&gt;    ContentValues values;&lt;br /&gt;  values = new ContentValues();&lt;br /&gt;  values.put("id", id);&lt;br /&gt;  values.put("image", image);&lt;br /&gt;  values.put("caption", caption);&lt;br /&gt;  values.put("description", description);&lt;br /&gt;  &lt;br /&gt;  db.insert("gallery", null, values);&lt;br /&gt;   }&lt;br /&gt;  &lt;br /&gt;   private void getDataAndPopulate() {&lt;br /&gt;    id = new ArrayList&lt;string&gt;();&lt;br /&gt;    image = new ArrayList&lt;string&gt;();&lt;br /&gt;    caption = new ArrayList&lt;string&gt;();&lt;br /&gt;    description = new ArrayList&lt;string&gt;();&lt;br /&gt;    Cursor cursor = getEvents("gallery");&lt;br /&gt;  while (cursor.moveToNext()) {&lt;br /&gt;   String temp_id = cursor.getString(0);&lt;br /&gt;   String temp_image = cursor.getString(1);&lt;br /&gt;   String temp_caption = cursor.getString(2);&lt;br /&gt;   String temp_description = cursor.getString(3);&lt;br /&gt;   id.add(temp_id);&lt;br /&gt;   image.add(temp_image);&lt;br /&gt;   caption.add(temp_caption);&lt;br /&gt;   description.add(temp_description);&lt;br /&gt;  }&lt;br /&gt;  String[] captionArray = (String[]) caption.toArray(&lt;br /&gt;    new String[caption.size()]);&lt;br /&gt;  &lt;br /&gt;  ItemsAdapter itemsAdapter = new ItemsAdapter(&lt;br /&gt;    SqliteDBActivity.this, R.layout.item,&lt;br /&gt;    captionArray);&lt;br /&gt;  setListAdapter(itemsAdapter);&lt;br /&gt;  populate.setVisibility(View.GONE);&lt;br /&gt;   }&lt;br /&gt;  &lt;br /&gt;  &lt;br /&gt;   private class ItemsAdapter extends BaseAdapter {&lt;br /&gt;  String[] items;&lt;br /&gt;&lt;br /&gt;  public ItemsAdapter(Context context, int textViewResourceId,&lt;br /&gt;    String[] items) {&lt;br /&gt;   this.items = items;&lt;br /&gt;  }&lt;br /&gt;&lt;br /&gt;  @Override&lt;br /&gt;  public View getView(final int POSITION, View convertView,&lt;br /&gt;    ViewGroup parent) {&lt;br /&gt;   TextView desc;&lt;br /&gt;   TextView cap;&lt;br /&gt;   View view = convertView;&lt;br /&gt;   ImageView img;&lt;br /&gt;   if (view == null) {&lt;br /&gt;    LayoutInflater vi = (LayoutInflater) getSystemService(Context.LAYOUT_INFLATER_SERVICE);&lt;br /&gt;    view = vi.inflate(R.layout.item, null);&lt;br /&gt;    &lt;br /&gt;   }&lt;br /&gt;   img = (ImageView) view.findViewById(R.id.image);&lt;br /&gt;   cap = (TextView) view.findViewById(R.id.caption);&lt;br /&gt;   &lt;br /&gt;   desc = (TextView) view.findViewById(R.id.description);&lt;br /&gt;   &lt;br /&gt;   cap.setText(caption.get(POSITION));&lt;br /&gt;   desc.setText(description.get(POSITION));&lt;br /&gt;   try {&lt;br /&gt;    URL url = new URL(image.get(POSITION));&lt;br /&gt;    HttpURLConnection connection = (HttpURLConnection) url&lt;br /&gt;      .openConnection();&lt;br /&gt;    connection.setDoInput(true);&lt;br /&gt;    connection.connect();&lt;br /&gt;    InputStream input = connection.getInputStream();&lt;br /&gt;    BitmapFactory.Options bfOptions = new BitmapFactory.Options();&lt;br /&gt;    bfOptions.inDither = false; // Disable Dithering&lt;br /&gt;           // mode&lt;br /&gt;    bfOptions.inPurgeable = true; // Tell to gc that&lt;br /&gt;            // whether it needs&lt;br /&gt;            // free memory, the&lt;br /&gt;            // Bitmap can be&lt;br /&gt;            // cleared&lt;br /&gt;    bfOptions.inInputShareable = true; // Which kind of&lt;br /&gt;             // reference&lt;br /&gt;             // will be used&lt;br /&gt;             // to recover&lt;br /&gt;             // the Bitmap&lt;br /&gt;             // data after&lt;br /&gt;             // being clear,&lt;br /&gt;             // when it will&lt;br /&gt;             // be used in&lt;br /&gt;             // the future&lt;br /&gt;    bfOptions.inTempStorage = new byte[16 * 1024];&lt;br /&gt;    Bitmap bmp = null;&lt;br /&gt;    bmp = BitmapFactory.decodeStream(input, null,&lt;br /&gt;      bfOptions);&lt;br /&gt;    img.setImageBitmap(bmp);&lt;br /&gt;    connection.disconnect();&lt;br /&gt;    input.close();&lt;br /&gt;&lt;br /&gt;   } catch (MalformedURLException e) {&lt;br /&gt;   } catch (IOException e) {&lt;br /&gt;   } catch (IllegalAccessError e) {&lt;br /&gt;   } catch (NullPointerException e) {&lt;br /&gt;   }&lt;br /&gt;&lt;br /&gt;   return view;&lt;br /&gt;  }&lt;br /&gt;&lt;br /&gt;  public int getCount() {&lt;br /&gt;   return items.length;&lt;br /&gt;  }&lt;br /&gt;&lt;br /&gt;  public Object getItem(int position) {&lt;br /&gt;   return position;&lt;br /&gt;  }&lt;br /&gt;&lt;br /&gt;  public long getItemId(int position) {&lt;br /&gt;   return position;&lt;br /&gt;  }&lt;br /&gt; }&lt;br /&gt;  &lt;br /&gt;   private Cursor getRawEvents(String sql) {&lt;br /&gt;  SQLiteDatabase db = (placeData).getReadableDatabase();&lt;br /&gt;  Cursor cursor = db.rawQuery(sql, null);&lt;br /&gt;&lt;br /&gt;  startManagingCursor(cursor);&lt;br /&gt;  return cursor;&lt;br /&gt; }&lt;br /&gt;&lt;br /&gt; private Cursor getEvents(String table) {&lt;br /&gt;  SQLiteDatabase db = (placeData).getReadableDatabase();&lt;br /&gt;  Cursor cursor = db.query(table, null, null, null, null, null, null);&lt;br /&gt;&lt;br /&gt;  startManagingCursor(cursor);&lt;br /&gt;  return cursor;&lt;br /&gt; }&lt;br /&gt;}&lt;br /&gt;&lt;/string&gt;&lt;/string&gt;&lt;/string&gt;&lt;/string&gt;&lt;/string&gt;&lt;/string&gt;&lt;/string&gt;&lt;/string&gt;&lt;/string&gt;&lt;/string&gt;&lt;/string&gt;&lt;/string&gt;&lt;/pre&gt;   &lt;/div&gt;&lt;br /&gt;&lt;br /&gt;In this example i had wrote two types of retrieving methods from the table, by writing the query and specifying the table name itself.&lt;br /&gt;&lt;br /&gt;You can download the full source code&lt;br /&gt;&lt;br /&gt;&lt;div class="downloadblock"&gt; &lt;br /&gt;Download &lt;a href="http://www.ziddu.com/download/16446463/SqliteDB.zip.html"&gt;source&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;Have a good day.&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5197277884634195738-5642260222373976789?l=android-codes-examples.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://android-codes-examples.blogspot.com/feeds/5642260222373976789/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://android-codes-examples.blogspot.com/2011/09/using-sqlite-to-populate-listview-in.html#comment-form' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5197277884634195738/posts/default/5642260222373976789'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5197277884634195738/posts/default/5642260222373976789'/><link rel='alternate' type='text/html' href='http://android-codes-examples.blogspot.com/2011/09/using-sqlite-to-populate-listview-in.html' title='Using Sqlite to populate a ListView in Android'/><author><name>Keerthy</name><uri>http://www.blogger.com/profile/10048420864647222363</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/-Ioqc_gFkmyw/TngnjgEsiyI/AAAAAAAAAHY/OWYTYdWsC_M/s72-c/listview_from_sqlite_populate.JPG' height='72' width='72'/><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5197277884634195738.post-2757336232420378365</id><published>2011-07-31T22:19:00.000-07:00</published><updated>2011-07-31T22:21:30.045-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='key'/><category scheme='http://www.blogger.com/atom/ns#' term='google map'/><category scheme='http://www.blogger.com/atom/ns#' term='android'/><category scheme='http://www.blogger.com/atom/ns#' term='keystore'/><title type='text'>Creating keystore and google api key for android google maps</title><content type='html'>Open the command prompt and follow the steps&lt;br /&gt;&lt;br /&gt;D:\android-sdk-windows-1.6_r1\tools&amp;gt;&lt;span style="font-weight: bold;"&gt;keytool -genkey -v -keystore projectkey.keystore -alias aliasname -keyalg RSA -keysize 2048 -validity 15000&lt;/span&gt;&lt;br /&gt;Enter keystore password: ------------&lt;br /&gt;What is your first and last name?&lt;br /&gt; [Unknown]:  ------------&lt;br /&gt;What is the name of your organizational unit?&lt;br /&gt; [Unknown]:  ------------&lt;br /&gt;What is the name of your organization?&lt;br /&gt; [Unknown]:  ------------&lt;br /&gt;What is the name of your City or Locality?&lt;br /&gt; [Unknown]:  ------------&lt;br /&gt;What is the name of your State or Province?&lt;br /&gt; [Unknown]:  ------------&lt;br /&gt;What is the two-letter country code for this unit?&lt;br /&gt; [Unknown]:  ------------&lt;br /&gt;&lt;br /&gt;D:\android-sdk-windows-1.6_r1\tools&amp;gt;&lt;span style="font-weight: bold;"&gt;keytool -list -alias aliasname -keystore projectkey.keystore&lt;/span&gt;&lt;br /&gt;Enter keystore password:&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;aliasname&lt;/span&gt;, Dec 7, 2010, PrivateKeyEntry,&lt;br /&gt;Certificate fingerprint (MD5): CA:CF:AA:0E:5A:2B:88:C8:64:F1:FA:F7:29:21:50:FF&lt;br /&gt;&lt;br /&gt;Using your Certificate fingerprint (MD5) get google api key from this site&lt;br /&gt;http://code.google.com/android/maps-api-signup.html&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5197277884634195738-2757336232420378365?l=android-codes-examples.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://android-codes-examples.blogspot.com/feeds/2757336232420378365/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://android-codes-examples.blogspot.com/2011/07/creating-keystore-and-google-api-key.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5197277884634195738/posts/default/2757336232420378365'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5197277884634195738/posts/default/2757336232420378365'/><link rel='alternate' type='text/html' href='http://android-codes-examples.blogspot.com/2011/07/creating-keystore-and-google-api-key.html' title='Creating keystore and google api key for android google maps'/><author><name>Keerthy</name><uri>http://www.blogger.com/profile/10048420864647222363</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5197277884634195738.post-365753301068125350</id><published>2011-07-30T01:52:00.001-07:00</published><updated>2011-07-30T01:56:35.560-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='run apk'/><category scheme='http://www.blogger.com/atom/ns#' term='install'/><category scheme='http://www.blogger.com/atom/ns#' term='apk'/><category scheme='http://www.blogger.com/atom/ns#' term='insallation'/><category scheme='http://www.blogger.com/atom/ns#' term='android'/><title type='text'>How to Install APK Files on Android Emulator using command prompt (cmd) without eclipse</title><content type='html'>Here we are going to see how to run (install) the apk file to the Android emulator without using eclipse.&lt;br /&gt;&lt;br /&gt;Installing in different OS:&lt;br /&gt;&lt;br /&gt;1.   a Windows, Mac OS X (intel) or Linux (i386) powered computer&lt;br /&gt;2.   the Android Software Development Kit (SDK).&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;You do not need Eclipse or Eclipse-plugin the Android Development Tools (ADT). The last two are required for the software development for Android, but are not necessary for application evaluation on emulator.&lt;br /&gt;&lt;br /&gt;First download the Android SDK, which may be obtained here: http://code.google.com/android/download.html&lt;br /&gt;&lt;br /&gt;Follow the instruction, described in the topic "Installing SDK" from the Google manual, which is located here: http://code.google.com/android/intro/installing.html#installingsdk or you can go with &lt;a href="http://android-codes-examples.blogspot.com/search/label/installation"&gt;http://android-codes-examples.blogspot.com/search/label/installation&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Steps need to be followed:&lt;br /&gt;&lt;br /&gt;   Installing the SDK&lt;br /&gt;&lt;br /&gt;   After downloading the SDK, unpack the .zip archive to a suitable location on your machine. For the rest of this document, we will refer to the directory where you installed the SDK as $SDK_ROOT.&lt;br /&gt;&lt;br /&gt;   Optionally, you can add $SDK_ROOT/tools and $SDK_ROOT/platform-tools to your path:&lt;br /&gt;&lt;br /&gt;       On Linux, edit your ~/.bash_profile or ~/.bashrc file. Look for a line that sets the PATH environment variable and add the full path to your $SDK_ROOT/tools to it. If you don't see a line setting the path, you can add one:&lt;br /&gt;&lt;br /&gt;       export PATH=${PATH}: &lt;path to="" your="" sdk_root="" tools=""&gt;&lt;br /&gt;       On a Mac, look in your home directory for .bash_profile and proceed as for Linux. You can create the .bash_profile, if you haven't already set one up on your machine.&lt;br /&gt;       On Windows, right click on My Computer, and select Properties. Under the Advanced tab, hit the Environment Variables button, and in the dialog that comes up, double-click on Path under System Variables, and add the full path to the tools/ directory under $SDK_ROOT to it.&lt;br /&gt;&lt;br /&gt;   Adding $SDK_ROOT/tools to your path lets you run Android Debug Bridge (adb) and the other command line tools without needing to supply the full path to the tools directory. Note that, if you update your SDK, you should remember to update your PATH settings to point to the new location, if different.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;-=-=-=-=-=-=-=-=-=-=-=-=-=-=--=-=-=-=-=-=-=-=-=-=-=-=-=-=-&lt;br /&gt;&lt;br /&gt;Now navigate to the $SDK_ROOT/tools directory and execute the file 'emulator.exe'. This is the Android emulator itself. Wait couple of minutes until it loads. Now you must see the home screen of Android - wallpapers with snowy mountains on the background and the navigation bar below.&lt;br /&gt;&lt;br /&gt;Enjoyed? Ok! Let's continue. Download and save locally a APK-file which you want to install/evaluate on the emulator. We recommend to save the APK file directly in the $SDK_ROOT/tools directory.&lt;br /&gt;&lt;br /&gt;Note: APK probably stands for "Android package". It's an application distribution unit in the Android environment. If you are coming from the Windows Mobile world, think of APK as of CAB-files.&lt;br /&gt;&lt;br /&gt;Ok, now start the console ("Start -&amp;gt; Run... -&amp;gt; type 'cmd'" for Windows computers). Type-in the following command: &lt;span style="font-weight: bold;"&gt;adb install $APK&lt;/span&gt; where $APK is the name of the APK file. For example: &lt;span style="font-weight: bold;"&gt;adb install Snake.apk&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;If you receive a "path not found" error, then you probably either didn't add path to the $SDK_ROOT/tools directory to your system PATH settings or the application you are trying to install is not in the &lt;span style="font-weight: bold;"&gt;$SDK_ROOT/tools or $SDK_ROOT/platform-tools&lt;/span&gt; directory.&lt;br /&gt;&lt;br /&gt;If all went without errors then you should be seeing your newly installed APK on the emulator.&lt;/path&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5197277884634195738-365753301068125350?l=android-codes-examples.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://android-codes-examples.blogspot.com/feeds/365753301068125350/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://android-codes-examples.blogspot.com/2011/07/how-to-install-apk-files-on-android.html#comment-form' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5197277884634195738/posts/default/365753301068125350'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5197277884634195738/posts/default/365753301068125350'/><link rel='alternate' type='text/html' href='http://android-codes-examples.blogspot.com/2011/07/how-to-install-apk-files-on-android.html' title='How to Install APK Files on Android Emulator using command prompt (cmd) without eclipse'/><author><name>Keerthy</name><uri>http://www.blogger.com/profile/10048420864647222363</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5197277884634195738.post-2141057959872573998</id><published>2011-07-11T20:30:00.000-07:00</published><updated>2011-08-05T23:11:28.998-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='border'/><category scheme='http://www.blogger.com/atom/ns#' term='TextView'/><category scheme='http://www.blogger.com/atom/ns#' term='radius'/><category scheme='http://www.blogger.com/atom/ns#' term='layout'/><category scheme='http://www.blogger.com/atom/ns#' term='linearlayout'/><category scheme='http://www.blogger.com/atom/ns#' term='android'/><category scheme='http://www.blogger.com/atom/ns#' term='corner'/><category scheme='http://www.blogger.com/atom/ns#' term='gradient'/><title type='text'>Design a linearlayout or textview and any component in android with border,corner radius and gradient</title><content type='html'>We can design a linearlayout or relativelayout or framelayout... or even we can design a text view with this coding. The sample is given for linear layout, the result will be like this&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/-G7w_hm-F8fA/ThvA4bzncDI/AAAAAAAAAGo/Iyhwa88UqNo/s1600/border_corner_layout_design.JPG"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 320px; height: 257px;" src="http://2.bp.blogspot.com/-G7w_hm-F8fA/ThvA4bzncDI/AAAAAAAAAGo/Iyhwa88UqNo/s320/border_corner_layout_design.JPG" alt="" id="BLOGGER_PHOTO_ID_5628304235099025458" border="0" /&gt;&lt;/a&gt;here i had given corner radius for left top corner and left bottom corner for the linear layout, and i applied border for whole linearlayout.&lt;br /&gt;&lt;br /&gt;For design the layout we need to use this xml file&lt;br /&gt;&lt;br /&gt;&lt;div class="innerblock"&gt;&lt;br /&gt;&lt;strong&gt;layout_border.xml&lt;/strong&gt;&lt;br /&gt;&lt;pre class="innertextblock"&gt;&amp;lt;?xml version="1.0" encoding="utf-8"?&amp;gt;&lt;br /&gt;&amp;lt;layer-list xmlns:android="http://schemas.android.com/apk/res/android"&amp;gt;&lt;br /&gt;&amp;lt;item&amp;gt;&lt;br /&gt; &amp;lt;shape android:shape="rectangle"&amp;gt;&lt;br /&gt;  &amp;lt;stroke android:width="2dp" android:height="2dp"&lt;br /&gt;   android:color="#FF0000" /&amp;gt;&lt;br /&gt;  &amp;lt;solid android:color="#000000" /&amp;gt;&lt;br /&gt;  &amp;lt;padding android:left="1dp" android:top="1dp" android:right="1dp"&lt;br /&gt;   android:bottom="1dp" /&amp;gt;&lt;br /&gt;&lt;br /&gt;  &amp;lt;corners android:radius="1dp" android:bottomRightRadius="5dp"&lt;br /&gt;   android:bottomLeftRadius="0dp" android:topLeftRadius="5dp"&lt;br /&gt;   android:topRightRadius="0dp" /&amp;gt;&lt;br /&gt; &amp;lt;/shape&amp;gt;&lt;br /&gt;&amp;lt;/item&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;/layer-list&amp;gt;&lt;br /&gt;&lt;/pre&gt;   &lt;/div&gt;&lt;br /&gt;&lt;br /&gt;and we need to set the xml file as background for the linear layout as&lt;br /&gt;&lt;br /&gt;&lt;div class="innerblock"&gt;&lt;br /&gt;&lt;strong&gt;In the main xml&lt;/strong&gt;&lt;br /&gt;&lt;pre class="innertextblock"&gt;&amp;lt;LinearLayout android:layout_gravity="center"&lt;br /&gt;android:layout_width="200dp" android:layout_height="200dp" android:background="@drawable/layout_border" /&amp;gt;&lt;br /&gt;&lt;/pre&gt;   &lt;/div&gt;&lt;br /&gt;&lt;br /&gt;For gradient effect you can use the below xml, this will not be in the source, you can put this file and set this as background for gradient effect&lt;br /&gt;&lt;br /&gt;&lt;div class="innerblock"&gt;  &lt;br /&gt;&lt;strong&gt;layout_gradient.xml&lt;/strong&gt;&lt;br /&gt;&lt;pre class="innertextblock"  &gt;&lt;br /&gt;&amp;lt;?xml version="1.0" encoding="utf-8"?&gt;&lt;br /&gt;&amp;lt;shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle"&gt;&lt;br /&gt;    &amp;lt;gradient&lt;br /&gt;        android:startColor="#ffa5ba"&lt;br /&gt;        android:endColor="#ff92af"&lt;br /&gt;        android:angle="150"/&gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;/shape&gt;&lt;br /&gt;&lt;/pre&gt;   &lt;/div&gt;&lt;br /&gt;&lt;br /&gt;The code is fulling checked so you can run the code after downloading it itself.&lt;br /&gt;&lt;br /&gt;You can download the full source code&lt;br /&gt;&lt;br /&gt;&lt;div class="downloadblock"&gt;&lt;br /&gt;Download &lt;a href="http://www.ziddu.com/download/15656821/LayoutBorder.zip.html"&gt;source&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;Have a good day.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5197277884634195738-2141057959872573998?l=android-codes-examples.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://android-codes-examples.blogspot.com/feeds/2141057959872573998/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://android-codes-examples.blogspot.com/2011/07/design-linearlayout-or-textview-and-any.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5197277884634195738/posts/default/2141057959872573998'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5197277884634195738/posts/default/2141057959872573998'/><link rel='alternate' type='text/html' href='http://android-codes-examples.blogspot.com/2011/07/design-linearlayout-or-textview-and-any.html' title='Design a linearlayout or textview and any component in android with border,corner radius and gradient'/><author><name>Keerthy</name><uri>http://www.blogger.com/profile/10048420864647222363</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/-G7w_hm-F8fA/ThvA4bzncDI/AAAAAAAAAGo/Iyhwa88UqNo/s72-c/border_corner_layout_design.JPG' height='72' width='72'/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5197277884634195738.post-8911195318566730942</id><published>2011-07-04T05:02:00.000-07:00</published><updated>2011-07-04T05:05:01.256-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='answer'/><category scheme='http://www.blogger.com/atom/ns#' term='question'/><category scheme='http://www.blogger.com/atom/ns#' term='interview'/><category scheme='http://www.blogger.com/atom/ns#' term='android'/><title type='text'>Android interview questions</title><content type='html'>&lt;!--[if gte mso 9]&gt;&lt;xml&gt;  &lt;w:worddocument&gt;   &lt;w:view&gt;Normal&lt;/w:View&gt;   &lt;w:zoom&gt;0&lt;/w:Zoom&gt;   &lt;w:trackmoves/&gt;   &lt;w:trackformatting/&gt;   &lt;w:punctuationkerning/&gt;   &lt;w:validateagainstschemas/&gt;   &lt;w:saveifxmlinvalid&gt;false&lt;/w:SaveIfXMLInvalid&gt;   &lt;w:ignoremixedcontent&gt;false&lt;/w:IgnoreMixedContent&gt;   &lt;w:alwaysshowplaceholdertext&gt;false&lt;/w:AlwaysShowPlaceholderText&gt;   &lt;w:donotpromoteqf/&gt;   &lt;w:lidthemeother&gt;EN-US&lt;/w:LidThemeOther&gt;   &lt;w:lidthemeasian&gt;X-NONE&lt;/w:LidThemeAsian&gt;   &lt;w:lidthemecomplexscript&gt;X-NONE&lt;/w:LidThemeComplexScript&gt;   &lt;w:compatibility&gt;    &lt;w:breakwrappedtables/&gt;    &lt;w:snaptogridincell/&gt;    &lt;w:wraptextwithpunct/&gt;    &lt;w:useasianbreakrules/&gt;    &lt;w:dontgrowautofit/&gt;    &lt;w:splitpgbreakandparamark/&gt;    &lt;w:dontvertaligncellwithsp/&gt;    &lt;w:dontbreakconstrainedforcedtables/&gt;    &lt;w:dontvertalignintxbx/&gt;    &lt;w:word11kerningpairs/&gt;    &lt;w:cachedcolbalance/&gt;   &lt;/w:Compatibility&gt;   &lt;w:browserlevel&gt;MicrosoftInternetExplorer4&lt;/w:BrowserLevel&gt;   &lt;m:mathpr&gt;    &lt;m:mathfont val="Cambria Math"&gt;    &lt;m:brkbin val="before"&gt;    &lt;m:brkbinsub val="&amp;#45;-"&gt;    &lt;m:smallfrac val="off"&gt;    &lt;m:dispdef/&gt;    &lt;m:lmargin val="0"&gt;    &lt;m:rmargin val="0"&gt;    &lt;m:defjc val="centerGroup"&gt;    &lt;m:wrapindent val="1440"&gt;    &lt;m:intlim val="subSup"&gt;    &lt;m:narylim val="undOvr"&gt;   &lt;/m:mathPr&gt;&lt;/w:WordDocument&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;  &lt;w:latentstyles deflockedstate="false" defunhidewhenused="true" defsemihidden="true" defqformat="false" defpriority="99" latentstylecount="267"&gt;   &lt;w:lsdexception locked="false" priority="0" semihidden="false" unhidewhenused="false" qformat="true" name="Normal"&gt;   &lt;w:lsdexception locked="false" priority="9" semihidden="false" unhidewhenused="false" qformat="true" name="heading 1"&gt;   &lt;w:lsdexception locked="false" priority="9" qformat="true" name="heading 2"&gt;   &lt;w:lsdexception locked="false" priority="9" qformat="true" name="heading 3"&gt;   &lt;w:lsdexception locked="false" priority="9" qformat="true" name="heading 4"&gt;   &lt;w:lsdexception locked="false" priority="9" qformat="true" name="heading 5"&gt;   &lt;w:lsdexception locked="false" priority="9" qformat="true" name="heading 6"&gt;   &lt;w:lsdexception locked="false" priority="9" qformat="true" name="heading 7"&gt;   &lt;w:lsdexception locked="false" priority="9" qformat="true" name="heading 8"&gt;   &lt;w:lsdexception locked="false" priority="9" qformat="true" name="heading 9"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 1"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 2"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 3"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 4"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 5"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 6"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 7"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 8"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 9"&gt;   &lt;w:lsdexception locked="false" priority="35" qformat="true" name="caption"&gt;   &lt;w:lsdexception locked="false" priority="10" semihidden="false" unhidewhenused="false" qformat="true" name="Title"&gt;   &lt;w:lsdexception locked="false" priority="1" name="Default Paragraph Font"&gt;   &lt;w:lsdexception locked="false" priority="11" semihidden="false" unhidewhenused="false" qformat="true" name="Subtitle"&gt;   &lt;w:lsdexception locked="false" priority="22" semihidden="false" unhidewhenused="false" qformat="true" name="Strong"&gt;   &lt;w:lsdexception locked="false" priority="20" semihidden="false" unhidewhenused="false" qformat="true" name="Emphasis"&gt;   &lt;w:lsdexception locked="false" priority="59" semihidden="false" unhidewhenused="false" name="Table Grid"&gt;   &lt;w:lsdexception locked="false" unhidewhenused="false" name="Placeholder Text"&gt;   &lt;w:lsdexception locked="false" priority="1" semihidden="false" unhidewhenused="false" qformat="true" name="No Spacing"&gt;   &lt;w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading"&gt;   &lt;w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List"&gt;   &lt;w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid"&gt;   &lt;w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1"&gt;   &lt;w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2"&gt;   &lt;w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1"&gt;   &lt;w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2"&gt;   &lt;w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1"&gt;   &lt;w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2"&gt;   &lt;w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3"&gt;   &lt;w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List"&gt;   &lt;w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading"&gt;   &lt;w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List"&gt;   &lt;w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid"&gt;   &lt;w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 1"&gt;   &lt;w:lsdexception locked="false" unhidewhenused="false" name="Revision"&gt;   &lt;w:lsdexception locked="false" priority="34" semihidden="false" unhidewhenused="false" qformat="true" name="List Paragraph"&gt;   &lt;w:lsdexception locked="false" priority="29" semihidden="false" unhidewhenused="false" qformat="true" name="Quote"&gt;   &lt;w:lsdexception locked="false" priority="30" semihidden="false" unhidewhenused="false" qformat="true" name="Intense Quote"&gt;   &lt;w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="19" semihidden="false" unhidewhenused="false" qformat="true" name="Subtle Emphasis"&gt;   &lt;w:lsdexception locked="false" priority="21" semihidden="false" unhidewhenused="false" qformat="true" name="Intense Emphasis"&gt;   &lt;w:lsdexception locked="false" priority="31" semihidden="false" unhidewhenused="false" qformat="true" name="Subtle Reference"&gt;   &lt;w:lsdexception locked="false" priority="32" semihidden="false" unhidewhenused="false" qformat="true" name="Intense Reference"&gt;   &lt;w:lsdexception locked="false" priority="33" semihidden="false" unhidewhenused="false" qformat="true" name="Book Title"&gt;   &lt;w:lsdexception locked="false" priority="37" name="Bibliography"&gt;   &lt;w:lsdexception locked="false" priority="39" qformat="true" name="TOC Heading"&gt;  &lt;/w:LatentStyles&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 10]&gt; &lt;style&gt;  /* Style Definitions */  table.MsoNormalTable  {mso-style-name:"Table Normal";  mso-tstyle-rowband-size:0;  mso-tstyle-colband-size:0;  mso-style-noshow:yes;  mso-style-priority:99;  mso-style-qformat:yes;  mso-style-parent:"";  mso-padding-alt:0in 5.4pt 0in 5.4pt;  mso-para-margin-top:0in;  mso-para-margin-right:0in;  mso-para-margin-bottom:10.0pt;  mso-para-margin-left:0in;  line-height:115%;  mso-pagination:widow-orphan;  font-size:11.0pt;  font-family:"Calibri","sans-serif";  mso-ascii-font-family:Calibri;  mso-ascii-theme-font:minor-latin;  mso-hansi-font-family:Calibri;  mso-hansi-theme-font:minor-latin;} &lt;/style&gt; &lt;![endif]--&gt;  &lt;p class="MsoNormal"&gt;&lt;b&gt;What is an action?&lt;/b&gt;&lt;br /&gt;The Intent Sender desires something or doing some task&lt;br /&gt;&lt;br /&gt;&lt;b&gt;What is activity?&lt;/b&gt;&lt;br /&gt;A single screen in an application, with supporting Java code.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;What is intent in Android?&lt;/b&gt;&lt;br /&gt;A class (Intent) will describes what a caller desires to do. The caller will send this intent to Android's intent resolver, which finds the most suitable activity for the intent. E.g. opening a PDF document is an intent, and the Adobe Reader apps will be the perfect activity for that intent(class).&lt;br /&gt;&lt;br /&gt;&lt;b&gt;What is a Sticky Intent?&lt;/b&gt;&lt;br /&gt;sendStickyBroadcast() performs a sendBroadcast (Intent) known as sticky, i.e. the Intent you are sending stays around after the broadcast is complete, so that others can quickly retrieve that data through the return value of registerReceiver (BroadcastReceiver, IntentFilter). In all other ways, this behaves the same as sendBroadcast(Intent).&lt;/p&gt;  &lt;p class="MsoNormal"&gt;One example of a sticky broadcast sent via the operating system is ACTION_BATTERY_CHANGED. When you call registerReceiver() for that action -- even with a null BroadcastReceiver -- you get the Intent that was last broadcast for that action. Hence, you can use this to find the state of the battery without necessarily registering for all future state changes in the battery.&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="mso-bidi-font-weight:bold"&gt;Is there anyway to determine if an Intent passed into a BroadcastReceiver's onReceive is the result of a sticky Boradcast Intent, or if it was just sent?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Example for sticky broadcast&lt;/b&gt;&lt;br /&gt;When you call registerReceiver() for that action -- even with a null BroadcastReceiver -- you get the Intent that was last broadcast for that action. Hence, you can use this to find the state of the battery without necessarily registering for all future state changes in the battery.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;How the nine-patch Image different from a regular bitmap? or Different between nine-patch Image vs regular Bitmap Image&lt;/b&gt;&lt;br /&gt;It is one of a resizable bitmap resource which is being used as backgrounds or other images on the device. The NinePatch class allows drawing a bitmap in nine sections. The four corners are unscaled; the middle of the image is scaled in both axes, the four edges are scaled into one axis.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;What Programming languages does Android support for application development?&lt;/b&gt;&lt;br /&gt;Android applications supports using Java Programming Language. which is coded in Java and complied using Android SDK.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;What is a resource?&lt;/b&gt;&lt;br /&gt;A user defined JSON, XML, bitmap, or other file, injected into the application build process, which can later be loaded from code.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;How will you record a phone call in Android? or How to handle on Audio Stream for a call in Android?&lt;/b&gt;&lt;br /&gt;Permissions.PROCESS_OUTGOING_CALLS: Will Allows an application to monitor, modify, or abort outgoing calls. So through that we can monitor the Phone calls.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;What's the difference between class, file and activity in android?&lt;/b&gt;&lt;br /&gt;Class - The Class file is complied from .java file. Android will use this .class file to produce the executable apk.&lt;br /&gt;File - It is a block of resources, srbitrary information. It can be any file type.&lt;br /&gt;Activity - An activity is the equivalent of a Frame/Window in GUI toolkits. It is not a file or a file type it is just a class that can be extended in Android for loading UI elements on view.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Does Android support the Bluetooth serial port profile?&lt;/b&gt;&lt;br /&gt;A. Yes.&lt;br /&gt;&lt;b&gt;Can an application be started on powerup?&lt;/b&gt;&lt;br /&gt;A. Yes.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;What is APK format.&lt;/b&gt;&lt;br /&gt;The APK file is compressed AndroidManifest.xml file with extension .apk, Which have application code (.dex files), resource files, and other files which is compressed into single .apk file.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;How to Translate in android&lt;/b&gt;&lt;br /&gt;The Google translator translates the data of one language into another language by using XMPP to transmit data. You can type the message in English and select the language which is understood by the citizens of the country in order to reach the message to the citizens.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;What is an action?&lt;/b&gt;&lt;br /&gt;A description of something that an Intent sender desires.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;What are the advantages of Android?&lt;/b&gt;&lt;br /&gt;The following are the advantages of Android:&lt;br /&gt;&lt;br /&gt;* The customer will be benefited from wide range of mobile applications to choose, since the monopoly of wireless carriers like Orange and AT&amp;amp;T will be broken by Google Android.&lt;br /&gt;* Features like weather details, live RSS feeds, opening screen, icon on the opening screen can be customized&lt;br /&gt;* Innovative products like the location-aware services, location of a nearby convenience store etc., are some of the additive facilities in Android.&lt;/p&gt;  &lt;p class="MsoNormal"&gt; &lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;b&gt;What is the TTL (Time to Live)? Why is it required?&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;TTL is a value in data packet of Internet Protocol. It communicates to the network router whether or not the packet should be in the network for too long or discarded. Usually, data packets might not be transmitted to their intended destination within a stipulated period of time. The TTL value is set by a system default value which is an 8-bit binary digit field in the header of the packet. The purpose of TTL is, it would specify certain time limit in seconds, for transmitting the packet header. When the time is exhausted, the packet would be discarded. Each router receives the subtracts count, when the packet is discarded, and when it becomes zero, the router detects the discarded packets and sends a message, Internet Control Message Protocol message back to the originating host.&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;b&gt;How is nine-patch image different from a regular bitmap?&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;It is a resizable bitmap resource that can be used for backgrounds or other images on the device. The NinePatch class permits drawing a bitmap in nine sections. The four corners are unscaled; the four edges are scaled in one axis, and the middle is scaled in both axes.&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;b&gt;Explain IP datagram, Fragmentation and MTU ?&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;IP datagram can be used to describe a portion of IP data. Each IP datagram has set of fields arranged in an order. The order is specific which helps to decode and read the stream easily. IP datagram has fields like Version, header length, Type of service, Total length, checksum, flag, protocol, Time to live, Identification, source and destination ip address, padding, options and payload.&lt;/p&gt;  &lt;p class="MsoNormal"&gt;MTU:- Maximum Transmission Unit is the size of the largest packet that a communication protocol can pass. The size can be fixed by some standard or decided at the time of connection&lt;/p&gt;  &lt;p class="MsoNormal"&gt;Fragmentation is a process of breaking the IP packets into smaller pieces. Fragmentation is needed when the datagram is larger than the MTU. Each fragment becomes a datagram in itself and transmitted independently from source. When received by destination they are reassembled.&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;b&gt;Explain about the exceptions of Android?&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="mso-bidi-font-weight:bold"&gt;The following are the exceptions that are supported by Android&lt;br /&gt;* InflateException : When an error conditions are occurred, this exception is thrown&lt;br /&gt;* Surface.OutOfResourceException: When a surface is not created or resized, this exception is thrown&lt;br /&gt;* SurfaceHolder.BadSurfaceTypeException: This exception is thrown from the lockCanvas() method, when invoked on a Surface whose is SURFACE_TYPE_PUSH_BUFFERS&lt;br /&gt;* WindowManager.BadTokenException: This exception is thrown at the time of trying to add view an invalid WindowManager.LayoutParamstoken.&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;b&gt;Describe Android Application Architecture?&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="mso-bidi-font-weight:bold"&gt;Android Application Architecture has the following components:&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="mso-bidi-font-weight:bold"&gt;* Services ? like Network Operation&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="mso-bidi-font-weight:bold"&gt;* Intent - To perform inter-communication between activities or services&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="mso-bidi-font-weight:bold"&gt;* Resource Externalization - such as strings and graphics&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="mso-bidi-font-weight:bold"&gt;* Notification signaling users - light, sound, icon, notification, dialog etc.&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="mso-bidi-font-weight:bold"&gt;* Content Providers - They share data between applications&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;b&gt;What are the advantages of Android?&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="mso-bidi-font-weight:bold"&gt;The following are the advantages of Android:&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="mso-bidi-font-weight:bold"&gt;* The customer will be benefited from wide range of mobile applications to choose, since the monopoly of wireless carriers like AT&amp;amp;T and Orange will be broken by Google Android.&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="mso-bidi-font-weight:bold"&gt;* Features like weather details, live RSS feeds, opening screen, icon on the opening screen can be customized&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="mso-bidi-font-weight:bold"&gt;* Innovative products like the location-aware services, location of a nearby convenience store etc., are some of the additive facilities in Android.&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;b&gt;How to select more than one option from list in android xml file? Give an example.&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="mso-bidi-font-weight:bold"&gt;Specify android id, layout height and width as depicted in the following example.&lt;br /&gt;&lt;br /&gt;&lt;listview id="@+id/ListView01" layout_height="wrap_content" layout_width="fill_parent"&gt;&lt;/listview&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;b&gt;Explain about the exceptions of Android?&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="mso-bidi-font-weight:bold"&gt;The following are the exceptions that are supported by Android&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="mso-bidi-font-weight:bold"&gt;* InflateException : When an error conditions are occurred, this exception is thrown&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="mso-bidi-font-weight:bold"&gt;* Surface.OutOfResourceException: When a surface is not created or resized, this exception is thrown&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="mso-bidi-font-weight:bold"&gt;* SurfaceHolder.BadSurfaceTypeException: This exception is thrown from the lockCanvas() method, when invoked on a Surface whose is SURFACE_TYPE_PUSH_BUFFERS&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="mso-bidi-font-weight:bold"&gt;* WindowManager.BadTokenException: This exception is thrown at the time of trying to add view an invalid WindowManager.LayoutParamstoken.&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;b&gt;What are the features of Android?&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="mso-bidi-font-weight:bold"&gt;*Components can be reused and replaced by the application framework.&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="mso-bidi-font-weight:bold"&gt;*Optimized DVM for mobile devices&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="mso-bidi-font-weight:bold"&gt;*SQLite enables to store the data in a structured manner.&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="mso-bidi-font-weight:bold"&gt;*Supports GSM telephone and Bluetooth, WiFi, 3G and EDGE technologies&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="mso-bidi-font-weight:bold"&gt;*The development is a combination of a device emulator, debugging tools, memory profiling and plug-in for Eclipse IDE.&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;b&gt;What are the differences between a domain &lt;span id="IL_AD7"&gt;&lt;span class="ilad"&gt;and a&lt;/span&gt;&lt;/span&gt; workgroup?&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="mso-bidi-font-weight:bold"&gt;In a domain, one or more computer can be a server to manage the network. On the other hand in a workgroup all computers are peers having no control on each other. In a domain, user doesn?t need an account to logon on a specific computer if an account is available on the domain. In a work group user needs to have an account for every computer.&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="mso-bidi-font-weight:bold"&gt;In a domain, Computers can be on different local networks. In a work group all computers needs to be a part of the same local network.&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;b&gt;What is android?&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="mso-bidi-font-weight:bold"&gt;Android is a stack of &lt;span class="ilad"&gt;&lt;span id="IL_AD3"&gt;software for mobile&lt;/span&gt;&lt;/span&gt; devices which has Operating System, &lt;span class="ilad"&gt;&lt;span id="IL_AD1"&gt;middleware&lt;/span&gt;&lt;/span&gt; and some key applications. The &lt;span class="ilad"&gt;&lt;span id="IL_AD4"&gt;application&lt;/span&gt;&lt;/span&gt; executes within its own process and its own instance of Dalvik &lt;span class="ilad"&gt;&lt;span id="IL_AD7"&gt;Virtual Machine&lt;/span&gt;&lt;/span&gt;. Many Virtual Machines run efficiently by a DVM device. DVM executes Java languages byte code which later &lt;span class="ilad"&gt;&lt;span id="IL_AD5"&gt;transforms&lt;/span&gt;&lt;/span&gt; into .dex format files.&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;b&gt;What is needed to make a &lt;span id="IL_AD2"&gt;&lt;span class="ilad"&gt;multiple choice&lt;/span&gt;&lt;/span&gt; list with a custom view for each row?&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="mso-bidi-font-weight:bold"&gt;Multiple choice list can be viewed by making the &lt;span class="ilad"&gt;&lt;span id="IL_AD4"&gt;CheckBox&lt;/span&gt;&lt;/span&gt; android:id value be “@android:id /text1". That is the ID used by Android for the CheckedTextView in simple_list_item_multiple_choice.&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;b&gt;What are the dialog boxes that are supported in android? Explain.&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="mso-bidi-font-weight:bold"&gt;Android supports 4 dialog boxes:&lt;br /&gt;&lt;br /&gt;AlertDialog : An alert &lt;span class="ilad"&gt;&lt;span id="IL_AD7"&gt;dialog box&lt;/span&gt;&lt;/span&gt; supports 0 to 3 buttons and a list of selectable elements, including check boxes and &lt;span class="ilad"&gt;&lt;span id="IL_AD6"&gt;radio buttons&lt;/span&gt;&lt;/span&gt;. Among the other dialog boxes, the most suggested dialog box is the alert dialog box.&lt;br /&gt;&lt;br /&gt;ProgressDialog: This dialog box displays a progress wheel or a progress &lt;span class="ilad"&gt;&lt;span id="IL_AD8"&gt;bar&lt;/span&gt;&lt;/span&gt;. It is an extension of AlertDialog and supports adding buttons.&lt;br /&gt;&lt;br /&gt;DatePickerDialog: This dialog box is used for selecting a date by the user.&lt;br /&gt;&lt;br /&gt;TimePickerDialog: This dialog box is used for selecting &lt;span class="ilad"&gt;&lt;span id="IL_AD3"&gt;time by&lt;/span&gt;&lt;/span&gt; the user.&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="mso-bidi-font-weight:bold"&gt; &lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;b&gt;How to Remove &lt;span id="IL_AD3"&gt;&lt;span class="ilad"&gt;Desktop icons&lt;/span&gt;&lt;/span&gt; and Widgets?&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="mso-bidi-font-weight:bold"&gt;Press and Hold the icon or widget. The phone will vibrate and on the bottom of the phone you will see an option to remove. While still holding the icon or widget &lt;span class="ilad"&gt;&lt;span id="IL_AD9"&gt;drag&lt;/span&gt;&lt;/span&gt; it to the remove &lt;span class="ilad"&gt;&lt;span id="IL_AD10"&gt;button&lt;/span&gt;&lt;/span&gt;. Once remove &lt;span class="ilad"&gt;&lt;span id="IL_AD5"&gt;turns&lt;/span&gt;&lt;/span&gt; red drop the item and it is gone&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom:12.0pt;line-height:normal"&gt;&lt;b&gt;&lt;span style="font-size:12.0pt;font-family:&amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;"&gt;Common Tricky questions&lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 12.0pt;font-family:&amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;mso-fareast-font-family:&amp;quot;Times New Roman&amp;quot;"&gt;&lt;/span&gt;&lt;/p&gt;  &lt;ul type="disc"&gt;&lt;li class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;      line-height:normal;mso-list:l2 level1 lfo1;tab-stops:list .5in"&gt;&lt;span style="font-size:12.0pt;font-family:&amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;mso-fareast-font-family:      &amp;quot;Times New Roman&amp;quot;"&gt;Remember that the GUI layer doesn't request data      directly from the web; data is always loaded from a local database.&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;      line-height:normal;mso-list:l2 level1 lfo1;tab-stops:list .5in"&gt;&lt;span style="font-size:12.0pt;font-family:&amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;mso-fareast-font-family:      &amp;quot;Times New Roman&amp;quot;"&gt;The service layer periodically updates the local      database.&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;      line-height:normal;mso-list:l2 level1 lfo1;tab-stops:list .5in"&gt;&lt;span style="font-size:12.0pt;font-family:&amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;mso-fareast-font-family:      &amp;quot;Times New Roman&amp;quot;"&gt;What is the risk in blocking the Main thread when      performing a lengthy operation such as web access or heavy computation?      Application_Not_Responding exception will be thrown which will crash and      restart the application.&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;      line-height:normal;mso-list:l2 level1 lfo1;tab-stops:list .5in"&gt;&lt;span style="font-size:12.0pt;font-family:&amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;mso-fareast-font-family:      &amp;quot;Times New Roman&amp;quot;"&gt;Why is List View not recommended to have active      components? Clicking on the active text box will pop up the software      keyboard but this will resize the list, removing focus from the clicked      element.&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;  &lt;p class="MsoNormal"&gt;&lt;b style="mso-bidi-font-weight:normal"&gt;&lt;span style="font-size:12.0pt;mso-bidi-font-size:11.0pt;line-height:115%"&gt;For senior employees&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom:12.0pt;line-height:normal"&gt;&lt;span style="font-size:12.0pt;font-family:&amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;"&gt;Beyond a certain level of experience, the job interview questions cease to be "difference between abstract class and interface", and focus more on testing your technical acumen, collaboration and communication skills. A list of such questions, typically asked during interviews for senior positions is given below: &lt;/span&gt;&lt;/p&gt;  &lt;ul type="disc"&gt;&lt;li class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;      line-height:normal;mso-list:l0 level1 lfo2;tab-stops:list .5in"&gt;&lt;span style="font-size:12.0pt;font-family:&amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;mso-fareast-font-family:      &amp;quot;Times New Roman&amp;quot;"&gt;Explain the life cycle of an application development      process you worked on previously.&lt;br /&gt;     &lt;i&gt;What the interviewer looks for is communication of requirements,      planning, modeling, construction and deployment on the back end.&lt;/i&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;      line-height:normal;mso-list:l0 level1 lfo2;tab-stops:list .5in"&gt;&lt;span style="font-size:12.0pt;font-family:&amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;mso-fareast-font-family:      &amp;quot;Times New Roman&amp;quot;"&gt;Here's a hypothetical project. Explain how you would go      about it.&lt;br /&gt;     &lt;i&gt;They want to know how you would break your work down into tasks and how      many weeks for each task. I'm really looking to find out about planning      methods, their skill set and how quickly they can execute.&lt;/i&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;      line-height:normal;mso-list:l0 level1 lfo2;tab-stops:list .5in"&gt;&lt;span style="font-size:12.0pt;font-family:&amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;mso-fareast-font-family:      &amp;quot;Times New Roman&amp;quot;"&gt;How do you respond to requirement changes in the middle      of a cycle? &lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;      line-height:normal;mso-list:l0 level1 lfo2;tab-stops:list .5in"&gt;&lt;span style="font-size:12.0pt;font-family:&amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;mso-fareast-font-family:      &amp;quot;Times New Roman&amp;quot;"&gt;What type of methodology have you used in the past?      What are its drawbacks? &lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;      line-height:normal;mso-list:l0 level1 lfo2;tab-stops:list .5in"&gt;&lt;span style="font-size:12.0pt;font-family:&amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;mso-fareast-font-family:      &amp;quot;Times New Roman&amp;quot;"&gt;What are different techniques for prototyping an      application?&lt;br /&gt;     Similar question: Do you feel there is value in wireframing an      application? Why?&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;      line-height:normal;mso-list:l0 level1 lfo2;tab-stops:list .5in"&gt;&lt;span style="font-size:12.0pt;font-family:&amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;mso-fareast-font-family:      &amp;quot;Times New Roman&amp;quot;"&gt;How do you manage conflicts in Web applications when      there are different people managing data? &lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;      line-height:normal;mso-list:l0 level1 lfo2;tab-stops:list .5in"&gt;&lt;span style="font-size:12.0pt;font-family:&amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;mso-fareast-font-family:      &amp;quot;Times New Roman&amp;quot;"&gt;Tell me something you learned from a team member in the      last year.&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;      line-height:normal;mso-list:l0 level1 lfo2;tab-stops:list .5in"&gt;&lt;span style="font-size:12.0pt;font-family:&amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;mso-fareast-font-family:      &amp;quot;Times New Roman&amp;quot;"&gt;What software testing procedures have you used to      perform a QA? &lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;  &lt;p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; line-height:normal"&gt;&lt;b style="mso-bidi-font-weight:normal"&gt;&lt;span style="font-size:12.0pt;font-family:&amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;"&gt;Once the coding skills verified. Sample I&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; margin-left:1.0in;text-indent:-.25in;line-height:normal;mso-list:l1 level1 lfo3; tab-stops:list .5in"&gt;&lt;span style="font-size:10.0pt; mso-bidi-font-size:12.0pt;font-family:Symbol;mso-fareast-font-family:Symbol; mso-bidi-font-family:Symbol"&gt;&lt;span style="mso-list:Ignore"&gt;·&lt;span style="font:7.0pt &amp;quot;Times New Roman&amp;quot;"&gt;         &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:12.0pt;font-family:&amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; mso-fareast-font-family:&amp;quot;Times New Roman&amp;quot;"&gt;The Activity life cycle is must. Ask about the different phases of Activity Life cycle. For example: when and how the activity comes to foreground? &lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; margin-left:1.0in;text-indent:-.25in;line-height:normal;mso-list:l1 level1 lfo3; tab-stops:list .5in"&gt;&lt;span style="font-size:10.0pt; mso-bidi-font-size:12.0pt;font-family:Symbol;mso-fareast-font-family:Symbol; mso-bidi-font-family:Symbol"&gt;&lt;span style="mso-list:Ignore"&gt;·&lt;span style="font:7.0pt &amp;quot;Times New Roman&amp;quot;"&gt;         &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:12.0pt;font-family:&amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; mso-fareast-font-family:&amp;quot;Times New Roman&amp;quot;"&gt;Check the knowledge on AndroidManifest file, For example: Why do we need this file, What is the role of this file in Android app development.&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; margin-left:1.0in;text-indent:-.25in;line-height:normal;mso-list:l1 level1 lfo3; tab-stops:list .5in"&gt;&lt;span style="font-size:10.0pt; mso-bidi-font-size:12.0pt;font-family:Symbol;mso-fareast-font-family:Symbol; mso-bidi-font-family:Symbol"&gt;&lt;span style="mso-list:Ignore"&gt;·&lt;span style="font:7.0pt &amp;quot;Times New Roman&amp;quot;"&gt;         &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:12.0pt;font-family:&amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; mso-fareast-font-family:&amp;quot;Times New Roman&amp;quot;"&gt;Different Kinds of Intents&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; margin-left:1.0in;text-indent:-.25in;line-height:normal;mso-list:l1 level1 lfo3; tab-stops:list .5in"&gt;&lt;span style="font-size:10.0pt; mso-bidi-font-size:12.0pt;font-family:Symbol;mso-fareast-font-family:Symbol; mso-bidi-font-family:Symbol"&gt;&lt;span style="mso-list:Ignore"&gt;·&lt;span style="font:7.0pt &amp;quot;Times New Roman&amp;quot;"&gt;         &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:12.0pt;font-family:&amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; mso-fareast-font-family:&amp;quot;Times New Roman&amp;quot;"&gt;Ask about different Kinds of context&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; margin-left:1.0in;text-indent:-.25in;line-height:normal;mso-list:l1 level1 lfo3; tab-stops:list .5in"&gt;&lt;span style="font-size:10.0pt; mso-bidi-font-size:12.0pt;font-family:Symbol;mso-fareast-font-family:Symbol; mso-bidi-font-family:Symbol"&gt;&lt;span style="mso-list:Ignore"&gt;·&lt;span style="font:7.0pt &amp;quot;Times New Roman&amp;quot;"&gt;         &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:12.0pt;font-family:&amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; mso-fareast-font-family:&amp;quot;Times New Roman&amp;quot;"&gt;Ask about different Storage Methods in android&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; margin-left:1.0in;text-indent:-.25in;line-height:normal;mso-list:l1 level1 lfo3; tab-stops:list .5in"&gt;&lt;span style="font-size:10.0pt; mso-bidi-font-size:12.0pt;font-family:Symbol;mso-fareast-font-family:Symbol; mso-bidi-font-family:Symbol"&gt;&lt;span style="mso-list:Ignore"&gt;·&lt;span style="font:7.0pt &amp;quot;Times New Roman&amp;quot;"&gt;         &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:12.0pt;font-family:&amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; mso-fareast-font-family:&amp;quot;Times New Roman&amp;quot;"&gt;Kinds of Log debugger and Debugger Configuration&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; margin-left:1.0in;text-indent:-.25in;line-height:normal;mso-list:l1 level1 lfo3; tab-stops:list .5in"&gt;&lt;span style="font-size:10.0pt; mso-bidi-font-size:12.0pt;font-family:Symbol;mso-fareast-font-family:Symbol; mso-bidi-font-family:Symbol"&gt;&lt;span style="mso-list:Ignore"&gt;·&lt;span style="font:7.0pt &amp;quot;Times New Roman&amp;quot;"&gt;         &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:12.0pt;font-family:&amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; mso-fareast-font-family:&amp;quot;Times New Roman&amp;quot;"&gt;How to debug the application on real device.&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; margin-left:1.0in;text-indent:-.25in;line-height:normal;mso-list:l1 level1 lfo3; tab-stops:list .5in"&gt;&lt;span style="font-size:10.0pt; mso-bidi-font-size:12.0pt;font-family:Symbol;mso-fareast-font-family:Symbol; mso-bidi-font-family:Symbol"&gt;&lt;span style="mso-list:Ignore"&gt;·&lt;span style="font:7.0pt &amp;quot;Times New Roman&amp;quot;"&gt;         &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:12.0pt;font-family:&amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; mso-fareast-font-family:&amp;quot;Times New Roman&amp;quot;"&gt;How do you ensure that the app design will be consistent across the different screen resolutions&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; margin-left:1.0in;text-indent:-.25in;line-height:normal;mso-list:l1 level1 lfo3; tab-stops:list .5in"&gt;&lt;span style="font-size:10.0pt; mso-bidi-font-size:12.0pt;font-family:Symbol;mso-fareast-font-family:Symbol; mso-bidi-font-family:Symbol"&gt;&lt;span style="mso-list:Ignore"&gt;·&lt;span style="font:7.0pt &amp;quot;Times New Roman&amp;quot;"&gt;         &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:12.0pt;font-family:&amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; mso-fareast-font-family:&amp;quot;Times New Roman&amp;quot;"&gt;Thread concepts also plus points as we deal with the treads more.&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; margin-left:1.0in;text-indent:-.25in;line-height:normal;mso-list:l1 level1 lfo3; tab-stops:list .5in"&gt;&lt;span style="font-size:10.0pt; mso-bidi-font-size:12.0pt;font-family:Symbol;mso-fareast-font-family:Symbol; mso-bidi-font-family:Symbol"&gt;&lt;span style="mso-list:Ignore"&gt;·&lt;span style="font:7.0pt &amp;quot;Times New Roman&amp;quot;"&gt;         &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:12.0pt;font-family:&amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; mso-fareast-font-family:&amp;quot;Times New Roman&amp;quot;"&gt;Can you able to build custom views and how?&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; margin-left:1.0in;text-indent:-.25in;line-height:normal;mso-list:l1 level1 lfo3; tab-stops:list .5in"&gt;&lt;span style="font-size:10.0pt; mso-bidi-font-size:12.0pt;font-family:Symbol;mso-fareast-font-family:Symbol; mso-bidi-font-family:Symbol"&gt;&lt;span style="mso-list:Ignore"&gt;·&lt;span style="font:7.0pt &amp;quot;Times New Roman&amp;quot;"&gt;         &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:12.0pt;font-family:&amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; mso-fareast-font-family:&amp;quot;Times New Roman&amp;quot;"&gt;How to create flexible layouts, For example to place English, Chinese fonts.&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; margin-left:1.0in;text-indent:-.25in;line-height:normal;mso-list:l1 level1 lfo3; tab-stops:list .5in"&gt;&lt;span style="font-size:10.0pt; mso-bidi-font-size:12.0pt;font-family:Symbol;mso-fareast-font-family:Symbol; mso-bidi-font-family:Symbol"&gt;&lt;span style="mso-list:Ignore"&gt;·&lt;span style="font:7.0pt &amp;quot;Times New Roman&amp;quot;"&gt;         &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:12.0pt;font-family:&amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; mso-fareast-font-family:&amp;quot;Times New Roman&amp;quot;"&gt;What is localization and how to achieve?&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; margin-left:1.0in;text-indent:-.25in;line-height:normal;mso-list:l1 level1 lfo3; tab-stops:list .5in"&gt;&lt;span style="font-size:10.0pt; mso-bidi-font-size:12.0pt;font-family:Symbol;mso-fareast-font-family:Symbol; mso-bidi-font-family:Symbol"&gt;&lt;span style="mso-list:Ignore"&gt;·&lt;span style="font:7.0pt &amp;quot;Times New Roman&amp;quot;"&gt;         &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:12.0pt;font-family:&amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; mso-fareast-font-family:&amp;quot;Times New Roman&amp;quot;"&gt;What are 9-patch images&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; margin-left:1.0in;text-indent:-.25in;line-height:normal;mso-list:l1 level1 lfo3; tab-stops:list .5in"&gt;&lt;span style="font-size:10.0pt; mso-bidi-font-size:12.0pt;font-family:Symbol;mso-fareast-font-family:Symbol; mso-bidi-font-family:Symbol"&gt;&lt;span style="mso-list:Ignore"&gt;·&lt;span style="font:7.0pt &amp;quot;Times New Roman&amp;quot;"&gt;         &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:12.0pt;font-family:&amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; mso-fareast-font-family:&amp;quot;Times New Roman&amp;quot;"&gt;How to avoid ANR status&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; margin-left:1.0in;text-indent:-.25in;line-height:normal;mso-list:l1 level1 lfo3; tab-stops:list .5in"&gt;&lt;span style="font-size:10.0pt; mso-bidi-font-size:12.0pt;font-family:Symbol;mso-fareast-font-family:Symbol; mso-bidi-font-family:Symbol"&gt;&lt;span style="mso-list:Ignore"&gt;·&lt;span style="font:7.0pt &amp;quot;Times New Roman&amp;quot;"&gt;         &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:12.0pt;font-family:&amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; mso-fareast-font-family:&amp;quot;Times New Roman&amp;quot;"&gt;How to do Memory management&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; margin-left:1.0in;text-indent:-.25in;line-height:normal;mso-list:l1 level1 lfo3; tab-stops:list .5in"&gt;&lt;span style="font-size:10.0pt; mso-bidi-font-size:12.0pt;font-family:Symbol;mso-fareast-font-family:Symbol; mso-bidi-font-family:Symbol"&gt;&lt;span style="mso-list:Ignore"&gt;·&lt;span style="font:7.0pt &amp;quot;Times New Roman&amp;quot;"&gt;         &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:12.0pt;font-family:&amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; mso-fareast-font-family:&amp;quot;Times New Roman&amp;quot;"&gt;Ask about IPC&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; margin-left:1.0in;text-indent:-.25in;line-height:normal;mso-list:l1 level1 lfo3; tab-stops:list .5in"&gt;&lt;span style="font-size:10.0pt; mso-bidi-font-size:12.0pt;font-family:Symbol;mso-fareast-font-family:Symbol; mso-bidi-font-family:Symbol"&gt;&lt;span style="mso-list:Ignore"&gt;·&lt;span style="font:7.0pt &amp;quot;Times New Roman&amp;quot;"&gt;         &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:12.0pt;font-family:&amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; mso-fareast-font-family:&amp;quot;Times New Roman&amp;quot;"&gt;What is onCreate(&lt;b&gt;Bundle savedInstanceState&lt;/b&gt;), Have you used savedInstanceState when and why?&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; margin-left:1.0in;text-indent:-.25in;line-height:normal;mso-list:l1 level1 lfo3; tab-stops:list .5in"&gt;&lt;span style="font-size:10.0pt; mso-bidi-font-size:12.0pt;font-family:Symbol;mso-fareast-font-family:Symbol; mso-bidi-font-family:Symbol"&gt;&lt;span style="mso-list:Ignore"&gt;·&lt;span style="font:7.0pt &amp;quot;Times New Roman&amp;quot;"&gt;         &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:12.0pt;font-family:&amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; mso-fareast-font-family:&amp;quot;Times New Roman&amp;quot;"&gt;To check how updated the person is just ask about what are Fragments in an Activity&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt; &lt;/p&gt;  &lt;p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; line-height:normal"&gt;&lt;b style="mso-bidi-font-weight:normal"&gt;&lt;span style="font-size:12.0pt;font-family:&amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;"&gt;If this is an Android specific job, just ask the obvious stuff. Sample II&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;ul type="disc"&gt;&lt;li class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;      line-height:normal;mso-list:l3 level1 lfo4;tab-stops:list .5in"&gt;&lt;span style="font-size:12.0pt;font-family:&amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;mso-fareast-font-family:      &amp;quot;Times New Roman&amp;quot;"&gt;Application lifecycle&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;      line-height:normal;mso-list:l3 level1 lfo4;tab-stops:list .5in"&gt;&lt;span style="font-size:12.0pt;font-family:&amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;mso-fareast-font-family:      &amp;quot;Times New Roman&amp;quot;"&gt;When to use a service&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;      line-height:normal;mso-list:l3 level1 lfo4;tab-stops:list .5in"&gt;&lt;span style="font-size:12.0pt;font-family:&amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;mso-fareast-font-family:      &amp;quot;Times New Roman&amp;quot;"&gt;How to use a broadcast receiver and register it both in      the manifest and in code&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;      line-height:normal;mso-list:l3 level1 lfo4;tab-stops:list .5in"&gt;&lt;span style="font-size:12.0pt;font-family:&amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;mso-fareast-font-family:      &amp;quot;Times New Roman&amp;quot;"&gt;Intent filters&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;      line-height:normal;mso-list:l3 level1 lfo4;tab-stops:list .5in"&gt;&lt;span style="font-size:12.0pt;font-family:&amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;mso-fareast-font-family:      &amp;quot;Times New Roman&amp;quot;"&gt;Stuff about what manifest attributes and tags mean&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;      line-height:normal;mso-list:l3 level1 lfo4;tab-stops:list .5in"&gt;&lt;span style="font-size:12.0pt;font-family:&amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;mso-fareast-font-family:      &amp;quot;Times New Roman&amp;quot;"&gt;The types of flags to run an application &lt;/span&gt;&lt;/li&gt;&lt;ul type="circle"&gt;&lt;li class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:       auto;line-height:normal;mso-list:l3 level2 lfo4;tab-stops:list 1.0in"&gt;&lt;span style="font-size:12.0pt;font-family:&amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;mso-fareast-font-family:       &amp;quot;Times New Roman&amp;quot;"&gt;FLAG_ACTIVITY_NEW_TASK &lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:       auto;line-height:normal;mso-list:l3 level2 lfo4;tab-stops:list 1.0in"&gt;&lt;span style="font-size:12.0pt;font-family:&amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;mso-fareast-font-family:       &amp;quot;Times New Roman&amp;quot;"&gt;FLAG_ACTIVITY_CLEAR_TOP &lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:       auto;line-height:normal;mso-list:l3 level2 lfo4;tab-stops:list 1.0in"&gt;&lt;span style="font-size:12.0pt;font-family:&amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;mso-fareast-font-family:       &amp;quot;Times New Roman&amp;quot;"&gt;etc&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;li class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;      line-height:normal;mso-list:l3 level1 lfo4;tab-stops:list .5in"&gt;&lt;span style="font-size:12.0pt;font-family:&amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;mso-fareast-font-family:      &amp;quot;Times New Roman&amp;quot;"&gt;How to do data intensive calculations using threads&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;      line-height:normal;mso-list:l3 level1 lfo4;tab-stops:list .5in"&gt;&lt;span style="font-size:12.0pt;font-family:&amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;mso-fareast-font-family:      &amp;quot;Times New Roman&amp;quot;"&gt;Passing large objects (that can't be passed via intents      and shouldn't be serialized) via a service&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;      line-height:normal;mso-list:l3 level1 lfo4;tab-stops:list .5in"&gt;&lt;span style="font-size:12.0pt;font-family:&amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;mso-fareast-font-family:      &amp;quot;Times New Roman&amp;quot;"&gt;Binding to a service and the service lifecycle&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;      line-height:normal;mso-list:l3 level1 lfo4;tab-stops:list .5in"&gt;&lt;span style="font-size:12.0pt;font-family:&amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;mso-fareast-font-family:      &amp;quot;Times New Roman&amp;quot;"&gt;How to persist data (both savedInstanceState and more      permanent ways)&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;  &lt;p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; line-height:normal"&gt;&lt;span style="font-size:12.0pt;font-family:&amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; mso-fareast-font-family:&amp;quot;Times New Roman&amp;quot;"&gt;Just go through &lt;a href="http://developer.android.com/guide/topics/fundamentals.html"&gt;&lt;span style="color:blue"&gt;http://developer.android.com/guide/topics/fundamentals.html&lt;/span&gt;&lt;/a&gt; and see what sounds like it's important. Hopefully you're an android developer and know what all those things are, otherwise you're just waiting your interviewee's time =P&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; line-height:normal"&gt;&lt;span style="font-size:12.0pt;font-family:&amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; mso-fareast-font-family:&amp;quot;Times New Roman&amp;quot;"&gt;But like @Mayra said. A lot of android can be picked up fairly quickly if they're experienced programmers. If you just ask android specific questions, you'll get people who started off with android and that &lt;i&gt;could&lt;/i&gt; be bad.&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="mso-bidi-font-weight:bold"&gt; &lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;b&gt;Getting source from different sites like www.coolinterview.com and stackoverflow.com&lt;/b&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5197277884634195738-8911195318566730942?l=android-codes-examples.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://android-codes-examples.blogspot.com/feeds/8911195318566730942/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://android-codes-examples.blogspot.com/2011/07/android-interview-questions.html#comment-form' title='7 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5197277884634195738/posts/default/8911195318566730942'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5197277884634195738/posts/default/8911195318566730942'/><link rel='alternate' type='text/html' href='http://android-codes-examples.blogspot.com/2011/07/android-interview-questions.html' title='Android interview questions'/><author><name>Keerthy</name><uri>http://www.blogger.com/profile/10048420864647222363</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>7</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5197277884634195738.post-4071331151662859072</id><published>2011-05-12T00:29:00.000-07:00</published><updated>2011-08-05T23:10:39.977-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='progress bar'/><category scheme='http://www.blogger.com/atom/ns#' term='seek bar'/><category scheme='http://www.blogger.com/atom/ns#' term='slider'/><category scheme='http://www.blogger.com/atom/ns#' term='slide bar'/><category scheme='http://www.blogger.com/atom/ns#' term='android'/><title type='text'>Seek Bar or Progress Bar or Slide Bar or Slider</title><content type='html'>This bar will be like this, the name for this bar is seek bar&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/-HDNFnyRU2Cw/TcuMbBaL70I/AAAAAAAAAGc/7eWN1qnZbAw/s1600/seek.JPG"&gt;&lt;img style="display: block; margin: 0px auto 10px; text-align: center; cursor: pointer; width: 320px; height: 167px;" src="http://1.bp.blogspot.com/-HDNFnyRU2Cw/TcuMbBaL70I/AAAAAAAAAGc/7eWN1qnZbAw/s320/seek.JPG" alt="" id="BLOGGER_PHOTO_ID_5605728557055340354" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;In the xml file we need to mention like this to call the seek bar&lt;br /&gt;&lt;br /&gt;&lt;div class="innerblock"&gt;  &lt;br /&gt;&lt;strong&gt;xml&lt;/strong&gt;&lt;br /&gt;&lt;pre class="innertextblock"  &gt;&lt;br /&gt;&amp;lt;SeekBar&lt;br /&gt;android:id="@+id/seekbar"&lt;br /&gt;android:layout_width="fill_parent"   &lt;br /&gt;android:layout_height="wrap_content"   &lt;br /&gt;android:layout_margin="10px"  &lt;br /&gt;/&gt;  &lt;br /&gt;&lt;/pre&gt;   &lt;/div&gt;&lt;br /&gt;&lt;br /&gt;The java class file will be like this&lt;br /&gt;&lt;br /&gt;&lt;div class="innerblock"&gt;  &lt;br /&gt;&lt;strong&gt;Seek.java&lt;/strong&gt;&lt;br /&gt;&lt;pre class="innertextblock"  &gt;&lt;br /&gt;package com.android.seek;&lt;br /&gt;&lt;br /&gt;import android.app.Activity;&lt;br /&gt;import android.media.AudioManager;&lt;br /&gt;import android.os.Bundle;&lt;br /&gt;import android.widget.SeekBar;&lt;br /&gt;import android.widget.TextView;&lt;br /&gt;import android.widget.SeekBar.OnSeekBarChangeListener;&lt;br /&gt;&lt;br /&gt;public class Seek extends Activity {&lt;br /&gt;    /** Called when the activity is first created. */&lt;br /&gt;  AudioManager audioManager;&lt;br /&gt;    @Override&lt;br /&gt;    public void onCreate(Bundle savedInstanceState) {&lt;br /&gt;        super.onCreate(savedInstanceState);&lt;br /&gt;        setContentView(R.layout.main);&lt;br /&gt;        final TextView reading = (TextView) findViewById(R.id.reading);&lt;br /&gt;        SeekBar seekBar = (SeekBar)findViewById(R.id.seekbar);&lt;br /&gt;        seekBar.setMax(100);&lt;br /&gt;        seekBar.setOnSeekBarChangeListener(new OnSeekBarChangeListener() {&lt;br /&gt;   &lt;br /&gt;   @Override&lt;br /&gt;   public void onStopTrackingTouch(SeekBar seekBar) {&lt;br /&gt;   }&lt;br /&gt;   &lt;br /&gt;   @Override&lt;br /&gt;   public void onStartTrackingTouch(SeekBar seekBar) {&lt;br /&gt;    // TODO Auto-generated method stub&lt;br /&gt;   }&lt;br /&gt;   &lt;br /&gt;   @Override&lt;br /&gt;   public void onProgressChanged(SeekBar seekBar, int progress,&lt;br /&gt;     boolean fromUser) {&lt;br /&gt;    reading.setText("Processing "+progress+"% ");&lt;br /&gt;   }&lt;br /&gt;  });&lt;br /&gt;        }&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;   &lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The code is fulling checked so you can run the code after downloading it itself.&lt;br /&gt;&lt;br /&gt;You can download the full source code&lt;br /&gt;&lt;br /&gt;&lt;div class="downloadblock"&gt;  &lt;br /&gt;Download &lt;a href="http://www.ziddu.com/download/14954623/seek.zip.html"&gt;source&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;Have a good day.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5197277884634195738-4071331151662859072?l=android-codes-examples.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://android-codes-examples.blogspot.com/feeds/4071331151662859072/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://android-codes-examples.blogspot.com/2011/05/seek-bar-or-progress-bar-or-slide-bar.html#comment-form' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5197277884634195738/posts/default/4071331151662859072'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5197277884634195738/posts/default/4071331151662859072'/><link rel='alternate' type='text/html' href='http://android-codes-examples.blogspot.com/2011/05/seek-bar-or-progress-bar-or-slide-bar.html' title='Seek Bar or Progress Bar or Slide Bar or Slider'/><author><name>Keerthy</name><uri>http://www.blogger.com/profile/10048420864647222363</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/-HDNFnyRU2Cw/TcuMbBaL70I/AAAAAAAAAGc/7eWN1qnZbAw/s72-c/seek.JPG' height='72' width='72'/><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5197277884634195738.post-368346707275143991</id><published>2011-04-29T00:21:00.001-07:00</published><updated>2011-08-05T23:10:21.839-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='download'/><category scheme='http://www.blogger.com/atom/ns#' term='sqlite'/><category scheme='http://www.blogger.com/atom/ns#' term='ebook'/><category scheme='http://www.blogger.com/atom/ns#' term='android'/><category scheme='http://www.blogger.com/atom/ns#' term='book'/><title type='text'>Download Android Sqlite books</title><content type='html'>You can download ebooks&lt;br /&gt;&lt;br /&gt;The Definitive Guide to SQLite&lt;br /&gt;Second Edition&lt;br /&gt;Grant Allen&lt;br /&gt;Mike Owens&lt;br /&gt;&lt;br /&gt;&lt;div class="innerblock"&gt;  &lt;br /&gt;&lt;strong&gt;Download &lt;a href="http://www.ziddu.com/download/14789102/Apress.The.Definitive.Guide.to.SQLite.Nov.2010.pdf.html"&gt;The Definitive Guide to SQLite - Grant Allen, Mike Owens&lt;/a&gt;&lt;/strong&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;The Definitive Guide to SQLite&lt;br /&gt;Michael Owens&lt;br /&gt;&lt;br /&gt;&lt;div class="innerblock"&gt;  &lt;br /&gt;&lt;strong&gt;Download &lt;a href="http://www.ziddu.com/download/14789103/TheDefinitiveGuideToSQLite2006.pdf.html"&gt;The Definitive Guide to SQLite - Michael Owens&lt;/a&gt;&lt;/strong&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;Have a good day.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5197277884634195738-368346707275143991?l=android-codes-examples.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://android-codes-examples.blogspot.com/feeds/368346707275143991/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://android-codes-examples.blogspot.com/2011/04/download-android-sqlite-books.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5197277884634195738/posts/default/368346707275143991'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5197277884634195738/posts/default/368346707275143991'/><link rel='alternate' type='text/html' href='http://android-codes-examples.blogspot.com/2011/04/download-android-sqlite-books.html' title='Download Android Sqlite books'/><author><name>Keerthy</name><uri>http://www.blogger.com/profile/10048420864647222363</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5197277884634195738.post-1897673315883896612</id><published>2011-04-21T02:58:00.001-07:00</published><updated>2011-08-05T23:10:07.980-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='zoom controls'/><category scheme='http://www.blogger.com/atom/ns#' term='custom'/><category scheme='http://www.blogger.com/atom/ns#' term='map'/><category scheme='http://www.blogger.com/atom/ns#' term='marker'/><category scheme='http://www.blogger.com/atom/ns#' term='popup'/><category scheme='http://www.blogger.com/atom/ns#' term='zoom'/><category scheme='http://www.blogger.com/atom/ns#' term='linearlayout'/><category scheme='http://www.blogger.com/atom/ns#' term='google map'/><category scheme='http://www.blogger.com/atom/ns#' term='android'/><category scheme='http://www.blogger.com/atom/ns#' term='info window'/><title type='text'>Google map example in android with info window (Popup) and multiple markers and zoom controls</title><content type='html'>Through this application we can populate a google map with the info window, zoom controls and marker features. The image of the running application is shown below&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/-PrYuYQMcGcc/Ta__3fCcw7I/AAAAAAAAAGU/xCxjK3slU4k/s1600/google_map_marker_tooltip_popup_android.JPG"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 222px; height: 320px;" src="http://3.bp.blogspot.com/-PrYuYQMcGcc/Ta__3fCcw7I/AAAAAAAAAGU/xCxjK3slU4k/s320/google_map_marker_tooltip_popup_android.JPG" border="0" alt=""id="BLOGGER_PHOTO_ID_5597974190534476722" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;First of all, we can run the application with the google api sdk only, we can use from API level 3, but the Google api sdk should be used to run the application.&lt;br /&gt;&lt;br /&gt;&lt;H3&gt; Custom Linear layout is used on this application &lt;/H3&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="innerblock"&gt;  &lt;br /&gt;&lt;strong&gt;LocationViewers.java&lt;/strong&gt;&lt;br /&gt;&lt;pre class="innertextblock"  &gt;&lt;br /&gt;package com.icons.draw.view;&lt;br /&gt;&lt;br /&gt;import java.util.ArrayList;&lt;br /&gt;import java.util.List;&lt;br /&gt;import android.content.Context;&lt;br /&gt;import android.util.AttributeSet;&lt;br /&gt;import android.view.View;&lt;br /&gt;import android.widget.LinearLayout;&lt;br /&gt;import android.widget.ZoomControls;&lt;br /&gt;&lt;br /&gt;import com.google.android.maps.MapController;&lt;br /&gt;import com.google.android.maps.MapView;&lt;br /&gt;import com.icons.draw.R;&lt;br /&gt;&lt;br /&gt;public class LocationViewers extends LinearLayout {&lt;br /&gt;&lt;br /&gt; private MapLocationOverlay overlay;&lt;br /&gt; &lt;br /&gt;    //  Known lat/long coordinates that we'll be using.&lt;br /&gt;    private List&lt;MapLocation&gt; mapLocations;&lt;br /&gt;    &lt;br /&gt;    public static MapView mapView;&lt;br /&gt;    &lt;br /&gt; public LocationViewers(Context context, AttributeSet attrs) {&lt;br /&gt;  super(context, attrs);&lt;br /&gt;  init();&lt;br /&gt; }&lt;br /&gt;&lt;br /&gt; public LocationViewers(Context context) {&lt;br /&gt;  super(context);&lt;br /&gt;  init();&lt;br /&gt; }&lt;br /&gt; &lt;br /&gt; public void init() {  &lt;br /&gt;&lt;br /&gt;  setOrientation(VERTICAL);&lt;br /&gt;  setLayoutParams(new LinearLayout.LayoutParams(android.view.ViewGroup.LayoutParams.FILL_PARENT,android.view.ViewGroup.LayoutParams.FILL_PARENT));&lt;br /&gt;  String api = getResources().getString(R.string.map_api_key);&lt;br /&gt;  mapView = new MapView(getContext(),api);&lt;br /&gt;  mapView.setEnabled(true);&lt;br /&gt;  mapView.setClickable(true);&lt;br /&gt;  addView(mapView);&lt;br /&gt;  overlay = new MapLocationOverlay(this);&lt;br /&gt;  mapView.getOverlays().add(overlay);&lt;br /&gt;     mapView.getController().setZoom(5);&lt;br /&gt;     mapView.getController().setCenter(getMapLocations().get(0).getPoint());&lt;br /&gt; }&lt;br /&gt; &lt;br /&gt; &lt;br /&gt; public List&lt;MapLocation&gt; getMapLocations() {&lt;br /&gt;  if (mapLocations == null) {&lt;br /&gt;   mapLocations = new ArrayList&lt;MapLocation&gt;();&lt;br /&gt;   mapLocations.add(new MapLocation("Avinashi road, Coimbatore",11.0138,76.9871));&lt;br /&gt;   mapLocations.add(new MapLocation("Marina Beach, Chennai",13.0548,80.2830));&lt;br /&gt;   mapLocations.add(new MapLocation("Taj Mahal, New Delhi",28.6353,77.2250));&lt;br /&gt;   mapLocations.add(new MapLocation("Meenakshi Temple, Madurai",9.9195,78.1208));&lt;br /&gt;  }&lt;br /&gt;  return mapLocations;&lt;br /&gt; }&lt;br /&gt;&lt;br /&gt; public MapView getMapView() {&lt;br /&gt;  return mapView;&lt;br /&gt; }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;   &lt;/div&gt;&lt;br /&gt;&lt;br /&gt;In this LocationViewers.java only we are using the MapView, then this file will be called in the map.xml&lt;br /&gt;&lt;br /&gt;&lt;div class="innerblock"&gt;  &lt;br /&gt;&lt;strong&gt;map.xml&lt;/strong&gt;&lt;br /&gt;&lt;pre class="innertextblock"  &gt;&lt;br /&gt;&amp;lt;?xml version="1.0" encoding="utf-8"?&gt;&lt;br /&gt;&amp;lt;FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"&lt;br /&gt; android:id="@+id/home_container" android:layout_width="fill_parent"&lt;br /&gt; android:layout_height="fill_parent"&gt;&lt;br /&gt;&lt;br /&gt; &amp;lt;com.icons.draw.view.LocationViewers&lt;br /&gt;  android:id="@+id/map_location_viewer" android:layout_width="fill_parent"&lt;br /&gt;  android:layout_height="fill_parent" &gt;&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&amp;lt;/com.icons.draw.view.LocationViewers&gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;ZoomControls android:id="@+id/zoomcontrols"&lt;br /&gt;  android:gravity="bottom"&lt;br /&gt;  android:layout_width="wrap_content" android:layout_height="wrap_content" /&gt;&lt;br /&gt;&amp;lt;/FrameLayout&gt;&lt;br /&gt;&lt;/pre&gt;   &lt;/div&gt;&lt;br /&gt;&lt;br /&gt;In the above mentioned xml file we had used the ZoomControls also, this will be given the zoom listener on the java file&lt;br /&gt;&lt;br /&gt;&lt;div class="innerblock"&gt;  &lt;br /&gt;&lt;strong&gt;DrawIcons.java&lt;/strong&gt;&lt;br /&gt;&lt;pre class="innertextblock"  &gt;&lt;br /&gt;package com.icons.draw;&lt;br /&gt;&lt;br /&gt;import com.google.android.maps.MapActivity;&lt;br /&gt;&lt;br /&gt;import android.os.Bundle;&lt;br /&gt;import android.view.View;&lt;br /&gt;import android.widget.LinearLayout;&lt;br /&gt;import android.widget.ZoomControls;&lt;br /&gt;import com.icons.draw.view.LocationViewers;&lt;br /&gt;&lt;br /&gt;public class DrawIcons extends MapActivity {&lt;br /&gt; @Override&lt;br /&gt; public void onCreate(Bundle icicle) {&lt;br /&gt;     &lt;br /&gt;        super.onCreate(icicle);&lt;br /&gt;&lt;br /&gt;        setContentView(R.layout.map);&lt;br /&gt;        &lt;br /&gt;        &lt;br /&gt;        ZoomControls zoomControls = (ZoomControls) findViewById(R.id.zoomcontrols);&lt;br /&gt;        zoomControls.setOnZoomInClickListener(new View.OnClickListener() {&lt;br /&gt;                @Override&lt;br /&gt;                public void onClick(View v) {       &lt;br /&gt;                 LocationViewers.mapView.getController().zoomIn();      &lt;br /&gt;                }&lt;br /&gt;        });&lt;br /&gt;        zoomControls.setOnZoomOutClickListener(new View.OnClickListener() {&lt;br /&gt;                @Override&lt;br /&gt;                public void onClick(View v) {&lt;br /&gt;                 LocationViewers.mapView.getController().zoomOut();&lt;br /&gt;                }&lt;br /&gt;        });&lt;br /&gt;    }&lt;br /&gt;&lt;br /&gt;    /**&lt;br /&gt;     * Must let Google know that a route will not be displayed&lt;br /&gt;     */&lt;br /&gt; @Override&lt;br /&gt; protected boolean isRouteDisplayed() {&lt;br /&gt;  return false;&lt;br /&gt; } &lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;   &lt;/div&gt;&lt;br /&gt;&lt;br /&gt;While pressing the zoom controls plus or minus, this listener will be called and the zoom functionality will be occurs. Then we are going to see two files &lt;b&gt;MapLocation.java&lt;/b&gt; and &lt;b&gt;MapLocationOverlay.java&lt;/b&gt;, where in the MapLocationOverlay file we will be drawing the marker and the info window for each marker, you can get the code from the zip file below.&lt;br /&gt;&lt;br /&gt;The main thing to run the application is adding the internet permission and google library in the AndroidManifest.xml file&lt;br /&gt;&lt;br /&gt;&lt;div class="innerblock"&gt;  &lt;br /&gt;&lt;strong&gt;AndroidManifest.xml&lt;/strong&gt;&lt;br /&gt;&lt;pre class="innertextblock"  &gt;&lt;br /&gt;&amp;lt;?xml version="1.0" encoding="utf-8"?&gt;&lt;br /&gt;&amp;lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"&lt;br /&gt;      package="com.icons.draw"&lt;br /&gt;      android:versionCode="1"&lt;br /&gt;      android:versionName="1.0"&gt;&lt;br /&gt;    &amp;lt;application android:icon="@drawable/icon" android:label="@string/app_name"&gt;&lt;br /&gt;        &amp;lt;activity android:name=".DrawIcons"&lt;br /&gt;                  android:label="@string/app_name"&gt;&lt;br /&gt;            &amp;lt;intent-filter&gt;&lt;br /&gt;                &amp;lt;action android:name="android.intent.action.MAIN" /&gt;&lt;br /&gt;                &amp;lt;category android:name="android.intent.category.LAUNCHER" /&gt;&lt;br /&gt;            &amp;lt;/intent-filter&gt;&lt;br /&gt;        &amp;lt;/activity&gt;&lt;br /&gt; &amp;lt;uses-library android:name="com.google.android.maps" /&gt;&lt;br /&gt;    &amp;lt;/application&gt;&lt;br /&gt;    &amp;lt;uses-permission android:name="android.permission.INTERNET" /&gt;&lt;br /&gt;    &amp;lt;uses-sdk android:minSdkVersion="4" /&gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;/manifest&gt; &lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;   &lt;/div&gt;&lt;br /&gt;&lt;br /&gt;The code is fulling checked so you can run the code after downloading it itself.&lt;br /&gt;&lt;br /&gt;You can download the full source code&lt;br /&gt;&lt;br /&gt;&lt;div class="downloadblock"&gt;  &lt;br /&gt;Download &lt;a href="http://www.ziddu.com/download/14686540/MapIcons.zip.html"&gt;source&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;Have a good day.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5197277884634195738-1897673315883896612?l=android-codes-examples.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://android-codes-examples.blogspot.com/feeds/1897673315883896612/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://android-codes-examples.blogspot.com/2011/04/google-map-example-in-android-with-info.html#comment-form' title='18 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5197277884634195738/posts/default/1897673315883896612'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5197277884634195738/posts/default/1897673315883896612'/><link rel='alternate' type='text/html' href='http://android-codes-examples.blogspot.com/2011/04/google-map-example-in-android-with-info.html' title='Google map example in android with info window (Popup) and multiple markers and zoom controls'/><author><name>Keerthy</name><uri>http://www.blogger.com/profile/10048420864647222363</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/-PrYuYQMcGcc/Ta__3fCcw7I/AAAAAAAAAGU/xCxjK3slU4k/s72-c/google_map_marker_tooltip_popup_android.JPG' height='72' width='72'/><thr:total>18</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5197277884634195738.post-2321478849222460994</id><published>2011-04-06T20:27:00.001-07:00</published><updated>2011-08-05T23:09:48.425-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='e-books'/><category scheme='http://www.blogger.com/atom/ns#' term='books'/><category scheme='http://www.blogger.com/atom/ns#' term='ebooks'/><category scheme='http://www.blogger.com/atom/ns#' term='android'/><title type='text'>Android Books - you can download android ebooks</title><content type='html'>You can download ebooks&lt;br /&gt;&lt;br /&gt;Beginning Android 2&lt;br /&gt;Begin the journey toward your own&lt;br /&gt;successful Android 2 applications&lt;br /&gt;Mark L. Murphy&lt;br /&gt;&lt;br /&gt;&lt;div class="downloadblock"&gt;  &lt;br /&gt;Download &lt;a href="http://www.ziddu.com/download/14495601/Beginning.Android.2.pdf.html"&gt;Beginning Android 2 - Mark L. Murphy&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;Pro Android&lt;br /&gt;Sayed Y. Hashimi and Satya Komatineni&lt;br /&gt;&lt;br /&gt;&lt;div class="downloadblock"&gt;  &lt;br /&gt;Download &lt;a href="http://www.ziddu.com/download/14495638/Apress-ProAndroid.pdf.html"&gt;Pro Android - Sayed Y. Hashimi and Satya Komatineni&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;Unlocking Android&lt;br /&gt;A developer guide&lt;br /&gt;Frank Ableson&lt;br /&gt;Charlie Collins&lt;br /&gt;Robi Sen&lt;br /&gt;FOREWORD BY DICK WALL&lt;br /&gt;&lt;br /&gt;&lt;div class="downloadblock"&gt;  &lt;br /&gt;Download &lt;a href="http://www.ziddu.com/download/14495649/Manning-UnlockingAndroid2009.pdf.html"&gt;Unlocking Android - Frank Ableson, Charlie Collins, Robi Sen FOREWORD BY DICK WALL&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;The Busy Codes Guide to &lt;br /&gt;Android Developement&lt;br /&gt;Mark L. Murphy&lt;br /&gt;&lt;br /&gt;&lt;div class="downloadblock"&gt;  &lt;br /&gt;Download &lt;a href="http://www.ziddu.com/download/14495666/The.Busy.Coders.Guide.to.Android.Development.pdf.html"&gt;Android Developement - Mark L. Murphy&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;Beginning Android&lt;br /&gt;Master Android from first principles&lt;br /&gt;and begin the journey toward your&lt;br /&gt;own successful Android applications!&lt;br /&gt;Mark L. Murphy&lt;br /&gt;&lt;br /&gt;&lt;div class="downloadblock"&gt;  &lt;br /&gt;Download &lt;a href="http://www.ziddu.com/download/14495624/Apress-BeginningAndroid.pdf.html"&gt;Beginning Android - Mark L. Murphy&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Have a good day.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5197277884634195738-2321478849222460994?l=android-codes-examples.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://android-codes-examples.blogspot.com/feeds/2321478849222460994/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://android-codes-examples.blogspot.com/2011/04/android-books-you-can-download-android.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5197277884634195738/posts/default/2321478849222460994'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5197277884634195738/posts/default/2321478849222460994'/><link rel='alternate' type='text/html' href='http://android-codes-examples.blogspot.com/2011/04/android-books-you-can-download-android.html' title='Android Books - you can download android ebooks'/><author><name>Keerthy</name><uri>http://www.blogger.com/profile/10048420864647222363</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5197277884634195738.post-4177383424625087585</id><published>2011-04-05T02:03:00.000-07:00</published><updated>2011-08-05T23:09:24.791-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='transparent'/><category scheme='http://www.blogger.com/atom/ns#' term='Button'/><category scheme='http://www.blogger.com/atom/ns#' term='animated'/><category scheme='http://www.blogger.com/atom/ns#' term='popup'/><category scheme='http://www.blogger.com/atom/ns#' term='animation'/><category scheme='http://www.blogger.com/atom/ns#' term='design'/><category scheme='http://www.blogger.com/atom/ns#' term='gradient-effect'/><category scheme='http://www.blogger.com/atom/ns#' term='linearlayout'/><category scheme='http://www.blogger.com/atom/ns#' term='android'/><title type='text'>Animated customized dialog or popup transparent layout with Button and Linear layout gradient effect in android</title><content type='html'>The image shown below is an example of animated customized popup with transparent layout for button and linearlayout, and the linearlayout and button is given gradient effect&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/-X0MlgmWVXe0/TZra7WYoboI/AAAAAAAAAGM/iT16gG7oChE/s1600/animated_popup_gradient_button_linearlayout.JPG"&gt;&lt;img style="display: block; margin: 0px auto 10px; text-align: center; cursor: pointer; width: 224px; height: 320px;" src="http://2.bp.blogspot.com/-X0MlgmWVXe0/TZra7WYoboI/AAAAAAAAAGM/iT16gG7oChE/s320/animated_popup_gradient_button_linearlayout.JPG" alt="" id="BLOGGER_PHOTO_ID_5592022600489922178" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;How to get a transparent layout? For that we need to use a transparent class&lt;br /&gt;&lt;br /&gt;&lt;div class="innerblock"&gt; &lt;br /&gt;&lt;strong&gt;TransparentPanel.java&lt;/strong&gt;&lt;br /&gt;&lt;pre class="innertextblock"&gt;package com.popup.design.layers;&lt;br /&gt;&lt;br /&gt;import android.content.Context;&lt;br /&gt;import android.graphics.Canvas;&lt;br /&gt;import android.graphics.Paint;&lt;br /&gt;import android.graphics.RectF;&lt;br /&gt;import android.graphics.Paint.Style;&lt;br /&gt;import android.util.AttributeSet;&lt;br /&gt;import android.widget.LinearLayout;&lt;br /&gt;&lt;br /&gt;public class TransparentPanel extends LinearLayout&lt;br /&gt;{&lt;br /&gt;private Paint innerPaint, borderPaint ;&lt;br /&gt;  &lt;br /&gt;public TransparentPanel(Context context, AttributeSet attrs) {&lt;br /&gt; super(context, attrs);&lt;br /&gt; init();&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;public TransparentPanel(Context context) {&lt;br /&gt; super(context);&lt;br /&gt; init();&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;private void init() {&lt;br /&gt; innerPaint = new Paint();&lt;br /&gt; innerPaint.setARGB(225, 0, 0, 0);&lt;br /&gt; innerPaint.setAntiAlias(true);&lt;br /&gt;&lt;br /&gt; borderPaint = new Paint();&lt;br /&gt; borderPaint.setARGB(255, 0, 0, 0);&lt;br /&gt; borderPaint.setAntiAlias(true);&lt;br /&gt; borderPaint.setStyle(Style.STROKE);&lt;br /&gt; borderPaint.setStrokeWidth(2);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;public void setInnerPaint(Paint innerPaint) {&lt;br /&gt; this.innerPaint = innerPaint;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;public void setBorderPaint(Paint borderPaint) {&lt;br /&gt; this.borderPaint = borderPaint;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;   @Override&lt;br /&gt;   protected void dispatchDraw(Canvas canvas) {&lt;br /&gt;   &lt;br /&gt;    RectF drawRect = new RectF();&lt;br /&gt;    drawRect.set(0,0, getMeasuredWidth(), getMeasuredHeight());&lt;br /&gt;   &lt;br /&gt;    canvas.drawRoundRect(drawRect, 5, 5, innerPaint);&lt;br /&gt; canvas.drawRoundRect(drawRect, 5, 5, borderPaint);&lt;br /&gt;&lt;br /&gt; super.dispatchDraw(canvas);&lt;br /&gt;   }&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;   &lt;/div&gt;&lt;br /&gt;&lt;br /&gt;We need to use this transparentPanel class in the xml file, where we need the transparent layout, in the popup.xml we are using the com.popup.design.layers.TransparentPanel instead of LinearLayout, see in the code&lt;br /&gt;&lt;br /&gt;&lt;div class="innerblock"&gt; &lt;br /&gt;&lt;strong&gt;popup.xml&lt;/strong&gt;&lt;br /&gt;&lt;pre class="innertextblock"&gt;&lt;br /&gt;&amp;lt;?xml version="1.0" encoding="utf-8"?&gt;&lt;br /&gt;&amp;lt;FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"&lt;br /&gt;android:orientation="vertical"&lt;br /&gt;android:background="@drawable/white"&lt;br /&gt;android:layout_width="fill_parent" android:layout_height="fill_parent"&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;Button android:id="@+id/show_popup_button" android:layout_gravity="bottom"&lt;br /&gt; android:layout_width="wrap_content" android:layout_height="wrap_content"&lt;br /&gt; android:layout_marginBottom="25px" android:text="Show Popup" /&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;com.popup.design.layers.TransparentPanel&lt;br /&gt; android:id="@+id/popup_window" android:layout_width="fill_parent"&lt;br /&gt; android:layout_height="wrap_content" android:orientation="vertical"&lt;br /&gt; android:layout_gravity="bottom" android:gravity="left" android:padding="1px"&lt;br /&gt; android:background="@drawable/white"&amp;gt;&lt;br /&gt;&lt;br /&gt; &amp;lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"&lt;br /&gt;  android:orientation="vertical" android:gravity="right"&lt;br /&gt;  android:layout_width="fill_parent" android:layout_height="fill_parent"&lt;br /&gt;  android:background="@drawable/button_bar_gradient"&amp;gt;&lt;br /&gt;&lt;br /&gt;  &amp;lt;Button android:id="@+id/hide_popup_button"&lt;br /&gt;   android:layout_width="wrap_content" android:layout_height="wrap_content"&lt;br /&gt;   android:layout_alignParentRight="true" android:layout_marginTop="5px"&lt;br /&gt;   android:layout_marginRight="10px" android:paddingLeft="5px"&lt;br /&gt;   android:paddingRight="5px" style="?android:attr/buttonStyleSmall"&lt;br /&gt;   android:textStyle="bold" android:textColor="@drawable/white"&lt;br /&gt;   android:textSize="12px" android:text="  Close  " android:background="@drawable/button_close"/&amp;gt;&lt;br /&gt;&lt;br /&gt;  &amp;lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"&lt;br /&gt;   android:orientation="vertical" android:layout_width="fill_parent"&lt;br /&gt;   android:layout_height="1px" android:layout_marginTop="5px"&lt;br /&gt;   android:layout_below="@+id/hide_popup_button" android:background="@drawable/white" /&amp;gt;&lt;br /&gt; &amp;lt;/RelativeLayout&amp;gt;&lt;br /&gt;&lt;br /&gt; &amp;lt;TextView android:id="@+id/location_name"&lt;br /&gt;  android:layout_width="wrap_content" android:layout_height="wrap_content"&lt;br /&gt;  android:textStyle="bold" android:textSize="16px" android:textColor="@drawable/white"&lt;br /&gt;  android:layout_marginTop="5px" android:layout_marginLeft="5px" /&amp;gt;&lt;br /&gt;&lt;br /&gt; &amp;lt;TextView android:id="@+id/location_description"&lt;br /&gt;  android:layout_width="wrap_content" android:layout_height="wrap_content"&lt;br /&gt;  android:textColor="@drawable/white" android:layout_margin="5px" /&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;/com.popup.design.layers.TransparentPanel&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;/FrameLayout&amp;gt;&lt;br /&gt;&lt;/pre&gt;   &lt;/div&gt;&lt;br /&gt;&lt;br /&gt;Customized Popup is the com.popup.design.layers.TransparentPanel, initially we will hide this layout, and on the button click will show this layout. The java code is as follows&lt;br /&gt;&lt;br /&gt;&lt;div class="innerblock"&gt; &lt;br /&gt;&lt;strong&gt;AnimatePopup.java&lt;/strong&gt;&lt;br /&gt;&lt;pre class="innertextblock"&gt;package com.popup.design;&lt;br /&gt;&lt;br /&gt;import com.popup.design.layers.TransparentPanel;&lt;br /&gt;&lt;br /&gt;import android.app.Activity;&lt;br /&gt;import android.os.Bundle;&lt;br /&gt;import android.view.View;&lt;br /&gt;import android.view.animation.Animation;&lt;br /&gt;import android.view.animation.AnimationUtils;&lt;br /&gt;import android.widget.Button;&lt;br /&gt;import android.widget.TextView;&lt;br /&gt;&lt;br /&gt;/**&lt;br /&gt;*&lt;br /&gt;* @author http://www.android-codes-examples.blogspot.com/&lt;br /&gt;*&lt;br /&gt;*/&lt;br /&gt;public class AnimatePopup extends Activity {&lt;br /&gt;&lt;br /&gt;private Animation animShow, animHide;&lt;br /&gt;&lt;br /&gt;@Override&lt;br /&gt;public void onCreate(Bundle icicle) {&lt;br /&gt;   &lt;br /&gt;       super.onCreate(icicle);&lt;br /&gt;&lt;br /&gt;       setContentView(R.layout.popup);&lt;br /&gt;   &lt;br /&gt;       initPopup();&lt;br /&gt;   }&lt;br /&gt;  &lt;br /&gt;   private void initPopup() {&lt;br /&gt;   &lt;br /&gt;    final TransparentPanel popup = (TransparentPanel) findViewById(R.id.popup_window);&lt;br /&gt;&lt;br /&gt;    //  Start out with the popup initially hidden.&lt;br /&gt;    popup.setVisibility(View.GONE);&lt;br /&gt;   &lt;br /&gt;   &lt;br /&gt;    animShow = AnimationUtils.loadAnimation( this, R.anim.popup_show);&lt;br /&gt;    animHide = AnimationUtils.loadAnimation( this, R.anim.popup_hide);&lt;br /&gt;   &lt;br /&gt;    final Button   showButton = (Button) findViewById(R.id.show_popup_button);&lt;br /&gt;    final Button   hideButton = (Button) findViewById(R.id.hide_popup_button);&lt;br /&gt;    showButton.setOnClickListener(new View.OnClickListener() {&lt;br /&gt;  public void onClick(View view) {&lt;br /&gt;   popup.setVisibility(View.VISIBLE);&lt;br /&gt;   popup.startAnimation( animShow );&lt;br /&gt;   showButton.setEnabled(false);&lt;br /&gt;   hideButton.setEnabled(true);&lt;br /&gt;       }});&lt;br /&gt;      &lt;br /&gt;       hideButton.setOnClickListener(new View.OnClickListener() {&lt;br /&gt;  public void onClick(View view) {&lt;br /&gt;   popup.startAnimation( animHide );&lt;br /&gt;   showButton.setEnabled(true);&lt;br /&gt;   hideButton.setEnabled(false);&lt;br /&gt;   popup.setVisibility(View.GONE);&lt;br /&gt;       }});&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;    final TextView locationName = (TextView) findViewById(R.id.location_name);&lt;br /&gt;       final TextView locationDescription = (TextView) findViewById(R.id.location_description);&lt;br /&gt;      &lt;br /&gt;       locationName.setText("Animated Popup");&lt;br /&gt;       locationDescription.setText("Animated popup is created by http://www.android-codes-examples.blogspot.com/"&lt;br /&gt;              + " Transparent layout is used on this example, and animation xml is also used"&lt;br /&gt;              + " on this example. Have a Good day guys.");&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;   &lt;/div&gt;&lt;br /&gt;&lt;br /&gt;For giving gradient effect we need to use this xml file as the background for the linearlayout or button. The xml file is&lt;br /&gt;&lt;br /&gt;&lt;div class="innerblock"&gt; &lt;br /&gt;&lt;strong&gt;button_bar_gradient.xml&lt;/strong&gt;&lt;br /&gt;&lt;pre class="innertextblock"&gt;&amp;lt;?xml version="1.0" encoding="utf-8"?&amp;gt;&lt;br /&gt;&amp;lt;shape xmlns:android="http://schemas.android.com/apk/res/android"&amp;gt;&lt;br /&gt;&amp;lt;gradient  android:startColor="#C0C0C0"&lt;br /&gt;   android:endColor="#505050"&lt;br /&gt;            android:angle="90"/&amp;gt;  &lt;br /&gt;   &amp;lt;corners android:radius="2px" /&amp;gt;&lt;br /&gt;&amp;lt;/shape&amp;gt;&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;   &lt;/div&gt;&lt;br /&gt;&lt;br /&gt;In the popup.xml we had used the button_bar_gradient as a background. This button_bar_gradient.xml will be in drawable folder.&lt;br /&gt;&lt;br /&gt;You can download the full source code&lt;br /&gt;&lt;br /&gt;&lt;div class="downloadblock"&gt; &lt;br /&gt;Download &lt;a href="http://www.ziddu.com/download/14471598/Popup.zip.html"&gt;source&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;Have a good day.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5197277884634195738-4177383424625087585?l=android-codes-examples.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://android-codes-examples.blogspot.com/feeds/4177383424625087585/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://android-codes-examples.blogspot.com/2011/04/animated-customized-popup-transparent.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5197277884634195738/posts/default/4177383424625087585'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5197277884634195738/posts/default/4177383424625087585'/><link rel='alternate' type='text/html' href='http://android-codes-examples.blogspot.com/2011/04/animated-customized-popup-transparent.html' title='Animated customized dialog or popup transparent layout with Button and Linear layout gradient effect in android'/><author><name>Keerthy</name><uri>http://www.blogger.com/profile/10048420864647222363</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/-X0MlgmWVXe0/TZra7WYoboI/AAAAAAAAAGM/iT16gG7oChE/s72-c/animated_popup_gradient_button_linearlayout.JPG' height='72' width='72'/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5197277884634195738.post-1011201169080839451</id><published>2011-04-04T20:28:00.000-07:00</published><updated>2011-08-05T23:08:57.543-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='scroll'/><category scheme='http://www.blogger.com/atom/ns#' term='onListItemClick'/><category scheme='http://www.blogger.com/atom/ns#' term='onScroll'/><category scheme='http://www.blogger.com/atom/ns#' term='radio'/><category scheme='http://www.blogger.com/atom/ns#' term='onScrollStateChanged'/><category scheme='http://www.blogger.com/atom/ns#' term='passing array in bundle'/><category scheme='http://www.blogger.com/atom/ns#' term='simple_list_item_single_choice'/><category scheme='http://www.blogger.com/atom/ns#' term='listactivity'/><category scheme='http://www.blogger.com/atom/ns#' term='bundle'/><category scheme='http://www.blogger.com/atom/ns#' term='android'/><title type='text'>ListActivity with remembering the last clicks of the radio button in android</title><content type='html'>We are going to see about using the ListActivity with radio button example and we are going to see, how to remember the last clicked on this listactivity before going to another activity. The view will be like this&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/-B6VP-5MYj8k/TZqMbCTv0kI/AAAAAAAAAGE/vukWUVL3v_k/s1600/listview_radio_click_data.JPG"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 224px; height: 320px;" src="http://4.bp.blogspot.com/-B6VP-5MYj8k/TZqMbCTv0kI/AAAAAAAAAGE/vukWUVL3v_k/s320/listview_radio_click_data.JPG" border="0" alt=""id="BLOGGER_PHOTO_ID_5591936283437945410" /&gt;&lt;/a&gt;&lt;br /&gt;The ListActivity with radio button can be done by using this xml code in the layout&lt;br /&gt;&lt;br /&gt;&lt;div class="innerblock"&gt;  &lt;br /&gt;&lt;strong&gt;XML&lt;/strong&gt;&lt;br /&gt;&lt;pre class="innertextblock"  &gt;&lt;br /&gt;&amp;lt;ListView&lt;br /&gt;android:id="@android:id/list"&lt;br /&gt;android:layout_width="fill_parent"&lt;br /&gt;android:layout_height="fill_parent"&lt;br /&gt;android:background="#2c0bf9"&lt;br /&gt;android:cacheColorHint="#2c0bf9"&lt;br /&gt;android:drawSelectorOnTop="false"&lt;br /&gt;/&gt;&lt;br /&gt;&lt;/pre&gt;   &lt;/div&gt;&lt;br /&gt;&lt;br /&gt;In the above mentioned xml, we used the android:id as @android:id/list, it is because we are going to use ListActivity. After that we need to insert the code in the java file as &lt;br /&gt;&lt;br /&gt;&lt;div class="innerblock"&gt;  &lt;br /&gt;&lt;strong&gt;Java&lt;/strong&gt;&lt;br /&gt;&lt;pre class="innertextblock"  &gt;&lt;br /&gt;setListAdapter(new ArrayAdapter&lt;String&gt;(this,&lt;br /&gt; android.R.layout.simple_list_item_single_choice, items));&lt;br /&gt;&lt;/pre&gt;   &lt;/div&gt;&lt;br /&gt;&lt;br /&gt;and for check operation we need to call the selector function, in that itemClicked is a int array where we will be storing whether the row is clicked or not, this will be maintained of item click, the selector and item click functions are follows&lt;br /&gt;&lt;br /&gt;&lt;div class="innerblock"&gt;  &lt;br /&gt;&lt;strong&gt;Java&lt;/strong&gt;&lt;br /&gt;&lt;pre class="innertextblock"  &gt;&lt;br /&gt;private void selector(int first,int total) {&lt;br /&gt; for (int i = 0; i &lt; total; i++) {&lt;br /&gt; View v = getListView().getChildAt(i);&lt;br /&gt; CheckedTextView check = (CheckedTextView) v;&lt;br /&gt; if(itemClicked[first+i]==1)&lt;br /&gt;  check.setChecked(true);&lt;br /&gt; else&lt;br /&gt;  check.setChecked(false); &lt;br /&gt; }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;@Override&lt;br /&gt;protected void onListItemClick(ListView l, View v, int position, long id) {&lt;br /&gt; selectFlag = true;&lt;br /&gt; CheckedTextView check = (CheckedTextView) v;&lt;br /&gt; boolean click = !check.isChecked();&lt;br /&gt; check.setChecked(click);&lt;br /&gt; if (click) {&lt;br /&gt;  itemClicked[position] = 1;&lt;br /&gt; } else {&lt;br /&gt;  itemClicked[position] = 0;&lt;br /&gt; } &lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;   &lt;/div&gt;&lt;br /&gt;&lt;br /&gt;We need the scroller listener, so that the last checked can be checked while scrolling, for implementing the scroll first we need to implement scroll listener as&lt;br /&gt;&lt;br /&gt;&lt;div class="innerblock"&gt;  &lt;br /&gt;&lt;strong&gt;Java&lt;/strong&gt;&lt;br /&gt;&lt;pre class="innertextblock"  &gt;&lt;br /&gt;public class StoreClicks extends ListActivity implements ListView.OnScrollListener&lt;br /&gt;&lt;/pre&gt;   &lt;/div&gt;&lt;br /&gt;&lt;br /&gt;then in the onscroll we need to call the selector method&lt;br /&gt;&lt;br /&gt;&lt;div class="innerblock"&gt;  &lt;br /&gt;&lt;strong&gt;Java&lt;/strong&gt;&lt;br /&gt;&lt;pre class="innertextblock"  &gt;&lt;br /&gt;@Override&lt;br /&gt;public void onScroll(AbsListView view, int firstVisibleItem,&lt;br /&gt;  int visibleItemCount, int totalItemCount) {&lt;br /&gt; &lt;br /&gt; if(visibleItemCount == 6 &amp;&amp; !firstTimeFlag) {&lt;br /&gt;  selector(0,6);&lt;br /&gt;  firstTimeFlag = true;&lt;br /&gt; }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;@Override&lt;br /&gt;public void onScrollStateChanged(AbsListView view, int scrollState) {&lt;br /&gt; switch (scrollState) {&lt;br /&gt; case OnScrollListener.SCROLL_STATE_IDLE:&lt;br /&gt;  int first = view.getFirstVisiblePosition();&lt;br /&gt;  int last = view.getLastVisiblePosition();&lt;br /&gt;  int childCount = view.getChildCount();&lt;br /&gt;  selector(first,childCount);&lt;br /&gt;  break;&lt;br /&gt;&lt;br /&gt; case OnScrollListener.SCROLL_STATE_TOUCH_SCROLL:&lt;br /&gt;  break;&lt;br /&gt;&lt;br /&gt; case OnScrollListener.SCROLL_STATE_FLING:&lt;br /&gt;  break;&lt;br /&gt; }  &lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;   &lt;/div&gt;&lt;br /&gt;&lt;br /&gt;In the onScroll method the selector will be called only one time, after that onScrollStateChanged selector method will be called, this is why means, for the first page only the items will be visible, we can check or uncheck, so only we are doing like this. The full StoreClicks.java file will be like this&lt;br /&gt;&lt;br /&gt;&lt;div class="innerblock"&gt;  &lt;br /&gt;&lt;strong&gt;StoreClicks.java&lt;/strong&gt;&lt;br /&gt;&lt;pre class="innertextblock"  &gt;&lt;br /&gt;package com.clicks.list;&lt;br /&gt;&lt;br /&gt;import android.app.ListActivity;&lt;br /&gt;import android.content.Intent;&lt;br /&gt;import android.os.Bundle;&lt;br /&gt;import android.view.View;&lt;br /&gt;import android.widget.AbsListView;&lt;br /&gt;import android.widget.ArrayAdapter;&lt;br /&gt;import android.widget.Button;&lt;br /&gt;import android.widget.CheckedTextView;&lt;br /&gt;import android.widget.ListView;&lt;br /&gt;import android.widget.Toast;&lt;br /&gt;import android.widget.AbsListView.OnScrollListener;&lt;br /&gt;&lt;br /&gt;/**&lt;br /&gt; * &lt;br /&gt; * @author http://www.android-codes-examples.blogspot.com/&lt;br /&gt; * &lt;br /&gt; */&lt;br /&gt;&lt;br /&gt;public class StoreClicks extends ListActivity implements&lt;br /&gt;  ListView.OnScrollListener {&lt;br /&gt; private static String[] items = { "Joseph", "George", "Mary", "Antony",&lt;br /&gt;   "Albert", "Michel", "John", "Abraham", "Mark", "Savior",&lt;br /&gt;   "Kristopher", "Thomas", "Williams", "Assisi", "Sebastian",&lt;br /&gt;   "Aloysius", "Alex", "Daniel", "Anto", "Alexandar", "Brito",&lt;br /&gt;   "Robert", "Jose", "Paul", "Peter" };&lt;br /&gt; private int[] itemClicked = new int[25];&lt;br /&gt; private boolean selectFlag = false; // this will be changed to true if a&lt;br /&gt; private boolean firstTimeFlag = false;&lt;br /&gt; // item is clicked&lt;br /&gt;&lt;br /&gt; @Override&lt;br /&gt; public void onCreate(Bundle savedInstanceState) {&lt;br /&gt;  super.onCreate(savedInstanceState);&lt;br /&gt;  setContentView(R.layout.main);&lt;br /&gt;  Button click = (Button) findViewById(R.id.click);&lt;br /&gt;  &lt;br /&gt;  Bundle extras = getIntent().getExtras();&lt;br /&gt;  try{&lt;br /&gt;  itemClicked = (int[])extras.getIntArray("clicks");&lt;br /&gt;  }catch(NullPointerException e){}&lt;br /&gt;  if(null == itemClicked)&lt;br /&gt;  {&lt;br /&gt;   itemClicked = new int[25];&lt;br /&gt;   for (int i = 0; i &lt; 25; i++) {&lt;br /&gt;    itemClicked[i] = 0;&lt;br /&gt;   }&lt;br /&gt;  }&lt;br /&gt;  click.setOnClickListener(new View.OnClickListener() {&lt;br /&gt;&lt;br /&gt;   @Override&lt;br /&gt;   public void onClick(View v) {&lt;br /&gt;    if (selectFlag) {&lt;br /&gt;     Intent intent = new Intent(StoreClicks.this, TabPage.class);&lt;br /&gt;     Bundle extras = new Bundle();&lt;br /&gt;     extras.putIntArray("clicks", itemClicked);&lt;br /&gt;     intent.putExtras(extras);&lt;br /&gt;     startActivity(intent);&lt;br /&gt;     finish();&lt;br /&gt;    } else {&lt;br /&gt;     Toast.makeText(StoreClicks.this,&lt;br /&gt;       "You must select atleast an item",&lt;br /&gt;       Toast.LENGTH_SHORT).show();&lt;br /&gt;    }&lt;br /&gt;   }&lt;br /&gt;  });&lt;br /&gt;  setListAdapter(new ArrayAdapter&lt;String&gt;(this,&lt;br /&gt;    android.R.layout.simple_list_item_single_choice,&lt;br /&gt;    items));&lt;br /&gt;  getListView().setOnScrollListener(this);&lt;br /&gt; }&lt;br /&gt;&lt;br /&gt; private void selector(int first,int total) {&lt;br /&gt;  for (int i = 0; i &lt; total; i++) {&lt;br /&gt;   View v = getListView().getChildAt(i);&lt;br /&gt;   CheckedTextView check = (CheckedTextView) v;&lt;br /&gt;   if(itemClicked[first+i]==1)&lt;br /&gt;    check.setChecked(true);&lt;br /&gt;   else&lt;br /&gt;    check.setChecked(false); &lt;br /&gt;  }&lt;br /&gt; }&lt;br /&gt;&lt;br /&gt; @Override&lt;br /&gt; protected void onListItemClick(ListView l, View v, int position, long id) {&lt;br /&gt;  selectFlag = true;&lt;br /&gt;  CheckedTextView check = (CheckedTextView) v;&lt;br /&gt;  boolean click = !check.isChecked();&lt;br /&gt;  check.setChecked(click);&lt;br /&gt;  if (click) {&lt;br /&gt;   itemClicked[position] = 1;&lt;br /&gt;  } else {&lt;br /&gt;   itemClicked[position] = 0;&lt;br /&gt;  } &lt;br /&gt; }&lt;br /&gt;&lt;br /&gt; @Override&lt;br /&gt; public void onScroll(AbsListView view, int firstVisibleItem,&lt;br /&gt;   int visibleItemCount, int totalItemCount) {&lt;br /&gt;  &lt;br /&gt;  if(visibleItemCount == 6 &amp;&amp; !firstTimeFlag) {&lt;br /&gt;   selector(0,6);&lt;br /&gt;   firstTimeFlag = true;&lt;br /&gt;  }&lt;br /&gt; }&lt;br /&gt;&lt;br /&gt; @Override&lt;br /&gt; public void onScrollStateChanged(AbsListView view, int scrollState) {&lt;br /&gt;  switch (scrollState) {&lt;br /&gt;  case OnScrollListener.SCROLL_STATE_IDLE:&lt;br /&gt;   int first = view.getFirstVisiblePosition();&lt;br /&gt;   int last = view.getLastVisiblePosition();&lt;br /&gt;   int childCount = view.getChildCount();&lt;br /&gt;   selector(first,childCount);&lt;br /&gt;   break;&lt;br /&gt;&lt;br /&gt;  case OnScrollListener.SCROLL_STATE_TOUCH_SCROLL:&lt;br /&gt;   break;&lt;br /&gt;&lt;br /&gt;  case OnScrollListener.SCROLL_STATE_FLING:&lt;br /&gt;   break;&lt;br /&gt;  }  &lt;br /&gt;&lt;br /&gt; }&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;   &lt;/div&gt;&lt;br /&gt;&lt;br /&gt;The itemClicked array should be passed in the bundle to the next activity and vice verse to this activity, so that the clicks will be maintained and we can check it explicitly&lt;br /&gt;&lt;br /&gt;You can download the full source code&lt;br /&gt;&lt;br /&gt;&lt;div class="downloadblock"&gt;  &lt;br /&gt;Download &lt;a href="http://www.ziddu.com/download/14469610/RememberClicks.zip.html"&gt;source&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;Have a good day.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5197277884634195738-1011201169080839451?l=android-codes-examples.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://android-codes-examples.blogspot.com/feeds/1011201169080839451/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://android-codes-examples.blogspot.com/2011/04/listactivity-with-remembering-last.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5197277884634195738/posts/default/1011201169080839451'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5197277884634195738/posts/default/1011201169080839451'/><link rel='alternate' type='text/html' href='http://android-codes-examples.blogspot.com/2011/04/listactivity-with-remembering-last.html' title='ListActivity with remembering the last clicks of the radio button in android'/><author><name>Keerthy</name><uri>http://www.blogger.com/profile/10048420864647222363</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/-B6VP-5MYj8k/TZqMbCTv0kI/AAAAAAAAAGE/vukWUVL3v_k/s72-c/listview_radio_click_data.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5197277884634195738.post-5999138176813508606</id><published>2011-03-29T21:28:00.000-07:00</published><updated>2011-08-05T23:08:40.482-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='simple_list_item_checked'/><category scheme='http://www.blogger.com/atom/ns#' term='onListItemClick'/><category scheme='http://www.blogger.com/atom/ns#' term='sleep'/><category scheme='http://www.blogger.com/atom/ns#' term='listactivity'/><category scheme='http://www.blogger.com/atom/ns#' term='asynctask'/><category scheme='http://www.blogger.com/atom/ns#' term='android'/><category scheme='http://www.blogger.com/atom/ns#' term='systemclock'/><title type='text'>ListActivity with checkbox using AsyncTask with sleep time example in android</title><content type='html'>We are going to see about using the ListActivity with checkbox example and we are going to see, how to using the AsyncTask with a good example, here we will be using sleep call, it is optional. The view will be like this&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/-AHogGzUh-pk/TZKxfQLIE9I/AAAAAAAAAF8/k44ZWUgxhY8/s1600/asyncTask_listActivity_simple_list_item_checked.JPG"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 223px; height: 320px;" src="http://2.bp.blogspot.com/-AHogGzUh-pk/TZKxfQLIE9I/AAAAAAAAAF8/k44ZWUgxhY8/s320/asyncTask_listActivity_simple_list_item_checked.JPG" border="0" alt=""id="BLOGGER_PHOTO_ID_5589725237995901906" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;First we can see about using sleep option in android, in our code we used this &lt;br /&gt;&lt;br /&gt;&lt;div class="innerblock"&gt;  &lt;br /&gt;&lt;strong&gt;Java&lt;/strong&gt;&lt;br /&gt;&lt;pre class="innertextblock"  &gt;&lt;br /&gt; for (String item : items) {&lt;br /&gt; publishProgress(item);&lt;br /&gt; SystemClock.sleep(200);&lt;br /&gt; }&lt;br /&gt;&lt;/pre&gt;   &lt;/div&gt;&lt;br /&gt;&lt;br /&gt;Here SystemClock.sleep(200); is used to sleep for a while, for this ListActivity with checkBox or AsyncTask this is not compulsory, this is used in this example for making to know about this sleep option.&lt;br /&gt;&lt;br /&gt;The ListActivity with check box can be done by using this xml code in the layout&lt;br /&gt;&lt;br /&gt;&lt;div class="innerblock"&gt;  &lt;br /&gt;&lt;strong&gt;XML&lt;/strong&gt;&lt;br /&gt;&lt;pre class="innertextblock"  &gt;&lt;br /&gt;&amp;lt;ListView&lt;br /&gt;xmlns:android="http://schemas.android.com/apk/res/android"&lt;br /&gt;android:id="@android:id/list"&lt;br /&gt;android:layout_width="fill_parent"&lt;br /&gt;android:layout_height="fill_parent"&lt;br /&gt;android:drawSelectorOnTop="false"&lt;br /&gt;/&gt;&lt;br /&gt;&lt;/pre&gt;   &lt;/div&gt;&lt;br /&gt;&lt;br /&gt;like that we need to insert the code in the java file as &lt;br /&gt;&lt;br /&gt;&lt;div class="innerblock"&gt;  &lt;br /&gt;&lt;strong&gt;Java&lt;/strong&gt;&lt;br /&gt;&lt;pre class="innertextblock"  &gt;&lt;br /&gt;setListAdapter(new ArrayAdapter&lt;String&gt;(this,&lt;br /&gt;  android.R.layout.simple_list_item_checked, new ArrayList()));&lt;br /&gt;&lt;/pre&gt;   &lt;/div&gt;&lt;br /&gt;&lt;br /&gt;and for check operation we need to override the function as&lt;br /&gt;&lt;br /&gt;&lt;div class="innerblock"&gt;  &lt;br /&gt;&lt;strong&gt;Java&lt;/strong&gt;&lt;br /&gt;&lt;pre class="innertextblock"  &gt;&lt;br /&gt;@Override&lt;br /&gt;protected void onListItemClick(ListView l, View v, int position, long id) {&lt;br /&gt;    CheckedTextView check = (CheckedTextView)v;&lt;br /&gt;    check.setChecked(!check.isChecked());&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;   &lt;/div&gt;&lt;br /&gt;&lt;br /&gt;That will do for showing a List view using the ListActivity, for using the AsyncTask, we need to call the AsyncTask class like&lt;br /&gt;&lt;br /&gt;&lt;div class="innerblock"&gt;  &lt;br /&gt;&lt;strong&gt;Java&lt;/strong&gt;&lt;br /&gt;&lt;pre class="innertextblock"  &gt;&lt;br /&gt;new AddStringTask().execute();&lt;br /&gt;&lt;/pre&gt;   &lt;/div&gt;&lt;br /&gt;&lt;br /&gt;On this call the AsyncTask class will be called &lt;br /&gt;&lt;br /&gt;&lt;div class="innerblock"&gt;  &lt;br /&gt;&lt;strong&gt;Java&lt;/strong&gt;&lt;br /&gt;&lt;pre class="innertextblock"  &gt;&lt;br /&gt;class AddStringTask extends AsyncTask&lt;Void, String, Void&gt; {&lt;br /&gt; @Override&lt;br /&gt; protected Void doInBackground(Void... unused) {&lt;br /&gt;  for (String item : items) {&lt;br /&gt;   publishProgress(item);&lt;br /&gt;   SystemClock.sleep(200);&lt;br /&gt;  }&lt;br /&gt;&lt;br /&gt;  return (null);&lt;br /&gt; }&lt;br /&gt;&lt;br /&gt; @Override&lt;br /&gt; protected void onProgressUpdate(String... item) {&lt;br /&gt;  ((ArrayAdapter) getListAdapter()).add(item[0]);&lt;br /&gt; }&lt;br /&gt;&lt;br /&gt; @Override&lt;br /&gt; protected void onPostExecute(Void unused) {&lt;br /&gt;  setSelection(3);&lt;br /&gt;  Toast.makeText(AsyncTaskDemo.this, "Done!", Toast.LENGTH_SHORT).show();&lt;br /&gt; }&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;   &lt;/div&gt;&lt;br /&gt;&lt;br /&gt;The full AsyncTaskDemo.java file will be like this&lt;br /&gt;&lt;br /&gt;&lt;div class="innerblock"&gt;  &lt;br /&gt;&lt;strong&gt;Java&lt;/strong&gt;&lt;br /&gt;&lt;pre class="innertextblock"  &gt;&lt;br /&gt;package com.async.demo;&lt;br /&gt;&lt;br /&gt;import android.app.ListActivity;&lt;br /&gt;import android.os.AsyncTask;&lt;br /&gt;import android.os.Bundle;&lt;br /&gt;import android.os.SystemClock;&lt;br /&gt;import android.view.View;&lt;br /&gt;import android.widget.ArrayAdapter;&lt;br /&gt;import android.widget.CheckedTextView;&lt;br /&gt;import android.widget.ListView;&lt;br /&gt;import android.widget.Toast;&lt;br /&gt;import java.util.ArrayList;&lt;br /&gt;&lt;br /&gt;/**&lt;br /&gt; * &lt;br /&gt; * @author http://www.android-codes-examples.blogspot.com/&lt;br /&gt; *&lt;br /&gt; */&lt;br /&gt;&lt;br /&gt;public class AsyncTaskDemo extends ListActivity {&lt;br /&gt; private static String[] items = { "Joseph", "George", "Mary", "Antony", "Albert",&lt;br /&gt;   "Michel", "John", "Abraham", "Mark", "Savior", "Kristopher",&lt;br /&gt;   "Thomas", "Williams", "Assisi", "Sebastian", "Aloysius", "Alex", "Daniel",&lt;br /&gt;   "Anto", "Alexandar", "Brito", "Robert", "Jose",&lt;br /&gt;   "Paul", "Peter" };&lt;br /&gt;&lt;br /&gt; @Override&lt;br /&gt; public void onCreate(Bundle savedInstanceState) {&lt;br /&gt;  super.onCreate(savedInstanceState);&lt;br /&gt;  setContentView(R.layout.main);&lt;br /&gt;&lt;br /&gt;  setListAdapter(new ArrayAdapter&lt;String&gt;(this,&lt;br /&gt;    android.R.layout.simple_list_item_checked, new ArrayList()));&lt;br /&gt;&lt;br /&gt;  new AddStringTask().execute();&lt;br /&gt; }&lt;br /&gt;&lt;br /&gt; class AddStringTask extends AsyncTask&lt;Void, String, Void&gt; {&lt;br /&gt;  @Override&lt;br /&gt;  protected Void doInBackground(Void... unused) {&lt;br /&gt;   for (String item : items) {&lt;br /&gt;    publishProgress(item);&lt;br /&gt;    SystemClock.sleep(200);&lt;br /&gt;   }&lt;br /&gt;&lt;br /&gt;   return (null);&lt;br /&gt;  }&lt;br /&gt;&lt;br /&gt;  @Override&lt;br /&gt;  protected void onProgressUpdate(String... item) {&lt;br /&gt;   ((ArrayAdapter) getListAdapter()).add(item[0]);&lt;br /&gt;  }&lt;br /&gt;&lt;br /&gt;  @Override&lt;br /&gt;  protected void onPostExecute(Void unused) {&lt;br /&gt;   setSelection(3);&lt;br /&gt;   Toast.makeText(AsyncTaskDemo.this, "Done!", Toast.LENGTH_SHORT).show();&lt;br /&gt;  }&lt;br /&gt; }&lt;br /&gt; &lt;br /&gt; @Override&lt;br /&gt; protected void onListItemClick(ListView l, View v, int position, long id) {&lt;br /&gt;     CheckedTextView check = (CheckedTextView)v;&lt;br /&gt;     check.setChecked(!check.isChecked());&lt;br /&gt; }&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;   &lt;/div&gt;&lt;br /&gt;&lt;br /&gt;You can download the full source code&lt;br /&gt;&lt;br /&gt;&lt;div class="downloadblock"&gt;  &lt;br /&gt;Download &lt;a href="http://www.ziddu.com/download/14392595/AsyncTaskDemo.zip.html"&gt;source&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;Have a good day.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5197277884634195738-5999138176813508606?l=android-codes-examples.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://android-codes-examples.blogspot.com/feeds/5999138176813508606/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://android-codes-examples.blogspot.com/2011/03/listactivity-with-checkbox-using.html#comment-form' title='5 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5197277884634195738/posts/default/5999138176813508606'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5197277884634195738/posts/default/5999138176813508606'/><link rel='alternate' type='text/html' href='http://android-codes-examples.blogspot.com/2011/03/listactivity-with-checkbox-using.html' title='ListActivity with checkbox using AsyncTask with sleep time example in android'/><author><name>Keerthy</name><uri>http://www.blogger.com/profile/10048420864647222363</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/-AHogGzUh-pk/TZKxfQLIE9I/AAAAAAAAAF8/k44ZWUgxhY8/s72-c/asyncTask_listActivity_simple_list_item_checked.JPG' height='72' width='72'/><thr:total>5</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5197277884634195738.post-4972104581962929856</id><published>2011-03-29T02:57:00.000-07:00</published><updated>2011-08-05T23:08:15.566-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='onkeycode'/><category scheme='http://www.blogger.com/atom/ns#' term='toast'/><category scheme='http://www.blogger.com/atom/ns#' term='keycode'/><category scheme='http://www.blogger.com/atom/ns#' term='android'/><title type='text'>Example code for OnKeyDown listener in Android</title><content type='html'>In this example Toast is shown for the key presses.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/-yJn03DDaWVc/TZGtOb7byKI/AAAAAAAAAF0/vYKg_QMr6EE/s1600/onKeyDown_press.JPG"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 252px; height: 138px;" src="http://4.bp.blogspot.com/-yJn03DDaWVc/TZGtOb7byKI/AAAAAAAAAF0/vYKg_QMr6EE/s320/onKeyDown_press.JPG" border="0" alt=""id="BLOGGER_PHOTO_ID_5589439076070312098" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;The approach is simple, just we need to put this code, thats all&lt;br /&gt;&lt;br /&gt;&lt;div class="innerblock"&gt;  &lt;br /&gt;&lt;strong&gt;Java&lt;/strong&gt;&lt;br /&gt;&lt;pre class="innertextblock"  &gt;&lt;br /&gt;@Override&lt;br /&gt;    public boolean onKeyDown(int keyCode, KeyEvent event) {&lt;br /&gt;    super.onKeyDown(keyCode, event);&lt;br /&gt;        switch(keyCode)&lt;br /&gt;        {&lt;br /&gt;        case KeyEvent.KEYCODE_CAMERA:&lt;br /&gt;         Toast.makeText(KeyActions.this, "Pressed Camera Button", Toast.LENGTH_SHORT).show();&lt;br /&gt;            return true;&lt;br /&gt;        case KeyEvent.KEYCODE_1:&lt;br /&gt;         Toast.makeText(KeyActions.this, "Pressed 1", Toast.LENGTH_SHORT).show();&lt;br /&gt;            return true;&lt;br /&gt;        case KeyEvent.KEYCODE_HOME:&lt;br /&gt;         Toast.makeText(KeyActions.this, "Pressed Home Button", Toast.LENGTH_SHORT).show();&lt;br /&gt;            return true;&lt;br /&gt;            &lt;br /&gt;        case KeyEvent.KEYCODE_BACK:&lt;br /&gt;         Toast.makeText(KeyActions.this, "Pressed Back Button", Toast.LENGTH_SHORT).show();&lt;br /&gt;         Intent result = new Intent("Complete");&lt;br /&gt;            setResult(Activity.RESULT_OK, result);&lt;br /&gt;            finish();&lt;br /&gt;            return true;&lt;br /&gt;        }&lt;br /&gt;&lt;br /&gt;        return false;&lt;br /&gt;    }&lt;br /&gt;&lt;/pre&gt;   &lt;/div&gt;&lt;br /&gt;&lt;br /&gt;For every key there is the code, after entering the KeyEvent. the eclipse will show the list of codes available.&lt;br /&gt;&lt;br /&gt;If you have doubts means &lt;br /&gt;&lt;br /&gt;The full source code&lt;br /&gt;&lt;div class="downloadblock"&gt;  &lt;br /&gt;Download &lt;a href="http://www.ziddu.com/download/14383321/Keys.zip.html"&gt;source&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;Have a good day.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5197277884634195738-4972104581962929856?l=android-codes-examples.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://android-codes-examples.blogspot.com/feeds/4972104581962929856/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://android-codes-examples.blogspot.com/2011/03/example-code-for-onkeydown-listener-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5197277884634195738/posts/default/4972104581962929856'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5197277884634195738/posts/default/4972104581962929856'/><link rel='alternate' type='text/html' href='http://android-codes-examples.blogspot.com/2011/03/example-code-for-onkeydown-listener-in.html' title='Example code for OnKeyDown listener in Android'/><author><name>Keerthy</name><uri>http://www.blogger.com/profile/10048420864647222363</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/-yJn03DDaWVc/TZGtOb7byKI/AAAAAAAAAF0/vYKg_QMr6EE/s72-c/onKeyDown_press.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5197277884634195738.post-6984658151766782208</id><published>2011-03-23T20:52:00.001-07:00</published><updated>2011-08-05T23:07:49.055-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='listview'/><category scheme='http://www.blogger.com/atom/ns#' term='item selection'/><category scheme='http://www.blogger.com/atom/ns#' term='item color'/><category scheme='http://www.blogger.com/atom/ns#' term='android'/><category scheme='http://www.blogger.com/atom/ns#' term='custom listview'/><title type='text'>Customized ListView item's selection color can be changed on touching or selecting the item in the list</title><content type='html'>On selection, on focus, on touch of the items we can change the color of the item, by default android will show a color, we can change it as we like. For that we need this xml to be stored inside the color folder, here only we need mention the colors for each listeners&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/-MaZmwHgvT60/TYrACvkGxmI/AAAAAAAAAFs/H7srlDlA_Ag/s1600/listview_item_selected_color.JPG"&gt;&lt;img style="display: block; margin: 0px auto 10px; text-align: center; cursor: pointer; width: 242px; height: 320px;" src="http://1.bp.blogspot.com/-MaZmwHgvT60/TYrACvkGxmI/AAAAAAAAAFs/H7srlDlA_Ag/s320/listview_item_selected_color.JPG" alt="" id="BLOGGER_PHOTO_ID_5587489441066698338" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="innerblock"&gt;  &lt;br /&gt;&lt;strong&gt;list_bg.xml&lt;/strong&gt;&lt;br /&gt;&lt;pre class="innertextblock"  &gt;&lt;br /&gt;&amp;lt;?xml version="1.0" encoding="utf-8"?&gt;&lt;br /&gt;&amp;lt;selector xmlns:android="http://schemas.android.com/apk/res/android"&gt;&lt;br /&gt;&amp;lt;item &lt;br /&gt; android:state_selected="false"&lt;br /&gt;    android:state_pressed="false" &lt;br /&gt;    android:drawable="@color/grey" /&gt;&lt;br /&gt;&amp;lt;item android:state_pressed="true" &lt;br /&gt;    android:drawable="@color/blue" /&gt;&lt;br /&gt;&amp;lt;item android:state_selected="true"&lt;br /&gt; android:state_pressed="false" &lt;br /&gt;    android:drawable="@color/blue" /&gt;&lt;br /&gt;&amp;lt;/selector&gt;&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;   &lt;/div&gt;&lt;br /&gt;&lt;br /&gt;That list_bg.xml will be called in the customized list xml as background&lt;br /&gt;&lt;br /&gt;&lt;div class="innerblock"&gt;  &lt;br /&gt;&lt;strong&gt;list.xml&lt;/strong&gt;&lt;br /&gt;&lt;pre class="innertextblock"  &gt;&lt;br /&gt;&amp;lt;?xml version="1.0" encoding="utf-8"?&gt;&lt;br /&gt;&amp;lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"&lt;br /&gt; android:layout_width="fill_parent" android:layout_height="wrap_content"&lt;br /&gt; android:layout_margin="2dp" android:background="@color/list_bg"&gt;&lt;br /&gt;&lt;br /&gt; &amp;lt;TextView android:id="@+id/post" android:gravity="center_vertical"&lt;br /&gt;  android:layout_width="wrap_content" android:layout_height="50dp"&lt;br /&gt;  android:textSize="20sp" android:textColor="#D0640D" &lt;br /&gt;  android:layout_toRightOf="@+id/bite_image" /&gt; &lt;br /&gt;&lt;br /&gt;&amp;lt;/RelativeLayout&gt;&lt;br /&gt;&lt;/pre&gt;   &lt;/div&gt;&lt;br /&gt;&lt;br /&gt;This one is the main xml for the Lister.java&lt;br /&gt;&lt;br /&gt;&lt;div class="innerblock"&gt;  &lt;br /&gt;&lt;strong&gt;main.xml&lt;/strong&gt;&lt;br /&gt;&lt;pre class="innertextblock"  &gt;&lt;br /&gt;&amp;lt;?xml version="1.0" encoding="utf-8"?&gt;&lt;br /&gt;&amp;lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"&lt;br /&gt; android:layout_width="fill_parent" android:layout_height="fill_parent"&lt;br /&gt; android:orientation="vertical"&gt;&lt;br /&gt;&lt;br /&gt; &amp;lt;ListView android:id="@android:id/list" android:layout_width="fill_parent"&lt;br /&gt;  android:layout_height="wrap_content" android:smoothScrollbar="true"&lt;br /&gt;  android:background="#fff" android:cacheColorHint="#fff"&lt;br /&gt;  android:fastScrollEnabled="false" android:clickable="true"&lt;br /&gt;  android:layout_marginBottom="36dp" /&gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;/LinearLayout&gt;&lt;br /&gt;&lt;/pre&gt;   &lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The Lister.java will be like this, the main thing is the list_bg.xml only&lt;br /&gt;&lt;br /&gt;&lt;div class="innerblock"&gt;  &lt;br /&gt;&lt;strong&gt;Lister.java&lt;/strong&gt;&lt;br /&gt;&lt;pre class="innertextblock"  &gt;&lt;br /&gt;package com.list.viewer;&lt;br /&gt;&lt;br /&gt;import android.app.ListActivity;&lt;br /&gt;import android.content.Context;&lt;br /&gt;import android.os.Bundle;&lt;br /&gt;import android.view.LayoutInflater;&lt;br /&gt;import android.view.View;&lt;br /&gt;import android.view.ViewGroup;&lt;br /&gt;import android.widget.BaseAdapter;&lt;br /&gt;import android.widget.TextView;&lt;br /&gt;&lt;br /&gt;public class Lister extends ListActivity{&lt;br /&gt;&lt;br /&gt; public void onCreate(Bundle savedInstanceState) {&lt;br /&gt;  super.onCreate(savedInstanceState);&lt;br /&gt;  setContentView(R.layout.main);&lt;br /&gt;  String[] captionArray = { "USA","India","England","Russia","Europe","Canada","Srilanka","Singapore","Thailand","Australia"};&lt;br /&gt;  ItemsAdapter ItemsAdapter = new ItemsAdapter(&lt;br /&gt;    Lister.this, R.layout.list,&lt;br /&gt;    captionArray);&lt;br /&gt;  setListAdapter(ItemsAdapter);&lt;br /&gt; }&lt;br /&gt; &lt;br /&gt;  &lt;br /&gt; private class ItemsAdapter extends BaseAdapter {&lt;br /&gt;  String[] items;&lt;br /&gt;&lt;br /&gt;  public ItemsAdapter(Context context, int textViewResourceId,&lt;br /&gt;    String[] items) {&lt;br /&gt;   // super(context, textViewResourceId, items);&lt;br /&gt;   this.items = items;&lt;br /&gt;  }&lt;br /&gt;&lt;br /&gt;  // @Override&lt;br /&gt;  public View getView(int position, View convertView, ViewGroup parent) {&lt;br /&gt;   &lt;br /&gt;   View v = convertView;&lt;br /&gt;   if (v == null) {&lt;br /&gt;    LayoutInflater vi = (LayoutInflater) getSystemService(Context.LAYOUT_INFLATER_SERVICE);&lt;br /&gt;    v = vi.inflate(R.layout.list, null);&lt;br /&gt;   } &lt;br /&gt;   TextView post = (TextView) v&lt;br /&gt;     .findViewById(R.id.post);&lt;br /&gt;   post.setText(items[position]);&lt;br /&gt;   &lt;br /&gt;   return v;&lt;br /&gt;  }&lt;br /&gt;&lt;br /&gt;  public int getCount() {&lt;br /&gt;   return items.length;&lt;br /&gt;  }&lt;br /&gt;&lt;br /&gt;  public Object getItem(int position) {&lt;br /&gt;   return position;&lt;br /&gt;  }&lt;br /&gt;&lt;br /&gt;  public long getItemId(int position) {&lt;br /&gt;   return position;&lt;br /&gt;  }&lt;br /&gt; }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;   &lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The full source code&lt;br /&gt;&lt;div class="downloadblock"&gt;  &lt;br /&gt;Download &lt;a href="http://www.ziddu.com/download/14315845/ListViewExample.zip.html"&gt;source&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;Have a good day.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5197277884634195738-6984658151766782208?l=android-codes-examples.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://android-codes-examples.blogspot.com/feeds/6984658151766782208/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://android-codes-examples.blogspot.com/2011/03/customized-listview-items-selection.html#comment-form' title='8 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5197277884634195738/posts/default/6984658151766782208'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5197277884634195738/posts/default/6984658151766782208'/><link rel='alternate' type='text/html' href='http://android-codes-examples.blogspot.com/2011/03/customized-listview-items-selection.html' title='Customized ListView item&apos;s selection color can be changed on touching or selecting the item in the list'/><author><name>Keerthy</name><uri>http://www.blogger.com/profile/10048420864647222363</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/-MaZmwHgvT60/TYrACvkGxmI/AAAAAAAAAFs/H7srlDlA_Ag/s72-c/listview_item_selected_color.JPG' height='72' width='72'/><thr:total>8</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5197277884634195738.post-1940432519085124163</id><published>2011-03-21T04:32:00.000-07:00</published><updated>2011-08-05T23:07:25.868-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='item click'/><category scheme='http://www.blogger.com/atom/ns#' term='listview'/><category scheme='http://www.blogger.com/atom/ns#' term='android'/><category scheme='http://www.blogger.com/atom/ns#' term='custom listview'/><title type='text'>Multiple ListView and custom listview example with click listener functions</title><content type='html'>Multiple listview can be placed inside a Activity. Here i am having two listviews&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/-LhJhV6H0BaE/TYc3X55MQLI/AAAAAAAAAFk/W6DYpif8s6c/s1600/multi_listview_example.JPG"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 226px; height: 320px;" src="http://1.bp.blogspot.com/-LhJhV6H0BaE/TYc3X55MQLI/AAAAAAAAAFk/W6DYpif8s6c/s320/multi_listview_example.JPG" border="0" alt=""id="BLOGGER_PHOTO_ID_5586494746593607858" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;As shown in the above image, the left side displaying list view is customized listview, it that listview we will be showing a imageview and a textview, On clicking the item of that listview, the second listview will be generated.&lt;br /&gt;&lt;br /&gt;The xml layout for that page will be like this&lt;br /&gt;&lt;br /&gt;&lt;div class="innerblock"&gt;  &lt;br /&gt;&lt;strong&gt;main.xml&lt;/strong&gt;&lt;br /&gt;&lt;pre class="innertextblock"  &gt;&lt;br /&gt;&amp;lt;?xml version="1.0" encoding="utf-8"?&gt;&lt;br /&gt;&amp;lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"&lt;br /&gt; android:orientation="vertical" android:layout_width="fill_parent" android:gravity="center"&lt;br /&gt; android:layout_height="fill_parent" android:background="#cccccc"&gt;&lt;br /&gt; &amp;lt;TextView android:layout_width="fill_parent" android:textColor="#000"&lt;br /&gt;  android:layout_height="wrap_content" android:text="Multiple ListView Example" /&gt;&lt;br /&gt; &amp;lt;LinearLayout android:orientation="horizontal" android:layout_marginTop="10dp" android:gravity="center_horizontal"&lt;br /&gt;  android:layout_width="fill_parent" android:layout_height="wrap_content"&gt;&lt;br /&gt;  &amp;lt;ListView android:id="@+id/ListView1" android:layout_width="130dp"&lt;br /&gt;   android:background="#fff" android:cacheColorHint="#fff"&lt;br /&gt;   android:layout_height="wrap_content" /&gt;&lt;br /&gt;  &amp;lt;TextView android:text="==&gt;" android:layout_height="wrap_content" android:textColor="#000"&lt;br /&gt;   android:layout_width="wrap_content"&gt;&amp;lt;/TextView&gt;&lt;br /&gt;  &amp;lt;ListView android:id="@+id/ListView2" android:layout_width="130dp"&lt;br /&gt;   android:background="#4c6f7e" android:cacheColorHint="#4c6f7e"&lt;br /&gt;   android:layout_height="wrap_content" /&gt;&lt;br /&gt; &amp;lt;/LinearLayout&gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;/LinearLayout&gt;&lt;br /&gt;&lt;/pre&gt;   &lt;/div&gt;&lt;br /&gt;&lt;br /&gt;For the customized listview the coding will be like this, it will show the customized listview with a imageview and textview for each item&lt;br /&gt;&lt;br /&gt;&lt;div class="innerblock"&gt;  &lt;br /&gt;&lt;strong&gt;Java&lt;/strong&gt;&lt;br /&gt;&lt;pre class="innertextblock"  &gt;&lt;br /&gt;private String[] list1 = {"Icon", "Icon Creator", "Image", "Image Creator"}; &lt;br /&gt;private ListView lister1; &lt;br /&gt;lister1=(ListView)findViewById(R.id.ListView1);&lt;br /&gt;ItemsAdapter itemsAdapter = new ItemsAdapter(&lt;br /&gt;    ListViewExample.this, R.layout.list,&lt;br /&gt;    list1);&lt;br /&gt;lister1.setAdapter(itemsAdapter);&lt;br /&gt;&lt;/pre&gt;   &lt;/div&gt;&lt;br /&gt;&lt;br /&gt;In the above example we need to explicitly use a layout, the layout will be&lt;br /&gt;&lt;br /&gt;&lt;div class="innerblock"&gt;  &lt;br /&gt;&lt;strong&gt;list.xml&lt;/strong&gt;&lt;br /&gt;&lt;pre class="innertextblock"  &gt;&lt;br /&gt;&amp;lt;?xml version="1.0" encoding="utf-8"?&gt;&lt;br /&gt;&amp;lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"&lt;br /&gt;    android:orientation="horizontal"&lt;br /&gt;    android:layout_width="100dp"&lt;br /&gt;    android:layout_height="fill_parent"&lt;br /&gt;    &gt;&lt;br /&gt;&amp;lt;ImageView&lt;br /&gt; android:layout_width="wrap_content" android:layout_height="wrap_content"&lt;br /&gt; android:src="@drawable/icon" android:id="@+id/image"/&gt;&lt;br /&gt;&amp;lt;TextView android:textColor="#000"&lt;br /&gt;    android:layout_width="fill_parent" &lt;br /&gt;    android:layout_height="wrap_content" &lt;br /&gt;    android:text="" android:id="@+id/desc"&lt;br /&gt;    /&gt;&lt;br /&gt;&amp;lt;/LinearLayout&gt;&lt;br /&gt;&lt;/pre&gt;   &lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;For the second listview, is normal listview, which is used with the pre defined layout android.R.layout.simple_list_item_1&lt;br /&gt;&lt;br /&gt;The full ListViewExample.java file will be like this&lt;br /&gt;&lt;br /&gt;&lt;div class="innerblock"&gt;  &lt;br /&gt;&lt;strong&gt;ListViewExample.java&lt;/strong&gt;&lt;br /&gt;&lt;pre class="innertextblock"  &gt;&lt;br /&gt;package com.list.viewer;&lt;br /&gt;&lt;br /&gt;import android.app.Activity;&lt;br /&gt;import android.content.Context;&lt;br /&gt;import android.os.Bundle;&lt;br /&gt;import android.view.LayoutInflater;&lt;br /&gt;import android.view.View;&lt;br /&gt;import android.view.ViewGroup;&lt;br /&gt;import android.widget.AdapterView;&lt;br /&gt;import android.widget.ArrayAdapter;&lt;br /&gt;import android.widget.BaseAdapter;&lt;br /&gt;import android.widget.ImageView;&lt;br /&gt;import android.widget.ListView;&lt;br /&gt;import android.widget.TextView;&lt;br /&gt;import android.widget.AdapterView.OnItemClickListener;&lt;br /&gt;&lt;br /&gt;/** http://www.android-codes-examples.blogspot.com/ */&lt;br /&gt;public class ListViewExample extends Activity {&lt;br /&gt;&lt;br /&gt; private String[] list1 = { "Icon", "Icon Creator", "Image", "Image Creator" };&lt;br /&gt; private String[] list21 = { "Design", "Creation", "Selection", "Caller" };&lt;br /&gt; private String[] list22 = { "Investor", "Producer", "Controller",&lt;br /&gt;   "Publisher" };&lt;br /&gt; private String[] list23 = { "Designer", "Maker", "Creator", "Asignment" };&lt;br /&gt; private String[] list24 = { "Arranger", "Caller", "Solution", "Result" };&lt;br /&gt;&lt;br /&gt; private ListView lister1;&lt;br /&gt; private ListView lister2;&lt;br /&gt;&lt;br /&gt; /** Called when the activity is first created. */&lt;br /&gt; @Override&lt;br /&gt; public void onCreate(Bundle savedInstanceState) {&lt;br /&gt;  super.onCreate(savedInstanceState);&lt;br /&gt;  setContentView(R.layout.main);&lt;br /&gt;  lister1 = (ListView) findViewById(R.id.ListView1);&lt;br /&gt;  lister2 = (ListView) findViewById(R.id.ListView2);&lt;br /&gt;  ItemsAdapter itemsAdapter = new ItemsAdapter(ListViewExample.this,&lt;br /&gt;    R.layout.list, list1);&lt;br /&gt;  lister1.setAdapter(itemsAdapter);&lt;br /&gt;  lister2.setAdapter(new ArrayAdapter&lt;String&gt;(ListViewExample.this,&lt;br /&gt;    android.R.layout.simple_list_item_1, list21));&lt;br /&gt;  lister1.setOnItemClickListener(new OnItemClickListener() {&lt;br /&gt;&lt;br /&gt;   @Override&lt;br /&gt;   public void onItemClick(AdapterView&lt;?&gt; arg0, View arg1,&lt;br /&gt;     int positon, long arg3) {&lt;br /&gt;    String[] lister = null;&lt;br /&gt;    switch (positon) {&lt;br /&gt;    case 0:&lt;br /&gt;     lister = list21;&lt;br /&gt;     break;&lt;br /&gt;    case 1:&lt;br /&gt;     lister = list22;&lt;br /&gt;     break;&lt;br /&gt;    case 2:&lt;br /&gt;     lister = list23;&lt;br /&gt;     break;&lt;br /&gt;    case 3:&lt;br /&gt;     lister = list24;&lt;br /&gt;     break;&lt;br /&gt;    default:&lt;br /&gt;     lister = list21;&lt;br /&gt;    }&lt;br /&gt;    lister2.setAdapter(new ArrayAdapter&lt;String&gt;(&lt;br /&gt;      ListViewExample.this,&lt;br /&gt;      android.R.layout.simple_list_item_1, lister));&lt;br /&gt;   }&lt;br /&gt;  });&lt;br /&gt; }&lt;br /&gt;&lt;br /&gt; private class ItemsAdapter extends BaseAdapter {&lt;br /&gt;  String[] items;&lt;br /&gt;&lt;br /&gt;  public ItemsAdapter(Context context, int textViewResourceId,&lt;br /&gt;    String[] items) {&lt;br /&gt;   this.items = items;&lt;br /&gt;  }&lt;br /&gt;&lt;br /&gt;  @Override&lt;br /&gt;  public View getView(final int position, View convertView,&lt;br /&gt;    ViewGroup parent) {&lt;br /&gt;   TextView mDescription;&lt;br /&gt;   View view = convertView;&lt;br /&gt;   ImageView image;&lt;br /&gt;   if (view == null) {&lt;br /&gt;    LayoutInflater vi = (LayoutInflater) getSystemService(Context.LAYOUT_INFLATER_SERVICE);&lt;br /&gt;    view = vi.inflate(R.layout.list, null);&lt;br /&gt;   }&lt;br /&gt;   image = (ImageView) view.findViewById(R.id.image);&lt;br /&gt;   mDescription = (TextView) view.findViewById(R.id.desc);&lt;br /&gt;   mDescription.setText(items[position]);&lt;br /&gt;   image.setBackgroundResource(R.id.image);&lt;br /&gt;   return view;&lt;br /&gt;  }&lt;br /&gt;&lt;br /&gt;  public int getCount() {&lt;br /&gt;   return items.length;&lt;br /&gt;  }&lt;br /&gt;&lt;br /&gt;  public Object getItem(int position) {&lt;br /&gt;   return position;&lt;br /&gt;  }&lt;br /&gt;&lt;br /&gt;  public long getItemId(int position) {&lt;br /&gt;   return position;&lt;br /&gt;  }&lt;br /&gt; }&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;   &lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The full source code&lt;br /&gt;&lt;div class="downloadblock"&gt;  &lt;br /&gt;Download &lt;a href="http://www.ziddu.com/download/14279488/ListViewExample.zip.html"&gt;source&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;Have a good day.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5197277884634195738-1940432519085124163?l=android-codes-examples.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://android-codes-examples.blogspot.com/feeds/1940432519085124163/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://android-codes-examples.blogspot.com/2011/03/multiple-listview-and-custom-listview.html#comment-form' title='22 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5197277884634195738/posts/default/1940432519085124163'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5197277884634195738/posts/default/1940432519085124163'/><link rel='alternate' type='text/html' href='http://android-codes-examples.blogspot.com/2011/03/multiple-listview-and-custom-listview.html' title='Multiple ListView and custom listview example with click listener functions'/><author><name>Keerthy</name><uri>http://www.blogger.com/profile/10048420864647222363</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/-LhJhV6H0BaE/TYc3X55MQLI/AAAAAAAAAFk/W6DYpif8s6c/s72-c/multi_listview_example.JPG' height='72' width='72'/><thr:total>22</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5197277884634195738.post-3565228905229835545</id><published>2011-03-16T21:15:00.000-07:00</published><updated>2011-08-05T23:07:04.855-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='design without layout'/><category scheme='http://www.blogger.com/atom/ns#' term='custom dialog'/><category scheme='http://www.blogger.com/atom/ns#' term='alertdialog'/><category scheme='http://www.blogger.com/atom/ns#' term='without xml'/><category scheme='http://www.blogger.com/atom/ns#' term='android'/><title type='text'>How to display Custom Dialog and designing a page without xml layout is given with example?</title><content type='html'>Custom Dialog appears like this&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/-N6qhm3BlRT8/TYGK1OBXFII/AAAAAAAAAFc/dSL8Oy4oa7w/s1600/custom_dialog_without_xml_example.JPG"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 227px; height: 320px;" src="http://3.bp.blogspot.com/-N6qhm3BlRT8/TYGK1OBXFII/AAAAAAAAAFc/dSL8Oy4oa7w/s320/custom_dialog_without_xml_example.JPG" border="0" alt=""id="BLOGGER_PHOTO_ID_5584897659817628802" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;First we can see how we are going to display a button without using the xml layout,&lt;br /&gt;&lt;br /&gt;&lt;div class="innerblock"&gt;  &lt;br /&gt;&lt;strong&gt;Java&lt;/strong&gt;&lt;br /&gt;&lt;pre class="innertextblock"  &gt;&lt;br /&gt;Button show = new Button(this);&lt;br /&gt;show.setText("Click to view a Custom Dialog");&lt;br /&gt;/** Setting FILL_PARENT for the width and height of the button */&lt;br /&gt;show.setLayoutParams(new Gallery.LayoutParams(&lt;br /&gt;   LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT));&lt;br /&gt;/** Without the layout xml we are going to add the button to the screen */&lt;br /&gt;setContentView(show);&lt;br /&gt;&lt;/pre&gt;   &lt;/div&gt;&lt;br /&gt;&lt;br /&gt;Instead of using the xml layout in setContentView() we are using the new created Button's variable, likewise if we are using the linearlayout's variable means, we can display the component without using the layout xml.&lt;br /&gt;&lt;br /&gt;In this example we used the layout params&lt;br /&gt;&lt;br /&gt;&lt;div class="innerblock"&gt;  &lt;br /&gt;&lt;strong&gt;Java&lt;/strong&gt;&lt;br /&gt;&lt;pre class="innertextblock"  &gt;&lt;br /&gt;show.setLayoutParams(new Gallery.LayoutParams(&lt;br /&gt;   LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT));&lt;br /&gt;&lt;/pre&gt;   &lt;/div&gt;&lt;br /&gt;&lt;br /&gt;Actually this is used for setting the layout width and height for the button.&lt;br /&gt;&lt;br /&gt;Now we can come to showing Custom Dialog, for that we need to create a class which exetends Dialog, the class will be like this&lt;br /&gt;&lt;br /&gt;&lt;div class="innerblock"&gt;  &lt;br /&gt;&lt;strong&gt;CustomizeDialog.java&lt;/strong&gt;&lt;br /&gt;&lt;pre class="innertextblock"  &gt;&lt;br /&gt;package com.custom.dialog;&lt;br /&gt;&lt;br /&gt;import android.app.Dialog;&lt;br /&gt;import android.content.Context;&lt;br /&gt;import android.view.View;&lt;br /&gt;import android.view.Window;&lt;br /&gt;import android.view.View.OnClickListener;&lt;br /&gt;import android.widget.Button;&lt;br /&gt;&lt;br /&gt;public class CustomizeDialog extends Dialog implements OnClickListener {&lt;br /&gt; Button close;&lt;br /&gt;&lt;br /&gt; public CustomizeDialog(Context context) {&lt;br /&gt;  super(context);&lt;br /&gt;  /** It will hide the title */&lt;br /&gt;  requestWindowFeature(Window.FEATURE_NO_TITLE);  &lt;br /&gt;  setContentView(R.layout.main);&lt;br /&gt;  &lt;br /&gt;  close = (Button) findViewById(R.id.close);&lt;br /&gt;  close.setOnClickListener(this);&lt;br /&gt; }&lt;br /&gt;&lt;br /&gt; @Override&lt;br /&gt; public void onClick(View v) {  &lt;br /&gt;  if (v == close)&lt;br /&gt;   dismiss();&lt;br /&gt; }&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;   &lt;/div&gt;&lt;br /&gt;&lt;br /&gt;Then in the main class CustomDialog.java we need to call the CustomizeDialog.java class to show the custom dialog, like this&lt;br /&gt;&lt;br /&gt;&lt;div class="innerblock"&gt;  &lt;br /&gt;&lt;strong&gt;Java&lt;/strong&gt;&lt;br /&gt;&lt;pre class="innertextblock"  &gt;&lt;br /&gt;CustomizeDialog customizeDialog = new CustomizeDialog(CustomDialog.this);&lt;br /&gt;customizeDialog.show();&lt;br /&gt;&lt;/pre&gt;   &lt;/div&gt;&lt;br /&gt;&lt;br /&gt;The full code of the CustomDialog.java will be like this&lt;br /&gt;&lt;br /&gt;&lt;div class="innerblock"&gt;  &lt;br /&gt;&lt;strong&gt;CustomDialog.java&lt;/strong&gt;&lt;br /&gt;&lt;pre class="innertextblock"  &gt;&lt;br /&gt;package com.custom.dialog;&lt;br /&gt;&lt;br /&gt;import android.app.Activity;&lt;br /&gt;import android.os.Bundle;&lt;br /&gt;import android.view.View;&lt;br /&gt;import android.widget.Button;&lt;br /&gt;import android.widget.Gallery;&lt;br /&gt;import android.view.WindowManager.LayoutParams;&lt;br /&gt;&lt;br /&gt;public class CustomDialog extends Activity {&lt;br /&gt;    /** Called when the activity is first created. */&lt;br /&gt; private Button show;&lt;br /&gt;    @Override&lt;br /&gt;    public void onCreate(Bundle savedInstanceState) {&lt;br /&gt;        super.onCreate(savedInstanceState);&lt;br /&gt;        &lt;br /&gt;        show = new Button(this);&lt;br /&gt;        show.setText("Click to view a Custom Dialog");&lt;br /&gt;        /** Setting FILL_PARENT for the width and height of the button */&lt;br /&gt;        show.setLayoutParams(new Gallery.LayoutParams(&lt;br /&gt;    LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT));&lt;br /&gt;        /** Without the layout xml we are going to add the button to the screen */&lt;br /&gt;        setContentView(show);&lt;br /&gt;        show.setOnClickListener(new View.OnClickListener() {&lt;br /&gt;   &lt;br /&gt;   @Override&lt;br /&gt;   public void onClick(View v) {&lt;br /&gt;    CustomizeDialog customizeDialog = new CustomizeDialog(CustomDialog.this);&lt;br /&gt;    customizeDialog.show();&lt;br /&gt;   }&lt;br /&gt;  });&lt;br /&gt;        &lt;br /&gt;        &lt;br /&gt;    }&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;   &lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The full source code&lt;br /&gt;&lt;div class="downloadblock"&gt;  &lt;br /&gt;Download &lt;a href="http://www.ziddu.com/download/14219880/CustomDialog.zip.html"&gt;source&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;For AlertDialog you can see this blog &lt;a href="http://android-codes-examples.blogspot.com/2011/03/how-to-display-alertdialog-and.html"&gt;http://android-codes-examples.blogspot.com/2011/03/how-to-display-alertdialog-and.html&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Have a good day.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5197277884634195738-3565228905229835545?l=android-codes-examples.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://android-codes-examples.blogspot.com/feeds/3565228905229835545/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://android-codes-examples.blogspot.com/2011/03/how-to-display-custom-dialog-and.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5197277884634195738/posts/default/3565228905229835545'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5197277884634195738/posts/default/3565228905229835545'/><link rel='alternate' type='text/html' href='http://android-codes-examples.blogspot.com/2011/03/how-to-display-custom-dialog-and.html' title='How to display Custom Dialog and designing a page without xml layout is given with example?'/><author><name>Keerthy</name><uri>http://www.blogger.com/profile/10048420864647222363</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/-N6qhm3BlRT8/TYGK1OBXFII/AAAAAAAAAFc/dSL8Oy4oa7w/s72-c/custom_dialog_without_xml_example.JPG' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5197277884634195738.post-2316307918826566643</id><published>2011-03-15T02:46:00.000-07:00</published><updated>2011-08-05T23:06:45.159-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='alertdialog with listview and radio button'/><category scheme='http://www.blogger.com/atom/ns#' term='alertdialog'/><category scheme='http://www.blogger.com/atom/ns#' term='dialog'/><category scheme='http://www.blogger.com/atom/ns#' term='android'/><category scheme='http://www.blogger.com/atom/ns#' term='alertdialog with listview'/><title type='text'>How to display AlertDialog and selection in Alert Dialog and selection with radio buttons with example?</title><content type='html'>We are going to see the Alert Dialog in detail.&lt;br /&gt;&lt;br /&gt;First we going to see how to use a normal AlertDialog&lt;br /&gt;&lt;br /&gt;The below code is enough to call AlertDialog,&lt;br /&gt;&lt;br /&gt;&lt;div class="innerblock"&gt;  &lt;br /&gt;&lt;strong&gt;Java&lt;/strong&gt;&lt;br /&gt;&lt;pre class="innertextblock"  &gt;&lt;br /&gt;AlertDialog.Builder alert = new AlertDialog.Builder(ShowDialog.this);&lt;br /&gt;&lt;br /&gt;alert.setTitle("This is Alert Dialog");&lt;br /&gt;alert.setMessage("Sample alert dialog from http://www.android-codes-examples.blogspot.com");&lt;br /&gt;alert.setIcon(R.drawable.icon);&lt;br /&gt;alert.setPositiveButton("Yes",&lt;br /&gt; new DialogInterface.OnClickListener() {&lt;br /&gt;  public void onClick(DialogInterface dialog, int id) {&lt;br /&gt;   Toast.makeText(ShowDialog.this, "Success", Toast.LENGTH_SHORT).show();&lt;br /&gt;  }&lt;br /&gt; });&lt;br /&gt;alert.setNegativeButton("No",&lt;br /&gt; new DialogInterface.OnClickListener() {&lt;br /&gt;  public void onClick(DialogInterface dialog, int id) {&lt;br /&gt;   Toast.makeText(ShowDialog.this, "Fail", Toast.LENGTH_SHORT).show();&lt;br /&gt;  }&lt;br /&gt; });&lt;br /&gt;&lt;br /&gt;alert.show();&lt;br /&gt;&lt;/pre&gt;   &lt;/div&gt;&lt;br /&gt;&lt;br /&gt;Next we are going to see how to call a AlertDialog with ListView for selection purpose&lt;br /&gt;&lt;br /&gt;&lt;div class="innerblock"&gt;  &lt;br /&gt;&lt;strong&gt;Java&lt;/strong&gt;&lt;br /&gt;&lt;pre class="innertextblock"  &gt;&lt;br /&gt;final CharSequence[] items = {"India", "US", "UK", "Australia"};&lt;br /&gt;&lt;br /&gt;AlertDialog.Builder builder = new AlertDialog.Builder(ShowDialog.this);&lt;br /&gt;builder.setTitle("Alert Dialog with ListView");&lt;br /&gt;builder.setIcon(R.drawable.icon);&lt;br /&gt;builder.setItems(items, new DialogInterface.OnClickListener() {&lt;br /&gt;    public void onClick(DialogInterface dialog, int item) {&lt;br /&gt; Toast.makeText(getApplicationContext(), items[item], Toast.LENGTH_SHORT).show();&lt;br /&gt;    }&lt;br /&gt;});&lt;br /&gt;AlertDialog alert = builder.create();&lt;br /&gt;&lt;br /&gt;alert.show();&lt;br /&gt;&lt;/pre&gt;   &lt;/div&gt;&lt;br /&gt;&lt;br /&gt;Next we are going to see how to call a AlertDialog with ListView with Radio button for selection purpose&lt;br /&gt;&lt;br /&gt;&lt;div class="innerblock"&gt;  &lt;br /&gt;&lt;strong&gt;Java&lt;/strong&gt;&lt;br /&gt;&lt;pre class="innertextblock"  &gt;&lt;br /&gt;final CharSequence[] items = {"India", "US", "UK", "Australia"};&lt;br /&gt;&lt;br /&gt;AlertDialog.Builder builder = new AlertDialog.Builder(ShowDialog.this);&lt;br /&gt;builder.setTitle("Alert Dialog with ListView and Radio button");&lt;br /&gt;builder.setIcon(R.drawable.icon);&lt;br /&gt;builder.setSingleChoiceItems(items, -1, new DialogInterface.OnClickListener() {&lt;br /&gt;    public void onClick(DialogInterface dialog, int item) {&lt;br /&gt; Toast.makeText(getApplicationContext(), items[item], Toast.LENGTH_SHORT).show();&lt;br /&gt;    }&lt;br /&gt;});&lt;br /&gt;&lt;br /&gt;builder.setPositiveButton("Yes",&lt;br /&gt; new DialogInterface.OnClickListener() {&lt;br /&gt;  public void onClick(DialogInterface dialog, int id) {&lt;br /&gt;   Toast.makeText(ShowDialog.this, "Success", Toast.LENGTH_SHORT).show();&lt;br /&gt;  }&lt;br /&gt; });&lt;br /&gt;builder.setNegativeButton("No",&lt;br /&gt; new DialogInterface.OnClickListener() {&lt;br /&gt;  public void onClick(DialogInterface dialog, int id) {&lt;br /&gt;   Toast.makeText(ShowDialog.this, "Fail", Toast.LENGTH_SHORT).show();&lt;br /&gt;  }&lt;br /&gt; });&lt;br /&gt;AlertDialog alert = builder.create();&lt;br /&gt;alert.show();&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;   &lt;/div&gt;&lt;br /&gt;&lt;br /&gt;A sample with all the three examples of alertdialog is follows:&lt;br /&gt;&lt;br /&gt;&lt;div class="innerblock"&gt;  &lt;br /&gt;&lt;strong&gt;ShowDialog.java&lt;/strong&gt;&lt;br /&gt;&lt;pre class="innertextblock"  &gt;&lt;br /&gt;package com.display.dialog;&lt;br /&gt;&lt;br /&gt;import android.app.Activity;&lt;br /&gt;import android.app.AlertDialog;&lt;br /&gt;import android.content.DialogInterface;&lt;br /&gt;import android.os.Bundle;&lt;br /&gt;import android.view.View;&lt;br /&gt;import android.widget.Button;&lt;br /&gt;import android.widget.Toast;&lt;br /&gt;&lt;br /&gt;public class ShowDialog extends Activity {&lt;br /&gt;/** http://www.android-codes-examples.blogspot.com/ */&lt;br /&gt;@Override&lt;br /&gt;public void onCreate(Bundle savedInstanceState) {&lt;br /&gt; super.onCreate(savedInstanceState);&lt;br /&gt; setContentView(R.layout.main);&lt;br /&gt; Button alert = (Button) findViewById(R.id.alert);&lt;br /&gt; Button customList = (Button) findViewById(R.id.customList);&lt;br /&gt; Button customListRadio = (Button) findViewById(R.id.customListRadio);&lt;br /&gt; &lt;br /&gt; alert.setOnClickListener(new View.OnClickListener() {&lt;br /&gt;&lt;br /&gt; @Override&lt;br /&gt; public void onClick(View v) {&lt;br /&gt;  AlertDialog.Builder alert = new AlertDialog.Builder(ShowDialog.this);&lt;br /&gt;&lt;br /&gt;  alert.setTitle("This is Alert Dialog");&lt;br /&gt;  alert&lt;br /&gt;    .setMessage("Sample alert dialog from http://www.android-codes-examples.blogspot.com");&lt;br /&gt;  alert.setIcon(R.drawable.icon);&lt;br /&gt;  alert.setPositiveButton("Yes",&lt;br /&gt;    new DialogInterface.OnClickListener() {&lt;br /&gt;     public void onClick(DialogInterface dialog, int id) {&lt;br /&gt;      Toast.makeText(ShowDialog.this, "Success", Toast.LENGTH_SHORT).show();&lt;br /&gt;     }&lt;br /&gt;    });&lt;br /&gt;  alert.setNegativeButton("No",&lt;br /&gt;    new DialogInterface.OnClickListener() {&lt;br /&gt;     public void onClick(DialogInterface dialog, int id) {&lt;br /&gt;      Toast.makeText(ShowDialog.this, "Fail", Toast.LENGTH_SHORT).show();&lt;br /&gt;     }&lt;br /&gt;    });&lt;br /&gt;&lt;br /&gt;  alert.show();&lt;br /&gt; }&lt;br /&gt; });&lt;br /&gt; &lt;br /&gt; customList.setOnClickListener(new View.OnClickListener() {&lt;br /&gt;&lt;br /&gt; @Override&lt;br /&gt; public void onClick(View v) {&lt;br /&gt;  final CharSequence[] items = {"India", "US", "UK", "Australia"};&lt;br /&gt;&lt;br /&gt;  AlertDialog.Builder builder = new AlertDialog.Builder(ShowDialog.this);&lt;br /&gt;  builder.setTitle("Alert Dialog with ListView");&lt;br /&gt;  builder.setIcon(R.drawable.icon);&lt;br /&gt;  builder.setItems(items, new DialogInterface.OnClickListener() {&lt;br /&gt;      public void onClick(DialogInterface dialog, int item) {&lt;br /&gt;   Toast.makeText(getApplicationContext(), items[item], Toast.LENGTH_SHORT).show();&lt;br /&gt;      }&lt;br /&gt;  });&lt;br /&gt;  AlertDialog alert = builder.create();&lt;br /&gt;&lt;br /&gt;  alert.show();&lt;br /&gt; }&lt;br /&gt; });&lt;br /&gt; &lt;br /&gt; customListRadio.setOnClickListener(new View.OnClickListener() {&lt;br /&gt;&lt;br /&gt; @Override&lt;br /&gt; public void onClick(View v) {&lt;br /&gt;  final CharSequence[] items = {"India", "US", "UK", "Australia"};&lt;br /&gt;&lt;br /&gt;  AlertDialog.Builder builder = new AlertDialog.Builder(ShowDialog.this);&lt;br /&gt;  builder.setTitle("Alert Dialog with ListView and Radio button");&lt;br /&gt;  builder.setIcon(R.drawable.icon);&lt;br /&gt;  builder.setSingleChoiceItems(items, -1, new DialogInterface.OnClickListener() {&lt;br /&gt;      public void onClick(DialogInterface dialog, int item) {&lt;br /&gt;   Toast.makeText(getApplicationContext(), items[item], Toast.LENGTH_SHORT).show();&lt;br /&gt;      }&lt;br /&gt;  });&lt;br /&gt;  &lt;br /&gt;  builder.setPositiveButton("Yes",&lt;br /&gt;    new DialogInterface.OnClickListener() {&lt;br /&gt;     public void onClick(DialogInterface dialog, int id) {&lt;br /&gt;      Toast.makeText(ShowDialog.this, "Success", Toast.LENGTH_SHORT).show();&lt;br /&gt;     }&lt;br /&gt;    });&lt;br /&gt;  builder.setNegativeButton("No",&lt;br /&gt;    new DialogInterface.OnClickListener() {&lt;br /&gt;     public void onClick(DialogInterface dialog, int id) {&lt;br /&gt;      Toast.makeText(ShowDialog.this, "Fail", Toast.LENGTH_SHORT).show();&lt;br /&gt;     }&lt;br /&gt;    });&lt;br /&gt;  AlertDialog alert = builder.create();&lt;br /&gt;  alert.show();&lt;br /&gt; }&lt;br /&gt; });&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;   &lt;/div&gt;&lt;br /&gt;&lt;br /&gt;Likewise for multiple choice in the alertdialog we need to use this line&lt;br /&gt;&lt;br /&gt;&lt;div class="innerblock"&gt;  &lt;br /&gt;&lt;strong&gt;Java&lt;/strong&gt;&lt;br /&gt;&lt;pre class="innertextblock"  &gt;&lt;br /&gt;new DialogInterface.OnMultiChoiceClickListener() {&lt;br /&gt;    public void onClick(DialogInterface dialog, int whichButton,&lt;br /&gt;     boolean isChecked) {&lt;br /&gt;          /** ... */&lt;br /&gt;    }&lt;br /&gt;});&lt;br /&gt;&lt;/pre&gt;   &lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The full source code&lt;br /&gt;&lt;div class="downloadblock"&gt;  &lt;br /&gt;Download &lt;a href="http://www.ziddu.com/download/14196308/Dialog.zip.html"&gt;source&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;The different types of AlertDialog images will be like this&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/-a8WH7GbnPRU/TX81noCoqHI/AAAAAAAAAFU/J_PYqC9UlBU/s1600/alertdialog_listview_selection_with_radio_button.JPG"&gt;&lt;img style="display: block; margin: 0px auto 10px; text-align: center; cursor: pointer; width: 243px; height: 320px;" src="http://4.bp.blogspot.com/-a8WH7GbnPRU/TX81noCoqHI/AAAAAAAAAFU/J_PYqC9UlBU/s320/alertdialog_listview_selection_with_radio_button.JPG" alt="" id="BLOGGER_PHOTO_ID_5584241017842346098" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/-GJfz45Aldh0/TX81nq50YMI/AAAAAAAAAFM/clY3BqA_q-o/s1600/alertdialog_listview_selection.JPG"&gt;&lt;img style="display: block; margin: 0px auto 10px; text-align: center; cursor: pointer; width: 281px; height: 320px;" src="http://4.bp.blogspot.com/-GJfz45Aldh0/TX81nq50YMI/AAAAAAAAAFM/clY3BqA_q-o/s320/alertdialog_listview_selection.JPG" alt="" id="BLOGGER_PHOTO_ID_5584241018610671810" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/-5hVUkqtoMgI/TX81nTdgSVI/AAAAAAAAAFE/J8yU48fCB00/s1600/alertdialog_example.JPG"&gt;&lt;img style="display: block; margin: 0px auto 10px; text-align: center; cursor: pointer; width: 288px; height: 320px;" src="http://3.bp.blogspot.com/-5hVUkqtoMgI/TX81nTdgSVI/AAAAAAAAAFE/J8yU48fCB00/s320/alertdialog_example.JPG" alt="" id="BLOGGER_PHOTO_ID_5584241012317899090" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;For Custom Dialog you can see this blog &lt;a href="http://android-codes-examples.blogspot.com/2011/03/how-to-display-custom-dialog-and.html"&gt;http://android-codes-examples.blogspot.com/2011/03/how-to-display-custom-dialog-and.html&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Have a good day.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5197277884634195738-2316307918826566643?l=android-codes-examples.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://android-codes-examples.blogspot.com/feeds/2316307918826566643/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://android-codes-examples.blogspot.com/2011/03/how-to-display-alertdialog-and.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5197277884634195738/posts/default/2316307918826566643'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5197277884634195738/posts/default/2316307918826566643'/><link rel='alternate' type='text/html' href='http://android-codes-examples.blogspot.com/2011/03/how-to-display-alertdialog-and.html' title='How to display AlertDialog and selection in Alert Dialog and selection with radio buttons with example?'/><author><name>Keerthy</name><uri>http://www.blogger.com/profile/10048420864647222363</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/-a8WH7GbnPRU/TX81noCoqHI/AAAAAAAAAFU/J_PYqC9UlBU/s72-c/alertdialog_listview_selection_with_radio_button.JPG' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5197277884634195738.post-6694218656810425548</id><published>2011-03-14T04:06:00.001-07:00</published><updated>2011-08-05T23:06:24.965-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='phone call'/><category scheme='http://www.blogger.com/atom/ns#' term='call from android'/><category scheme='http://www.blogger.com/atom/ns#' term='android'/><title type='text'>Make a phone call using Android code in application?</title><content type='html'>We can write code to make a call from the android application that we created. &lt;br /&gt;&lt;br /&gt;The below code is enough to make a call from the application,&lt;br /&gt;&lt;br /&gt;&lt;div class="innerblock"&gt;  &lt;br /&gt;&lt;strong&gt;Java&lt;/strong&gt;&lt;br /&gt;&lt;pre class="innertextblock"  &gt;&lt;br /&gt;Intent sIntent = new Intent(Intent.ACTION_CALL, Uri.parse("tel:919894643826"));&lt;br /&gt;startActivity(sIntent);&lt;br /&gt;&lt;/pre&gt;   &lt;/div&gt;&lt;br /&gt;&lt;br /&gt;We can put this code in a click event, so that on clicking a button or textview the call be done.&lt;br /&gt;&lt;br /&gt;Likewise we need to add this line inside the Manifest.xml file&lt;br /&gt;&lt;br /&gt;&lt;div class="innerblock"&gt;  &lt;br /&gt;&lt;strong&gt;XML&lt;/strong&gt;&lt;br /&gt;&lt;pre class="innertextblock"  &gt;&lt;br /&gt;&amp;lt;uses-permission android:name="android.permission.CALL_PHONE"&gt;&amp;lt;/uses&gt;&lt;br /&gt;&lt;/pre&gt;   &lt;/div&gt;&lt;br /&gt;&lt;br /&gt;The java code will be like this&lt;br /&gt;&lt;div class="innerblock"&gt;  &lt;br /&gt;&lt;strong&gt;Caller.java&lt;/strong&gt;&lt;br /&gt;&lt;pre class="innertextblock"  &gt;&lt;br /&gt;package com.phone.calller;&lt;br /&gt;&lt;br /&gt;import android.app.Activity;&lt;br /&gt;import android.content.Intent;&lt;br /&gt;import android.net.Uri;&lt;br /&gt;import android.os.Bundle;&lt;br /&gt;import android.view.View;&lt;br /&gt;import android.widget.Button;&lt;br /&gt;&lt;br /&gt;public class Callers extends Activity {&lt;br /&gt;    /** Called when the activity is first created. */&lt;br /&gt;    @Override&lt;br /&gt;    public void onCreate(Bundle savedInstanceState) {&lt;br /&gt;        super.onCreate(savedInstanceState);&lt;br /&gt;        setContentView(R.layout.main);&lt;br /&gt;        Button Phone = (Button) findViewById(R.id.call);&lt;br /&gt;        Phone.setOnClickListener(new View.OnClickListener() {&lt;br /&gt;   @Override&lt;br /&gt;   public void onClick(View v) {&lt;br /&gt;    Intent sIntent = new Intent(Intent.ACTION_CALL, Uri&lt;br /&gt;      .parse("tel:919894643826"));&lt;br /&gt;    startActivity(sIntent);&lt;br /&gt;   }&lt;br /&gt;  });&lt;br /&gt;    }&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;   &lt;/div&gt;&lt;br /&gt;&lt;br /&gt;and the manifest.xml file will be like this&lt;br /&gt;&lt;br /&gt;&lt;div class="innerblock"&gt;  &lt;br /&gt;&lt;strong&gt;AndroidManifest.xml&lt;/strong&gt;&lt;br /&gt;&lt;pre class="innertextblock"  &gt;&lt;br /&gt;&amp;lt;?xml version="1.0" encoding="utf-8"?&gt;&lt;br /&gt;&amp;lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"&lt;br /&gt;      package="com.phone.calller"&lt;br /&gt;      android:versionCode="1"&lt;br /&gt;      android:versionName="1.0"&gt;&lt;br /&gt;    &amp;lt;application android:icon="@drawable/icon" android:label="@string/app_name"&gt;&lt;br /&gt;        &amp;lt;activity android:name=".Callers"&lt;br /&gt;                  android:label="@string/app_name"&gt;&lt;br /&gt;            &amp;lt;intent-filter&gt;&lt;br /&gt;                &amp;lt;action android:name="android.intent.action.MAIN" /&gt;&lt;br /&gt;                &amp;lt;category android:name="android.intent.category.LAUNCHER" /&gt;&lt;br /&gt;            &amp;lt;/intent-filter&gt;&lt;br /&gt;        &amp;lt;/activity&gt;&lt;br /&gt;&lt;br /&gt;    &amp;lt;/application&gt;&lt;br /&gt;&amp;lt;uses-permission android:name="android.permission.CALL_PHONE" /&gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;/manifest&gt; &lt;br /&gt;&lt;/pre&gt;   &lt;/div&gt;&lt;br /&gt;Have a good day.&lt;br /&gt;&lt;br /&gt;The full source code&lt;br /&gt;&lt;div class="downloadblock"&gt;  &lt;br /&gt;Download &lt;a href="http://www.ziddu.com/download/14182489/PhoneCall.zip.html"&gt;source&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5197277884634195738-6694218656810425548?l=android-codes-examples.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://android-codes-examples.blogspot.com/feeds/6694218656810425548/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://android-codes-examples.blogspot.com/2011/03/make-phone-call-using-android-code-in.html#comment-form' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5197277884634195738/posts/default/6694218656810425548'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5197277884634195738/posts/default/6694218656810425548'/><link rel='alternate' type='text/html' href='http://android-codes-examples.blogspot.com/2011/03/make-phone-call-using-android-code-in.html' title='Make a phone call using Android code in application?'/><author><name>Keerthy</name><uri>http://www.blogger.com/profile/10048420864647222363</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5197277884634195738.post-2355928048579101456</id><published>2011-03-07T22:05:00.001-08:00</published><updated>2011-08-05T23:05:51.635-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='runnable'/><category scheme='http://www.blogger.com/atom/ns#' term='thread'/><category scheme='http://www.blogger.com/atom/ns#' term='handler'/><category scheme='http://www.blogger.com/atom/ns#' term='android'/><title type='text'>How to run a Runnable thread or UI thread in Android?</title><content type='html'>On the launching time of the application itselef the system creates a thread called "main" in the application. This main thread is also called as UI thread, it will only interact with the components of Android UI toolkit.&lt;br /&gt;&lt;br /&gt;Here is an example for using the runnable thread in a click event, while clicking the image will be loaded, as it will take time to load the image, we can use the thread as shown below : &lt;br /&gt;&lt;div class="innerblock"&gt;  &lt;br /&gt;&lt;strong&gt;Java&lt;/strong&gt;&lt;br /&gt;&lt;pre class="innertextblock"  &gt;&lt;br /&gt;public void onClick(View v) {&lt;br /&gt;  new Thread(new Runnable() {&lt;br /&gt;    public void run() {&lt;br /&gt;      final Bitmap bm = loadImage();&lt;br /&gt;      mImage.post(new Runnable() {&lt;br /&gt;        public void run() {&lt;br /&gt;          mImage.setImageBitmap(bm);&lt;br /&gt;        }&lt;br /&gt;      });&lt;br /&gt;    }&lt;br /&gt;  }).start();&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;   &lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;H3&gt;Using Handler in Runnable thread&lt;/H3&gt;&lt;br /&gt;Here we are using the runnable thread using the handler. When we send a message to the Handler it will get saved into a queue and get executed by the UI thread as soon as possible.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="innerblock"&gt;  &lt;br /&gt;&lt;strong&gt;Java&lt;/strong&gt;&lt;br /&gt;&lt;pre class="innertextblock"  &gt;&lt;br /&gt;public class ProgressThread extends Activity implements Runnable {&lt;br /&gt;    private String result;&lt;br /&gt;    private TextView showResult;&lt;br /&gt;    private ProgressDialog progress;&lt;br /&gt;    @Override&lt;br /&gt;    public void onCreate(Bundle savedBundleInstance) {&lt;br /&gt;            super.onCreate(savedBundleInstance);&lt;br /&gt;            setContentView(R.layout.main);&lt;br /&gt;            showResult = (TextView) this.findViewById(R.id.main);&lt;br /&gt;            showResult.setText("Press any key to start calculation");&lt;br /&gt;    }&lt;br /&gt;    @Override&lt;br /&gt;    public boolean onKeyDown(int keyCode, KeyEvent keyEvent) {&lt;br /&gt;     progress = ProgressDialog.show(this, "Working..", "Calculation is going on...", true,&lt;br /&gt;                            false);&lt;br /&gt;            Thread thread = new Thread(this);&lt;br /&gt;            thread.start();&lt;br /&gt;            return super.onKeyDown(keyCode, keyEvent);&lt;br /&gt;    }&lt;br /&gt;    public void run() {&lt;br /&gt;            result = MyClass.calculate(800).toString();&lt;br /&gt;            handler.sendEmptyMessage(0);&lt;br /&gt;    }&lt;br /&gt;    private Handler handler = new Handler() {&lt;br /&gt;            @Override&lt;br /&gt;            public void handleMessage(Message msg) {&lt;br /&gt;             progress.dismiss();&lt;br /&gt;             showResult.setText(result);&lt;br /&gt;            }&lt;br /&gt;    };&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;   &lt;/div&gt;&lt;br /&gt;&lt;br /&gt;The runnable thread can be called like this way too&lt;br /&gt;&lt;br /&gt;&lt;div class="innerblock"&gt;  &lt;br /&gt;&lt;strong&gt;Java&lt;/strong&gt;&lt;br /&gt;&lt;pre class="innertextblock"  &gt;&lt;br /&gt;final Runnable runner = new Runnable()&lt;br /&gt;{&lt;br /&gt;    public void run() &lt;br /&gt;    {&lt;br /&gt;        tv.append("Hello World");&lt;br /&gt;        handler.postDelayed(this, 1000);&lt;br /&gt;    }&lt;br /&gt;};&lt;br /&gt;&lt;br /&gt;handler.postDelayed(runner, 1000);&lt;br /&gt;&lt;/pre&gt;   &lt;/div&gt;&lt;br /&gt;&lt;br /&gt;Otherwise we can use the original runnable thread that we are using in the java&lt;br /&gt;&lt;br /&gt;&lt;div class="innerblock"&gt;  &lt;br /&gt;&lt;strong&gt;Java&lt;/strong&gt;&lt;br /&gt;&lt;pre class="innertextblock"  &gt;&lt;br /&gt;Thread thread = new Thread()&lt;br /&gt;{&lt;br /&gt;    @Override&lt;br /&gt;    public void run() {&lt;br /&gt;        try {&lt;br /&gt;            while(true) {&lt;br /&gt;                sleep(1000);&lt;br /&gt;                handler.post(runner);&lt;br /&gt;            }&lt;br /&gt;        } catch (InterruptedException e) {&lt;br /&gt;            e.printStackTrace();&lt;br /&gt;        }&lt;br /&gt;    }&lt;br /&gt;};&lt;br /&gt;&lt;br /&gt;thread.start();&lt;br /&gt;&lt;/pre&gt;   &lt;/div&gt;&lt;br /&gt;&lt;br /&gt;Have a good day.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5197277884634195738-2355928048579101456?l=android-codes-examples.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://android-codes-examples.blogspot.com/feeds/2355928048579101456/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://android-codes-examples.blogspot.com/2011/03/how-to-run-runnable-thread-or-ui-thread.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5197277884634195738/posts/default/2355928048579101456'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5197277884634195738/posts/default/2355928048579101456'/><link rel='alternate' type='text/html' href='http://android-codes-examples.blogspot.com/2011/03/how-to-run-runnable-thread-or-ui-thread.html' title='How to run a Runnable thread or UI thread in Android?'/><author><name>Keerthy</name><uri>http://www.blogger.com/profile/10048420864647222363</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5197277884634195738.post-840726829885275050</id><published>2011-03-03T01:50:00.001-08:00</published><updated>2011-08-05T23:05:31.572-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='secret code'/><category scheme='http://www.blogger.com/atom/ns#' term='phone'/><category scheme='http://www.blogger.com/atom/ns#' term='android'/><title type='text'>Amazing Android Phone Secret Codes</title><content type='html'>I had listed some secret codes of Android phone, these information will be more helpful for you, for using this you should need the Android software. The following are the secret codes...&lt;br /&gt;&lt;br /&gt;&lt;H3&gt;Android Phone Information Secret Code: *#*#4636#*#*&lt;/H3&gt;&lt;br /&gt;To get the information of your phone and battery. including Phone information, Battery information, Battery history, and Usage statistics.&lt;br /&gt;&lt;br /&gt;&lt;H3&gt;Android Phone Reset Secret Code: *#*#7780#*#*&lt;/H3&gt;&lt;br /&gt;To reset your Android phone back to factory data. It will delete the things including Google account settings stored in your phone, System and application data and settings, and Downloaded applications too. I wont delete, including current system software, bundled applications, SD card files e.g. photos, music files.&lt;br /&gt;&lt;br /&gt;&lt;H3&gt;Android Phone Factory Format Secret Code: *2767*3855#&lt;/H3&gt;&lt;br /&gt;It is used for factory format, which will delete all files and settings, including the internal memory storage. It will also reinstall the firmware.&lt;br /&gt;&lt;br /&gt;&lt;H3&gt;Android Phone Camera Information Secret Code: *#*#34971539#*#*&lt;/H3&gt;&lt;br /&gt;It is used to get information about the camera. It includes following 4 menus: Update camera firmware in image, Update camera firmware in SD card, Get camera firmware version, and Get firmware update count. You should never use the first option otherwise your phone camera may stop working, and there is really no reason to update the camera firmware anyway.&lt;br /&gt;&lt;br /&gt;&lt;H3&gt;Android Phone Secret Code: *#*#7594#*#*&lt;/H3&gt;&lt;br /&gt;It will change the "End Call / Power" button action on your phone. By default, if you long press the button, it shows a screen asking you to select any option from Silent mode, Airplane mode and Power off. You can change this action using this code. You can enable direct power off on this button so you don't need to waste your time in selecting the option.&lt;br /&gt;&lt;br /&gt;&lt;H3&gt;Android Phone Backup Secret Code: *#*#273283*255*663282*#*#*&lt;/H3&gt;&lt;br /&gt;It opens a File copy screen where you can backup your media files e.g. Images, Sound, Video and Voice memo.&lt;br /&gt;&lt;br /&gt;&lt;H3&gt;Android Phone Service mode Secret Code: *#*#197328640#*#*&lt;/H3&gt;&lt;br /&gt;It can be used to enter into Service mode. You can run various tests and change settings in the service mode.&lt;br /&gt;&lt;br /&gt;&lt;H3&gt;Android Phone WLAN, GPS and Bluetooth Test Secret Codes:&lt;/H3&gt;&lt;br /&gt;*#*#232339#*#* OR *#*#526#*#* OR *#*#528#*#* ¨C WLAN test (Use "Menu" button to start various tests)&lt;br /&gt;&lt;br /&gt;*#*#232338#*#* ¨C Shows WiFi MAC address&lt;br /&gt;&lt;br /&gt;*#*#1472365#*#* ¨C GPS test&lt;br /&gt;&lt;br /&gt;*#*#1575#*#* ¨C Another GPS test&lt;br /&gt;&lt;br /&gt;*#*#232331#*#* ¨C Bluetooth test&lt;br /&gt;&lt;br /&gt;*#*#232337#*# ¨C Shows Bluetooth device address&lt;br /&gt;&lt;br /&gt;&lt;H3&gt;Android Phone GTalk Secret Codes: *#*#8255#*#*&lt;/H3&gt;&lt;br /&gt;It can be used to launch GTalk Service Monitor.&lt;br /&gt;&lt;br /&gt;&lt;H3&gt;Android Phone Firmware version information Secret Codes:&lt;/H3&gt;&lt;br /&gt;*#*#4986*2650468#*#* ¨C PDA, Phone, H/W, RFCallDate&lt;br /&gt;&lt;br /&gt;*#*#1234#*#* ¨C PDA and Phone&lt;br /&gt;&lt;br /&gt;*#*#1111#*#* ¨C FTA SW Version&lt;br /&gt;&lt;br /&gt;*#*#2222#*#* ¨C FTA HW Version&lt;br /&gt;&lt;br /&gt;*#*#44336#*#* - PDA, Phone, CSC, Build Time, Changelist number&lt;br /&gt;&lt;br /&gt;&lt;H3&gt;Android Phone Factory Tests Secret Codes:&lt;/H3&gt;&lt;br /&gt;*#*#0283#*#* ¨C Packet Loopback&lt;br /&gt;&lt;br /&gt;*#*#0*#*#* ¨C LCD test&lt;br /&gt;&lt;br /&gt;*#*#0673#*#* OR *#*#0289#*#* ¨C Melody test&lt;br /&gt;&lt;br /&gt;*#*#0842#*#* ¨C Device test (Vibration test and BackLight test)&lt;br /&gt;&lt;br /&gt;*#*#2663#*#* ¨C Touch screen version&lt;br /&gt;&lt;br /&gt;*#*#2664#*#* ¨C Touch screen test&lt;br /&gt;&lt;br /&gt;*#*#0588#*#* ¨C Proximity sensor test&lt;br /&gt;&lt;br /&gt;*#*#3264#*#* ¨C RAM version&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5197277884634195738-840726829885275050?l=android-codes-examples.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://android-codes-examples.blogspot.com/feeds/840726829885275050/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://android-codes-examples.blogspot.com/2011/03/amazing-android-phone-secret-codes.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5197277884634195738/posts/default/840726829885275050'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5197277884634195738/posts/default/840726829885275050'/><link rel='alternate' type='text/html' href='http://android-codes-examples.blogspot.com/2011/03/amazing-android-phone-secret-codes.html' title='Amazing Android Phone Secret Codes'/><author><name>Keerthy</name><uri>http://www.blogger.com/profile/10048420864647222363</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5197277884634195738.post-3202654768310183231</id><published>2011-02-28T19:08:00.000-08:00</published><updated>2011-08-05T23:04:40.773-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SpannableString'/><category scheme='http://www.blogger.com/atom/ns#' term='underline'/><category scheme='http://www.blogger.com/atom/ns#' term='TextView'/><category scheme='http://www.blogger.com/atom/ns#' term='android'/><title type='text'>How to underline a textview in android</title><content type='html'>We can underline the Textview in android through this codings&lt;br /&gt;&lt;br /&gt;&lt;div class="innerblock"&gt;  &lt;br /&gt;&lt;strong&gt;Java&lt;/strong&gt;&lt;br /&gt;&lt;pre class="innertextblock"  &gt;&lt;br /&gt;SpannableString contentUnderline = new SpannableString("http://www.android-codes-examples.com");&lt;br /&gt;contentUnderline.setSpan(new UnderlineSpan(), 0, contentUnderline.length(), 0);&lt;br /&gt;TextView mPage = (TextView) findViewById(R.id.page);&lt;br /&gt;mPage.setText(contentUnderline);&lt;br /&gt;&lt;/pre&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;Through the SpannableString we can underline the text, it can be static or dynamic text no problem, first we have to set the string to the SpannableString and then we need to setSpan, and then we need to set that variable to the TextView.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5197277884634195738-3202654768310183231?l=android-codes-examples.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://android-codes-examples.blogspot.com/feeds/3202654768310183231/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://android-codes-examples.blogspot.com/2011/02/how-to-underline-textview-in-android.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5197277884634195738/posts/default/3202654768310183231'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5197277884634195738/posts/default/3202654768310183231'/><link rel='alternate' type='text/html' href='http://android-codes-examples.blogspot.com/2011/02/how-to-underline-textview-in-android.html' title='How to underline a textview in android'/><author><name>Keerthy</name><uri>http://www.blogger.com/profile/10048420864647222363</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5197277884634195738.post-3071815717567314412</id><published>2011-02-28T00:55:00.000-08:00</published><updated>2011-08-05T23:02:52.472-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='license'/><category scheme='http://www.blogger.com/atom/ns#' term='android'/><title type='text'>Android Market License Verification Library (LVL)</title><content type='html'>&lt;!--[if !mso]&gt; &lt;style&gt; v\:* {behavior:url(#default#VML);} o\:* {behavior:url(#default#VML);} w\:* {behavior:url(#default#VML);} .shape {behavior:url(#default#VML);} &lt;/style&gt; &lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;  &lt;w:worddocument&gt;   &lt;w:view&gt;Normal&lt;/w:View&gt;   &lt;w:zoom&gt;0&lt;/w:Zoom&gt;   &lt;w:trackmoves&gt;false&lt;/w:TrackMoves&gt;   &lt;w:trackformatting/&gt;   &lt;w:punctuationkerning/&gt;   &lt;w:validateagainstschemas/&gt;   &lt;w:saveifxmlinvalid&gt;false&lt;/w:SaveIfXMLInvalid&gt;   &lt;w:ignoremixedcontent&gt;false&lt;/w:IgnoreMixedContent&gt;   &lt;w:alwaysshowplaceholdertext&gt;false&lt;/w:AlwaysShowPlaceholderText&gt;   &lt;w:donotpromoteqf/&gt;   &lt;w:lidthemeother&gt;EN-US&lt;/w:LidThemeOther&gt;   &lt;w:lidthemeasian&gt;X-NONE&lt;/w:LidThemeAsian&gt;   &lt;w:lidthemecomplexscript&gt;X-NONE&lt;/w:LidThemeComplexScript&gt;   &lt;w:compatibility&gt;    &lt;w:breakwrappedtables/&gt;    &lt;w:snaptogridincell/&gt;    &lt;w:wraptextwithpunct/&gt;    &lt;w:useasianbreakrules/&gt;    &lt;w:dontgrowautofit/&gt;    &lt;w:splitpgbreakandparamark/&gt;    &lt;w:dontvertaligncellwithsp/&gt;    &lt;w:dontbreakconstrainedforcedtables/&gt;    &lt;w:dontvertalignintxbx/&gt;    &lt;w:word11kerningpairs/&gt;    &lt;w:cachedcolbalance/&gt;   &lt;/w:Compatibility&gt;   &lt;m:mathpr&gt;    &lt;m:mathfont val="Cambria Math"&gt;    &lt;m:brkbin val="before"&gt;    &lt;m:brkbinsub val="&amp;#45;-"&gt;    &lt;m:smallfrac val="off"&gt;    &lt;m:dispdef/&gt;    &lt;m:lmargin val="0"&gt;    &lt;m:rmargin val="0"&gt;    &lt;m:defjc val="centerGroup"&gt;    &lt;m:wrapindent val="1440"&gt;    &lt;m:intlim val="subSup"&gt;    &lt;m:narylim val="undOvr"&gt;   &lt;/m:mathPr&gt;&lt;/w:WordDocument&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;  &lt;w:latentstyles deflockedstate="false" defunhidewhenused="true" defsemihidden="true" defqformat="false" defpriority="99" latentstylecount="267"&gt;   &lt;w:lsdexception locked="false" priority="0" semihidden="false" unhidewhenused="false" qformat="true" name="Normal"&gt;   &lt;w:lsdexception locked="false" priority="9" semihidden="false" unhidewhenused="false" qformat="true" name="heading 1"&gt;   &lt;w:lsdexception locked="false" priority="9" qformat="true" name="heading 2"&gt;   &lt;w:lsdexception locked="false" priority="9" qformat="true" name="heading 3"&gt;   &lt;w:lsdexception locked="false" priority="9" qformat="true" name="heading 4"&gt;   &lt;w:lsdexception locked="false" priority="9" qformat="true" name="heading 5"&gt;   &lt;w:lsdexception locked="false" priority="9" qformat="true" name="heading 6"&gt;   &lt;w:lsdexception locked="false" priority="9" qformat="true" name="heading 7"&gt;   &lt;w:lsdexception locked="false" priority="9" qformat="true" name="heading 8"&gt;   &lt;w:lsdexception locked="false" priority="9" qformat="true" name="heading 9"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 1"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 2"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 3"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 4"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 5"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 6"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 7"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 8"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 9"&gt;   &lt;w:lsdexception locked="false" priority="35" qformat="true" name="caption"&gt;   &lt;w:lsdexception locked="false" priority="10" semihidden="false" unhidewhenused="false" qformat="true" name="Title"&gt;   &lt;w:lsdexception locked="false" priority="1" name="Default Paragraph Font"&gt;   &lt;w:lsdexception locked="false" priority="11" semihidden="false" unhidewhenused="false" qformat="true" name="Subtitle"&gt;   &lt;w:lsdexception locked="false" priority="22" semihidden="false" unhidewhenused="false" qformat="true" name="Strong"&gt;   &lt;w:lsdexception locked="false" priority="20" semihidden="false" unhidewhenused="false" qformat="true" name="Emphasis"&gt;   &lt;w:lsdexception locked="false" priority="59" semihidden="false" unhidewhenused="false" name="Table Grid"&gt;   &lt;w:lsdexception locked="false" unhidewhenused="false" name="Placeholder Text"&gt;   &lt;w:lsdexception locked="false" priority="1" semihidden="false" unhidewhenused="false" qformat="true" name="No Spacing"&gt;   &lt;w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading"&gt;   &lt;w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List"&gt;   &lt;w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid"&gt;   &lt;w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1"&gt;   &lt;w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2"&gt;   &lt;w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1"&gt;   &lt;w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2"&gt;   &lt;w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1"&gt;   &lt;w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2"&gt;   &lt;w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3"&gt;   &lt;w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List"&gt;   &lt;w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading"&gt;   &lt;w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List"&gt;   &lt;w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid"&gt;   &lt;w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 1"&gt;   &lt;w:lsdexception locked="false" unhidewhenused="false" name="Revision"&gt;   &lt;w:lsdexception locked="false" priority="34" semihidden="false" unhidewhenused="false" qformat="true" name="List Paragraph"&gt;   &lt;w:lsdexception locked="false" priority="29" semihidden="false" unhidewhenused="false" qformat="true" name="Quote"&gt;   &lt;w:lsdexception locked="false" priority="30" semihidden="false" unhidewhenused="false" qformat="true" name="Intense Quote"&gt;   &lt;w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="19" semihidden="false" unhidewhenused="false" qformat="true" name="Subtle Emphasis"&gt;   &lt;w:lsdexception locked="false" priority="21" semihidden="false" unhidewhenused="false" qformat="true" name="Intense Emphasis"&gt;   &lt;w:lsdexception locked="false" priority="31" semihidden="false" unhidewhenused="false" qformat="true" name="Subtle Reference"&gt;   &lt;w:lsdexception locked="false" priority="32" semihidden="false" unhidewhenused="false" qformat="true" name="Intense Reference"&gt;   &lt;w:lsdexception locked="false" priority="33" semihidden="false" unhidewhenused="false" qformat="true" name="Book Title"&gt;   &lt;w:lsdexception locked="false" priority="37" name="Bibliography"&gt;   &lt;w:lsdexception locked="false" priority="39" qformat="true" name="TOC Heading"&gt;  &lt;/w:LatentStyles&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 10]&gt; &lt;style&gt;  /* Style Definitions */  table.MsoNormalTable  {mso-style-name:"Table Normal";  mso-tstyle-rowband-size:0;  mso-tstyle-colband-size:0;  mso-style-noshow:yes;  mso-style-priority:99;  mso-style-qformat:yes;  mso-style-parent:"";  mso-padding-alt:0in 5.4pt 0in 5.4pt;  mso-para-margin-top:0in;  mso-para-margin-right:0in;  mso-para-margin-bottom:10.0pt;  mso-para-margin-left:0in;  line-height:115%;  mso-pagination:widow-orphan;  font-size:11.0pt;  font-family:"Calibri","sans-serif";  mso-ascii-font-family:Calibri;  mso-ascii-theme-font:minor-latin;  mso-hansi-font-family:Calibri;  mso-hansi-theme-font:minor-latin;  mso-ansi-language:EN-IN;} &lt;/style&gt; &lt;![endif]--&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span class="apple-style-span"&gt;&lt;span style="line-height: 115%;font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;Android Market offers a licensing service that lets you enforce licensing policies for paid applications that you publish through Android Market. With Android Market Licensing, your applications can query Android Market at run time to obtain their licensing status for the current user, then allow or disallow further use as appropriate.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span class="apple-style-span"&gt;&lt;span style="line-height: 115%;font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;When an application checks the licensing status, the Market server signs the licensing status response using a key pair that is uniquely associated with the publisher account. Your application stores the public key in its compiled&lt;/span&gt;&lt;/span&gt;&lt;code&gt;&lt;span style="line-height: 115%; color: rgb(0, 112, 0);font-size:10pt;" lang="EN-IN" &gt;.apk&lt;/span&gt;&lt;/code&gt;&lt;span class="apple-converted-space"&gt;&lt;span style="line-height: 115%;font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt; &lt;/span&gt;&lt;/span&gt;&lt;span class="apple-style-span"&gt;&lt;span style="line-height: 115%;font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;file and uses it to verify the licensing status response.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span class="apple-style-span"&gt;&lt;span style="line-height: 115%;font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt; &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;h4 style="margin: 12pt 0in 6pt;"&gt;&lt;span style="line-height: 115%;font-family:&amp;quot;;font-size:10pt;"  lang="EN-IN" &gt;Application, Android Market client, and server&lt;/span&gt;&lt;/h4&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span class="apple-style-span"&gt;&lt;span style="line-height: 115%;font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;In the licensing service, an application does not query the licensing server directly, but instead calls the Android Market client over remote IPC to initiate a license request. In the license request:&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin: 0in 0in 0.0001pt; text-align: justify; text-indent: -0.25in; line-height: 15.6pt;"&gt;&lt;span style="color: rgb(51, 51, 51);font-family:Symbol;font-size:10pt;"  lang="EN-IN" &gt;&lt;span style=""&gt;·&lt;span style="font: 7pt &amp;quot;Times New Roman&amp;quot;;"&gt;         &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;The application provides its package name and that is later used to validate any response from the server, as well as a callback over which the response can be returned asynchronously.&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; text-align: justify; line-height: 15.6pt;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt; &lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin: 0in 0in 0.0001pt; text-align: justify; text-indent: -0.25in; line-height: 15.6pt;"&gt;&lt;span style="color: rgb(51, 51, 51);font-family:Symbol;font-size:10pt;"  lang="EN-IN" &gt;&lt;span style=""&gt;·&lt;span style="font: 7pt &amp;quot;Times New Roman&amp;quot;;"&gt;         &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;The Android Market client, which has greater permissions than the application, collects the necessary information about the user and the device, such as the device's primary Google account username, IMSI, and other information. It then sends the license check request to the server on behalf of the application.&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; text-align: justify; line-height: 15.6pt;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt; &lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin: 0in 0in 0.0001pt; text-align: justify; text-indent: -0.25in; line-height: 15.6pt;"&gt;&lt;span style="color: rgb(51, 51, 51);font-family:Symbol;font-size:10pt;"  lang="EN-IN" &gt;&lt;span style=""&gt;·&lt;span style="font: 7pt &amp;quot;Times New Roman&amp;quot;;"&gt;         &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;The server evaluates the request using all available information, attempting to establish the user's identity to a sufficient level of confidence. The server then checks the user identity against purchase records for the application and returns a license response, which the Android Market client returns to the application over the IPC callback.&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoListParagraphCxSpFirst"&gt;&lt;span style="line-height: 115%;font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt; &lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoListParagraphCxSpLast"&gt;&lt;span style="line-height: 115%;font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt; &lt;/span&gt;&lt;/p&gt;  &lt;h4 style="margin: 12pt 0in 6pt;"&gt;&lt;span style="line-height: 115%;font-family:&amp;quot;;font-size:10pt;"  lang="EN-IN" &gt;Licensing Verification Library&lt;/span&gt;&lt;span style="line-height: 115%;font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;&lt;/span&gt;&lt;/h4&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; text-align: justify; line-height: 15.6pt;"&gt;&lt;span class="apple-style-span"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;The Android SDK includes a License Verification Library (LVL) that you can download and use as the basis for your application's licensing implementation. The key LVL interfaces are:&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoListParagraphCxSpFirst" style="margin-bottom: 0.0001pt; text-align: justify; text-indent: -0.25in; line-height: 15.6pt;"&gt;&lt;span class="apple-converted-space"&gt;&lt;span style="color: rgb(51, 51, 51);font-family:Symbol;font-size:9pt;"  lang="EN-IN" &gt;&lt;span style=""&gt;·&lt;span style="font: 7pt &amp;quot;Times New Roman&amp;quot;;"&gt;         &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-style-span"&gt;&lt;b style=""&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;Policy&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span class="apple-converted-space"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt; - &lt;/span&gt;&lt;/span&gt;&lt;span class="apple-style-span"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;Your implementation determines whether to allow access to the application, based on the license response received from the server and any other data available. It also lets you manage the handling of license checks that result in errors, such as network errors&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-converted-space"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoListParagraphCxSpLast" style="margin-bottom: 0.0001pt; text-align: justify; text-indent: -0.25in; line-height: 15.6pt;"&gt;&lt;span class="apple-style-span"&gt;&lt;span style="color: rgb(51, 51, 51);font-family:Symbol;font-size:10pt;"  lang="EN-IN" &gt;&lt;span style=""&gt;·&lt;span style="font: 7pt &amp;quot;Times New Roman&amp;quot;;"&gt;         &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-style-span"&gt;&lt;b style=""&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;LicenseCheckerCallback&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span class="apple-converted-space"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt; - Your&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-style-span"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt; implementation manages access to the application, based on the result of the Policy's handling of the license response. Your implementation can manage access in any way needed, including displaying the license result in the UI or directing the user to purchase the application&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-style-span"&gt;&lt;span style=";font-family:&amp;quot;;font-size:10pt;"  lang="EN-IN" &gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; text-align: justify; line-height: 15.6pt;"&gt;&lt;span class="apple-style-span"&gt;&lt;span style=";font-family:&amp;quot;;font-size:10pt;"  lang="EN-IN" &gt; &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; text-align: justify; line-height: 15.6pt;"&gt;&lt;span class="apple-style-span"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;To help you get started with a Policy, the LVL provides two fully complete Policy implementations that you can use without modification or adapt to your needs:&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoListParagraphCxSpFirst" style="margin-bottom: 0.0001pt; text-align: justify; text-indent: -0.25in; line-height: 15.6pt;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;&lt;span style=""&gt;1.&lt;span style="font: 7pt &amp;quot;Times New Roman&amp;quot;;"&gt;     &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span lang="EN-IN"&gt;&lt;a href="http://developer.android.com/guide/publishing/licensing.html#ServerManagedPolicy"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  &gt;ServerManagedPolicy&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span class="apple-style-span"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt; -&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-converted-space"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt; F&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-style-span"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;lexible Policy that uses settings provided by the licensing server to manage response caching and access to the application while the device is offline (such as when the user is on an airplane). For most applications, the use of ServerManagedPolicy is highly recommended.&lt;/span&gt;&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoListParagraphCxSpLast" style="margin-bottom: 0.0001pt; text-align: justify; text-indent: -0.25in; line-height: 15.6pt;"&gt;&lt;span class="apple-style-span"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;&lt;span style=""&gt;2.&lt;span style="font: 7pt &amp;quot;Times New Roman&amp;quot;;"&gt;     &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span lang="EN-IN"&gt;&lt;a href="http://developer.android.com/guide/publishing/licensing.html#StrictPolicy"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  &gt;StrictPolicy&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span class="apple-style-span"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt; – Restrictive Policy that does not cache any response data and allows the application access&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-converted-space"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt; &lt;/span&gt;&lt;/span&gt;&lt;em&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;only&lt;/span&gt;&lt;/em&gt;&lt;span class="apple-converted-space"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt; &lt;/span&gt;&lt;/span&gt;&lt;span class="apple-style-span"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;when the server returns a licensed response&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; text-align: justify; line-height: 15.6pt;"&gt;&lt;span class="apple-style-span"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt; &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;h4 style="margin: 12pt 0in 6pt;"&gt;&lt;span style="line-height: 115%;font-family:&amp;quot;;font-size:10pt;"  lang="EN-IN" &gt;Requirements and limitations&lt;/span&gt;&lt;/h4&gt;  &lt;p class="MsoNormal" style="margin: 0in 0in 0.0001pt; text-indent: -0.25in; line-height: 15.6pt;"&gt;&lt;span style="color: rgb(51, 51, 51);font-family:Symbol;font-size:10pt;"  lang="EN-IN" &gt;&lt;span style=""&gt;·&lt;span style="font: 7pt &amp;quot;Times New Roman&amp;quot;;"&gt;         &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;Only paid applications published through Market can use the service.&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin: 0in 0in 0.0001pt; text-indent: -0.25in; line-height: 15.6pt;"&gt;&lt;span style="color: rgb(51, 51, 51);font-family:Symbol;font-size:10pt;"  lang="EN-IN" &gt;&lt;span style=""&gt;·&lt;span style="font: 7pt &amp;quot;Times New Roman&amp;quot;;"&gt;         &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;An application can use the service only if the Android Market client is running Android 1.5 (API level 3) or higher.&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin: 0in 0in 0.0001pt; text-indent: -0.25in; line-height: 15.6pt;"&gt;&lt;span style="color: rgb(51, 51, 51);font-family:Symbol;font-size:10pt;"  lang="EN-IN" &gt;&lt;span style=""&gt;·&lt;span style="font: 7pt &amp;quot;Times New Roman&amp;quot;;"&gt;         &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;To complete a license check, the licensing server must be accessible over the network. &lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin: 0in 0in 0.0001pt; text-indent: -0.25in; line-height: 15.6pt;"&gt;&lt;span style="color: rgb(51, 51, 51);font-family:Symbol;font-size:10pt;"  lang="EN-IN" &gt;&lt;span style=""&gt;·&lt;span style="font: 7pt &amp;quot;Times New Roman&amp;quot;;"&gt;         &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;The security of your application's licensing controls ultimately relies on the design of your implementation itself.&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin: 0in 0in 0.0001pt; text-indent: -0.25in; line-height: 15.6pt;"&gt;&lt;span style="color: rgb(51, 51, 51);font-family:Symbol;font-size:10pt;"  lang="EN-IN" &gt;&lt;span style=""&gt;·&lt;span style="font: 7pt &amp;quot;Times New Roman&amp;quot;;"&gt;         &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;Adding licensing to an application does not affect the way the application functions when run on a device that does not offer Android Market.&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin: 0in 0in 0.0001pt; text-indent: -0.25in; line-height: 15.6pt;"&gt;&lt;span style="color: rgb(51, 51, 51);font-family:Symbol;font-size:10pt;"  lang="EN-IN" &gt;&lt;span style=""&gt;·&lt;span style="font: 7pt &amp;quot;Times New Roman&amp;quot;;"&gt;         &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;Licensing is currently for paid apps only, since free apps are considered licensed for all users. If your application is already published as free, you won't be able to upload a new version that uses licensing&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; text-align: justify; line-height: 15.6pt;"&gt;&lt;span class="apple-style-span"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt; &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoListParagraph" style="margin-bottom: 0.0001pt; text-align: justify; line-height: 15.6pt;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt; &lt;/span&gt;&lt;/p&gt;  &lt;h4 style="margin: 12pt 0in 6pt;"&gt;&lt;span style="line-height: 115%;font-family:&amp;quot;;font-size:10pt;"  lang="EN-IN" &gt;Replacement for copy protection&lt;/span&gt;&lt;/h4&gt;  &lt;p style="margin: 0in 0in 12pt; line-height: 15.6pt;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;Android Market Licensing is a flexible, secure mechanism for controlling access to your applications. It effectively replaces the copy-protection mechanism offered on Android Market and gives you wider distribution potential for your applications. &lt;span class="apple-style-span"&gt;&lt;b style=""&gt;For example&lt;/b&gt;, a copy-protected application cannot be downloaded from Market to a device that provides root access, and the application cannot be installed to a device's SD card.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;b&gt;&lt;u&gt;&lt;span style=";font-family:&amp;quot;;font-size:15pt;"  lang="EN-IN" &gt;&lt;span style="text-decoration: none;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span lang="EN-IN"&gt;&lt;a href="http://developer.android.com/guide/publishing/licensing.html"&gt;&lt;b&gt;&lt;span style=";font-family:&amp;quot;;font-size:12pt;color:#000000;"   &gt;Setting&lt;/span&gt;&lt;/b&gt;&lt;/a&gt;&lt;/span&gt;&lt;b&gt;&lt;u&gt;&lt;span style=";font-family:&amp;quot;;font-size:12pt;"  lang="EN-IN" &gt; up a Publisher Account&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;b&gt;&lt;u&gt;&lt;span style=";font-family:&amp;quot;;font-size:14pt;"  lang="EN-IN" &gt;&lt;span style="text-decoration: none;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p style="margin: 0in 0in 12pt; line-height: 15.6pt;"&gt;&lt;span class="apple-style-span"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;To register as an Android Market developer and set up your publisher account, visit the Android Market publisher site:&lt;span style=""&gt;  &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span lang="EN-IN"&gt;&lt;a href="http://market.android.com/publish"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  &gt;http://market.android.com/publish&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 12pt; line-height: 15.6pt;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;Once your publisher account is set up, use the account to:&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin: 0in 0in 0.0001pt; text-indent: -0.25in; line-height: 15.6pt;"&gt;&lt;span style="color: rgb(51, 51, 51);font-family:Symbol;font-size:10pt;"  lang="EN-IN" &gt;&lt;span style=""&gt;·&lt;span style="font: 7pt &amp;quot;Times New Roman&amp;quot;;"&gt;         &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;Obtain a public key for licensing&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin: 0in 0in 0.0001pt; text-indent: -0.25in; line-height: 15.6pt;"&gt;&lt;span style="color: rgb(51, 51, 51);font-family:Symbol;font-size:10pt;"  lang="EN-IN" &gt;&lt;span style=""&gt;·&lt;span style="font: 7pt &amp;quot;Times New Roman&amp;quot;;"&gt;         &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;Debug and test an application's licensing implementation, prior to publishing the application&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin: 0in 0in 0.0001pt; text-indent: -0.25in; line-height: 15.6pt;"&gt;&lt;span style="color: rgb(51, 51, 51);font-family:Symbol;font-size:10pt;"  lang="EN-IN" &gt;&lt;span style=""&gt;·&lt;span style="font: 7pt &amp;quot;Times New Roman&amp;quot;;"&gt;         &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;Publish the applications to which you have added licensing support&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span class="apple-style-span"&gt;&lt;span style="line-height: 115%;font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt; &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;h3 style="margin: 0in 0in 0.0001pt;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:11pt;"  lang="EN-IN" &gt;Implementing a Policy&lt;/span&gt;&lt;/h3&gt;  &lt;h3 style="margin: 0in 0in 0.0001pt;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:11pt;"  lang="EN-IN" &gt; &lt;/span&gt;&lt;/h3&gt;  &lt;h3 style="margin: 0in 0in 0.0001pt; text-align: justify;"&gt;&lt;span class="apple-style-span"&gt;&lt;span style=";font-family:&amp;quot;;font-size:10pt;"  lang="EN-IN" &gt;The Policy interface declares two methods,&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-converted-space"&gt;&lt;span style=";font-family:&amp;quot;;font-size:10pt;"  lang="EN-IN" &gt; &lt;/span&gt;&lt;/span&gt;&lt;code&gt;&lt;span style=";font-family:&amp;quot;;font-size:10pt;"  lang="EN-IN" &gt;allowAccess()&lt;/span&gt;&lt;/code&gt;&lt;span class="apple-converted-space"&gt;&lt;span style=";font-family:&amp;quot;;font-size:10pt;"  lang="EN-IN" &gt; &lt;/span&gt;&lt;/span&gt;&lt;span class="apple-style-span"&gt;&lt;span style=";font-family:&amp;quot;;font-size:10pt;"  lang="EN-IN" &gt;and&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-converted-space"&gt;&lt;span style=";font-family:&amp;quot;;font-size:10pt;"  lang="EN-IN" &gt; &lt;/span&gt;&lt;/span&gt;&lt;code&gt;&lt;span style=";font-family:&amp;quot;;font-size:10pt;"  lang="EN-IN" &gt;processServerResponse()&lt;/span&gt;&lt;/code&gt;&lt;span class="apple-style-span"&gt;&lt;span style=";font-family:&amp;quot;;font-size:10pt;"  lang="EN-IN" &gt;, which are called by a LicenseChecker instance when processing a response from the license server. It also declares an enum called&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-converted-space"&gt;&lt;span style=";font-family:&amp;quot;;font-size:10pt;"  lang="EN-IN" &gt; &lt;/span&gt;&lt;/span&gt;&lt;code&gt;&lt;span style=";font-family:&amp;quot;;font-size:10pt;"  lang="EN-IN" &gt;LicenseResponse&lt;/span&gt;&lt;/code&gt;&lt;span class="apple-style-span"&gt;&lt;span style=";font-family:&amp;quot;;font-size:10pt;"  lang="EN-IN" &gt;, which specifies the license response value passed in calls to&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-converted-space"&gt;&lt;span style=";font-family:&amp;quot;;font-size:10pt;"  lang="EN-IN" &gt; &lt;/span&gt;&lt;/span&gt;&lt;code&gt;&lt;span style=";font-family:&amp;quot;;font-size:10pt;"  lang="EN-IN" &gt;processServerResponse()&lt;/span&gt;&lt;/code&gt;&lt;span class="apple-style-span"&gt;&lt;span style=";font-family:&amp;quot;;font-size:10pt;"  lang="EN-IN" &gt;.&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;  &lt;h3 style="margin: 0in 0in 0.0001pt; text-align: justify;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:10pt;"  lang="EN-IN" &gt; &lt;/span&gt;&lt;/h3&gt;  &lt;p class="MsoListParagraphCxSpFirst" style="text-align: justify; text-indent: -0.25in;"&gt;&lt;span class="apple-style-span"&gt;&lt;span style="line-height: 115%; color: rgb(51, 51, 51);font-family:Symbol;font-size:9pt;"  lang="EN-IN" &gt;&lt;span style=""&gt;·&lt;span style="font: 7pt &amp;quot;Times New Roman&amp;quot;;"&gt;         &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-style-span"&gt;&lt;span style="line-height: 115%;font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;processServerResponse() - &lt;/span&gt;&lt;/span&gt;&lt;span class="apple-style-span"&gt;&lt;span style="line-height: 115%;font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;L&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-style-span"&gt;&lt;span style="line-height: 115%;font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;ets&lt;span style="color: rgb(51, 51, 51);"&gt; you pre-process the raw response data received from the licensing server, prior to determining whether to grant access.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoListParagraphCxSpMiddle" style="text-align: justify;"&gt;&lt;span class="apple-style-span"&gt;&lt;span style="line-height: 115%;font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;A typical implementation would extract some or all fields from the license response and store the data locally to a persistent store, such as through &lt;/span&gt;&lt;/span&gt;&lt;span lang="EN-IN"&gt;&lt;a href="http://developer.android.com/reference/android/content/SharedPreferences.html"&gt;&lt;span style="line-height: 115%;font-family:&amp;quot;;font-size:10pt;"  &gt;SharedPreferences&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span class="apple-converted-space"&gt;&lt;span style="line-height: 115%;font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt; &lt;/span&gt;&lt;/span&gt;&lt;span class="apple-style-span"&gt;&lt;span style="line-height: 115%;font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;storage, to ensure that the data is accessible across application invocations and device power cycles. For example, a Policy would maintain the timestamp of last successful license check, the retry count, the license validity period, and similar information in a persistent store, rather than resetting the values each time the application is launched.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoListParagraphCxSpLast" style="text-align: justify; text-indent: -0.25in;"&gt;&lt;span class="apple-style-span"&gt;&lt;span style="line-height: 115%; color: rgb(51, 51, 51);font-family:Symbol;font-size:9pt;"  lang="EN-IN" &gt;&lt;span style=""&gt;·&lt;span style="font: 7pt &amp;quot;Times New Roman&amp;quot;;"&gt;         &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-style-span"&gt;&lt;span style="line-height: 115%;font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;allowAccess() - &lt;/span&gt;&lt;/span&gt;&lt;span class="apple-style-span"&gt;&lt;span style="line-height: 115%;font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;determines whether to grant the user access to your application, based on any available license response data. For example , an implementation of&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-converted-space"&gt;&lt;span style="line-height: 115%;font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt; &lt;/span&gt;&lt;/span&gt;&lt;code&gt;&lt;span style="line-height: 115%; color: rgb(0, 112, 0);font-size:10pt;" lang="EN-IN" &gt;allowAccess()&lt;/span&gt;&lt;/code&gt;&lt;span class="apple-converted-space"&gt;&lt;span style="line-height: 115%;font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt; &lt;/span&gt;&lt;/span&gt;&lt;span class="apple-style-span"&gt;&lt;span style="line-height: 115%;font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;should only return&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-converted-space"&gt;&lt;span style="line-height: 115%;font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt; &lt;/span&gt;&lt;/span&gt;&lt;code&gt;&lt;span style="line-height: 115%; color: rgb(0, 112, 0);font-size:10pt;" lang="EN-IN" &gt;true&lt;/span&gt;&lt;/code&gt;&lt;span class="apple-converted-space"&gt;&lt;span style="line-height: 115%;font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt; &lt;/span&gt;&lt;/span&gt;&lt;span class="apple-style-span"&gt;&lt;span style="line-height: 115%;font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;if the user is licensed to use the application, as determined by the licensing server&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span class="apple-style-span"&gt;&lt;span style="line-height: 115%;font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt; &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span class="apple-style-span"&gt;&lt;span style="line-height: 115%;font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;If you are designing a custom policy, we recommend that the Policy:&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin: 0in 0in 0.0001pt; text-align: justify; text-indent: -0.25in; line-height: 15.6pt;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;&lt;span style=""&gt;1.&lt;span style="font: 7pt &amp;quot;Times New Roman&amp;quot;;"&gt;     &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;Caches (and properly obfuscates-encrypting) the most recent successful license response in local persistent storage.&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin: 0in 0in 0.0001pt; text-align: justify; text-indent: -0.25in; line-height: 15.6pt;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;&lt;span style=""&gt;2.&lt;span style="font: 7pt &amp;quot;Times New Roman&amp;quot;;"&gt;     &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;Returns the cached response for all license checks, for as long as the cached response is valid, rather than making a request to the licensing server.&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin: 0in 0in 0.0001pt; text-align: justify; text-indent: -0.25in; line-height: 15.6pt;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;&lt;span style=""&gt;3.&lt;span style="font: 7pt &amp;quot;Times New Roman&amp;quot;;"&gt;     &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;Uses an exponential backoff period, if retrying any requests the result in errors. Note that the Android Market client automatically retries failed requests, so in most cases there is no need for your Policy to retry them.&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin: 0in 0in 0.0001pt; text-align: justify; text-indent: -0.25in; line-height: 15.6pt;"&gt;&lt;span class="apple-style-span"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;&lt;span style=""&gt;4.&lt;span style="font: 7pt &amp;quot;Times New Roman&amp;quot;;"&gt;     &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;Provides for a "grace period" that allows the user to access your application for a limited time or number of uses, while a license check is being retried.&lt;/span&gt;&lt;span class="apple-style-span"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;h3 style="margin: 0in 0in 0.0001pt;"&gt;&lt;span class="apple-style-span"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt; &lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;  &lt;h3 style="margin: 0in 0in 0.0001pt;"&gt;&lt;span class="apple-style-span"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt; &lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;  &lt;h3 style="margin: 0in 0in 0.0001pt;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:11pt;"  lang="EN-IN" &gt;Implementing an Obfuscator&lt;/span&gt;&lt;/h3&gt;  &lt;h3 style="margin: 0in 0in 0.0001pt;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:11pt;"  lang="EN-IN" &gt; &lt;/span&gt;&lt;/h3&gt;  &lt;h3 style="margin: 0in 0in 0.0001pt; text-align: justify;"&gt;&lt;span class="apple-style-span"&gt;&lt;span style=";font-family:&amp;quot;;font-size:10pt;"  lang="EN-IN" &gt;Because the Policy will use stored license response data to determine whether to allow or disallow access to the application, it&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-converted-space"&gt;&lt;span style=";font-family:&amp;quot;;font-size:10pt;"  lang="EN-IN" &gt; &lt;/span&gt;&lt;/span&gt;&lt;em&gt;&lt;span style=";font-family:&amp;quot;;font-size:10pt;"  lang="EN-IN" &gt;must&lt;/span&gt;&lt;/em&gt;&lt;span class="apple-converted-space"&gt;&lt;span style=";font-family:&amp;quot;;font-size:10pt;"  lang="EN-IN" &gt; &lt;/span&gt;&lt;/span&gt;&lt;span class="apple-style-span"&gt;&lt;span style=";font-family:&amp;quot;;font-size:10pt;"  lang="EN-IN" &gt;ensure that any stored data is secure and cannot be reused or manipulated by a root user on a device.&lt;/span&gt;&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10pt;"  lang="EN-IN" &gt;&lt;/span&gt;&lt;/h3&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span class="apple-style-span"&gt;&lt;span style="line-height: 115%;font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt; &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span class="apple-style-span"&gt;&lt;span style="line-height: 115%;font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;The LVL includes a full and recommended implementation of the Obfuscator interface called AESObfuscator. The implementation is integrated with the LVL sample application and serves as the default Obfuscator in the library.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span class="apple-style-span"&gt;&lt;span style="line-height: 115%;font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;AESObfuscator -&lt;/span&gt;&lt;/span&gt;&lt;span class="Heading3Char"&gt;&lt;span style="line-height: 115%;font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt; &lt;/span&gt;&lt;/span&gt;&lt;span class="apple-style-span"&gt;&lt;span style="line-height: 115%;font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;The Obfuscator seeds the encryption using three data fields provided by the application:&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin: 0in 0in 0.0001pt; text-indent: -0.25in; line-height: 15.6pt;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;&lt;span style=""&gt;1.&lt;span style="font: 7pt &amp;quot;Times New Roman&amp;quot;;"&gt;     &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;A salt — an array of random bytes to use for each (un)obfuscation.&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin: 0in 0in 0.0001pt; text-indent: -0.25in; line-height: 15.6pt;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;&lt;span style=""&gt;2.&lt;span style="font: 7pt &amp;quot;Times New Roman&amp;quot;;"&gt;     &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;An application identifier string, typically the package name of the application.&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin: 0in 0in 0.0001pt; text-indent: -0.25in; line-height: 15.6pt;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;&lt;span style=""&gt;3.&lt;span style="font: 7pt &amp;quot;Times New Roman&amp;quot;;"&gt;     &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;A device identifier string, derived from as many device-specific sources as possible, so as to make it as unique.&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: 15.6pt;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt; &lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: 15.6pt;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt; &lt;/span&gt;&lt;/p&gt;  &lt;div style="border-width: 1.5pt medium medium; border-style: solid none none; border-color: rgb(204, 204, 204) -moz-use-text-color -moz-use-text-color; padding: 6pt 0in 0in;"&gt;  &lt;h2 style="margin: 24pt 0in 12pt; border: medium none; padding: 0in;"&gt;&lt;span style=";font-family:&amp;quot;;"  lang="EN-IN"&gt;Setting Up the Development Environment&lt;/span&gt;&lt;/h2&gt;  &lt;/div&gt; &lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/-KdkFqNSgOpc/TWtjXOgo9-I/AAAAAAAAAE0/yqc0dXkH2PY/s1600/android_license.JPG"&gt;&lt;img style="display: block; margin: 0px auto 10px; text-align: center; cursor: pointer; width: 320px; height: 161px;" src="http://2.bp.blogspot.com/-KdkFqNSgOpc/TWtjXOgo9-I/AAAAAAAAAE0/yqc0dXkH2PY/s320/android_license.JPG" alt="" id="BLOGGER_PHOTO_ID_5578661814111631330" border="0" /&gt;&lt;/a&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 0.0001pt; text-indent: -0.25in; line-height: 15.6pt;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;&lt;span style=""&gt;1.&lt;span style="font: 7pt &amp;quot;Times New Roman&amp;quot;;"&gt;     &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;u&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;Downloading the&lt;/span&gt;&lt;/u&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt; &lt;/span&gt;&lt;span lang="EN-IN"&gt;&lt;a href="http://developer.android.com/guide/publishing/licensing.html#download-lvl"&gt;&lt;span style=";font-family:&amp;quot;;font-size:10pt;"  &gt;Market Licensing component&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt; -&lt;span style=""&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span class="apple-style-span"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;SDK tools using the Android SDK and AVD Manager&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-converted-space"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span style=""&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="apple-style-span"&gt;&lt;span style="line-height: 115%;font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span class="apple-style-span"&gt;&lt;span style="line-height: 115%;font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;In the&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-converted-space"&gt;&lt;span style="line-height: 115%;font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt; &lt;/span&gt;&lt;/span&gt;&lt;strong&gt;&lt;span style="line-height: 115%;font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;Available Packages&lt;/span&gt;&lt;/strong&gt;&lt;span class="apple-converted-space"&gt;&lt;span style="line-height: 115%;font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt; &lt;/span&gt;&lt;/span&gt;&lt;span class="apple-style-span"&gt;&lt;span style="line-height: 115%;font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;panel,&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-converted-space"&gt;&lt;span style="line-height: 115%;font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt; select Market Licensing package and click install&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-style-span"&gt;&lt;span style="line-height: 115%;font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span class="apple-style-span"&gt;&lt;span style="line-height: 115%;font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt; &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span class="apple-style-span"&gt;&lt;span style="line-height: 115%;font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt; &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoListParagraph" style="margin-left: 7.1pt; text-align: justify; text-indent: -14.2pt;"&gt;&lt;span class="apple-style-span"&gt;&lt;span style="line-height: 115%;font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;&lt;span style=""&gt;2.&lt;span style="font: 7pt &amp;quot;Times New Roman&amp;quot;;"&gt;   &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span lang="EN-IN"&gt;&lt;a href="http://developer.android.com/guide/publishing/licensing.html#runtime-setup"&gt;&lt;span style="line-height: 115%;font-family:&amp;quot;;font-size:9pt;"  &gt;Setting up the runtime environment&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span class="apple-converted-space"&gt;&lt;span style="line-height: 115%;font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt; &lt;/span&gt;&lt;/span&gt;&lt;span class="apple-style-span"&gt;&lt;span style="line-height: 115%;font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;for development&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 12pt; line-height: 15.6pt;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;There are two types of runtime environment that you can use:&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin: 0in 0in 0.0001pt; text-indent: 0in; line-height: 15.6pt;"&gt;&lt;span style="color: rgb(51, 51, 51);font-family:Symbol;font-size:10pt;"  lang="EN-IN" &gt;&lt;span style=""&gt;·&lt;span style="font: 7pt &amp;quot;Times New Roman&amp;quot;;"&gt;           &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;An Android-powered device that includes the Android Market application, or&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin: 0in 0in 0.0001pt; text-indent: 0in; line-height: 15.6pt;"&gt;&lt;span style="color: rgb(51, 51, 51);font-family:Symbol;font-size:10pt;"  lang="EN-IN" &gt;&lt;span style=""&gt;·&lt;span style="font: 7pt &amp;quot;Times New Roman&amp;quot;;"&gt;           &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;An Android emulator running the Google APIs Add-on, API level 8 (release 2) or higher&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span class="apple-style-span"&gt;&lt;span style="line-height: 115%;font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt; &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoListParagraphCxSpFirst" style="margin-left: 0.25in; text-align: justify; text-indent: -25.1pt;"&gt;&lt;span class="apple-style-span"&gt;&lt;span style="line-height: 115%;font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;&lt;span style=""&gt;3.&lt;span style="font: 7pt &amp;quot;Times New Roman&amp;quot;;"&gt;   &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span lang="EN-IN"&gt;&lt;a href="http://developer.android.com/guide/publishing/licensing.html#lvl-setup"&gt;&lt;span style="line-height: 115%;font-family:&amp;quot;;font-size:9pt;"  &gt;Setting up the Licensing Verification Library&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span class="apple-style-span"&gt;&lt;span style="line-height: 115%;font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt; – In Ecplipse&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoListParagraphCxSpMiddle" style="margin: 0in 0in 0.0001pt 42.55pt; text-align: justify; text-indent: -21.25pt; line-height: 15.6pt;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;&lt;span style=""&gt;1.&lt;span style="font: 7pt &amp;quot;Times New Roman&amp;quot;;"&gt;       &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;&lt;span style=""&gt; &lt;/span&gt;Use the New Project Wizard to create a new project from existing sources. Select the LVL's&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt; &lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10pt;"  lang="EN-IN" &gt;library&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt; &lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;directory (the directory containing the library's AndroidManifest.xml file) as the project root.&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoListParagraphCxSpMiddle" style="margin: 0in 0in 0.0001pt 42.55pt; text-indent: -21.25pt; line-height: 15.6pt;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;&lt;span style=""&gt;2.&lt;span style="font: 7pt &amp;quot;Times New Roman&amp;quot;;"&gt;       &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;When you are creating the library project, you can select any application name, package, and set other fields as needed.&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoListParagraphCxSpLast" style="margin: 0in 0in 0.0001pt 42.55pt; text-indent: -21.25pt; line-height: 15.6pt;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;&lt;span style=""&gt;3.&lt;span style="font: 7pt &amp;quot;Times New Roman&amp;quot;;"&gt;       &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;For the library's build target, select Android 1.5 (API level 3) or higher.&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span class="apple-style-span"&gt;&lt;span style="line-height: 115%;font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt; &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoListParagraphCxSpFirst" style="margin-left: 7.1pt; text-align: justify; text-indent: -14.2pt;"&gt;&lt;span class="apple-style-span"&gt;&lt;span style="line-height: 115%;font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;&lt;span style=""&gt;4.&lt;span style="font: 7pt &amp;quot;Times New Roman&amp;quot;;"&gt;   &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span lang="EN-IN"&gt;&lt;a href="http://developer.android.com/guide/publishing/licensing.html#add-library"&gt;&lt;span style="line-height: 115%;font-family:&amp;quot;;font-size:9pt;"  &gt;Including the LVL library project in your application&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span class="apple-style-span"&gt;&lt;span style="line-height: 115%;font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoListParagraphCxSpMiddle"&gt;&lt;span class="apple-style-span"&gt;&lt;span style="line-height: 115%;font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;Next, open the application's project properties window, as shown below. Select the "Android" properties group and click&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-converted-space"&gt;&lt;span style="line-height: 115%;font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt; &lt;/span&gt;&lt;/span&gt;&lt;strong&gt;&lt;span style="line-height: 115%;font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;Add&lt;/span&gt;&lt;/strong&gt;&lt;span class="apple-style-span"&gt;&lt;span style="line-height: 115%;font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;, then choose the LVL library project (com_android_vending_licensing) and click&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-converted-space"&gt;&lt;span style="line-height: 115%;font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt; &lt;/span&gt;&lt;/span&gt;&lt;strong&gt;&lt;span style="line-height: 115%;font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;OK&lt;/span&gt;&lt;/strong&gt;&lt;span class="apple-style-span"&gt;&lt;span style="line-height: 115%;font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoListParagraphCxSpLast" style="text-align: justify;"&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/-VmpaVQYP-ys/TWtjuk6wO6I/AAAAAAAAAE8/5klN4bUs6f4/s1600/android_license_liberary.JPG"&gt;&lt;img style="display: block; margin: 0px auto 10px; text-align: center; cursor: pointer; width: 320px; height: 184px;" src="http://4.bp.blogspot.com/-VmpaVQYP-ys/TWtjuk6wO6I/AAAAAAAAAE8/5klN4bUs6f4/s320/android_license_liberary.JPG" alt="" id="BLOGGER_PHOTO_ID_5578662215263730594" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/p&gt;  &lt;h3 style="margin: 0in 0in 0.0001pt;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:11pt;"  lang="EN-IN" &gt;Checking the license from your application's main Activity&lt;/span&gt;&lt;/h3&gt;  &lt;p class="MsoNormal"&gt;&lt;span class="apple-style-span"&gt;&lt;span style="line-height: 115%;font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt; &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoListParagraph" style="text-indent: -0.25in;"&gt;&lt;span class="apple-style-span"&gt;&lt;span style="line-height: 115%;font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;&lt;span style=""&gt;1.&lt;span style="font: 7pt &amp;quot;Times New Roman&amp;quot;;"&gt;     &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span lang="EN-IN"&gt;&lt;a href="http://developer.android.com/guide/publishing/licensing.html#imports"&gt;&lt;span style="line-height: 115%;font-family:&amp;quot;;font-size:9pt;"  &gt;Add imports&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span class="apple-style-span"&gt;&lt;span style="line-height: 115%;font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt; - First, open the class file of the application's main Activity and import LicenseChecker and LicenseCheckerCallback from the LVL package.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;div style="border: 1pt solid rgb(204, 204, 204); padding: 7pt; background: none repeat scroll 0% 0% rgb(250, 250, 250); margin-left: 0.25in; margin-right: 0in;"&gt;  &lt;p class="MsoNormal" style="margin-bottom: 12pt; line-height: normal; background: none repeat scroll 0% 0% rgb(250, 250, 250); border: medium none; padding: 0in;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:10pt;"  lang="EN-IN" &gt;import&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10pt;color:black;"   lang="EN-IN" &gt; com&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10pt;"  lang="EN-IN" &gt;.&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10pt;color:black;"   lang="EN-IN" &gt;android&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10pt;"  lang="EN-IN" &gt;.&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10pt;color:black;"   lang="EN-IN" &gt;vending&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10pt;"  lang="EN-IN" &gt;.&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10pt;color:black;"   lang="EN-IN" &gt;licensing&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10pt;"  lang="EN-IN" &gt;.&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10pt;"  lang="EN-IN" &gt;LicenseChecker&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10pt;"  lang="EN-IN" &gt;;&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10pt;color:black;"   lang="EN-IN" &gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10pt;"  lang="EN-IN" &gt;import&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10pt;color:black;"   lang="EN-IN" &gt; com&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10pt;"  lang="EN-IN" &gt;.&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10pt;color:black;"   lang="EN-IN" &gt;android&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10pt;"  lang="EN-IN" &gt;.&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10pt;color:black;"   lang="EN-IN" &gt;vending&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10pt;"  lang="EN-IN" &gt;.&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10pt;color:black;"   lang="EN-IN" &gt;licensing&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10pt;"  lang="EN-IN" &gt;.&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10pt;"  lang="EN-IN" &gt;LicenseCheckerCallback&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10pt;"  lang="EN-IN" &gt;;&lt;br /&gt;&lt;/span&gt;&lt;span class="pln"&gt;&lt;span  lang="EN-IN" style="color:black;"&gt;import com&lt;/span&gt;&lt;/span&gt;&lt;span class="pun"&gt;&lt;span style="color: rgb(102, 102, 0);" lang="EN-IN"&gt;.&lt;/span&gt;&lt;/span&gt;&lt;span class="pln"&gt;&lt;span  lang="EN-IN" style="color:black;"&gt;android&lt;/span&gt;&lt;/span&gt;&lt;span class="pun"&gt;&lt;span style="color: rgb(102, 102, 0);" lang="EN-IN"&gt;.&lt;/span&gt;&lt;/span&gt;&lt;span class="pln"&gt;&lt;span  lang="EN-IN" style="color:black;"&gt;vending&lt;/span&gt;&lt;/span&gt;&lt;span class="pun"&gt;&lt;span style="color: rgb(102, 102, 0);" lang="EN-IN"&gt;.&lt;/span&gt;&lt;/span&gt;&lt;span class="pln"&gt;&lt;span  lang="EN-IN" style="color:black;"&gt;licensing&lt;/span&gt;&lt;/span&gt;&lt;span class="pun"&gt;&lt;span style="color: rgb(102, 102, 0);" lang="EN-IN"&gt;.&lt;/span&gt;&lt;/span&gt;&lt;span class="typ"&gt;&lt;span style="color: rgb(102, 0, 102);" lang="EN-IN"&gt;ServerManagedPolicy&lt;/span&gt;&lt;/span&gt;&lt;span class="pun"&gt;&lt;span style="color: rgb(102, 102, 0);" lang="EN-IN"&gt;;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="pln"&gt;&lt;span  lang="EN-IN" style="color:black;"&gt;import com&lt;/span&gt;&lt;/span&gt;&lt;span class="pun"&gt;&lt;span style="color: rgb(102, 102, 0);" lang="EN-IN"&gt;.&lt;/span&gt;&lt;/span&gt;&lt;span class="pln"&gt;&lt;span  lang="EN-IN" style="color:black;"&gt;android&lt;/span&gt;&lt;/span&gt;&lt;span class="pun"&gt;&lt;span style="color: rgb(102, 102, 0);" lang="EN-IN"&gt;.&lt;/span&gt;&lt;/span&gt;&lt;span class="pln"&gt;&lt;span  lang="EN-IN" style="color:black;"&gt;vending&lt;/span&gt;&lt;/span&gt;&lt;span class="pun"&gt;&lt;span style="color: rgb(102, 102, 0);" lang="EN-IN"&gt;.&lt;/span&gt;&lt;/span&gt;&lt;span class="pln"&gt;&lt;span  lang="EN-IN" style="color:black;"&gt;licensing&lt;/span&gt;&lt;/span&gt;&lt;span class="pun"&gt;&lt;span style="color: rgb(102, 102, 0);" lang="EN-IN"&gt;.&lt;/span&gt;&lt;/span&gt;&lt;span class="typ"&gt;&lt;span style="color: rgb(102, 0, 102);" lang="EN-IN"&gt;AESObfuscator&lt;/span&gt;&lt;/span&gt;&lt;span class="pun"&gt;&lt;span style="color: rgb(102, 102, 0);" lang="EN-IN"&gt;;&lt;/span&gt;&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10pt;"  lang="EN-IN" &gt;&lt;/span&gt;&lt;/p&gt;  &lt;/div&gt;  &lt;p class="MsoListParagraphCxSpFirst"&gt;&lt;span class="apple-style-span"&gt;&lt;span style="line-height: 115%;font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt; &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoListParagraphCxSpLast" style="text-align: justify;"&gt;&lt;span class="apple-style-span"&gt;&lt;span style="line-height: 115%;font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt; &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span class="apple-style-span"&gt;&lt;span style="line-height: 115%;font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt; &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoListParagraph" style="margin-bottom: 12pt; text-indent: -0.25in; line-height: 10.85pt;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;&lt;span style=""&gt;2.&lt;span style="font: 7pt &amp;quot;Times New Roman&amp;quot;;"&gt;     &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;The first step w ould be to add the check license permission to the AndroidManifest.xml inside &lt; /&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: 10.85pt;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;&lt;uses-permission name="com.android.vending.CHECK_LICENSE"&gt;&lt;/uses-permission&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: 10.85pt;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt; &lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoListParagraph" style="margin: 0in 0in 0.0001pt 14.2pt; text-indent: -14.2pt; line-height: 10.85pt;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;&lt;span style=""&gt;3.&lt;span style="font: 7pt &amp;quot;Times New Roman&amp;quot;;"&gt;   &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt; Now time to implement the actual code.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(89, 89, 89);"&gt;public class Splash extends Activity {&lt;br /&gt;private LicenseChecker mChecker;&lt;br /&gt;private LicenseCheckerCallback mLicenseCheckerCallback;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin: 0in 0in 0.0001pt 14.2pt; line-height: 10.85pt;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;&lt;br /&gt;private static final String BASE64_PUBLIC_KEY = "Copy from developer account";&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin: 0in 0in 0.0001pt 14.2pt; line-height: 10.85pt;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;&lt;br /&gt;// Generate 20 random bytes, and put them here.&lt;br /&gt;private static final byte[] SALT = new byte[] {&lt;br /&gt;-20, 30, 50, -70, 33, -100, 32, -90, -88, 104, 12,&lt;br /&gt;-10, 72, -34, 115, 21, 62, 35, -12, 97&lt;br /&gt;};&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin: 0in 0in 0.0001pt 14.2pt; line-height: 10.85pt;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;&lt;br /&gt;private AESObfuscator mObsfuscator;&lt;br /&gt;private String android_id;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: 10.85pt;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt; &lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: 10.85pt;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;The BASE64_PUBLIC_KEY you can find by going to &lt;/span&gt;&lt;span lang="EN-IN"&gt;&lt;a href="http://market.android.com/publish/Home"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;color:#000000;"   &gt;Developer Console&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt; and clicking on edit. If you scroll down the page you will see your public key.&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: 10.85pt;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt; &lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: 10.85pt;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;Next is the 20 random numbers. This is called an Obfuscator which basically takes these numbers to make your code harder for pirates to crack. Find a random number generator and fill out this array.(I don't know what the limit for numbers is so I just randomly chose between -100 and 100)&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: 10.85pt;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt; &lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: 10.85pt;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;The android_id string will be a persons unique phone id which will coincide with the license checking.&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: 10.85pt;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt; &lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: 10.85pt;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;Next we have the onCreate function.&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: 10.85pt;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt; &lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: 10.85pt;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;/** Called when the activity is first created. */ &lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: 10.85pt;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;    @Override &lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: 10.85pt;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;    public void onCreate(Bundle icicle) { &lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: 10.85pt;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;         super.onCreate(icicle); &lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: 10.85pt;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;         setContentView(R.layout.splash);&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: 10.85pt;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;         android_id = Secure.getString(this.getContentResolver(), Secure.ANDROID_ID);&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: 10.85pt;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;         mObsfuscator = new AESObfuscator(SALT, getPackageName(), android_id);&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: 10.85pt;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;         ServerManagedPolicy serverPolicy = new ServerManagedPolicy(this,mObsfuscator);&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: 10.85pt;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt; &lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: 10.85pt;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;         mLicenseCheckerCallback = new MyLicenseCheckerCallback();&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: 10.85pt;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;         mChecker = new LicenseChecker(&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: 10.85pt;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;             this, serverPolicy,&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: 10.85pt;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;             BASE64_PUBLIC_KEY  // Your public licensing key.&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: 10.85pt;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;             );&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: 10.85pt;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;         mChecker.checkAccess(mLicenseCheckerCallback);  &lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: 10.85pt;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;    }&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: 10.85pt;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt; &lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: 10.85pt;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;The here we are getting the unique android id, putting it into the Obsfuscator variable along with out 20 random numbers. And it is recommended to use the pre-configured ServerManagedPolicy which I have done here as well.&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: 10.85pt;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt; &lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: 10.85pt;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;Next we implement ourselves what to do if the license check returns "allow" or "don't allow"&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: 10.85pt;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt; &lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: 10.85pt;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;private class MyLicenseCheckerCallback implements LicenseCheckerCallback {&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: 10.85pt;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;        public void allow() {&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: 10.85pt;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;            if (isFinishing()) {&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: 10.85pt;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;                // Don't update UI if Activity is finishing.&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: 10.85pt;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;                return;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: 10.85pt;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;            }&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: 10.85pt;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;            // Should allow user access.&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: 10.85pt;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;            Log.w("LicenseChecker", "Allow");&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: 10.85pt;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;            Intent i = new Intent(Splash.this, Main.class);&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: 10.85pt;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;&lt;span style=""&gt;            &lt;/span&gt;startActivity(i);&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: 10.85pt;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;&lt;span style=""&gt;            &lt;/span&gt;finish();&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: 10.85pt;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;        }&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: 10.85pt;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt; &lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: 10.85pt;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;        public void dontAllow() {&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: 10.85pt;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;            if (isFinishing()) {&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: 10.85pt;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;                // Don't update UI if Activity is finishing.&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: 10.85pt;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;                return;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: 10.85pt;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;            }&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: 10.85pt;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;            Log.w("LicenseChecker", "Don't Allow");&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: 10.85pt;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;            showDialog(0);&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: 10.85pt;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;            &lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: 10.85pt;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;        }&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: 10.85pt;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt; &lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: 10.85pt;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;Here when license checker returns allow, I start my main activity. If it returns do not allow then I show a dialog that states that the app is not licensed properly and to please buy the real version on the android market. It also has a link directly to the app in the market. This is kind of neat because if someone does manage to get your apk and tries to install it on their phone, they will get this message and might decide to just buy it.&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: 10.85pt;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt; &lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: 10.85pt;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;This next code is part of the license checker callback and it is required by Android just in case something goes wrong that it will catch the error and notify the user. I just added a popup message that someone suggested to put in here.&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: 10.85pt;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt; &lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: 10.85pt;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;@Override&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: 10.85pt;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;&lt;span style=""&gt;  &lt;/span&gt;public void applicationError(ApplicationErrorCode errorCode) {&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: 10.85pt;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;&lt;span style=""&gt;   &lt;/span&gt;if (isFinishing()) {&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: 10.85pt;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;&lt;span style=""&gt;    &lt;/span&gt;// Don't update UI if Activity is finishing.&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: 10.85pt;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;&lt;span style=""&gt;    &lt;/span&gt;return;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: 10.85pt;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;&lt;span style=""&gt;   &lt;/span&gt;}&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: 10.85pt;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;&lt;span style=""&gt;   &lt;/span&gt;toast("Error: " + errorCode.name());&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: 10.85pt;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;&lt;span style=""&gt;   &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: 10.85pt;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;&lt;span style=""&gt;  &lt;/span&gt;}&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: 10.85pt;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;    }&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: 10.85pt;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt; &lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: 10.85pt;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;Almost there =P This next part is implementing the showDialog and toast.&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: 10.85pt;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt; &lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: 10.85pt;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;@Override&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: 10.85pt;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;&lt;span style=""&gt; &lt;/span&gt;protected Dialog onCreateDialog(int id) {&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: 10.85pt;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;&lt;span style=""&gt;  &lt;/span&gt;// We have only one dialog.&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: 10.85pt;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;&lt;span style=""&gt;  &lt;/span&gt;return new AlertDialog.Builder(this)&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: 10.85pt;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;&lt;span style=""&gt;    &lt;/span&gt;.setTitle("Application Not Licensed")&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: 10.85pt;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;&lt;span style=""&gt;    &lt;/span&gt;.setCancelable(false)&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: 10.85pt;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;&lt;span style=""&gt;    &lt;/span&gt;.setMessage(&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: 10.85pt;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;&lt;span style=""&gt;      &lt;/span&gt;"This application is not licensed. Please purchase it from Android Market")&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: 10.85pt;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;&lt;span style=""&gt;    &lt;/span&gt;.setPositiveButton("Buy App",&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: 10.85pt;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;&lt;span style=""&gt;      &lt;/span&gt;new DialogInterface.OnClickListener() {&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: 10.85pt;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;&lt;span style=""&gt;       &lt;/span&gt;@Override&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: 10.85pt;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;&lt;span style=""&gt;       &lt;/span&gt;public void onClick(DialogInterface dialog,&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: 10.85pt;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;&lt;span style=""&gt;         &lt;/span&gt;int which) {&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: 10.85pt;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;&lt;span style=""&gt;        &lt;/span&gt;Intent marketIntent = new Intent(&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: 10.85pt;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;&lt;span style=""&gt;   &lt;/span&gt;&lt;span style=""&gt;       &lt;/span&gt;Intent.ACTION_VIEW,&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: 10.85pt;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;&lt;span style=""&gt;          &lt;/span&gt;Uri.parse("market://details?id=" + getPackageName()));&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: 10.85pt;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;&lt;span style=""&gt;        &lt;/span&gt;startActivity(marketIntent);&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: 10.85pt;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;&lt;span style=""&gt;        &lt;/span&gt;finish();&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: 10.85pt;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;&lt;span style=""&gt;       &lt;/span&gt;}&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: 10.85pt;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;&lt;span style=""&gt;      &lt;/span&gt;})&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: 10.85pt;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;&lt;span style=""&gt;    &lt;/span&gt;.setNegativeButton("Exit",&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: 10.85pt;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;&lt;span style=""&gt;      &lt;/span&gt;new DialogInterface.OnClickListener() {&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: 10.85pt;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;&lt;span style=""&gt;       &lt;/span&gt;@Override&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: 10.85pt;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;&lt;span style=""&gt;       &lt;/span&gt;public void onClick(DialogInterface dialog,&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: 10.85pt;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;&lt;span style=""&gt;         &lt;/span&gt;int which) {&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: 10.85pt;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;&lt;span style=""&gt;        &lt;/span&gt;finish();&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: 10.85pt;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;&lt;span style=""&gt;       &lt;/span&gt;}&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: 10.85pt;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;&lt;span style=""&gt;      &lt;/span&gt;}).create();&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: 10.85pt;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;&lt;span style=""&gt; &lt;/span&gt;} &lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: 10.85pt;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;&lt;span style=""&gt; &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: 10.85pt;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;&lt;span style=""&gt; &lt;/span&gt;public void toast(String string) {&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: 10.85pt;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;&lt;span style=""&gt;  &lt;/span&gt;Toast.makeText(this, string, Toast.LENGTH_SHORT).show();&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: 10.85pt;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;&lt;span style=""&gt; &lt;/span&gt;}&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: 10.85pt;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt; &lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: 10.85pt;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;Standard alert dialog, where you can see the buy app button is linked to the uri.parse which equals to the Android market link, plus your application package. This will open the Android Market and link directly to your app. And the exit button just exits your application.&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: 10.85pt;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt; &lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: 10.85pt;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;This last piece of code is just removing the license checker so the app doesn't FC on close&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: 10.85pt;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt; &lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: 10.85pt;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;@Override&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: 10.85pt;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;    protected void onDestroy() {&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: 10.85pt;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;    super.onDestroy();&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: 10.85pt;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;    mChecker.onDestroy();&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: 10.85pt;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;  }&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: 10.85pt;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt; &lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: 10.85pt;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;And thats it! Here is the full source code: &lt;/span&gt;&lt;span lang="EN-IN"&gt;&lt;a href="http://www.lillian-wong.com/Android/Splash.java"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;color:#000000;"   &gt;Android License&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: 10.85pt;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;A simple implementation that will hopefully do its job. Hope this helps!&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: 10.85pt;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;&lt;br /&gt;For testing the license code follow this link: &lt;/span&gt;&lt;span lang="EN-IN"&gt;&lt;a href="http://developer.android.com/guide/publishing/licensing.html#test-env"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;color:#000000;"   &gt;License Testing&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span lang="EN-IN"&gt;&lt;a href="http://developer.android.com/guide/publishing/licensing.html#test-env"&gt;http://developer.android.com/guide/publishing/licensing.html#test-env&lt;/a&gt;&lt;/span&gt;&lt;span class="apple-style-span"&gt;&lt;span style="line-height: 115%;font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: justify;"&gt;&lt;span class="apple-style-span"&gt;&lt;span style="line-height: 115%;font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt; &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;div style="border-width: 1.5pt medium medium; border-style: solid none none; border-color: rgb(204, 204, 204) -moz-use-text-color -moz-use-text-color; padding: 17pt 0in 0in;"&gt;  &lt;p class="MsoNormal" style="margin: 24pt 0in 12pt; line-height: normal; border: medium none; padding: 0in;"&gt;&lt;b&gt;&lt;span style=";font-family:&amp;quot;;font-size:13pt;"  lang="EN-IN" &gt;Publishing a Licensed Application&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;/div&gt;  &lt;p class="MsoNormal" style="margin-bottom: 12pt; line-height: 15.6pt;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;When you are finished testing your license implementation, you are ready to publish the application on Android Market. Follow the normal steps to&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt; &lt;/span&gt;&lt;span lang="EN-IN"&gt;&lt;a href="http://developer.android.com/guide/publishing/preparing.html"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  &gt;prepare&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;,&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt; &lt;/span&gt;&lt;span lang="EN-IN"&gt;&lt;a href="http://developer.android.com/guide/publishing/app-signing.html"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  &gt;sign&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;, and then&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt; &lt;/span&gt;&lt;span lang="EN-IN"&gt;&lt;a href="http://developer.android.com/guide/publishing/publishing.html"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  &gt;publish the application&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;.&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin: 12pt 0in 6pt; line-height: normal;"&gt;&lt;b&gt;&lt;span style=";font-family:&amp;quot;;font-size:10pt;"  lang="EN-IN" &gt;Removing Copy Protection&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 12pt; line-height: 15.6pt;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;After uploading your licensed application, remember to remove copy protection from the application, if it is currently used. To check and remove copy protection, sign in to the publisher site and go the application's upload details page. In the Publishing options section, make sure that the Copy Protection radio button selection is "Off".&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin: 12pt 0in 6pt; line-height: normal;"&gt;&lt;b&gt;&lt;span style=";font-family:&amp;quot;;font-size:10pt;"  lang="EN-IN" &gt;Considerations for Free Apps&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 12pt; line-height: 15.6pt;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;Licensing is currently supported only for paid applications. If you already published your application as free, you won't be able to upload an updated version that includes licensing (that is, an application that uses the same package name and that includes the&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt; &lt;/span&gt;&lt;span lang="EN-IN"&gt;&lt;a href="http://developer.android.com/guide/publishing/licensing.html#manifest-permission"&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  &gt;licensing permission&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;). Here are some points to keep in mind:&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin: 0in 0in 0.0001pt; text-indent: -0.25in; line-height: 15.6pt;"&gt;&lt;span style="color: rgb(51, 51, 51);font-family:Symbol;font-size:10pt;"  lang="EN-IN" &gt;&lt;span style=""&gt;·&lt;span style="font: 7pt &amp;quot;Times New Roman&amp;quot;;"&gt;         &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;If you want to offer a free version of your application that provides a reduced feature set (or that offers the full feature set for trial period), the free version of your application must not include the licensing permission and must use a different package name than the paid version of the app.&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin: 0in 0in 0.0001pt; text-indent: -0.25in; line-height: 15.6pt;"&gt;&lt;span style="color: rgb(51, 51, 51);font-family:Symbol;font-size:10pt;"  lang="EN-IN" &gt;&lt;span style=""&gt;·&lt;span style="font: 7pt &amp;quot;Times New Roman&amp;quot;;"&gt;         &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:9pt;"  lang="EN-IN" &gt;If you want to offer a paid version of your free application that uses licensing, you can do so under a new package name.&lt;/span&gt;&lt;/p&gt;&lt;script type="text/javascript"&gt;var geo_Partner = '1b64ed76-c1a2-48f3-805e-780de45d8560'; var geo_isCG = true;&lt;/script&gt;&lt;script src="http://js.geoads.com/geoLink.js" type="text/javascript"&gt;&lt;/script&gt;&lt;br /&gt;Source : http://developer.android.com/guide/publishing/licensing.html&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5197277884634195738-3071815717567314412?l=android-codes-examples.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://android-codes-examples.blogspot.com/feeds/3071815717567314412/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://android-codes-examples.blogspot.com/2011/02/android-market-license-verification.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5197277884634195738/posts/default/3071815717567314412'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5197277884634195738/posts/default/3071815717567314412'/><link rel='alternate' type='text/html' href='http://android-codes-examples.blogspot.com/2011/02/android-market-license-verification.html' title='Android Market License Verification Library (LVL)'/><author><name>Keerthy</name><uri>http://www.blogger.com/profile/10048420864647222363</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/-KdkFqNSgOpc/TWtjXOgo9-I/AAAAAAAAAE0/yqc0dXkH2PY/s72-c/android_license.JPG' height='72' width='72'/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5197277884634195738.post-5608691924964274342</id><published>2011-02-20T19:28:00.000-08:00</published><updated>2011-08-05T22:52:31.762-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='event'/><category scheme='http://www.blogger.com/atom/ns#' term='calendar event'/><category scheme='http://www.blogger.com/atom/ns#' term='delete'/><category scheme='http://www.blogger.com/atom/ns#' term='android 2.2'/><category scheme='http://www.blogger.com/atom/ns#' term='calendar'/><category scheme='http://www.blogger.com/atom/ns#' term='add event'/><category scheme='http://www.blogger.com/atom/ns#' term='android 2.1'/><category scheme='http://www.blogger.com/atom/ns#' term='android'/><category scheme='http://www.blogger.com/atom/ns#' term='insert'/><title type='text'>Insertion and Deletion of Calendar Events</title><content type='html'>We can add events to our android mobiles through our android application using the Calendar Events. This is specially for 2.2 version&lt;br /&gt;&lt;br /&gt;Follow the below steps to do the insertion and deletion operations in Calendar events.&lt;br /&gt;&lt;br /&gt;Step 1:&lt;br /&gt;&lt;br /&gt;Firstof all we need to get the Calendar Name and Id,&lt;br /&gt;&lt;br /&gt;As there is a chance of having many calendar configurations in a mobile, we must find out available calendar's. Using that calendars name and id only we can proceed further&lt;br /&gt;&lt;br /&gt;  &lt;div class="innerblock"&gt; &lt;br /&gt;&lt;strong&gt;Java&lt;/strong&gt;&lt;br /&gt;&lt;pre class="innertextblock"  &gt;&lt;br /&gt;Cursor cursor=getContentResolver().query(Uri.parse("content://com.android.calendar/calendars"), new String[]{"calendar_id", "displayname"}, null, null, null);&lt;br /&gt;cursor.moveToFirst();&lt;br /&gt;// Get calendars name&lt;br /&gt;String calendarNames[] = new String[cursor.getCount()];&lt;br /&gt;// Get calendars id&lt;br /&gt;calendarId = new int[cursor.getCount()];&lt;br /&gt;for (int i = 0; i &lt; calendarNames.length; i++)&lt;br /&gt;{&lt;br /&gt;         calendarId[i] = cursor.getInt(0);&lt;br /&gt;         calendarNames[i] = cursor.getString(1);&lt;br /&gt;         cursor.moveToNext();&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;   &lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Step 2:&lt;br /&gt;&lt;br /&gt;After getting the name and id of the calendar, we need to add the event&lt;br /&gt;&lt;br /&gt;  &lt;div class="innerblock"&gt; &lt;br /&gt;&lt;strong&gt;Java&lt;/strong&gt;&lt;br /&gt;&lt;pre class="innertextblock"  &gt;&lt;br /&gt;ContentValues contentEvent = new ContentValues();&lt;br /&gt;// Particular Calendar in which we need to add Event&lt;br /&gt;contentEvent.put("calendar_id", calendarIds[0]);                                                  &lt;br /&gt;// Title/Caption of the Event     &lt;br /&gt;contentEvent.put("title", "Wedding");                                                           &lt;br /&gt;// Description of the Event&lt;br /&gt;contentEvent.put("description", "Wedding Party");                                  &lt;br /&gt;// Venue/Location of the Event&lt;br /&gt;contentEvent.put("eventLocation", "New York");                                                   &lt;br /&gt;// Start Date of the Event with Time  &lt;br /&gt;contentEvent.put("dtstart", StartDate);                                                          &lt;br /&gt;// End Date of the Event with Time&lt;br /&gt;contentEvent.put("dtend", EndDate);                  &lt;br /&gt;// All Day Event                                       &lt;br /&gt;contentEvent.put("allDay", 1);                     &lt;br /&gt;// Set alarm for this Event                                              &lt;br /&gt;contentEvent.put("hasAlarm",1);                                                                  &lt;br /&gt;Uri eventsUri = Uri.parse("content://com.android.calendar/events");    &lt;br /&gt;// event is added successfully&lt;br /&gt;getContentResolver().insert(eventsUri, contentEvent);&lt;br /&gt;cursor.close();&lt;br /&gt;&lt;/pre&gt;   &lt;/div&gt;&lt;br /&gt;&lt;br /&gt;Step 3:&lt;br /&gt;&lt;br /&gt;If you like to delete the event means we can use this code&lt;br /&gt;&lt;br /&gt;  &lt;div class="innerblock"&gt; &lt;br /&gt;&lt;strong&gt;Java&lt;/strong&gt;&lt;br /&gt;&lt;pre class="innertextblock"  &gt;&lt;br /&gt;getContentResolver().delete(Uri.parse("content://com.android.calendar/events"), "calendar_id=? and description=? and eventLocation=? ", new String[]{String.valueOf(calendarIds[0]), "Wedding Party", "New York"});&lt;br /&gt;&lt;/pre&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The same event can be insert or delete in 2.1, for that we can use like this&lt;br /&gt;&lt;br /&gt;Step 1:&lt;br /&gt;&lt;br /&gt;For this we can use the same code as mentioned in the Step 1 of 2.2 version.&lt;br /&gt;&lt;br /&gt;Step 2:&lt;br /&gt;&lt;br /&gt;We need to change the path as "content://calendar/calendars" from "content://com.android.calendar/calendars"&lt;br /&gt;&lt;br /&gt;Step 3:&lt;br /&gt;&lt;br /&gt;Don't take the above 2.2 version code, we need to use like this&lt;br /&gt;&lt;br /&gt;  &lt;div class="innerblock"&gt; &lt;br /&gt;&lt;strong&gt;Java&lt;/strong&gt;&lt;br /&gt;&lt;pre class="innertextblock"  &gt;&lt;br /&gt;Uri CALENDAR_URI = Uri.parse("content://calendar/events");&lt;br /&gt;Cursor cursors = getContentResolver().query(CALENDAR_URI, null, null, null, null);&lt;br /&gt;if (cursors.moveToFirst())&lt;br /&gt;{&lt;br /&gt;        while (cursors.moveToNext())&lt;br /&gt; {&lt;br /&gt;  String desc = cursors.getString(cursors.getColumnIndex("description"));&lt;br /&gt;  String location = cursors.getString(cursors.getColumnIndex("eventLocation"));   &lt;br /&gt;                // event id&lt;br /&gt;  String id = cursors.getString(cursors.getColumnIndex("_id"));&lt;br /&gt;  if ((desc==null) &amp;&amp; (location == null))&lt;br /&gt;  {&lt;br /&gt;  }&lt;br /&gt;  else&lt;br /&gt;  {&lt;br /&gt;   if (desc.equals("Birthday Party") &amp;&amp; location.equals("Delhi"))&lt;br /&gt;                         {&lt;br /&gt;    Uri uri = ContentUris.withAppendedId(CALENDAR_URI, Integer.parseInt(id));&lt;br /&gt;    getContentResolver().delete(uri, null, null);&lt;br /&gt;   }&lt;br /&gt;  }&lt;br /&gt; }&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;   &lt;/div&gt;&lt;br /&gt;&lt;br /&gt; &lt;div class="downloadblock"&gt; &lt;br /&gt;Download &lt;a href="http://www.ziddu.com/download/13894237/EventsInCalender.zip.html"&gt;Source code&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;Have a good day.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5197277884634195738-5608691924964274342?l=android-codes-examples.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://android-codes-examples.blogspot.com/feeds/5608691924964274342/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://android-codes-examples.blogspot.com/2011/02/insertion-and-deletion-of-calendar.html#comment-form' title='6 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5197277884634195738/posts/default/5608691924964274342'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5197277884634195738/posts/default/5608691924964274342'/><link rel='alternate' type='text/html' href='http://android-codes-examples.blogspot.com/2011/02/insertion-and-deletion-of-calendar.html' title='Insertion and Deletion of Calendar Events'/><author><name>Keerthy</name><uri>http://www.blogger.com/profile/10048420864647222363</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>6</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5197277884634195738.post-8288417559748166927</id><published>2011-02-19T22:25:00.000-08:00</published><updated>2011-08-05T22:52:02.622-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='configure'/><category scheme='http://www.blogger.com/atom/ns#' term='android installation'/><category scheme='http://www.blogger.com/atom/ns#' term='installation'/><category scheme='http://www.blogger.com/atom/ns#' term='eclipse'/><category scheme='http://www.blogger.com/atom/ns#' term='android'/><title type='text'>Running the emulator from eclipse</title><content type='html'>Configured eclipse and create the "Hello, Android" project. After that you need to note some important points&lt;br /&gt;&lt;br /&gt;1. Make sure you ran it as an android application (Run As -&gt; Android Application)&lt;br /&gt;2. Check wheather java is installed before installing the eclipse software&lt;br /&gt;3. If all is done correctly means, just close the eclipse and start it again, it will work.&lt;br /&gt;&lt;br /&gt;If there is problem means comment the problem&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5197277884634195738-8288417559748166927?l=android-codes-examples.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://android-codes-examples.blogspot.com/feeds/8288417559748166927/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://android-codes-examples.blogspot.com/2011/02/running-emulator-from-eclipse.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5197277884634195738/posts/default/8288417559748166927'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5197277884634195738/posts/default/8288417559748166927'/><link rel='alternate' type='text/html' href='http://android-codes-examples.blogspot.com/2011/02/running-emulator-from-eclipse.html' title='Running the emulator from eclipse'/><author><name>Keerthy</name><uri>http://www.blogger.com/profile/10048420864647222363</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5197277884634195738.post-5706686457784687850</id><published>2011-02-19T21:58:00.000-08:00</published><updated>2011-08-05T22:51:36.050-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='version'/><category scheme='http://www.blogger.com/atom/ns#' term='Mac OS'/><category scheme='http://www.blogger.com/atom/ns#' term='installation'/><category scheme='http://www.blogger.com/atom/ns#' term='sdk'/><category scheme='http://www.blogger.com/atom/ns#' term='android'/><title type='text'>Android Error: cannot execute binary file - on running SDK commands</title><content type='html'>While installing sdk for Mac OS X version of the SDK there is a chance for this error. &lt;br /&gt;For that make sure that wheather the OS is x86&lt;br /&gt;&lt;br /&gt;  &lt;div class="innerblock"&gt; &lt;br /&gt;&lt;strong&gt;Command Prompt&lt;/strong&gt;&lt;br /&gt;&lt;pre class="innertextblock"  &gt;&lt;br /&gt;poseidon:~ jj$ aapt &lt;br /&gt;-bash: /Users/check/android_sdk_m3-rc20a/tools/aapt: cannot &lt;br /&gt;execute binary file &lt;br /&gt;  &lt;/pre&gt;   &lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5197277884634195738-5706686457784687850?l=android-codes-examples.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://android-codes-examples.blogspot.com/feeds/5706686457784687850/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://android-codes-examples.blogspot.com/2011/02/android-error-cannot-execute-binary.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5197277884634195738/posts/default/5706686457784687850'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5197277884634195738/posts/default/5706686457784687850'/><link rel='alternate' type='text/html' href='http://android-codes-examples.blogspot.com/2011/02/android-error-cannot-execute-binary.html' title='Android Error: cannot execute binary file - on running SDK commands'/><author><name>Keerthy</name><uri>http://www.blogger.com/profile/10048420864647222363</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5197277884634195738.post-4307692785916637018</id><published>2011-02-18T23:39:00.000-08:00</published><updated>2011-08-05T22:51:13.016-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='version'/><category scheme='http://www.blogger.com/atom/ns#' term='platform'/><category scheme='http://www.blogger.com/atom/ns#' term='android 2.2'/><category scheme='http://www.blogger.com/atom/ns#' term='advantages'/><category scheme='http://www.blogger.com/atom/ns#' term='android'/><title type='text'>Android 2.2 Platform Advantages</title><content type='html'>1. The phone and browser apps will now have dedicated shortcuts that flank the app launcher. Now you can access them from any of the Home screens (and free up space for other oft-used apps).&lt;br /&gt;2. Auto-discovery makes it easy to set up and sync an Exchange email account, and the Calendar app now supports Exchange as well. Plus, there are improved security features for users and administrators.&lt;br /&gt;3. Camera controls are no longer hidden under a pull-down menu. Buttons for zoom, flash,&lt;br /&gt;white balance, geo-tagging, focus and exposure are right on-screen (but transparent).&lt;br /&gt;         &lt;br /&gt;4. Users will now be able to share contacts with other phones over Bluetooth.&lt;br /&gt;5. For those so addicted to apps that internal storage just isn’t enough, Android developer APIs now allow apps to give users the choice of where to install them: phone memory.&lt;br /&gt;&lt;br /&gt;6. Another developer API makes it possible for apps to “participate in data backup&lt;br /&gt;and restore” so users who want to switch Android phones or restore after a hard reset can keep their data and apps.&lt;br /&gt;  &lt;br /&gt;&lt;br /&gt;Ref:&lt;br /&gt;http://developer.android.com/sdk/android-2.2-highlights.html&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5197277884634195738-4307692785916637018?l=android-codes-examples.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://android-codes-examples.blogspot.com/feeds/4307692785916637018/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://android-codes-examples.blogspot.com/2011/02/android-22-platform-advantages.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5197277884634195738/posts/default/4307692785916637018'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5197277884634195738/posts/default/4307692785916637018'/><link rel='alternate' type='text/html' href='http://android-codes-examples.blogspot.com/2011/02/android-22-platform-advantages.html' title='Android 2.2 Platform Advantages'/><author><name>Keerthy</name><uri>http://www.blogger.com/profile/10048420864647222363</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5197277884634195738.post-7220690160536804648</id><published>2011-02-18T19:53:00.001-08:00</published><updated>2011-02-18T21:35:58.975-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='adk'/><category scheme='http://www.blogger.com/atom/ns#' term='android installation'/><category scheme='http://www.blogger.com/atom/ns#' term='installation'/><category scheme='http://www.blogger.com/atom/ns#' term='eclipse'/><category scheme='http://www.blogger.com/atom/ns#' term='sdk'/><category scheme='http://www.blogger.com/atom/ns#' term='android'/><category scheme='http://www.blogger.com/atom/ns#' term='adb'/><title type='text'>ANdroid installation steps</title><content type='html'>&lt;p class="MsoNormal" style="text-align: center;" align="center"&gt;&lt;b style=""&gt;&lt;u&gt;&lt;span style="line-height: 115%; text-transform: uppercase;font-size:12pt;" &gt;&lt;br /&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoListParagraphCxSpFirst" style="text-indent: -0.25in;"&gt;&lt;span style=""&gt;&lt;span style=""&gt;1.&lt;span style="font: 7pt &amp;quot;Times New Roman&amp;quot;;"&gt;       &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;b style=""&gt;&lt;u&gt;Download SDK :&lt;/u&gt;&lt;/b&gt; Download Android SDK from &lt;a href="http://developer.android.com/sdk/index.html"&gt;http://developer.android.com/sdk/index.html&lt;/a&gt;&lt;/p&gt;  &lt;p class="MsoListParagraphCxSpMiddle" style="text-indent: -0.25in;"&gt;&lt;span class="apple-style-span"&gt;&lt;span style=""&gt;&lt;span style=""&gt;2.&lt;span style="font: 7pt &amp;quot;Times New Roman&amp;quot;;"&gt;       &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;a href="http://developer.android.com/sdk/installing.html"&gt;&lt;span class="en"&gt;&lt;b style=""&gt;&lt;span style="line-height: 115%;font-family:&amp;quot;;font-size:9pt;color:#000000;"   &gt;Installing the SDK&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/a&gt;&lt;span class="apple-style-span"&gt;&lt;span style="line-height: 115%;font-family:&amp;quot;;font-size:9pt;"  &gt; &lt;/span&gt;&lt;/span&gt;&lt;span class="apple-style-span"&gt;&lt;span style=""&gt;: &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;   &lt;p class="MsoListParagraphCxSpMiddle"&gt;&lt;span style=""&gt;On Windows, right-click on My Computer and select Properties. Under the Advanced tab, hit the Environment Variables button, and in the dialog that comes up, double-click on Path (under System Variables). Add the full path to the tools/directory to the path&lt;/span&gt;&lt;span style="line-height: 115%;font-family:&amp;quot;;font-size:9pt;"  &gt;.&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoListParagraphCxSpMiddle" style="text-align: center;" align="center"&gt;&lt;a href="http://4.bp.blogspot.com/-H6iLLh8aK-8/TV83VOma9wI/AAAAAAAAADc/n4SYAjPUltI/s1600/android-environment.JPG"&gt;&lt;img style="display: block; margin: 0px auto 10px; text-align: center; cursor: pointer; width: 320px; height: 188px;" src="http://4.bp.blogspot.com/-H6iLLh8aK-8/TV83VOma9wI/AAAAAAAAADc/n4SYAjPUltI/s320/android-environment.JPG" alt="" id="BLOGGER_PHOTO_ID_5575235701543991042" border="0" /&gt;&lt;/a&gt;&lt;/p&gt;   &lt;p class="MsoListParagraphCxSpMiddle"&gt;&lt;span style="line-height: 115%;font-family:&amp;quot;;font-size:9pt;"  &gt; &lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoListParagraphCxSpMiddle" style="text-indent: -0.25in;"&gt;&lt;span class="apple-style-span"&gt;&lt;b style=""&gt;&lt;span style=""&gt;&lt;span style=""&gt;3.&lt;span style="font: 7pt &amp;quot;Times New Roman&amp;quot;;"&gt;       &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;b style=""&gt;&lt;u&gt;Download Eclipse:&lt;/u&gt;&lt;span style=""&gt;     &lt;/span&gt;&lt;/b&gt;Download Eclipse from &lt;a href="http://www.eclipse.org/downloads/"&gt;&lt;span style="line-height: 115%;font-family:&amp;quot;;font-size:10pt;"  &gt;http://www.eclipse.org/downloads/&lt;/span&gt;&lt;/a&gt;&lt;span class="apple-style-span"&gt;&lt;/span&gt;&lt;/p&gt;   &lt;p class="MsoListParagraphCxSpLast" style="text-indent: -0.25in;"&gt;&lt;b style=""&gt;&lt;span style=""&gt;&lt;span style=""&gt;4.&lt;span style="font: 7pt &amp;quot;Times New Roman&amp;quot;;"&gt;       &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;b style=""&gt;&lt;u&gt;Download ADT Plug-in: &lt;/u&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin: 0in 0in 0.0001pt 0.75in; text-indent: -0.25in; line-height: 15.6pt;"&gt;&lt;span style="color: rgb(51, 51, 51);font-family:Symbol;font-size:10pt;"  &gt;&lt;span style=""&gt;·&lt;span style="font: 7pt &amp;quot;Times New Roman&amp;quot;;"&gt;         &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10pt;"  &gt;Start Eclipse, then select&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10pt;"  &gt; &lt;b&gt;Help&lt;/b&gt; &lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10pt;"  &gt;&amp;gt;&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10pt;"  &gt; &lt;b&gt;Install New Software&lt;/b&gt;&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10pt;"  &gt;.&lt;/span&gt;&lt;/p&gt;   &lt;p class="MsoNormal" style="margin: 0in 0in 0.0001pt 0.75in; text-indent: -0.25in; line-height: 15.6pt;"&gt;&lt;span style="color: rgb(51, 51, 51);font-family:Symbol;font-size:10pt;"  &gt;&lt;span style=""&gt;·&lt;span style="font: 7pt &amp;quot;Times New Roman&amp;quot;;"&gt;         &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10pt;"  &gt;In the Available Software dialog, click&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10pt;"  &gt; &lt;b&gt;Add...&lt;/b&gt;&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10pt;"  &gt;.&lt;/span&gt;&lt;/p&gt;   &lt;p class="MsoNormal" style="margin: 0in 0in 0.0001pt 0.75in; text-indent: -0.25in; line-height: 15.6pt;"&gt;&lt;span style="color: rgb(51, 51, 51);font-family:Symbol;font-size:10pt;"  &gt;&lt;span style=""&gt;·&lt;span style="font: 7pt &amp;quot;Times New Roman&amp;quot;;"&gt;         &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10pt;"  &gt;In the Add Site dialog that appears, enter a name for the remote site&lt;b style=""&gt; i&lt;/b&gt;n the "Name" field. (&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin: 0in 0in 0.0001pt 0.75in; line-height: 15.6pt;"&gt;&lt;b style=""&gt;&lt;span style=";font-family:&amp;quot;;font-size:10pt;"  &gt;E.g.&lt;span style=""&gt;  &lt;/span&gt;Android Plug-in&lt;/span&gt;&lt;/b&gt;&lt;span style=";font-family:&amp;quot;;font-size:10pt;"  &gt;&lt;/span&gt;&lt;/p&gt;   &lt;p class="MsoListParagraphCxSpFirst" style="margin: 6pt 0in 0.0001pt 0.75in; text-indent: -0.25in; line-height: 15.6pt;"&gt;&lt;span style="color: rgb(51, 51, 51);font-family:Symbol;font-size:10pt;"  &gt;&lt;span style=""&gt;·&lt;span style="font: 7pt &amp;quot;Times New Roman&amp;quot;;"&gt;         &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10pt;"  &gt;In the "&lt;b style=""&gt;Location&lt;/b&gt;" field, enter this URL:&lt;/span&gt;&lt;/p&gt;  &lt;div style="border: 1pt solid rgb(204, 204, 204); padding: 8pt; background: none repeat scroll 0% 0% rgb(250, 250, 250); margin-left: 0.75in; margin-right: 0in;"&gt;  &lt;p class="MsoListParagraphCxSpMiddle" style="margin: 6pt 0in 0.0001pt; line-height: 15.6pt; background: none repeat scroll 0% 0% rgb(250, 250, 250); border: medium none; padding: 0in;"&gt;&lt;b style=""&gt;&lt;span style=";font-family:&amp;quot;;font-size:12pt;"  &gt;&lt;a href="https://dl-ssl.google.com/android/eclipse/"&gt;https://dl-ssl.google.com/android/eclipse/&lt;/a&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;   &lt;/div&gt;  &lt;p class="MsoListParagraphCxSpLast" style="margin: 6pt 0in 0.0001pt 0.75in; text-indent: -0.25in; line-height: 15.6pt;"&gt;&lt;span style="color: rgb(51, 51, 51);font-family:Symbol;font-size:10pt;"  &gt;&lt;span style=""&gt;·&lt;span style="font: 7pt &amp;quot;Times New Roman&amp;quot;;"&gt;         &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10pt;"  &gt;Click&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10pt;"  &gt; &lt;b&gt;OK&lt;/b&gt;&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10pt;"  &gt;.&lt;/span&gt;&lt;/p&gt;   &lt;p class="MsoNormal" style="margin: 0in 0in 0.0001pt 0.75in; text-indent: -0.25in; line-height: 15.6pt;"&gt;&lt;span style="color: rgb(51, 51, 51);font-family:Symbol;font-size:10pt;"  &gt;&lt;span style=""&gt;·&lt;span style="font: 7pt &amp;quot;Times New Roman&amp;quot;;"&gt;         &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10pt;"  &gt;Back in the Available Software view, you should now see "Developer Tools" added to the list. Select the checkbox next to Developer Tools, which will automatically select the nested tools Android DDMS and Android Development Tools. Click&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10pt;"  &gt; &lt;b&gt;Next&lt;/b&gt;&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10pt;"  &gt;.&lt;/span&gt;&lt;/p&gt;   &lt;p class="MsoNormal" style="margin: 0in 0in 0.0001pt 0.75in; text-indent: -0.25in; line-height: 15.6pt;"&gt;&lt;span style="color: rgb(51, 51, 51);font-family:Symbol;font-size:10pt;"  &gt;&lt;span style=""&gt;·&lt;span style="font: 7pt &amp;quot;Times New Roman&amp;quot;;"&gt;         &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10pt;"  &gt;In the resulting Install Details dialog, the Android DDMS and Android Development Tools features are listed. Click&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10pt;"  &gt; &lt;b&gt;Next&lt;/b&gt; &lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10pt;"  &gt;to read and accept the license agreement and install any dependencies, then click&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10pt;"  &gt; &lt;b&gt;Finish&lt;/b&gt;&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10pt;"  &gt;.&lt;/span&gt;&lt;/p&gt;   &lt;p class="MsoNormal" style="margin: 0in 0in 0.0001pt 0.75in; text-indent: -0.25in; line-height: 15.6pt;"&gt;&lt;span style="color: rgb(51, 51, 51);font-family:Symbol;font-size:10pt;"  &gt;&lt;span style=""&gt;·&lt;span style="font: 7pt &amp;quot;Times New Roman&amp;quot;;"&gt;         &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10pt;"  &gt;Restart Eclipse.&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoListParagraph" style="margin-bottom: 0.0001pt; text-indent: -0.25in; line-height: 15.6pt;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:10pt;"  &gt; &lt;/span&gt;&lt;b style=""&gt;&lt;span style=";font-family:&amp;quot;;font-size:10pt;"  &gt;&lt;span style=""&gt;5.&lt;span style="font: 7pt &amp;quot;Times New Roman&amp;quot;;"&gt;     &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;b style=""&gt;&lt;u&gt;&lt;span style=";font-family:&amp;quot;;font-size:10pt;"  &gt;Configuring ADT plug-in:&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin: 0in 0in 0.0001pt 0.75in; text-indent: -0.25in; line-height: 15.6pt;"&gt;&lt;span style="color: rgb(51, 51, 51);font-family:Symbol;font-size:10pt;"  &gt;&lt;span style=""&gt;·&lt;span style="font: 7pt &amp;quot;Times New Roman&amp;quot;;"&gt;         &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10pt;"  &gt;Select&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10pt;"  &gt; &lt;b&gt;Window&lt;/b&gt; &lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10pt;"  &gt;&amp;gt;&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10pt;"  &gt; &lt;b&gt;Preferences...&lt;/b&gt; &lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10pt;"  &gt;to open the Preferences panel &lt;/span&gt;&lt;/p&gt;   &lt;p class="MsoNormal" style="margin: 0in 0in 0.0001pt 0.75in; text-indent: -0.25in; line-height: 15.6pt;"&gt;&lt;span style="color: rgb(51, 51, 51);font-family:Symbol;font-size:10pt;"  &gt;&lt;span style=""&gt;·&lt;span style="font: 7pt &amp;quot;Times New Roman&amp;quot;;"&gt;         &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10pt;"  &gt;Select&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10pt;"  &gt; &lt;b&gt;Android&lt;/b&gt; &lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10pt;"  &gt;from the left panel.&lt;/span&gt;&lt;/p&gt;   &lt;p class="MsoNormal" style="margin: 0in 0in 0.0001pt 0.75in; text-indent: -0.25in; line-height: 15.6pt;"&gt;&lt;span style="color: rgb(51, 51, 51);font-family:Symbol;font-size:10pt;"  &gt;&lt;span style=""&gt;·&lt;span style="font: 7pt &amp;quot;Times New Roman&amp;quot;;"&gt;         &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10pt;"  &gt;For the&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10pt;"  &gt; &lt;i&gt;SDK Location&lt;/i&gt; &lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10pt;"  &gt;in the main panel, click&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10pt;"  &gt; &lt;b&gt;Browse...&lt;/b&gt; &lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10pt;"  &gt;and locate your downloaded SDK directory.&lt;/span&gt;&lt;/p&gt;   &lt;p class="MsoNormal" style="margin: 0in 0in 0.0001pt 0.75in; text-indent: -0.25in; line-height: 15.6pt;"&gt;&lt;span style="color: rgb(51, 51, 51);font-family:Symbol;font-size:10pt;"  &gt;&lt;span style=""&gt;·&lt;span style="font: 7pt &amp;quot;Times New Roman&amp;quot;;"&gt;         &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10pt;"  &gt;Click&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10pt;"  &gt; &lt;b&gt;Apply&lt;/b&gt;&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10pt;"  &gt;, and then&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10pt;"  &gt; &lt;b&gt;OK&lt;/b&gt;&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10pt;"  &gt;.&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:0pt;color:black;"   &gt; &lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:10pt;"  &gt;&lt;/span&gt;&lt;/p&gt;   &lt;p class="MsoNormal" style="margin: 0in 0in 0.0001pt 0.75in; line-height: 15.6pt;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:10pt;"  &gt; &lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin: 0in 0in 0.0001pt 0.75in; line-height: 15.6pt;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:10pt;"  &gt; &lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin: 0in 0in 0.0001pt 0.75in; text-align: center; line-height: 15.6pt;" align="center"&gt;&lt;a href="http://4.bp.blogspot.com/-vtXYqdTr33E/TV84cBoiM8I/AAAAAAAAADk/613NUBxl93E/s1600/configure_adt_android.JPG"&gt;&lt;img style="display: block; margin: 0px auto 10px; text-align: center; cursor: pointer; width: 320px; height: 198px;" src="http://4.bp.blogspot.com/-vtXYqdTr33E/TV84cBoiM8I/AAAAAAAAADk/613NUBxl93E/s320/configure_adt_android.JPG" alt="" id="BLOGGER_PHOTO_ID_5575236917833905090" border="0" /&gt;&lt;/a&gt;&lt;/p&gt;   &lt;p class="MsoNormal" style="margin: 0in 0in 0.0001pt 0.5in; line-height: 15.6pt;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:0pt;color:black;"   &gt; &lt;/span&gt;&lt;/p&gt; &lt;p class="MsoListParagraphCxSpMiddle" style="margin-bottom: 0.0001pt; line-height: 15.6pt;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:10pt;"  &gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoListParagraphCxSpMiddle" style="margin-bottom: 0.0001pt; text-indent: -0.25in; line-height: 15.6pt;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:10pt;"  &gt;&lt;span style=""&gt;6.&lt;span style="font: 7pt &amp;quot;Times New Roman&amp;quot;;"&gt;     &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;b style=""&gt;&lt;u&gt;&lt;span style=";font-family:&amp;quot;;font-size:10pt;"  &gt;Create AVD:&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;span style=";font-family:&amp;quot;;font-size:10pt;"  &gt;&lt;/span&gt;&lt;/p&gt;   &lt;p class="MsoListParagraphCxSpMiddle" style="margin-bottom: 0.0001pt; line-height: 15.6pt;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:10pt;"  &gt;Click on Android SDK and AVD Manager icon or&lt;span style=""&gt;  &lt;/span&gt;&lt;b style=""&gt;Window &amp;gt; Android SDK and AVD Manager&lt;/b&gt;&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:0pt;color:black;"   &gt;&lt;/span&gt;&lt;/p&gt;   &lt;p class="MsoListParagraphCxSpMiddle" style="margin-bottom: 0.0001pt; line-height: 15.6pt;"&gt;&lt;span style=";font-family:&amp;quot;;font-size:0pt;color:black;"   &gt; &lt;/span&gt;&lt;/p&gt;   &lt;p class="MsoListParagraphCxSpMiddle" style="margin-bottom: 0.0001pt; text-align: center; line-height: 15.6pt;" align="center"&gt;&lt;a href="http://1.bp.blogspot.com/-tLxqAKhw7d0/TV84cNGHcFI/AAAAAAAAADs/qmZLEb1q09M/s1600/create_avd_android.JPG"&gt;&lt;img style="display: block; margin: 0px auto 10px; text-align: center; cursor: pointer; width: 360px; height: 295px;" src="http://1.bp.blogspot.com/-tLxqAKhw7d0/TV84cNGHcFI/AAAAAAAAADs/qmZLEb1q09M/s320/create_avd_android.JPG" alt="" id="BLOGGER_PHOTO_ID_5575236920910770258" border="0" /&gt;&lt;/a&gt;&lt;/p&gt;   &lt;p class="MsoListParagraphCxSpLast" style="margin-bottom: 0.0001pt; line-height: 15.6pt;"&gt;&lt;b style=""&gt;&lt;u&gt;&lt;span style=";font-family:&amp;quot;;font-size:10pt;"  &gt;&lt;span style="text-decoration: none;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;/p&gt;   &lt;p class="MsoNormal"&gt;&lt;b style=""&gt;&lt;u&gt;&lt;span style="text-decoration: none;"&gt; &lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoListParagraphCxSpFirst" style="text-indent: -0.25in;"&gt;&lt;span style=""&gt;&lt;span style=""&gt;7.&lt;span style="font: 7pt &amp;quot;Times New Roman&amp;quot;;"&gt;       &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;b style=""&gt;&lt;u&gt;Running Application: &lt;/u&gt;&lt;span style=""&gt;    &lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoListParagraphCxSpMiddle"&gt;&lt;b style=""&gt;&lt;span style=""&gt; &lt;/span&gt;&lt;/b&gt;Import the source code to eclipse&lt;/p&gt;  &lt;p class="MsoListParagraphCxSpMiddle"&gt;Import required JAR files on &lt;b style=""&gt;project properties &amp;gt; Java build path &amp;gt; Libraries.&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoListParagraphCxSpMiddle"&gt;Now run the application&lt;/p&gt;  &lt;p class="MsoListParagraphCxSpMiddle"&gt; &lt;/p&gt;  &lt;p class="MsoListParagraphCxSpLast" style="text-align: center;" align="center"&gt;&lt;a href="http://4.bp.blogspot.com/-XCtS7NO_CWU/TV84cgE80lI/AAAAAAAAAEE/I-F6i-CsrYc/s1600/run_android_in_ecplise.JPG"&gt;&lt;img style="display: block; margin: 0px auto 10px; text-align: center; cursor: pointer; width: 320px; height: 126px;" src="http://4.bp.blogspot.com/-XCtS7NO_CWU/TV84cgE80lI/AAAAAAAAAEE/I-F6i-CsrYc/s320/run_android_in_ecplise.JPG" alt="" id="BLOGGER_PHOTO_ID_5575236926006153810" border="0" /&gt;&lt;/a&gt;&lt;/p&gt;   &lt;p class="MsoNormal" style="text-align: center;" align="center"&gt;&lt;a href="http://3.bp.blogspot.com/-tgVw7cfhu8s/TV8436oi_VI/AAAAAAAAAEs/8ogoCqQmW5o/s1600/run_configuration_android.JPG"&gt;&lt;img style="display: block; margin: 0px auto 10px; text-align: center; cursor: pointer; width: 394px; height: 281px;" src="http://3.bp.blogspot.com/-tgVw7cfhu8s/TV8436oi_VI/AAAAAAAAAEs/8ogoCqQmW5o/s320/run_configuration_android.JPG" alt="" id="BLOGGER_PHOTO_ID_5575237396991245650" border="0" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align: center;" align="center"&gt;&lt;a href="http://1.bp.blogspot.com/-0pe_aryV6Lk/TV84cWvG0II/AAAAAAAAAD0/rv0u6tunaKY/s1600/created_avd.JPG"&gt;&lt;img style="display: block; margin: 0px auto 10px; text-align: center; cursor: pointer; width: 320px; height: 122px;" src="http://1.bp.blogspot.com/-0pe_aryV6Lk/TV84cWvG0II/AAAAAAAAAD0/rv0u6tunaKY/s320/created_avd.JPG" alt="" id="BLOGGER_PHOTO_ID_5575236923498614914" border="0" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p class="MsoListParagraphCxSpFirst" style="text-indent: -0.25in;"&gt;&lt;span style=""&gt;&lt;span style=""&gt;8.&lt;span style="font: 7pt &amp;quot;Times New Roman&amp;quot;;"&gt;       &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;b style=""&gt;&lt;u&gt;Reference link :&lt;/u&gt;&lt;/b&gt;&lt;span style=""&gt;   &lt;/span&gt;&lt;a href="http://developer.android.com/sdk/index.html"&gt;http://developer.android.com/sdk/index.html&lt;/a&gt;&lt;/p&gt;  &lt;p class="MsoListParagraphCxSpMiddle" style="text-indent: -0.25in;"&gt;&lt;span class="apple-style-span"&gt;&lt;b style=""&gt;&lt;span style="color:black;"&gt;&lt;span style=""&gt;9.&lt;span style="font: 7pt &amp;quot;Times New Roman&amp;quot;;"&gt;       &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;a href="http://developer.android.com/guide/publishing/app-signing.html"&gt;&lt;span class="en"&gt;&lt;b&gt;&lt;span style="color:black;"&gt;Signing your Applications&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/a&gt;&lt;span class="apple-style-span"&gt;&lt;b&gt;&lt;u&gt;&lt;span style="color:black;"&gt;:&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;b style=""&gt;&lt;u&gt;&lt;span style="color:black;"&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;   &lt;p class="MsoListParagraphCxSpMiddle" style="margin-left: 0.75in; text-indent: -0.25in;"&gt;&lt;span class="apple-style-span"&gt;&lt;span style=";font-family:Symbol;color:black;"  &gt;&lt;span style=""&gt;·&lt;span style="font: 7pt &amp;quot;Times New Roman&amp;quot;;"&gt;         &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-style-span"&gt;&lt;span style="color:black;"&gt;Open &lt;b style=""&gt;AndroidManifest.xml&lt;/b&gt; which is at project root.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoListParagraphCxSpMiddle" style="margin-left: 0.75in; text-indent: -0.25in;"&gt;&lt;span class="apple-style-span"&gt;&lt;span style=";font-family:Symbol;color:black;"  &gt;&lt;span style=""&gt;·&lt;span style="font: 7pt &amp;quot;Times New Roman&amp;quot;;"&gt;         &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-style-span"&gt;&lt;span style="color:black;"&gt;Open &lt;b style=""&gt;Manifest Tab&lt;/b&gt; which is at left-bottom of the page.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoListParagraphCxSpMiddle" style="margin-left: 0.75in; text-indent: -0.25in;"&gt;&lt;span class="apple-style-span"&gt;&lt;span style=";font-family:Symbol;color:black;"  &gt;&lt;span style=""&gt;·&lt;span style="font: 7pt &amp;quot;Times New Roman&amp;quot;;"&gt;         &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-style-span"&gt;&lt;span style="color:black;"&gt;In the Export portion, click &lt;b style=""&gt;"Use the Export Wizard"&lt;/b&gt; link. It will open a window with browse project textbox. Select your project and click &lt;b style=""&gt;Next&lt;/b&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoListParagraphCxSpMiddle" style="margin-left: 0.75in; text-indent: -0.25in;"&gt;&lt;span class="apple-style-span"&gt;&lt;span style=";font-family:Symbol;color:black;"  &gt;&lt;span style=""&gt;·&lt;span style="font: 7pt &amp;quot;Times New Roman&amp;quot;;"&gt;         &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-style-span"&gt;&lt;span style="color:black;"&gt;In the Key store selection, check &lt;b style=""&gt;"Use existing key store" &lt;/b&gt;radio button&lt;b style=""&gt; &lt;/b&gt;and browse location and enter password(&lt;b style=""&gt;veradis&lt;/b&gt;). Click &lt;b style=""&gt;Next&lt;/b&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoListParagraphCxSpMiddle" style="margin-left: 0.75in; text-indent: -0.25in;"&gt;&lt;span class="apple-style-span"&gt;&lt;span style=";font-family:Symbol;color:black;"  &gt;&lt;span style=""&gt;·&lt;span style="font: 7pt &amp;quot;Times New Roman&amp;quot;;"&gt;         &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-style-span"&gt;&lt;span style="color:black;"&gt;In key alias selection, check &lt;b style=""&gt;"Use existing key" &lt;/b&gt;radio button and select &lt;b style=""&gt;"alias_name" &lt;/b&gt;from Alias dropdown box, enter password (&lt;b style=""&gt;veradis&lt;/b&gt;). Click &lt;b style=""&gt;Next&lt;/b&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoListParagraphCxSpMiddle" style="margin-left: 0.75in; text-indent: -0.25in;"&gt;&lt;span class="apple-style-span"&gt;&lt;span style=";font-family:Symbol;color:black;"  &gt;&lt;span style=""&gt;·&lt;span style="font: 7pt &amp;quot;Times New Roman&amp;quot;;"&gt;         &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="apple-style-span"&gt;&lt;span style="color:black;"&gt;In Destination and key/certificate check, browse the location in which you want to save the APK file. Click &lt;b style=""&gt;Finish&lt;/b&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoListParagraphCxSpMiddle" style="margin-left: 0.75in;"&gt;&lt;span class="apple-style-span"&gt;&lt;span style="color:black;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoListParagraphCxSpMiddle" style="margin-left: 0.75in;"&gt;&lt;a href="http://2.bp.blogspot.com/-xyPkETmxGME/TV84cvviebI/AAAAAAAAAD8/LgM-62uT-_s/s1600/generate_apk_file.JPG"&gt;&lt;img style="display: block; margin: 0px auto 10px; text-align: center; cursor: pointer; width: 448px; height: 358px;" src="http://2.bp.blogspot.com/-xyPkETmxGME/TV84cvviebI/AAAAAAAAAD8/LgM-62uT-_s/s320/generate_apk_file.JPG" alt="" id="BLOGGER_PHOTO_ID_5575236930211314098" border="0" /&gt;&lt;/a&gt;&lt;/p&gt;   &lt;p class="MsoListParagraphCxSpMiddle" style="margin-left: 0.75in;"&gt;&lt;span class="apple-style-span"&gt;&lt;span style="color:black;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoListParagraphCxSpMiddle" style="margin-left: 0.75in;"&gt;&lt;a href="http://2.bp.blogspot.com/-saFn10M76Z4/TV843BXwZKI/AAAAAAAAAEM/EqcjHy7OX8U/s1600/run_android_project.JPG"&gt;&lt;img style="display: block; margin: 0px auto 10px; text-align: center; cursor: pointer; width: 320px; height: 280px;" src="http://2.bp.blogspot.com/-saFn10M76Z4/TV843BXwZKI/AAAAAAAAAEM/EqcjHy7OX8U/s320/run_android_project.JPG" alt="" id="BLOGGER_PHOTO_ID_5575237381619999906" border="0" /&gt;&lt;/a&gt;&lt;/p&gt;   &lt;p class="MsoListParagraphCxSpMiddle" style="margin-left: 0.75in;"&gt;&lt;span class="apple-style-span"&gt;&lt;b style=""&gt;&lt;span style="color:black;"&gt; &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoListParagraphCxSpMiddle" style="margin-left: 0.75in;"&gt;&lt;a href="http://1.bp.blogspot.com/-LSrwpPEnV_Y/TV843WI2tdI/AAAAAAAAAEU/mHYhQ5-M8y0/s1600/run_android_project_step2.JPG"&gt;&lt;img style="display: block; margin: 0px auto 10px; text-align: center; cursor: pointer; width: 320px; height: 307px;" src="http://1.bp.blogspot.com/-LSrwpPEnV_Y/TV843WI2tdI/AAAAAAAAAEU/mHYhQ5-M8y0/s320/run_android_project_step2.JPG" alt="" id="BLOGGER_PHOTO_ID_5575237387194643922" border="0" /&gt;&lt;/a&gt;&lt;/p&gt;   &lt;p class="MsoListParagraphCxSpMiddle" style="margin-left: 0.75in;"&gt;&lt;a href="http://2.bp.blogspot.com/-UBNCI8ooxbA/TV843smKWdI/AAAAAAAAAEc/MrVzOt32Kp4/s1600/run_android_project_step3.JPG"&gt;&lt;img style="display: block; margin: 0px auto 10px; text-align: center; cursor: pointer; width: 320px; height: 222px;" src="http://2.bp.blogspot.com/-UBNCI8ooxbA/TV843smKWdI/AAAAAAAAAEc/MrVzOt32Kp4/s320/run_android_project_step3.JPG" alt="" id="BLOGGER_PHOTO_ID_5575237393223145938" border="0" /&gt;&lt;/a&gt;&lt;/p&gt;   &lt;p class="MsoListParagraphCxSpMiddle" style="margin-left: 0.75in;"&gt;&lt;span class="apple-style-span"&gt;&lt;span style="color:black;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoListParagraphCxSpLast" style="margin-left: 0.75in;"&gt;&lt;a href="http://4.bp.blogspot.com/-jwg2DrzpxnI/TV843mxURQI/AAAAAAAAAEk/ReAQphHvDgA/s1600/run_android_project_step4.JPG"&gt;&lt;img style="display: block; margin: 0px auto 10px; text-align: center; cursor: pointer; width: 311px; height: 320px;" src="http://4.bp.blogspot.com/-jwg2DrzpxnI/TV843mxURQI/AAAAAAAAAEk/ReAQphHvDgA/s320/run_android_project_step4.JPG" alt="" id="BLOGGER_PHOTO_ID_5575237391659320578" border="0" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;script type="text/javascript"&gt;var geo_Partner = '1b64ed76-c1a2-48f3-805e-780de45d8560'; var geo_isCG = true;&lt;/script&gt;&lt;script src="http://js.geoads.com/geoLink.js" type="text/javascript"&gt;&lt;/script&gt;&lt;script type="text/javascript"&gt;var geo_Partner = '1b64ed76-c1a2-48f3-805e-780de45d8560'; var geo_isCG = true;&lt;/script&gt;&lt;script src="http://js.geoads.com/geoLink.js" type="text/javascript"&gt;&lt;/script&gt;&lt;br /&gt;&lt;br /&gt;&lt;script type="text/javascript" src="http://www.bux4ad.com/affiliate/scripts/banner.php?a_aid=069399bf&amp;amp;a_bid=4941f9d3"&gt;&lt;/script&gt;&lt;script type="text/javascript"&gt;var geo_Partner = '1b64ed76-c1a2-48f3-805e-780de45d8560'; var geo_isCG = true;&lt;/script&gt;&lt;script src="http://js.geoads.com/geoLink.js" type="text/javascript"&gt;&lt;/script&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5197277884634195738-7220690160536804648?l=android-codes-examples.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://android-codes-examples.blogspot.com/feeds/7220690160536804648/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://android-codes-examples.blogspot.com/2011/02/android-installation-steps.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5197277884634195738/posts/default/7220690160536804648'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5197277884634195738/posts/default/7220690160536804648'/><link rel='alternate' type='text/html' href='http://android-codes-examples.blogspot.com/2011/02/android-installation-steps.html' title='ANdroid installation steps'/><author><name>Keerthy</name><uri>http://www.blogger.com/profile/10048420864647222363</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/-H6iLLh8aK-8/TV83VOma9wI/AAAAAAAAADc/n4SYAjPUltI/s72-c/android-environment.JPG' height='72' width='72'/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5197277884634195738.post-5846836949110460415</id><published>2011-02-17T07:47:00.000-08:00</published><updated>2011-02-17T08:12:06.169-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='create'/><category scheme='http://www.blogger.com/atom/ns#' term='android'/><category scheme='http://www.blogger.com/atom/ns#' term='avd'/><title type='text'>Create an AVD in Eclipse for Android</title><content type='html'>To create an AVD:&lt;br /&gt;&lt;br /&gt;   1. In Eclipse, we need to choose Window &gt; Android SDK and AVD Manager.&lt;br /&gt;   2. Select Virtual Devices in the left panel of the eclipse.&lt;br /&gt;   3. Click the New and a new AVD dialog appears.&lt;br /&gt;   4. Type a name for the AVD.&lt;br /&gt;   5. Next step we need to choose a target. The target is the platform (that is, the version of the Android SDK - it will be shown in drop down) you want to run on the emulator.Remaining fields can be ignore for now.&lt;br /&gt;   6. Click Create AVD.&lt;br /&gt;&lt;br /&gt;&lt;script type="text/javascript" src="http://www.bux4ad.com/affiliate/scripts/banner.php?a_aid=069399bf&amp;a_bid=4941f9d3"&gt;&lt;/script&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5197277884634195738-5846836949110460415?l=android-codes-examples.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://android-codes-examples.blogspot.com/feeds/5846836949110460415/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://android-codes-examples.blogspot.com/2011/02/create-avd-in-eclipse-for-android.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5197277884634195738/posts/default/5846836949110460415'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5197277884634195738/posts/default/5846836949110460415'/><link rel='alternate' type='text/html' href='http://android-codes-examples.blogspot.com/2011/02/create-avd-in-eclipse-for-android.html' title='Create an AVD in Eclipse for Android'/><author><name>Keerthy</name><uri>http://www.blogger.com/profile/10048420864647222363</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
