<?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/"
	>

<channel>
	<title>Start IT up &#187; Tanu</title>
	<atom:link href="http://www.techjini.com/blog/author/tanu/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.techjini.com/blog</link>
	<description>The blog of TechJini Solutions</description>
	<lastBuildDate>Fri, 30 Dec 2011 10:31:45 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Android Push Notification</title>
		<link>http://www.techjini.com/blog/2009/12/01/android-push-notification/</link>
		<comments>http://www.techjini.com/blog/2009/12/01/android-push-notification/#comments</comments>
		<pubDate>Tue, 01 Dec 2009 11:46:24 +0000</pubDate>
		<dc:creator>Tanu</dc:creator>
				<category><![CDATA[Tech Tips]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[java]]></category>

		<guid isPermaLink="false">http://www.techjini.com/blog/2009/12/01/android-push-notification/</guid>
		<description><![CDATA[<div class="addthis_toolbox addthis_default_style " addthis:url='http://www.techjini.com/blog/2009/12/01/android-push-notification/' addthis:title='Android Push Notification '  ><a class="addthis_button_facebook_like" fb:like:layout="button_count"></a><a class="addthis_button_tweet"></a><a class="addthis_button_google_plusone" g:plusone:size="medium"></a><a class="addthis_counter addthis_pill_style"></a></div>Push Notification: Push Notification allows an application to listen for messages being &#8216;pushed&#8217; to it from the server. Through Push<a href="http://www.techjini.com/blog/2009/12/01/android-push-notification/" class="searchmore">Read the Rest...</a><div class="clr"></div><div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://www.techjini.com/blog/2009/12/01/android-push-notification/' addthis:title='Android Push Notification ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></description>
			<content:encoded><![CDATA[<div class="addthis_toolbox addthis_default_style " addthis:url='http://www.techjini.com/blog/2009/12/01/android-push-notification/' addthis:title='Android Push Notification '  ><a class="addthis_button_facebook_like" fb:like:layout="button_count"></a><a class="addthis_button_tweet"></a><a class="addthis_button_google_plusone" g:plusone:size="medium"></a><a class="addthis_counter addthis_pill_style"></a></div><p><strong>Push Notification:</strong></p>
<p>Push Notification allows an application to listen for messages being &#8216;pushed&#8217; to it from the server.<br />
Through Push Notification, our apps can provide uses even when they aren&#8217;t running.</p>
<p><strong>Different techniques that could be used for push notifications in android:</strong></p>
<p><strong>1)Â  Polling:Â </strong> In this technique device is polling the server on a regular basis to see if there is anything there.</p>
<p><a href="http://www.techjini.com/blog/wp-content/uploads/2009/11/untitled.bmp" title="untitled.bmp"><img src="http://www.techjini.com/blog/wp-content/uploads/2009/11/untitled.bmp" alt="untitled.bmp" /></a></p>
<p>Polling that heavily just to check for notification is not a good idea,that would hurt battery life pretty badly after not too long.</p>
<p><strong>2)Â  Creating a service:</strong> In this technique service create a persistent connection to your server.<br />
This will also drain the phoneâ€™s battery and it will create problem on server side also if you had more users</p>
<p><strong>3)Â  SMS:</strong> In this method clients gets notified by SMS.</p>
<p><a href="http://www.techjini.com/blog/wp-content/uploads/2009/11/untitled2.bmp" title="untitled2.bmp"><img src="http://www.techjini.com/blog/wp-content/uploads/2009/11/untitled2.bmp" alt="untitled2.bmp" /></a></p>
<p>This technique is better as compare to other techniques because:</p>
<p>1) Transfer content as soon as available<br />
2) Save device battery<br />
3) Reduce data traffic for user</p>
<p><strong>Way to implement push via SMS:</strong></p>
<p>1) Your application should add permission in manifest :<br />
Permission:Â  &lt;uses-permission android:name=&#8221;android.permission.RECEIVE_SMS&#8221; /&gt;<br />
2) and Registers a BroadcastReceiver, either in the manifest XML or in Java, and will get control when the events occur.<br />
&lt;receiver android:name=&#8221;.ReceiverClass&#8221;&gt;<br />
&lt;intent-filter&gt;<br />
&lt;action android:name=&#8221;android.provider.Telephony.SMS_RECEIVED&#8221; /&gt;<br />
&lt;/intent-filter&gt;<br />
&lt;/receiver&gt;<br />
3) SMS Header may contain &#8220;app port&#8221; field that is dedicated range of free usable port numbers.Port handling not yet supported in Android 1.6.<br />
4) You&#8217;d have to parse the PDU and get the port from there manually, you can listen to all SMS messages, parse the PDU of each incoming message and see if the destination port<br />
matches the one that you are expecting. But so can other apps.so there&#8217;s no way to ensure that just one specific app gets to know about an incoming SMS to a specific port.<br />
5) After matching ports appliaction can handle notification with the help of notification manager.<br />
The problem with this method is that Android currently has no way to cancel the notification that is sent by the messaging app.So for every notification your app gets, the OS will also show a text message.</p>
<div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://www.techjini.com/blog/2009/12/01/android-push-notification/' addthis:title='Android Push Notification ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></content:encoded>
			<wfw:commentRss>http://www.techjini.com/blog/2009/12/01/android-push-notification/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>Android 1.6 Gestures</title>
		<link>http://www.techjini.com/blog/2009/10/08/android-16-gestures/</link>
		<comments>http://www.techjini.com/blog/2009/10/08/android-16-gestures/#comments</comments>
		<pubDate>Thu, 08 Oct 2009 15:07:10 +0000</pubDate>
		<dc:creator>Tanu</dc:creator>
				<category><![CDATA[android]]></category>
		<category><![CDATA[java]]></category>

		<guid isPermaLink="false">http://www.techjini.com/blog/2009/10/08/android-16-gestures/</guid>
		<description><![CDATA[<div class="addthis_toolbox addthis_default_style " addthis:url='http://www.techjini.com/blog/2009/10/08/android-16-gestures/' addthis:title='Android 1.6 Gestures '  ><a class="addthis_button_facebook_like" fb:like:layout="button_count"></a><a class="addthis_button_tweet"></a><a class="addthis_button_google_plusone" g:plusone:size="medium"></a><a class="addthis_counter addthis_pill_style"></a></div>Android 1.6 platform introduces entirely new gestures framework that finally lets developers build gestures into their apps using the new<a href="http://www.techjini.com/blog/2009/10/08/android-16-gestures/" class="searchmore">Read the Rest...</a><div class="clr"></div><div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://www.techjini.com/blog/2009/10/08/android-16-gestures/' addthis:title='Android 1.6 Gestures ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></description>
			<content:encoded><![CDATA[<div class="addthis_toolbox addthis_default_style " addthis:url='http://www.techjini.com/blog/2009/10/08/android-16-gestures/' addthis:title='Android 1.6 Gestures '  ><a class="addthis_button_facebook_like" fb:like:layout="button_count"></a><a class="addthis_button_tweet"></a><a class="addthis_button_google_plusone" g:plusone:size="medium"></a><a class="addthis_counter addthis_pill_style"></a></div><p>Android 1.6 platform introduces entirely new gestures framework that finally lets developers build gestures into their apps using the new GestureBuilder tool included in the SDK. Gestures framework provides application developers with a framework for creating, storing, loading, and recognizing gestures and associating them with specific actions.</p>
<p><strong>Need of Gestures:</strong><br />
Touch screens are a great way to interact with applications on mobile devices. With a touch screen, users can easily tap, drag, fling, or slide to quickly perform actions in their favorite applications. But it&#8217;s not always that easy for developers. With Android, it&#8217;s easy to recognize simple actions, like a swipe, but it&#8217;s much more difficult to handle complicated gestures, which also require developers to write a lot of code. In such a situation we can use gestures.This API, located in the new package android.gesture. </p>
<p>We decided to try it out and see how it works. For sample we made a list and used the &#8216;drag to dustbin&#8217; gesture to delete individual list items.</p>
<p>Step 1: Creating / defining our own gestures using GestureBuilder</p>
<p><a href='http://www.techjini.com/blog/wp-content/uploads/2009/10/gesturebuilder.png' title='GestureBuilder'><img src='http://www.techjini.com/blog/wp-content/uploads/2009/10/gesturebuilder.png' alt='GestureBuilder' /></a></p>
<p>Step 2: Copy the gesture file created by GestureBuilder from SD card and put it into &#8216;res/raw&#8217; folder of your project.</p>
<p>Step 3: Write code to handle the event generated by your gesture</p>
<p><a href='http://www.techjini.com/blog/wp-content/uploads/2009/10/step1.png' title='step1.png'><img src='http://www.techjini.com/blog/wp-content/uploads/2009/10/step1.png' alt='step1.png' /></a></p>
<p><a href='http://www.techjini.com/blog/wp-content/uploads/2009/10/step2.png' title='step2.png'><img src='http://www.techjini.com/blog/wp-content/uploads/2009/10/step2.png' alt='step2.png' /></a></p>
<div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://www.techjini.com/blog/2009/10/08/android-16-gestures/' addthis:title='Android 1.6 Gestures ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></content:encoded>
			<wfw:commentRss>http://www.techjini.com/blog/2009/10/08/android-16-gestures/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

