<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule" version="2.0"><channel><title>Android Snippets - Latest Snippets</title><link>http://www.androidsnippets.com</link><description>Feed with new snippets on AndroidSnippets.com,                     a community driven website for finding, exploring, sharing                    and improving source code snippets for Android.</description><lastBuildDate>Wed, 19 Jun 2013 17:39:28 GMT</lastBuildDate><generator>PyRSS2Gen-1.0.0</generator><docs>http://blogs.law.harvard.edu/tech/rss</docs><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/AndroidSnippetsLatest" /><feedburner:info xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" uri="androidsnippetslatest" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><creativeCommons:license>http://creativecommons.org/licenses/by/2.0/</creativeCommons:license><feedburner:emailServiceId xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0">AndroidSnippetsLatest</feedburner:emailServiceId><feedburner:feedburnerHostname xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0">http://feedburner.google.com</feedburner:feedburnerHostname><item><title>Facebook keyhash</title><link>http://www.androidsnippets.com/facebook-keyhash</link><description>&lt;p&gt;To access keyhash for your application, just provide the package name. &lt;/p&gt;</description><guid isPermaLink="true">http://www.androidsnippets.com/facebook-keyhash</guid><pubDate>Sat, 06 Sep 2003 21:31:00 GMT</pubDate></item><item><title>Advance Pinch zoom in android ImageView</title><link>http://www.androidsnippets.com/advance-pinch-zoom-in-android-imageview2</link><description>&lt;p&gt;Its allow you pinch zoom image with pan drag, and many more fucntionality&lt;/p&gt;
&lt;p&gt;&lt;a target='_blank' rel='nofollow' href="http://androidtrainningcenter.blogspot.in/2013/04/update-pinch-to-zoom-example-and.html"&gt;Continue Reading&lt;/a&gt; &lt;/p&gt;</description><guid isPermaLink="true">http://www.androidsnippets.com/advance-pinch-zoom-in-android-imageview2</guid><pubDate>Sat, 06 Sep 2003 21:31:00 GMT</pubDate></item><item><title>Advance Pinch zoom in android ImageView</title><link>http://www.androidsnippets.com/advance-pinch-zoom-in-android-imageview</link><description>&lt;p&gt;Its allow you pinch zoom image with pan drag, and many more fucntionality&lt;/p&gt;
&lt;p&gt;&lt;a target='_blank' rel='nofollow' href="http://androidtrainningcenter.blogspot.in/2013/04/update-pinch-to-zoom-example-and.html"&gt;Continue Reading&lt;/a&gt; &lt;/p&gt;</description><guid isPermaLink="true">http://www.androidsnippets.com/advance-pinch-zoom-in-android-imageview</guid><pubDate>Sat, 06 Sep 2003 21:31:00 GMT</pubDate></item><item><title>Handling Android Screen Orientation Change</title><link>http://www.androidsnippets.com/handling-android-screen-orientation-change</link><description>&lt;p&gt;Handling orientation change in android is bit interesting topic to explore. on change of orientation your Android device's width changes to height and vice versa. It make developer to force some changes in layout for better user expeperience. We can handle user interface while changing orientation using two way. Lets discuss best possible way to handle activity orientation change.&lt;/p&gt;
&lt;p&gt;&lt;a target='_blank' rel='nofollow' href="http://androidtrainningcenter.blogspot.in/2013/05/android-screen-orientation-handling.html"&gt;Continue Reading Full Article&lt;/a&gt;&lt;/p&gt;</description><guid isPermaLink="true">http://www.androidsnippets.com/handling-android-screen-orientation-change</guid><pubDate>Sat, 06 Sep 2003 21:31:00 GMT</pubDate></item><item><title>Double back press to exit</title><link>http://www.androidsnippets.com/double-back-press-to-exit</link><description>&lt;p&gt;Get back press work only at second press and notify user to press again to exit.&lt;/p&gt;</description><guid isPermaLink="true">http://www.androidsnippets.com/double-back-press-to-exit</guid><pubDate>Sat, 06 Sep 2003 21:31:00 GMT</pubDate></item><item><title>Network connectivity changes</title><link>http://www.androidsnippets.com/network-connectivity-changes</link><description>&lt;p&gt;This snippets configures listening for connectivity events (wifi, 3g) on and off&lt;/p&gt;</description><guid isPermaLink="true">http://www.androidsnippets.com/network-connectivity-changes</guid><pubDate>Sat, 06 Sep 2003 21:31:00 GMT</pubDate></item><item><title>Killing other App from My App</title><link>http://www.androidsnippets.com/killing-other-app-from-my-app</link><description>&lt;p&gt;I am trying to kill certain app from my app using following code but not working 
whats wrong with code.&lt;/p&gt;</description><guid isPermaLink="true">http://www.androidsnippets.com/killing-other-app-from-my-app</guid><pubDate>Sat, 06 Sep 2003 21:31:00 GMT</pubDate></item><item><title>Pinch to Zoom and pan/drag ImageView in android</title><link>http://www.androidsnippets.com/pinch-to-zoom-and-pandrag-imageview-in-android</link><description>&lt;p&gt;I wrote on the same topic Pinch to zoom in android ImageView while i just started blogging. And that still is my one of the popular article, despite that it has many complication and limitation with it. So i am working to improve it. After reading most comment, I feel some problems while implementing pinch to zoom with android ImageView using previous post&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;How to implement that pinch to zoom
   in their project?&lt;/li&gt;
