<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/atom10full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><feed xmlns="http://www.w3.org/2005/Atom" xmlns:openSearch="http://a9.com/-/spec/opensearch/1.1/" xmlns:blogger="http://schemas.google.com/blogger/2008" xmlns:georss="http://www.georss.org/georss" xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr="http://purl.org/syndication/thread/1.0" gd:etag="W/&quot;AkUHQHo_cCp7ImA9WhBbGU4.&quot;"><id>tag:blogger.com,1999:blog-5475461039314973243</id><updated>2013-05-19T00:37:11.448-04:00</updated><category term="Toggle Button" /><category term="Location" /><category term="Get" /><category term="Hash" /><category term="Untrusted" /><category term="String" /><category term="Haversine" /><category term="Mint" /><category term="UIAlertView" /><category term="Windows" /><category term="SQLite" /><category term="RSA" /><category term="Request" /><category term="Job" /><category term="Abstract" /><category term="BroadcastReceiver" /><category term="Code" /><category term="ABF" /><category term="Rewrite" /><category term="Conditional" /><category term="Decryption" /><category term="Hex" /><category term="FTP" /><category term="Heading" /><category term="IntentService" /><category term="ExpandableListView" /><category term="ClassPath" /><category term="Cell" /><category term="iOS" /><category term="Apache" /><category term="UISwitch" /><category term="Prompt" /><category term="Insert" /><category term="Query" /><category term="Char" /><category term="UILabel" /><category term="UITextField" /><category term="TimePickerDialog" /><category term="UINavigationController" /><category term="Latitude" /><category term="Service" /><category term="Dictionary" /><category term="Plugin" /><category term="Shell Script" /><category term="CSS" /><category term="PDF" /><category term="Loop" /><category term="Value" /><category term="DatePickerDialog" /><category term="Zeros" /><category term="DataQueue" /><category term="Disable" /><category term="Line" /><category term="Tracking" /><category term="FEDEX" /><category term="SDK" /><category term="BIFs" /><category term="Tomcat" /><category term="IAS" /><category term="Layout" /><category term="VMware" /><category term="UIImageView" /><category term="Eclipse" /><category term="ViewFlipper" /><category term="Alpha" /><category term="Relative" /><category term="EditText" /><category term="Field" /><category term="Method" /><category term="Load" /><category term="Cursor" /><category term="DIV" /><category term="Parcelable" /><category term="Scan" /><category term="Event" /><category term="Put" /><category term="Random" /><category term="Python" /><category term="Post" /><category term="POI" /><category term="Email" /><category term="Program" /><category term="iframe" /><category term="Option" /><category term="ToolTip" /><category term="Encryption" /><category term="Tutorial" /><category term="Sort" /><category term="Keyboard" /><category term="CursorAdapter" /><category term="Pool" /><category term="CalendarView" /><category term="Toolbox" /><category term="Drop" /><category term="RPGLE" /><category term="Version" /><category term="AsyncTask" /><category term="Bouncy Castle" /><category term="Exception" /><category term="Hosting" /><category term="ScrollView" /><category term="Variables" /><category term="Parameter" /><category term="Record" /><category term="Convert" /><category term="Annotation" /><category term="Batch" /><category term="SSL" /><category term="Storage" /><category term="QR Code" /><category term="JSON" /><category term="mod_jk" /><category term="Spinner" /><category term="Preferences" /><category term="Servlet" /><category term="ListView" /><category term="alias" /><category term="Box" /><category term="Linear" /><category term="Base64" /><category term="Config" /><category term="UITabBarController" /><category term="CLP" /><category term="Create" /><category term="Restore" /><category term="Dialog" /><category term="BlueTooth" /><category term="Project" /><category term="Server" /><category term="xtype" /><category term="Connector" /><category term="CSV" /><category term="Data Area" /><category term="Statement" /><category term="Null" /><category term="DHL" /><category term="Google" /><category term="ExtJs" /><category term="Hello World" /><category term="JDBC" /><category term="Canvas" /><category term="Install" /><category term="Icon" /><category term="Click" /><category term="SXSSF" /><category term="Database" /><category term="Validation" /><category term="Linux" /><category term="Proxy" /><category term="UISlider" /><category term="Draw" /><category term="HSSF" /><category term="ViewController" /><category term="UITableView" /><category term="SHA-1" /><category term="Grid" /><category term="sp" /><category term="TableRow" /><category term="Double" /><category term="Store" /><category term="Directory" /><category term="Notification" /><category term="Encode" /><category term="EXCEL" /><category term="JSP" /><category term="SQL" /><category term="Integer" /><category term="Connection" /><category term="HTTPS" /><category term="Image" /><category term="Stored Procedure" /><category term="XSSF" /><category term="C" /><category term="Main" /><category term="Model" /><category term="Default" /><category term="Switch" /><category term="Delete" /><category term="Orientation" /><category term="Client" /><category term="HttpClient" /><category term="Progress Bar" /><category term="Focus" /><category term="Summary" /><category term="HTTP" /><category term="Telnet" /><category term="Text" /><category term="Formula" /><category term="Distance" /><category term="DOM" /><category term="Source" /><category term="SQLRPGLE" /><category term="Sencha Touch" /><category term="ComboBox" /><category term="Console" /><category term="List" /><category term="UIPickerView" /><category term="Bundle" /><category term="PC" /><category term="Decimal" /><category term="Parser" /><category term="StackTrace" /><category term="Error" /><category term="Manifest" /><category term="Qshell" /><category term="Class" /><category term="DataView" /><category term="jQuery" /><category term="MySQL" /><category term="UIButton" /><category term="TextToSpeech" /><category term="Barcode" /><category term="Decode" /><category term="URL" /><category term="XML" /><category term="External" /><category term="Replace" /><category term="Rename" /><category term="Enable" /><category term="Forward" /><category term="UISegmentedControl" /><category term="Select" /><category term="Objects" /><category term="SAX" /><category term="Jar" /><category term="SAVE" /><category term="Setup" /><category term="Color" /><category term="Maps" /><category term="JSONP" /><category term="View" /><category term="Read" /><category term="Panel" /><category term="Table" /><category term="Copy" /><category term="Tree" /><category term="DB2" /><category term="PreparedStatement" /><category term="Socket" /><category term="HTML" /><category term="Dynamic" /><category term="Union" /><category term="Debug" /><category term="Row" /><category term="Free" /><category term="iText" /><category term="Upload" /><category term="JavaScript" /><category term="Column" /><category term="UIDatePicker" /><category term="Numeric" /><category term="Activity" /><category term="Height" /><category term="Analytics" /><category term="iSeries" /><category term="Formats" /><category term="Measurement" /><category term="MVC" /><category term="IFS" /><category term="Binding" /><category term="Leading" /><category term="Button" /><category term="Trigger" /><category term="Date" /><category term="Byte Array" /><category term="SQL Server" /><category term="HashMap" /><category term="Paging" /><category term="Monitor" /><category term="Write" /><category term="Fetch" /><category term="Log4j" /><category term="PhoneGap" /><category term="Ajax" /><category term="autoComplete" /><category term="C++" /><category term="File" /><category term="Group" /><category term="WebView" /><category term="Function" /><category term="LANSA" /><category term="Localhost" /><category term="JSSE" /><category term="Chart" /><category term="IBM i" /><category term="Android" /><category term="Check" /><category term="Animation" /><category term="AS400" /><category term="Emulator" /><category term="Style" /><category term="Override" /><category term="Centos" /><category term="USPS" /><category term="Menu" /><category term="Signature" /><category term="Internet" /><category term="Find" /><category term="Library" /><category term="dp" /><category term="Radio" /><category term="TextWatcher" /><category term="Width" /><category term="qsort" /><category term="Search" /><category term="Java" /><category term="API" /><category term="Google App Engine" /><category term="UIScrollView" /><category term="Gson" /><category term="Binary" /><category term="Command" /><category term="Edit" /><category term="Browser" /><category term="CheckBox" /><category term="Syntax" /><category term="Sun" /><category term="Number" /><category term="Data" /><category term="Properties" /><category term="DSPATR" /><category term="On-Error" /><category term="Controller" /><category term="SubMenu" /><category term="Launcher" /><category term="dip" /><category term="Update" /><category term="UpperCase" /><category term="Time" /><category term="Listing" /><category term="Redirect" /><category term="UPS" /><category term="Longitude" /><category term="Compile" /><title>Programmers Sample Guide, help is on the way</title><subtitle type="html">&lt;i&gt;All one can think and do in a short time is to think what one already knows and to do as one has always done!&lt;/i&gt;</subtitle><link rel="http://schemas.google.com/g/2005#feed" type="application/atom+xml" href="http://www.mysamplecode.com/feeds/posts/default" /><link rel="alternate" type="text/html" href="http://www.mysamplecode.com/" /><link rel="next" type="application/atom+xml" href="http://www.blogger.com/feeds/5475461039314973243/posts/default?start-index=26&amp;max-results=25&amp;redirect=false&amp;v=2" /><author><name>BetterThanZero</name><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>524</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/atom+xml" href="http://feeds.feedburner.com/MySampleCode" /><feedburner:info xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" uri="mysamplecode" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><entry gd:etag="W/&quot;CU8CSX85eyp7ImA9WhBbFU0.&quot;"><id>tag:blogger.com,1999:blog-5475461039314973243.post-3291799432463630299</id><published>2013-05-13T23:57:00.002-04:00</published><updated>2013-05-13T23:57:48.123-04:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2013-05-13T23:57:48.123-04:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="PDF" /><category scheme="http://www.blogger.com/atom/ns#" term="iText" /><category scheme="http://www.blogger.com/atom/ns#" term="Android" /><category scheme="http://www.blogger.com/atom/ns#" term="Signature" /><title>Android generate PDF using iText and print to Bluetooth printer example</title><summary>In this example we are trying to achieve two things, first and foremost how to create a PDF programmtically from your android application data and second print it using a bluetooth printer so that we don't have to rely on internet connectivity. For the purpose of generating a PDF this tutorial is using iText for Android which is a licensed version of iText with reduced file size and functionality</summary><link rel="replies" type="application/atom+xml" href="http://www.mysamplecode.com/feeds/3291799432463630299/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.mysamplecode.com/2013/05/android-itext-pdf-bluetooth-printer.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/5475461039314973243/posts/default/3291799432463630299?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/5475461039314973243/posts/default/3291799432463630299?v=2" /><link rel="alternate" type="text/html" href="http://www.mysamplecode.com/2013/05/android-itext-pdf-bluetooth-printer.html" title="Android generate PDF using iText and print to Bluetooth printer example" /><author><name>BetterThanZero</name><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/-g6EGpIAVySc/UZGoVxe1m8I/AAAAAAAADRQ/_u3QiT4jsWI/s72-c/Android+PDF+using+iText+.png" height="72" width="72" /><thr:total>0</thr:total></entry><entry gd:etag="W/&quot;DE4BQX0zfSp7ImA9WhBbFks.&quot;"><id>tag:blogger.com,1999:blog-5475461039314973243.post-1925220607841776368</id><published>2013-05-09T00:06:00.000-04:00</published><updated>2013-05-15T21:15:50.385-04:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2013-05-15T21:15:50.385-04:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Android" /><category scheme="http://www.blogger.com/atom/ns#" term="Update" /><title>Android programmatically update application when a new version is available</title><summary>If you have apps that are hosted on your server and as time passes you make enhancements, fix bugs, etc. then comes the question how can I alert all my app users that a newer version is out there and make it real easy for them to download. You can email all your users with the link to the new version, that will be very cumbersome. Well that process needs to be built right into the app you deploy </summary><link rel="replies" type="application/atom+xml" href="http://www.mysamplecode.com/feeds/1925220607841776368/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.mysamplecode.com/2013/05/android-update-application.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/5475461039314973243/posts/default/1925220607841776368?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/5475461039314973243/posts/default/1925220607841776368?v=2" /><link rel="alternate" type="text/html" href="http://www.mysamplecode.com/2013/05/android-update-application.html" title="Android programmatically update application when a new version is available" /><author><name>BetterThanZero</name><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/-uJgMfSA3irc/UYsZpABgbpI/AAAAAAAADQk/3CThMpd0Fhg/s72-c/Android+update+application+programmatically.png" height="72" width="72" /><thr:total>0</thr:total></entry><entry gd:etag="W/&quot;CkEGQn89fyp7ImA9WhBUGE0.&quot;"><id>tag:blogger.com,1999:blog-5475461039314973243.post-7207882784132985192</id><published>2013-05-05T20:37:00.000-04:00</published><updated>2013-05-05T20:37:03.167-04:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2013-05-05T20:37:03.167-04:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Parser" /><category scheme="http://www.blogger.com/atom/ns#" term="HTTP" /><category scheme="http://www.blogger.com/atom/ns#" term="XML" /><category scheme="http://www.blogger.com/atom/ns#" term="iOS" /><title>iOS HTTP request and XML parsing example</title><summary>NSXMLParser is a SAX parser included by default in the iOS. Its pretty straight forward to use if you are familiar with any other SAX parsers. Basically it is a event driven process where as it comes across certain parts of the XML document that it will send notification to a specific function where you can take the necessary action to save that to either memory or SQLite database. Here we get </summary><link rel="replies" type="application/atom+xml" href="http://www.mysamplecode.com/feeds/7207882784132985192/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.mysamplecode.com/2013/05/ios-http-request-and-xml-parsing-example.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/5475461039314973243/posts/default/7207882784132985192?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/5475461039314973243/posts/default/7207882784132985192?v=2" /><link rel="alternate" type="text/html" href="http://www.mysamplecode.com/2013/05/ios-http-request-and-xml-parsing-example.html" title="iOS HTTP request and XML parsing example" /><author><name>BetterThanZero</name><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/-ic5NZfzNLNk/UYb1Py7DwvI/AAAAAAAADQE/kGdW26r-aZk/s72-c/iOS+HTTP+request+and+XML+parsing+example.png" height="72" width="72" /><thr:total>0</thr:total></entry><entry gd:etag="W/&quot;DUYHSXsycSp7ImA9WhBUFkQ.&quot;"><id>tag:blogger.com,1999:blog-5475461039314973243.post-2068106134852978127</id><published>2013-05-04T15:52:00.000-04:00</published><updated>2013-05-04T15:52:18.599-04:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2013-05-04T15:52:18.599-04:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Function" /><category scheme="http://www.blogger.com/atom/ns#" term="AS400" /><category scheme="http://www.blogger.com/atom/ns#" term="SQL" /><category scheme="http://www.blogger.com/atom/ns#" term="RPGLE" /><title>SQL User Defined Functions in iSeries(AS400)</title><summary>SQL comes with a lot of standard functions such as finding the maximum, minimum or distinct values for a column within a database table. But there comes a time when you wish that if you had that special function that will make your programming logic a piece of cake then you must take matters into your own hand and create your own SQL function. In this tutorial we are going to learn how to create </summary><link rel="replies" type="application/atom+xml" href="http://www.mysamplecode.com/feeds/2068106134852978127/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.mysamplecode.com/2013/05/sql-user-defined-functions-as400.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/5475461039314973243/posts/default/2068106134852978127?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/5475461039314973243/posts/default/2068106134852978127?v=2" /><link rel="alternate" type="text/html" href="http://www.mysamplecode.com/2013/05/sql-user-defined-functions-as400.html" title="SQL User Defined Functions in iSeries(AS400)" /><author><name>BetterThanZero</name><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 gd:etag="W/&quot;A0QDR34ycCp7ImA9WhBUEkU.&quot;"><id>tag:blogger.com,1999:blog-5475461039314973243.post-903452292338328194</id><published>2013-04-29T22:36:00.000-04:00</published><updated>2013-04-29T22:36:16.098-04:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2013-04-29T22:36:16.098-04:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="iOS" /><category scheme="http://www.blogger.com/atom/ns#" term="String" /><title>Objective C String concatenation example</title><summary>Well in any programming language this is considered one of important string manipulation functions and as simple as adding a plus sign between the two strings. Guess what its not that easy in Objective C, here is how to achieve string concatenation when using either NSString or NSMutableString classes.
#import &lt;Foundation/Foundation.h&gt;

