<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Amit Kumar Mondol&#039;s Blog</title>
	<atom:link href="http://amitku.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://amitku.wordpress.com</link>
	<description>Software Development</description>
	<lastBuildDate>Thu, 02 Feb 2012 08:58:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='amitku.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://0.gravatar.com/blavatar/6321e6ffabf4cd1c8d52b04a8470f698?s=96&#038;d=http%3A%2F%2Fs2.wp.com%2Fi%2Fbuttonw-com.png</url>
		<title>Amit Kumar Mondol&#039;s Blog</title>
		<link>http://amitku.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://amitku.wordpress.com/osd.xml" title="Amit Kumar Mondol&#039;s Blog" />
	<atom:link rel='hub' href='http://amitku.wordpress.com/?pushpress=hub'/>
		<item>
		<title>How to connect and access SQL Database server from Android app??</title>
		<link>http://amitku.wordpress.com/2011/08/03/how-to-connect-and-access-sql-database-server-from-android-app/</link>
		<comments>http://amitku.wordpress.com/2011/08/03/how-to-connect-and-access-sql-database-server-from-android-app/#comments</comments>
		<pubDate>Wed, 03 Aug 2011 11:56:38 +0000</pubDate>
		<dc:creator>amitku</dc:creator>
				<category><![CDATA[Android Application Development]]></category>
		<category><![CDATA[Android]]></category>
		<category><![CDATA[SQL Server]]></category>

		<guid isPermaLink="false">http://amitku.wordpress.com/?p=214</guid>
		<description><![CDATA[Recently I have tried to connect to SQL Database server which is in my local network machine. I can connect and access SQL server from my Android app. I did it in the following way&#8230;. 1. First of all you need a JDBC driver library for SQL Server. As we know android library has only [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=amitku.wordpress.com&amp;blog=11409172&amp;post=214&amp;subd=amitku&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Recently I have tried to connect to SQL Database server which is in my local network machine. I can connect and access SQL server from my Android app. I did it in the following way&#8230;.</p>
<p>1. First of all you need a JDBC driver library for SQL Server. As we know android library has only SQLite database driver. So first download an open source JDBC driver from this <a href="http://jtds.sourceforge.net/">http://jtds.sourceforge.net</a>/ site (I downloaded the Linux version).</p>
<p>2. Then import the jar file into your Android app.(jtds-1.2.5.jar).</p>
<p>3. Now just try this code by modifying according to your context<br />
<pre class="brush: java;">
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.Statement;

import net.sourceforge.jtds.jdbc.*;

public void query2()
{
Log.i(&quot;Android&quot;,&quot; MySQL Connect Example.&quot;);
Connection conn = null;
try {
String driver = &quot;net.sourceforge.jtds.jdbc.Driver&quot;;
Class.forName(driver).newInstance();
//test = com.microsoft.sqlserver.jdbc.SQLServerDriver.class;
String connString = &quot;jdbc:jtds:sqlserver://server_ip_address :1433/DBNAME;encrypt=fasle;user=xxxxxxxxx;password=xxxxxxxx;instance=SQLEXPRESS;&quot;;
String username = &quot;xxxxxx&quot;;
String password = &quot;xxxxxxxxxx&quot;;
conn = DriverManager.getConnection(connString,username,password);
Log.w(&quot;Connection&quot;,&quot;open&quot;);
Statement stmt = conn.createStatement();
ResultSet reset = stmt.executeQuery(&quot;select * from TableName&quot;);

//Print the data to the console
while(reset.next()){
Log.w(&quot;Data:&quot;,reset.getString(3));
//              Log.w(&quot;Data&quot;,reset.getString(2));
}
conn.close();

} catch (Exception e)
{
Log.w(&quot;Error connection&quot;,&quot;&quot; + e.getMessage());
}
}
</pre><br />
4. You will find more about parameter passing here in connection string  <a href="http://jtds.sourceforge.net/doc.html">http://jtds.sourceforge.net/doc.html</a> .</p>
<br />Filed under: <a href='http://amitku.wordpress.com/category/android-application-development/'>Android Application Development</a> Tagged: <a href='http://amitku.wordpress.com/tag/android/'>Android</a>, <a href='http://amitku.wordpress.com/tag/sql-server/'>SQL Server</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/amitku.wordpress.com/214/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/amitku.wordpress.com/214/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/amitku.wordpress.com/214/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/amitku.wordpress.com/214/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/amitku.wordpress.com/214/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/amitku.wordpress.com/214/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/amitku.wordpress.com/214/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/amitku.wordpress.com/214/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/amitku.wordpress.com/214/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/amitku.wordpress.com/214/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/amitku.wordpress.com/214/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/amitku.wordpress.com/214/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/amitku.wordpress.com/214/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/amitku.wordpress.com/214/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=amitku.wordpress.com&amp;blog=11409172&amp;post=214&amp;subd=amitku&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://amitku.wordpress.com/2011/08/03/how-to-connect-and-access-sql-database-server-from-android-app/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/08b982046eb1f3c9629b1cd9688a57d1?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">amitku</media:title>
		</media:content>
	</item>
		<item>
		<title>Android begining: Some problems those I faced when I started to develop android !!!</title>
		<link>http://amitku.wordpress.com/2011/07/29/android-begining-some-problems-those-i-faced-when-i-started-to-develop-android/</link>
		<comments>http://amitku.wordpress.com/2011/07/29/android-begining-some-problems-those-i-faced-when-i-started-to-develop-android/#comments</comments>
		<pubDate>Fri, 29 Jul 2011 06:08:24 +0000</pubDate>
		<dc:creator>amitku</dc:creator>
				<category><![CDATA[Android Application Development]]></category>
		<category><![CDATA[Android]]></category>

		<guid isPermaLink="false">http://amitku.wordpress.com/?p=208</guid>
		<description><![CDATA[I have been developing android application since last 8 months. During that time I faced a lot of weird problems which wasted a lot of time and created a lot mental pressure on me. No I always try to keep in mind on those things before coding for android application. Let&#8217;s discuss some of those [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=amitku.wordpress.com&amp;blog=11409172&amp;post=208&amp;subd=amitku&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I have been developing android application since last 8 months. During that time I faced a lot of weird problems which wasted a lot of time and created a lot mental pressure on me. No I always try to keep in mind on those things before coding for android application. Let&#8217;s discuss some of those things&#8230;..</p>
<p>1. First of all I faced problem when I tried to work with functionality which takes a lot of time to finish execution( i.e  parsing a web url response content). It caused ANR (application not responding). Android recommendation was to use asynchronus task for heavy process (<a href="http://developer.android.com/reference/android/os/AsyncTask.html">http://developer.android.com/reference/android/os/AsyncTask.html</a>) . It is really simple to understand. But as beginner I wasted time to figure out it.</p>
<p>2. Second problem was to update the UI from background function/thread. There is a nice technique for this, use <strong>runOnUiThread</strong>() method for updating the UI instead from background thread.</p>
<p>3. Most time wasting issue was working with networking on android device specially with WIFI. If you use wifi for net connection or communicate through wifi wireless device/router don&#8217;t forget to wait until there is valid DHCP is assigned to your android phone/device. I was tried to do stuff as soon as wifi is enabled checking the network is available. Though there is a method for checking network availablity that made me a real fool for a long period of time. It shows that network is available but still the valid DHCP is not assigned.</p>
<p>4. The most dangerous issue I faced was &#8220;Virtual machine memory budget issue&#8221;. I worked on multiple IP camera streaming. First stage of development memory budget issue was occurring frequently and the app was crashing unexpectedly. There were so many threads and about 4 input streaming is closed at the same time and I found that if the heap memory size exceeds more than 10 MB (<strong>Android 1.6</strong>) then memory issue occurs. So when working with stream and graphics care should be taken that the app doesn&#8217;t hold up much heap memory.</p>
<br />Filed under: <a href='http://amitku.wordpress.com/category/android-application-development/'>Android Application Development</a> Tagged: <a href='http://amitku.wordpress.com/tag/android/'>Android</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/amitku.wordpress.com/208/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/amitku.wordpress.com/208/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/amitku.wordpress.com/208/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/amitku.wordpress.com/208/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/amitku.wordpress.com/208/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/amitku.wordpress.com/208/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/amitku.wordpress.com/208/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/amitku.wordpress.com/208/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/amitku.wordpress.com/208/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/amitku.wordpress.com/208/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/amitku.wordpress.com/208/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/amitku.wordpress.com/208/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/amitku.wordpress.com/208/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/amitku.wordpress.com/208/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=amitku.wordpress.com&amp;blog=11409172&amp;post=208&amp;subd=amitku&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://amitku.wordpress.com/2011/07/29/android-begining-some-problems-those-i-faced-when-i-started-to-develop-android/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/08b982046eb1f3c9629b1cd9688a57d1?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">amitku</media:title>
		</media:content>
	</item>
		<item>
		<title>Necessary gem lists</title>
		<link>http://amitku.wordpress.com/2010/11/15/necessary-gem-lists/</link>
		<comments>http://amitku.wordpress.com/2010/11/15/necessary-gem-lists/#comments</comments>
		<pubDate>Mon, 15 Nov 2010 17:10:28 +0000</pubDate>
		<dc:creator>amitku</dc:creator>
				<category><![CDATA[gem]]></category>

		<guid isPermaLink="false">http://amitku.wordpress.com/?p=198</guid>
		<description><![CDATA[You are an experienced Ruby developer then you know most of the gems I have listed here.  But there are some gems which are awesome for scaling your Rails application in a better way &#8211; necessary to be an rails project leader. Lets take a look at some of them&#8230;.. hoptoad_notifier         [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=amitku.wordpress.com&amp;blog=11409172&amp;post=198&amp;subd=amitku&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>You are an experienced Ruby developer then you know most of the gems I have listed here.  But there are some gems which are awesome for scaling your Rails application in a better way &#8211; necessary to be an rails project leader.</p>
<p>Lets take a look at some of them&#8230;..</p>
<ul>
<li><span style="color:#333399;">hoptoad_notifier             # Exception notification</span></li>
<li><span style="color:#333399;">jammit                       # Asset bundler</span></li>
<li><span style="color:#333399;">bullet                       # Find n+1 eager loading issues in development</span></li>
<li><span style="color:#333399;">yajl-ruby               # Faster JSON parsing, utilized in Rails 2.3.6+ if available</span></li>
<li><span style="color:#333399;">paperclip                   # Image attachments (Note anything after v2.3.1 requires Ruby 1.8.7+) </span></li>
<li><span style="color:#333399;">mysql2                       # Woot! Much faster replacement for aging mysql adapter </span></li>
<li><span style="color:#333399;">resque                       # Redis-based background worker queue </span></li>
<li><span style="color:#333399;">resque_mailer                # Email sending from resque </span></li>
<li><span style="color:#333399;">delayed_paperclip            # Paperclip processing in the background</span></li>
</ul>
<p># Interface with the sphinx search daemon</p>
<ul>
<li><span style="color:#333399;">thinking-sphinx</span></li>
<li><span style="color:#333399;">ts-resque-delta</span></li>
</ul>
<br /> Tagged: <a href='http://amitku.wordpress.com/tag/gem/'>gem</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/amitku.wordpress.com/198/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/amitku.wordpress.com/198/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/amitku.wordpress.com/198/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/amitku.wordpress.com/198/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/amitku.wordpress.com/198/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/amitku.wordpress.com/198/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/amitku.wordpress.com/198/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/amitku.wordpress.com/198/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/amitku.wordpress.com/198/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/amitku.wordpress.com/198/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/amitku.wordpress.com/198/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/amitku.wordpress.com/198/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/amitku.wordpress.com/198/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/amitku.wordpress.com/198/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=amitku.wordpress.com&amp;blog=11409172&amp;post=198&amp;subd=amitku&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://amitku.wordpress.com/2010/11/15/necessary-gem-lists/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/08b982046eb1f3c9629b1cd9688a57d1?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">amitku</media:title>
		</media:content>
	</item>
	</channel>
</rss>