&lt;li&gt;Determining Zoom limit in pinch to
   zoom ImageView!&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Does not work properly as i told in
   post !!&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;                                                       [Read Full Article][1]
&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;/ul&gt;</description><guid isPermaLink="true">http://www.androidsnippets.com/pinch-to-zoom-and-pandrag-imageview-in-android</guid><pubDate>Sat, 06 Sep 2003 21:31:00 GMT</pubDate></item><item><title>ImagesLoader.class</title><link>http://www.androidsnippets.com/imagesloaderclass</link><description>&lt;p&gt;Image loader class&lt;/p&gt;</description><guid isPermaLink="true">http://www.androidsnippets.com/imagesloaderclass</guid><pubDate>Sat, 06 Sep 2003 21:31:00 GMT</pubDate></item><item><title>Delete file after sent email attachment</title><link>http://www.androidsnippets.com/delete-file-after-sent-email-attachment</link><description>&lt;p&gt;How delete a file attachment on email, after sent this email.&lt;/p&gt;</description><guid isPermaLink="true">http://www.androidsnippets.com/delete-file-after-sent-email-attachment</guid><pubDate>Sat, 06 Sep 2003 21:31:00 GMT</pubDate></item><item><title>Getting all installed application and Launch using Package Name</title><link>http://www.androidsnippets.com/getting-all-installed-application-and-launch-using-package-name</link><description>&lt;p&gt;Listing all &lt;a target='_blank' rel='nofollow' href="http://androidtrainningcenter.blogspot.com"&gt;android application&lt;/a&gt; install on device and save them inside an Array. Then launch using this code &lt;/p&gt;
&lt;pre&gt;&lt;code&gt;    Intent LaunchIntent = getPackageManager().getLaunchIntentForPackage(mIdList.get(2));
    startActivity( LaunchIntent );
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;See &lt;a target='_blank' rel='nofollow' href="http://androidtrainningcenter.blogspot.com"&gt;Tech Trainer&lt;/a&gt; For code and post&lt;/p&gt;</description><guid isPermaLink="true">http://www.androidsnippets.com/getting-all-installed-application-and-launch-using-package-name</guid><pubDate>Sat, 06 Sep 2003 21:31:00 GMT</pubDate></item><item><title>Basic service example in android</title><link>http://www.androidsnippets.com/basic-service-example-in-android</link><description>&lt;p&gt;Service -A Service is an application component representing either an application's desire to perform a longer-running operation while not interacting with the user or to supply functionality for other applications to use.&lt;/p&gt;
&lt;p&gt;Difference between a Thread , service and asynchronous task&lt;/p&gt;
&lt;p&gt;1)  Service is like an Activity but has no interface. Probably if you want to fetch the weather for example you won't create a blank activity for it, for this you will use a Service.&lt;/p&gt;
&lt;p&gt;2)  A Thread is a Thread, probably you already know it from other part. You need to know that you cannot update UI from a Thread. You need to use a Handler for this, but read further.&lt;/p&gt;
&lt;p&gt;3)  An AsyncTask is an intelligent Thread that is advised to be used. Intelligent as it can help with it's methods, and there are two methods that run on UI thread, which is good to update UI components &lt;br /&gt;
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;a target='_blank' rel='nofollow' href="http://androidtrainningcenter.blogspot.in/2012/04/simple-example-of-service-in-android.html"&gt;Continue Reading&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;</description><guid isPermaLink="true">http://www.androidsnippets.com/basic-service-example-in-android</guid><pubDate>Sat, 06 Sep 2003 21:31:00 GMT</pubDate></item><item><title>BaseAdapter PlaceHolder pattern</title><link>http://www.androidsnippets.com/baseadapter-placeholder-pattern</link><description>&lt;p&gt;Simple adapter which implements for you HolderPattern.&lt;/p&gt;</description><guid isPermaLink="true">http://www.androidsnippets.com/baseadapter-placeholder-pattern</guid><pubDate>Sat, 06 Sep 2003 21:31:00 GMT</pubDate></item><item><title>Lowongan Kerja Terbaru 2013</title><link>http://www.androidsnippets.com/lowongan-kerja-terbaru-2013</link><description>&lt;p&gt;&lt;strong&gt;&lt;a target='_blank' rel='nofollow' href="http://kerjawa.blogspot.com/"&gt;Lowongan Kerja Terbaru 2013&lt;/a&gt;&lt;/strong&gt;, Lowongan BANK, Lowongan BUMN, Lowongan CPNS 2013, Lowongan PERTAMINA, Lowongan TELKOM, Lowongan KERETA API, Lowongan ASTRA, Lowongan GURU seluruh Indonesia. &lt;/p&gt;</description><guid isPermaLink="true">http://www.androidsnippets.com/lowongan-kerja-terbaru-2013</guid><pubDate>Sat, 06 Sep 2003 21:31:00 GMT</pubDate></item><item><title>portrait for andriod</title><link>http://www.androidsnippets.com/portrait-for-andriod</link><description>&lt;p&gt;This is how you can set portrait for android&lt;/p&gt;</description><guid isPermaLink="true">http://www.androidsnippets.com/portrait-for-andriod</guid><pubDate>Sat, 06 Sep 2003 21:31:00 GMT</pubDate></item><item><title>Convert Bitmap to Grayscale</title><link>http://www.androidsnippets.com/convert-bitmap-to-grayscale</link><description>&lt;p&gt;Convert Bitmap to Grayscale&lt;/p&gt;</description><guid isPermaLink="true">http://www.androidsnippets.com/convert-bitmap-to-grayscale</guid><pubDate>Sat, 06 Sep 2003 21:31:00 GMT</pubDate></item><item><title>AlertDialog rating</title><link>http://www.androidsnippets.com/alertdialog-rating</link><description>&lt;p&gt;To class you need to add variable:&lt;/p&gt;
&lt;p&gt;AlertDialog alert;&lt;/p&gt;
&lt;p&gt;Code added to onCreate:&lt;/p&gt;</description><guid isPermaLink="true">http://www.androidsnippets.com/alertdialog-rating</guid><pubDate>Sat, 06 Sep 2003 21:31:00 GMT</pubDate></item><item><title>Get list of currently installed apps</title><link>http://www.androidsnippets.com/get-list-of-currently-installed-apps</link><description>&lt;p&gt;List out all of the user's installed applications in an activity.&lt;/p&gt;</description><guid isPermaLink="true">http://www.androidsnippets.com/get-list-of-currently-installed-apps</guid><pubDate>Sat, 06 Sep 2003 21:31:00 GMT</pubDate></item><item><title>Calculate average ARGB for Bitmap</title><link>http://www.androidsnippets.com/calculate-average-argb-for-bitmap</link><description>&lt;p&gt;The returned int[] stores the average {A, R, G, B} values.&lt;/p&gt;</description><guid isPermaLink="true">http://www.androidsnippets.com/calculate-average-argb-for-bitmap</guid><pubDate>Sat, 06 Sep 2003 21:31:00 GMT</pubDate></item><item><title>Display height and width</title><link>http://www.androidsnippets.com/display-height-and-width</link><description>&lt;p&gt;Retrieve height and width of the screen in pixels&lt;/p&gt;</description><guid isPermaLink="true">http://www.androidsnippets.com/display-height-and-width</guid><pubDate>Sat, 06 Sep 2003 21:31:00 GMT</pubDate></item><item><title>Simple FragmentActivity</title><link>http://www.androidsnippets.com/simple-fragmentactivity</link><description>&lt;p&gt;Example of using Fragments with xml layouts for better code management (by splitting ui from logic)&lt;/p&gt;</description><guid isPermaLink="true">http://www.androidsnippets.com/simple-fragmentactivity</guid><pubDate>Sat, 06 Sep 2003 21:31:00 GMT</pubDate></item><item><title>Create a fragment programmatically, using the support library</title><link>http://www.androidsnippets.com/create-a-fragment-programmatically-using-the-support-library2</link><description>&lt;p&gt;If you need to add, remove, or replace fragments at runtime, add them programmatically, rather than defining them in a layout file. Here the support library is used.&lt;/p&gt;</description><guid isPermaLink="true">http://www.androidsnippets.com/create-a-fragment-programmatically-using-the-support-library2</guid><pubDate>Sat, 06 Sep 2003 21:31:00 GMT</pubDate></item><item><title>Create a fragment programmatically, using the support library</title><link>http://www.androidsnippets.com/create-a-fragment-programmatically-using-the-support-library</link><description>&lt;p&gt;If you need to add, remove, or replace fragments at runtime, add them programmatically, rather than defining them in a layout file. Here the support library is used.&lt;/p&gt;</description><guid isPermaLink="true">http://www.androidsnippets.com/create-a-fragment-programmatically-using-the-support-library</guid><pubDate>Sat, 06 Sep 2003 21:31:00 GMT</pubDate></item><item><title>Create a fragment using the support library</title><link>http://www.androidsnippets.com/create-a-fragment-using-the-support-library</link><description>&lt;p&gt;Be sure to import the Fragment class from the support library and override onCreateView.&lt;/p&gt;</description><guid isPermaLink="true">http://www.androidsnippets.com/create-a-fragment-using-the-support-library</guid><pubDate>Sat, 06 Sep 2003 21:31:00 GMT</pubDate></item><item><title>React according to current layout</title><link>http://www.androidsnippets.com/react-according-to-current-layout</link><description>&lt;p&gt;Some actions may have a different result according to the current layout, for example, single pane or multipane.&lt;/p&gt;</description><guid isPermaLink="true">http://www.androidsnippets.com/react-according-to-current-layout</guid><pubDate>Sat, 06 Sep 2003 21:31:00 GMT</pubDate></item><item><title>Check the current layout</title><link>http://www.androidsnippets.com/check-the-current-layout</link><description>&lt;p&gt;Checks whether the current layout is single pane or multipane, by querying if a given view exists and is visible.&lt;/p&gt;</description><guid isPermaLink="true">http://www.androidsnippets.com/check-the-current-layout</guid><pubDate>Sat, 06 Sep 2003 21:31:00 GMT</pubDate></item><item><title>Adjust the color of a drawable</title><link>http://www.androidsnippets.com/adjust-the-color-of-a-drawable</link><description>&lt;p&gt;This algorithm applies a color (with alpha channel) over the base drawable.
I use it to color a map marker with a dynamically set color.&lt;/p&gt;</description><guid isPermaLink="true">http://www.androidsnippets.com/adjust-the-color-of-a-drawable</guid><pubDate>Sat, 06 Sep 2003 21:31:00 GMT</pubDate></item><item><title>Open twitter via Intent</title><link>http://www.androidsnippets.com/open-twitter-via-intent</link><description>&lt;p&gt;This code allows you to open user twitter feed by twitter app, if it exist, otherwise open in standard android app (ex. browser).&lt;/p&gt;</description><guid isPermaLink="true">http://www.androidsnippets.com/open-twitter-via-intent</guid><pubDate>Sat, 06 Sep 2003 21:31:00 GMT</pubDate></item><item><title>Reverse Geocoding</title><link>http://www.androidsnippets.com/reverse-geocoding2</link><description>&lt;p&gt;Here is a full example code using a Thread and a Handler to get the Geocoder answer without blocking the UI.&lt;/p&gt;
&lt;p&gt;Geocoder call procedure, can be located in a Helper class&lt;/p&gt;</description><guid isPermaLink="true">http://www.androidsnippets.com/reverse-geocoding2</guid><pubDate>Sat, 06 Sep 2003 21:31:00 GMT</pubDate></item><item><title>Reverse Geocoding</title><link>http://www.androidsnippets.com/reverse-geocoding</link><description>&lt;p&gt;Here is a full example code using a Thread and a Handler to get the Geocoder answer without blocking the UI.&lt;/p&gt;
&lt;p&gt;Geocoder call procedure, can be located in a Helper class&lt;/p&gt;</description><guid isPermaLink="true">http://www.androidsnippets.com/reverse-geocoding</guid><pubDate>Sat, 06 Sep 2003 21:31:00 GMT</pubDate></item></channel></rss>