int main(int argc, const char * argv[])
{

    @</summary><link rel="replies" type="application/atom+xml" href="http://www.mysamplecode.com/feeds/903452292338328194/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.mysamplecode.com/2013/04/objective-c-string-concatenation-example.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/5475461039314973243/posts/default/903452292338328194?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/5475461039314973243/posts/default/903452292338328194?v=2" /><link rel="alternate" type="text/html" href="http://www.mysamplecode.com/2013/04/objective-c-string-concatenation-example.html" title="Objective C String concatenation example" /><author><name>BetterThanZero</name><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 gd:etag="W/&quot;AkcGSXkzcCp7ImA9WhBVGEg.&quot;"><id>tag:blogger.com,1999:blog-5475461039314973243.post-3161649248264860894</id><published>2013-04-23T23:41:00.000-04:00</published><updated>2013-04-24T22:47:08.788-04:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2013-04-24T22:47:08.788-04:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="JSON" /><category scheme="http://www.blogger.com/atom/ns#" term="HTTP" /><category scheme="http://www.blogger.com/atom/ns#" term="iOS" /><title>iOS HTTP request and JSON parsing example</title><summary>This is a very basic requirement when you are doing mobile apps to get data from a remote server and then either display or save it for future use. There are two things that we need to accomplish, first make an HTTP request from the app and then parse the JSON response. The HTTP request is done using the NSURLConnection object and the JSON parsing is done with the help of NSJSONSerialization </summary><link rel="replies" type="application/atom+xml" href="http://www.mysamplecode.com/feeds/3161649248264860894/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.mysamplecode.com/2013/04/ios-http-request-and-json-parsing.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/5475461039314973243/posts/default/3161649248264860894?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/5475461039314973243/posts/default/3161649248264860894?v=2" /><link rel="alternate" type="text/html" href="http://www.mysamplecode.com/2013/04/ios-http-request-and-json-parsing.html" title="iOS HTTP request and JSON parsing example" /><author><name>BetterThanZero</name><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/-AhPnshj-OUY/UXdGRYmXVhI/AAAAAAAADPg/yWMcO0xMe4U/s72-c/iOS+HTTP+request+and+JSON+parsing+example.png" height="72" width="72" /><thr:total>0</thr:total></entry><entry gd:etag="W/&quot;Ak8CQnY_eyp7ImA9WhBVEUs.&quot;"><id>tag:blogger.com,1999:blog-5475461039314973243.post-1451285777358540619</id><published>2013-04-16T23:21:00.000-04:00</published><updated>2013-04-16T23:21:03.843-04:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2013-04-16T23:21:03.843-04:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Android" /><category scheme="http://www.blogger.com/atom/ns#" term="Version" /><title>Android display application version name programmatically</title><summary>You can get the app version from the PackageInfo class which contains all of the information collected from AndroidManifest.xml file. Check the link below for API reference to the PackageInfo class

http://developer.android.com/reference/android/content/pm/PackageInfo.html










Application Manifest file
&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;manifest xmlns:android="http://</summary><link rel="replies" type="application/atom+xml" href="http://www.mysamplecode.com/feeds/1451285777358540619/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.mysamplecode.com/2013/04/android-display-application-version.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/5475461039314973243/posts/default/1451285777358540619?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/5475461039314973243/posts/default/1451285777358540619?v=2" /><link rel="alternate" type="text/html" href="http://www.mysamplecode.com/2013/04/android-display-application-version.html" title="Android display application version name programmatically" /><author><name>BetterThanZero</name><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/-SR7jX2JsD0M/UW4G7dcrT3I/AAAAAAAADPQ/ZQn28AgfV_M/s72-c/Android+display+application+version+name+programmatically.png" height="72" width="72" /><thr:total>0</thr:total></entry><entry gd:etag="W/&quot;DUUCRXkyfip7ImA9WhBWF04.&quot;"><id>tag:blogger.com,1999:blog-5475461039314973243.post-7342347750006585167</id><published>2013-04-11T23:27:00.000-04:00</published><updated>2013-04-11T23:27:44.796-04:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2013-04-11T23:27:44.796-04:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Button" /><category scheme="http://www.blogger.com/atom/ns#" term="Android" /><category scheme="http://www.blogger.com/atom/ns#" term="Switch" /><title>Android switch button example</title><summary>A switch is type of button that can only have two states ON and OFF. You can set the initial state and then the user can change it. To get the current state you can check if the switch is checked or not, in addition to that you can attach a OnCheckedChangeListener to the switch to get notification when the state changes.












Android Screen Layout
&lt;RelativeLayout xmlns:android="http://</summary><link rel="replies" type="application/atom+xml" href="http://www.mysamplecode.com/feeds/7342347750006585167/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.mysamplecode.com/2013/04/android-switch-button-example.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/5475461039314973243/posts/default/7342347750006585167?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/5475461039314973243/posts/default/7342347750006585167?v=2" /><link rel="alternate" type="text/html" href="http://www.mysamplecode.com/2013/04/android-switch-button-example.html" title="Android switch button example" /><author><name>BetterThanZero</name><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/-fnTuVMaC2Xk/UWdvW8dCpKI/AAAAAAAADO4/Om8jTHDntmA/s72-c/Android+switch+button+OFF+state.png" height="72" width="72" /><thr:total>0</thr:total></entry><entry gd:etag="W/&quot;CkYDRXkyeSp7ImA9WhBWFkg.&quot;"><id>tag:blogger.com,1999:blog-5475461039314973243.post-4564218067540667580</id><published>2013-04-10T23:16:00.000-04:00</published><updated>2013-04-10T23:16:14.791-04:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2013-04-10T23:16:14.791-04:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Android" /><category scheme="http://www.blogger.com/atom/ns#" term="Internet" /><title>Android automatically detect internet connection status</title><summary>If you have an android application that needs to sync data with a backend server but doesn't need the internet to be available all the time for it to work then you must know at all times whether your app has access to internet or not. As soon as you have internet connection you can get latest data from the server or post any changes saved in your app using HTTP service. In this example we extend </summary><link rel="replies" type="application/atom+xml" href="http://www.mysamplecode.com/feeds/4564218067540667580/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.mysamplecode.com/2013/04/android-automatically-detect-internet-connection.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/5475461039314973243/posts/default/4564218067540667580?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/5475461039314973243/posts/default/4564218067540667580?v=2" /><link rel="alternate" type="text/html" href="http://www.mysamplecode.com/2013/04/android-automatically-detect-internet-connection.html" title="Android automatically detect internet connection status" /><author><name>BetterThanZero</name><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/-fExk2_U1GvU/UWYl5N032yI/AAAAAAAADOg/PWkDHeaMpIw/s72-c/Android+automatically+detect+internet+connection+status.png" height="72" width="72" /><thr:total>0</thr:total></entry><entry gd:etag="W/&quot;AkYGRXo6fCp7ImA9WhBWFEo.&quot;"><id>tag:blogger.com,1999:blog-5475461039314973243.post-3462715496463479981</id><published>2013-04-08T23:28:00.000-04:00</published><updated>2013-04-08T23:28:44.414-04:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2013-04-08T23:28:44.414-04:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="JSON" /><category scheme="http://www.blogger.com/atom/ns#" term="iOS" /><category scheme="http://www.blogger.com/atom/ns#" term="Objects" /><title>Convert custom iOS object to JSON string</title><summary>Well if you have done programming in Java you will find that its surprisingly difficult in Objective C to convert your Objects to JSON string. The iOS SDK does provide the NSJSONSerialization class so that you can convert Foundation objects to JSON but it comes with limitations.




An object that may be converted to JSON must have the following properties


The top level object is an NSArray or </summary><link rel="replies" type="application/atom+xml" href="http://www.mysamplecode.com/feeds/3462715496463479981/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.mysamplecode.com/2013/04/convert-custom-ios-object-to-json-string.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/5475461039314973243/posts/default/3462715496463479981?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/5475461039314973243/posts/default/3462715496463479981?v=2" /><link rel="alternate" type="text/html" href="http://www.mysamplecode.com/2013/04/convert-custom-ios-object-to-json-string.html" title="Convert custom iOS object to JSON string" /><author><name>BetterThanZero</name><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/-UPN9bUVv8ME/UWN8cefn6vI/AAAAAAAADOI/7maWhIY1sOI/s72-c/Convert+custom+iOS+object+to+JSON+string.png" height="72" width="72" /><thr:total>0</thr:total></entry><entry gd:etag="W/&quot;CUABQng7fCp7ImA9WhBWEU4.&quot;"><id>tag:blogger.com,1999:blog-5475461039314973243.post-2421894964258122490</id><published>2013-04-04T23:49:00.000-04:00</published><updated>2013-04-04T23:49:13.604-04:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2013-04-04T23:49:13.604-04:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="UITableView" /><category scheme="http://www.blogger.com/atom/ns#" term="iOS" /><title>iOS Table View Example</title><summary>UITableView class is used for display and editing List data similar to a ListView in Android. A table view is made up of zero or more sections, each with its own rows. Sections are identified by their index number within the table view, and rows are identified by their index number within a section. Any section can optionally be preceded by a section header, and optionally be followed by a </summary><link rel="replies" type="application/atom+xml" href="http://www.mysamplecode.com/feeds/2421894964258122490/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.mysamplecode.com/2013/04/ios-table-view-example.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/5475461039314973243/posts/default/2421894964258122490?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/5475461039314973243/posts/default/2421894964258122490?v=2" /><link rel="alternate" type="text/html" href="http://www.mysamplecode.com/2013/04/ios-table-view-example.html" title="iOS Table View Example" /><author><name>BetterThanZero</name><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/-kpcEHhPGRPI/UV45_2J-mPI/AAAAAAAADNw/wWHkYAkkC64/s72-c/iOS+Table+View+Example.png" height="72" width="72" /><thr:total>0</thr:total></entry><entry gd:etag="W/&quot;CkQNSHc_fyp7ImA9WhBXGUs.&quot;"><id>tag:blogger.com,1999:blog-5475461039314973243.post-1843039225538185924</id><published>2013-04-02T23:39:00.000-04:00</published><updated>2013-04-02T23:39:59.947-04:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2013-04-02T23:39:59.947-04:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Activity" /><category scheme="http://www.blogger.com/atom/ns#" term="Android" /><category scheme="http://www.blogger.com/atom/ns#" term="Menu" /><title>Android common menu options for multiple activities</title><summary>Android menu options provide user with actions and other options to choose from the action bar of the screen. Some of these actions are common to all the activities for your application, so instead of creating them in each of your activities you can create a BaseActivity that extends the Activity class and does all your menu processing. Then you can extend then base activity class in your </summary><link rel="replies" type="application/atom+xml" href="http://www.mysamplecode.com/feeds/1843039225538185924/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.mysamplecode.com/2013/04/android-common-menu-options.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/5475461039314973243/posts/default/1843039225538185924?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/5475461039314973243/posts/default/1843039225538185924?v=2" /><link rel="alternate" type="text/html" href="http://www.mysamplecode.com/2013/04/android-common-menu-options.html" title="Android common menu options for multiple activities" /><author><name>BetterThanZero</name><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/-mgNhMTJOWds/UVuJHYLWKbI/AAAAAAAADNQ/dafqKLAY_Ds/s72-c/Android+common+menu+options+for+multiple+activities.png" height="72" width="72" /><thr:total>0</thr:total></entry><entry gd:etag="W/&quot;D0YCQH85eip7ImA9WhBXEEg.&quot;"><id>tag:blogger.com,1999:blog-5475461039314973243.post-6752787397644448956</id><published>2013-03-23T12:12:00.000-04:00</published><updated>2013-03-23T12:12:41.122-04:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2013-03-23T12:12:41.122-04:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="IFS" /><category scheme="http://www.blogger.com/atom/ns#" term="iSeries" /><category scheme="http://www.blogger.com/atom/ns#" term="AS400" /><category scheme="http://www.blogger.com/atom/ns#" term="File" /><title>Find and Replace characters in IFS file on iSeries(AS400)</title><summary>Lets say you received a XML, CSV, TXT or any other type of file in the IFS directory and before processing the file and exporting the data to a DB2 database you want to manipulate it. Its very easy with the help of QSHELL sed command, here is how

&gt; echo 'Today is Monday' | sed "s/Mon/Sun/"  
  Today is Sunday                            
  $  


In the above example we are taking a string and </summary><link rel="replies" type="application/atom+xml" href="http://www.mysamplecode.com/feeds/6752787397644448956/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.mysamplecode.com/2013/03/find-and-replace-characters-in-ifs-file.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/5475461039314973243/posts/default/6752787397644448956?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/5475461039314973243/posts/default/6752787397644448956?v=2" /><link rel="alternate" type="text/html" href="http://www.mysamplecode.com/2013/03/find-and-replace-characters-in-ifs-file.html" title="Find and Replace characters in IFS file on iSeries(AS400)" /><author><name>BetterThanZero</name><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 gd:etag="W/&quot;C0cBQHk_eyp7ImA9WhBQFUU.&quot;"><id>tag:blogger.com,1999:blog-5475461039314973243.post-9084047885155159364</id><published>2013-03-18T00:30:00.000-04:00</published><updated>2013-03-18T00:30:51.743-04:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2013-03-18T00:30:51.743-04:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Color" /><category scheme="http://www.blogger.com/atom/ns#" term="ListView" /><category scheme="http://www.blogger.com/atom/ns#" term="Row" /><category scheme="http://www.blogger.com/atom/ns#" term="Android" /><title>Android SimpleCursorAdapter alternate Row Color example</title><summary>To change the background color of a row in ListView you have to use a custom Adapter. In this example we display a basic ListView from SQLite database using the SimpleCursorAdapter which by default doesn't have the zebra stripes on the rows. So to achieve our alternate colors for each row we extend the SimpleCursorAdapter to create a custom class and override the getView method.










Source </summary><link rel="replies" type="application/atom+xml" href="http://www.mysamplecode.com/feeds/9084047885155159364/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.mysamplecode.com/2013/03/android-simplecursoradapter-alternate-row-color.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/5475461039314973243/posts/default/9084047885155159364?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/5475461039314973243/posts/default/9084047885155159364?v=2" /><link rel="alternate" type="text/html" href="http://www.mysamplecode.com/2013/03/android-simplecursoradapter-alternate-row-color.html" title="Android SimpleCursorAdapter alternate Row Color example" /><author><name>BetterThanZero</name><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/-GCTSgHuzRKw/UUZlpFjj8II/AAAAAAAADM4/wpsXj6no7Fs/s72-c/Android+SimpleCursorAdapter+alternate+Row+Color+example.png" height="72" width="72" /><thr:total>0</thr:total></entry><entry gd:etag="W/&quot;D0MHSXk_eSp7ImA9WhBRGEs.&quot;"><id>tag:blogger.com,1999:blog-5475461039314973243.post-7453906411172116550</id><published>2013-03-09T16:43:00.000-05:00</published><updated>2013-03-09T16:43:58.741-05:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2013-03-09T16:43:58.741-05:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Java" /><category scheme="http://www.blogger.com/atom/ns#" term="Android" /><category scheme="http://www.blogger.com/atom/ns#" term="Parcelable" /><category scheme="http://www.blogger.com/atom/ns#" term="Objects" /><title>Android pass Object from one activity to another</title><summary>Passing Java Objects in Android is made easy by implementing the Parcelable interface. The With the help of the parcelable interface your can write your object to a parcel or read from a parcel, that way you can easily pass it around when calling the activity using bundles. In this example we have a ArrayList of Country objects that we use to display a ListView, so when the user taps on a given </summary><link rel="replies" type="application/atom+xml" href="http://www.mysamplecode.com/feeds/7453906411172116550/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.mysamplecode.com/2013/03/android-pass-object-another-activity.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/5475461039314973243/posts/default/7453906411172116550?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/5475461039314973243/posts/default/7453906411172116550?v=2" /><link rel="alternate" type="text/html" href="http://www.mysamplecode.com/2013/03/android-pass-object-another-activity.html" title="Android pass Object from one activity to another" /><author><name>BetterThanZero</name><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/-lJC_1hh0R8s/UTuoOUL3TrI/AAAAAAAADMY/8FEkJrnhNAA/s72-c/Android+pass+Object+from+one+activity+to+another.png" height="72" width="72" /><thr:total>0</thr:total></entry><entry gd:etag="W/&quot;CU4CRH8zcCp7ImA9WhBRF0w.&quot;"><id>tag:blogger.com,1999:blog-5475461039314973243.post-544432250426277132</id><published>2013-03-07T22:39:00.000-05:00</published><updated>2013-03-07T22:39:25.188-05:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2013-03-07T22:39:25.188-05:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Animation" /><category scheme="http://www.blogger.com/atom/ns#" term="ViewFlipper" /><category scheme="http://www.blogger.com/atom/ns#" term="Android" /><title>Android ViewFlipper Animation example</title><summary>ViewFlipper is a subclass of ViewAnimator that makes it easy to animate a bunch of views that are added to it. It only displays one child view at a time and you can also set it to rotate the views automatically. Just keep in mind that if you have duration set for your animation alpha then the flipper duration should be greater than that otherwise the view will change even before it completely </summary><link rel="replies" type="application/atom+xml" href="http://www.mysamplecode.com/feeds/544432250426277132/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.mysamplecode.com/2013/03/android-viewflipper-animation-example.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/5475461039314973243/posts/default/544432250426277132?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/5475461039314973243/posts/default/544432250426277132?v=2" /><link rel="alternate" type="text/html" href="http://www.mysamplecode.com/2013/03/android-viewflipper-animation-example.html" title="Android ViewFlipper Animation example" /><author><name>BetterThanZero</name><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/-UoBpvdi85vM/UTla314zorI/AAAAAAAADL4/G9Eejvy1RZ8/s72-c/Android+ViewFlipper+Animation+example.png" height="72" width="72" /><thr:total>0</thr:total></entry><entry gd:etag="W/&quot;A0YCRX8_fyp7ImA9WhBSGU4.&quot;"><id>tag:blogger.com,1999:blog-5475461039314973243.post-771447068380100492</id><published>2013-02-26T23:26:00.000-05:00</published><updated>2013-02-26T23:26:04.147-05:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2013-02-26T23:26:04.147-05:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="ExpandableListView" /><category scheme="http://www.blogger.com/atom/ns#" term="EditText" /><category scheme="http://www.blogger.com/atom/ns#" term="Android" /><title>Android ListView with EditText loses focus when the keyboard displays</title><summary>The issue is when you have a ListView or an ExpandableListView with input capable fields that displays the soft keyboard on focus, the EditText loses its focus for the first time but the second time it just works fine. The reason it happens is all the views are getting rendered again, so the EditText field object in the item row that used to be focused is now a completely different object.

You </summary><link rel="replies" type="application/atom+xml" href="http://www.mysamplecode.com/feeds/771447068380100492/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.mysamplecode.com/2013/02/android-edittext-listview-loses-focus.html#comment-form" title="2 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/5475461039314973243/posts/default/771447068380100492?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/5475461039314973243/posts/default/771447068380100492?v=2" /><link rel="alternate" type="text/html" href="http://www.mysamplecode.com/2013/02/android-edittext-listview-loses-focus.html" title="Android ListView with EditText loses focus when the keyboard displays" /><author><name>BetterThanZero</name><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 gd:etag="W/&quot;A0YER38-fyp7ImA9WhBSGU4.&quot;"><id>tag:blogger.com,1999:blog-5475461039314973243.post-6094622122769646322</id><published>2013-02-26T23:25:00.000-05:00</published><updated>2013-02-26T23:25:06.157-05:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2013-02-26T23:25:06.157-05:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Toggle Button" /><category scheme="http://www.blogger.com/atom/ns#" term="Android" /><title>Android Toggle Button example</title><summary>Toggle button looks like a button but works like a switch. You can choose to implement the same functionality using just 2 radio buttons or a single checkbox. Just like a checkbox a Toggle button has two states whether or not its checked. You can customize the Text for both states, defaults are ON/OFF.












Source for the Screen Layout
&lt;RelativeLayout xmlns:android="http://</summary><link rel="replies" type="application/atom+xml" href="http://www.mysamplecode.com/feeds/6094622122769646322/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.mysamplecode.com/2013/02/android-toggle-button-example.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/5475461039314973243/posts/default/6094622122769646322?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/5475461039314973243/posts/default/6094622122769646322?v=2" /><link rel="alternate" type="text/html" href="http://www.mysamplecode.com/2013/02/android-toggle-button-example.html" title="Android Toggle Button example" /><author><name>BetterThanZero</name><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/-10XjpYWjslE/US17XN6fvSI/AAAAAAAADI8/uZar5mAZetE/s72-c/Android+Toggle+Button+state+is+OFF.png" height="72" width="72" /><thr:total>0</thr:total></entry><entry gd:etag="W/&quot;DkADRH45fCp7ImA9WhBSE04.&quot;"><id>tag:blogger.com,1999:blog-5475461039314973243.post-288080960420895922</id><published>2013-02-19T23:32:00.000-05:00</published><updated>2013-02-19T23:32:55.024-05:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2013-02-19T23:32:55.024-05:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="View" /><category scheme="http://www.blogger.com/atom/ns#" term="Animation" /><category scheme="http://www.blogger.com/atom/ns#" term="Android" /><title>Android View Animation example</title><summary>Animations not only make your app look nice but sometimes its better to have a hidden view come in with a little transition to save space for the main functionality of the app. In this example we are going to review the Tween animation that can be defined in a XML format and performs transitions such as rotating, fading, moving, and stretching etc. You have to create a folder named anim inside </summary><link rel="replies" type="application/atom+xml" href="http://www.mysamplecode.com/feeds/288080960420895922/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.mysamplecode.com/2013/02/android-view-animation-example.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/5475461039314973243/posts/default/288080960420895922?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/5475461039314973243/posts/default/288080960420895922?v=2" /><link rel="alternate" type="text/html" href="http://www.mysamplecode.com/2013/02/android-view-animation-example.html" title="Android View Animation example" /><author><name>BetterThanZero</name><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/-hzNffTQRjLo/USRM0ENpjzI/AAAAAAAADHQ/ccQiShy1gHY/s72-c/Android+View+Animation+example.png" height="72" width="72" /><thr:total>0</thr:total></entry><entry gd:etag="W/&quot;CUUMQ3Y4fCp7ImA9WhBTGEw.&quot;"><id>tag:blogger.com,1999:blog-5475461039314973243.post-210622683353761586</id><published>2013-02-13T22:41:00.000-05:00</published><updated>2013-02-13T22:41:22.834-05:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2013-02-13T22:41:22.834-05:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Activity" /><category scheme="http://www.blogger.com/atom/ns#" term="Animation" /><category scheme="http://www.blogger.com/atom/ns#" term="Android" /><title>Android animation while switching activities</title><summary>When you start an activity or finish the current activity the transition between the activities can be animated using the method overridePendingTransition. You have to give the resource Id of the animation resource to use for the incoming activity and the outgoing activity. If you don't want to the provide any animation just pass 0 instead of the animation resource. In this example we will review</summary><link rel="replies" type="application/atom+xml" href="http://www.mysamplecode.com/feeds/210622683353761586/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.mysamplecode.com/2013/02/android-animation-switching-activity.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/5475461039314973243/posts/default/210622683353761586?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/5475461039314973243/posts/default/210622683353761586?v=2" /><link rel="alternate" type="text/html" href="http://www.mysamplecode.com/2013/02/android-animation-switching-activity.html" title="Android animation while switching activities" /><author><name>BetterThanZero</name><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/-WbgEkeagRfk/URxY-OnSZwI/AAAAAAAADFk/V-LzzFnSwE8/s72-c/Android+animation+calling+activity.png" height="72" width="72" /><thr:total>0</thr:total></entry><entry gd:etag="W/&quot;CUMDRnw6fyp7ImA9WhBTFU8.&quot;"><id>tag:blogger.com,1999:blog-5475461039314973243.post-1829439488520575049</id><published>2013-02-10T14:11:00.000-05:00</published><updated>2013-02-10T14:11:17.217-05:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2013-02-10T14:11:17.217-05:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="UIImageView" /><category scheme="http://www.blogger.com/atom/ns#" term="iOS" /><title>iOS create UIImageView programmatically</title><summary>UIImageView class provides a view container for displaying either a single image or for animating a series of images. In this example we are going to display an image inside a frame that is smaller in size. With the help of ContentMode UIViewContentModeScaleAspectFit we can scale the content to fit the size of the view by maintaining the aspect ratio. Please see the reference Guide for other </summary><link rel="replies" type="application/atom+xml" href="http://www.mysamplecode.com/feeds/1829439488520575049/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.mysamplecode.com/2013/02/ios-create-uiimageview-programmatically.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/5475461039314973243/posts/default/1829439488520575049?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/5475461039314973243/posts/default/1829439488520575049?v=2" /><link rel="alternate" type="text/html" href="http://www.mysamplecode.com/2013/02/ios-create-uiimageview-programmatically.html" title="iOS create UIImageView programmatically" /><author><name>BetterThanZero</name><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/-3tVLchhAIf4/URft7d-RguI/AAAAAAAADDw/IJ-O2pN0Urk/s72-c/iOS%2Bcreate%2BUIImageView%2Bprogrammatically.png" height="72" width="72" /><thr:total>0</thr:total></entry><entry gd:etag="W/&quot;DkUDQ3k6cCp7ImA9WhBTEkQ.&quot;"><id>tag:blogger.com,1999:blog-5475461039314973243.post-918225051730201865</id><published>2013-02-07T22:20:00.001-05:00</published><updated>2013-02-07T22:31:12.718-05:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2013-02-07T22:31:12.718-05:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="UITabBarController" /><category scheme="http://www.blogger.com/atom/ns#" term="iOS" /><title>iOS Tab Bar Controller example</title><summary>The UITabBarController class is a specialized view controller much like the tabs in your browser where each tab represents a specific view basically the site you are visiting. The tabs are created at the bottom of the window and each tab is associated with a specific view controller. Each tabs view can have its own look and feel as they may represent different functionality in your application. </summary><link rel="replies" type="application/atom+xml" href="http://www.mysamplecode.com/feeds/918225051730201865/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.mysamplecode.com/2013/02/ios-tab-bar-controller-example.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/5475461039314973243/posts/default/918225051730201865?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/5475461039314973243/posts/default/918225051730201865?v=2" /><link rel="alternate" type="text/html" href="http://www.mysamplecode.com/2013/02/ios-tab-bar-controller-example.html" title="iOS Tab Bar Controller example" /><author><name>BetterThanZero</name><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/-Qomc4fVqpuk/URRuqxpekZI/AAAAAAAADBY/Hmug51qlmME/s72-c/iOS%2BUITabBarController%2BFirst%2BTab.png" height="72" width="72" /><thr:total>0</thr:total></entry><entry gd:etag="W/&quot;DEYMSXw9fCp7ImA9WhNaEk8.&quot;"><id>tag:blogger.com,1999:blog-5475461039314973243.post-3299882464743449589</id><published>2013-01-26T13:49:00.003-05:00</published><updated>2013-01-26T13:49:48.264-05:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2013-01-26T13:49:48.264-05:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="UINavigationController" /><category scheme="http://www.blogger.com/atom/ns#" term="iOS" /><title>iOS Navigation View Controller example</title><summary>Similar to view controllers that can manage views, UINavigationController a specialized view controller that manages other view controllers to provide a hierarchical navigation for the user. Consider an ecommerce app where you have to drill down thru categories to find products can be easily implemented with help of a navigation view controller. A navigation controller can push a new view </summary><link rel="replies" type="application/atom+xml" href="http://www.mysamplecode.com/feeds/3299882464743449589/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.mysamplecode.com/2013/01/ios-navigation-view-controller-example.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/5475461039314973243/posts/default/3299882464743449589?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/5475461039314973243/posts/default/3299882464743449589?v=2" /><link rel="alternate" type="text/html" href="http://www.mysamplecode.com/2013/01/ios-navigation-view-controller-example.html" title="iOS Navigation View Controller example" /><author><name>BetterThanZero</name><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/-P3MKLxCIYOI/UQQSGm4wg2I/AAAAAAAAC_c/awwiehyrhf0/s72-c/iOS%2BNavigation%2BView%2BController%2BFirst%2BScreen.png" height="72" width="72" /><thr:total>0</thr:total></entry><entry gd:etag="W/&quot;CEcARXkyeCp7ImA9WhNbFEU.&quot;"><id>tag:blogger.com,1999:blog-5475461039314973243.post-4764911877404423629</id><published>2013-01-17T23:07:00.000-05:00</published><updated>2013-01-17T23:07:24.790-05:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2013-01-17T23:07:24.790-05:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="UISegmentedControl" /><category scheme="http://www.blogger.com/atom/ns#" term="iOS" /><title>iOS create UISegmentedControl programmatically</title><summary>A segmented control is a UI Component that display a series of buttons that are stuck to each other and displayed horizontally. You can relate this to a group of radio buttons on a HTML form where the user can make a choice. In this example we will learn the following

Create and initialize a UISegmentControl from an array list of Items
Set style for the segmented control
Default a specific </summary><link rel="replies" type="application/atom+xml" href="http://www.mysamplecode.com/feeds/4764911877404423629/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.mysamplecode.com/2013/01/ios-create-uisegmentedcontrol.html#comment-form" title="1 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/5475461039314973243/posts/default/4764911877404423629?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/5475461039314973243/posts/default/4764911877404423629?v=2" /><link rel="alternate" type="text/html" href="http://www.mysamplecode.com/2013/01/ios-create-uisegmentedcontrol.html" title="iOS create UISegmentedControl programmatically" /><author><name>BetterThanZero</name><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/-7RJTBXYftGs/UPjENaD5EjI/AAAAAAAAC9w/G8LGI12LpWU/s72-c/iOS%2Bcreate%2BUISegmentedControl%2Bprogrammatically.png" height="72" width="72" /><thr:total>1</thr:total></entry><entry gd:etag="W/&quot;DE8BRXo4eCp7ImA9WhNbEU4.&quot;"><id>tag:blogger.com,1999:blog-5475461039314973243.post-4728866017672447336</id><published>2013-01-13T23:14:00.000-05:00</published><updated>2013-01-13T23:14:14.430-05:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2013-01-13T23:14:14.430-05:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Java" /><category scheme="http://www.blogger.com/atom/ns#" term="Sencha Touch" /><category scheme="http://www.blogger.com/atom/ns#" term="DataView" /><title>Sencha Touch 2 DataView Example using Java Servlet and MySQL</title><summary>Sencha Touch Ext.DataView is the backbone of components such as Ext.dataview.List which helps the user to display a lot of repetitive data in a scrolling list. In this example we are going to learn how to use the DataView itself to display a List as well as some header information for that content using Xtemplate. The store data in JSON format comes from the MySQL database with the help of Java </summary><link rel="replies" type="application/atom+xml" href="http://www.mysamplecode.com/feeds/4728866017672447336/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.mysamplecode.com/2013/01/sencha-touch-2-dataview-java-example.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/5475461039314973243/posts/default/4728866017672447336?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/5475461039314973243/posts/default/4728866017672447336?v=2" /><link rel="alternate" type="text/html" href="http://www.mysamplecode.com/2013/01/sencha-touch-2-dataview-java-example.html" title="Sencha Touch 2 DataView Example using Java Servlet and MySQL" /><author><name>BetterThanZero</name><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/-BK7VmexsnSU/UPN8tpFm1sI/AAAAAAAAC8E/rh865pJc300/s72-c/Sencha%2BTouch%2B2%2BDataView%2BExample.png" height="72" width="72" /><thr:total>0</thr:total></entry></feed>
