<?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>Technology and Digital media</title>
	<atom:link href="http://tech.sarathdr.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://tech.sarathdr.com</link>
	<description>Internet, Digital media and Technology</description>
	<lastBuildDate>Thu, 23 May 2013 16:36:07 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.4.2</generator>
		<item>
		<title>Nokia Lumia 925 &#8211; release in the UK on June 13</title>
		<link>http://tech.sarathdr.com/featured/nokia-lumia-925-release-in-the-uk-on-june-13/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=nokia-lumia-925-release-in-the-uk-on-june-13</link>
		<comments>http://tech.sarathdr.com/featured/nokia-lumia-925-release-in-the-uk-on-june-13/#comments</comments>
		<pubDate>Thu, 23 May 2013 15:12:40 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[Featured]]></category>
		<category><![CDATA[Mobile]]></category>

		<guid isPermaLink="false">http://tech.sarathdr.com/?p=1121</guid>
		<description><![CDATA[Nokia is feeling the heat! From the repeated failures in the smart phone segment, they are alarmed about their survival. The very international global company is under threat due its low performance and constant layoffs.]]></description>
			<content:encoded><![CDATA[<p><script type="text/javascript"><!--
google_ad_client = "ca-pub-4270259223306626";
/* Lumia */
google_ad_slot = "7631248225";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script><br />
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script><br />
<a href="http://tech.sarathdr.com/wp-content/uploads/2013/05/Nokia-Lumia-9253.jpg"><img src="http://tech.sarathdr.com/wp-content/uploads/2013/05/Nokia-Lumia-9253.jpg" alt="Nokia Lumia 9253 Nokia Lumia 925   release in the UK on June 13 " title="Nokia-Lumia-925" width="387" height="287" class="alignright size-full wp-image-1147" /></a></p>
<p>Nokia is feeling the heat! From the repeated failures in the smart phone segment, they are alarmed about their survival. The very international global company is under threat due its low performance and constant layoffs. It seems that the company is slowly loosing its grip! In this context, their new phone in the smart phone series has so much of importance when Samsung Galaxy S4 storm has hit the market. This is an overview of Nokia Lumia 925 and its comparison with Samsung Galaxy S4.</p>
<p>The Nokia Lumia 925 <strong>weighs only 139 grams.</strong> The metal sheath has truly given it a fine look, precisely Aluminium. It’s very light. Rear is aluminum polycarbonate, the frame is aluminum wrapped.</p>
<h2>Camera</h2>
<p>The <strong>8.7-megapixel</strong> camera is at the rear, it has optical image stabilization with PureView moniker. The sensor is similar to the Lumia 920 , and major changes are in the design and weight. Micro-SIM slot is on the top, with the Micro USB port on the side and the bottom of the device have ports. The rear has a dual-LED flash and points for the wireless charging points.</p>
<h2>Screen</h2>
<p>Nokia has changed the screen to OLED from LCD with a screen size of <strong>4.5 inches</strong>, Covered with Gorilla Glass.</p>
<h1>Samsung S4 &#8211; Nokia Lumia 925 Comparison</h1>
<table>
<tr>
<td><strong>Device</strong></td>
<td><strong>Samsung Galaxy S4</strong> </td>
<td><strong>Nokia Lumia 925</strong></td>
</tr>
<tr>
<td><strong>Dimensions</strong></td>
<td>136.6&#215;69.8&#215;7.9mm, 130g </td>
<td>129&#215;70.6&#215;8.5mm, 139g </td>
</tr>
<tr>
<td><strong>Display</strong></td>
<td>5-inch Super AMOLED, 1920&#215;1080 pixels, 440ppi </td>
<td>4.5-inch IPS LCD, Nokia ClearBlack and PureMotion HD+, 1280&#215;768 pixels, 332ppi</td>
</tr>
<tr>
<td><strong>Camera</strong></td>
<td>13-megapixel, LED flash, 1080p video </td>
<td>8.7-megapixel PureView, dual-LED flash, Optical stabilization, 1080p video</td>
</tr>
<tr>
<tr>
<td><strong>Storage</strong></td>
<td>16GB/32GB/64GB, MicroSD up to 64GB</td>
<td>16GB</td>
</tr>
<tr>
<td><strong>Processor, RAM, Graphics</strong> </td>
<td>1.9GHz quad-core Qualcomm 600,2GB RAM, Adreno 320 GPU </td>
<td>1.5GHz dual-core Qualcomm Snapdragon S4, 1GB RAM, Adreno 225 GPU</td>
</tr>
<tr>
<td><strong>Operating System</strong></td>
<td>Android 4.2.2 Jelly Bean</td>
<td>Windows Phone 8</td>
</tr>
<tr>
<td><strong>UI</strong></td>
<td>TouchWiz</td>
<td>n/a</td>
</tr>
<tr>
<td><strong>Connectivity</strong></td>
<td>microUSB,Bluetooth,NFC,Wi-Fi,Wi-Fi Direct,Wi-Fi Hotspot,DLNA,4G,GPS,MHL</td>
<td>Bluetooth,microUSB,NFC,Wi-Fi,Wi-Fi Hotspot,DLNA,GPS,4G,HDMI</td>
</tr>
<tr>
<td><strong>Battery</strong></td>
<td>2,600mAh</td>
<td> 2,000mAh</td>
</tr>
</table>
<p>The Nokia Lumia 925 is a visual treat! Nokia has succeeded in making an impression about its build. Samsung Galaxy S4’s slippery build is not easy to handle. Nokia Lumia 925 is beautifully crafted. But, that is not enough…… Nokia display seems to be excellent it overshadows any other Windows smart phone, but Samsung S4 is the best for web browsing and multimedia purposes. So here Nokia and Samsung Galaxy S4 are good can&#8217;t say one is better than another.</p>
<p>Coming to the camera features.. S4 and Lumia have almost all the same features including the editing part, but, the quality of the images and videos are far better than S4. Built –in Pure view technology, will give Nokia more confidence. S4 is better than Nokia for gaming since it’s running on Android. Lumia do not have much Apps like S4 this cannot be considered as a drawback. The OS works smoothly and the preexisting apps are enough if you are not a hi-tech phone user.</p>
<p>16 GB of storage is common for both Lumia and S4, <strong>Lumia does not have the MicroSD capability </strong> which S4 has.</p>
<p>The Nokia Lumia 925 is supposed to be released on <strong>June 13 2013.</strong> O2 will be the exclusive distributor for the handset in the UK. The Nokia Corporation will be launching Lumia 925 first in the UK.</p>
<p><strong>If you want a phone with basic smart phone structures Nokia Lumia 925 will be the best. But if you are a person build for apps and gaming only S4 can satisfy you. Nokia is the Lumia 925 best in Windows phone. That is guaranteed</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://tech.sarathdr.com/featured/nokia-lumia-925-release-in-the-uk-on-june-13/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Eclipse crashes while you export apk in mac &#8211; Solution</title>
		<link>http://tech.sarathdr.com/tips/eclipse-crashes-while-you-export-apk-in-mac-solution/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=eclipse-crashes-while-you-export-apk-in-mac-solution</link>
		<comments>http://tech.sarathdr.com/tips/eclipse-crashes-while-you-export-apk-in-mac-solution/#comments</comments>
		<pubDate>Wed, 15 May 2013 16:58:19 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Android Apps]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[Android app]]></category>
		<category><![CDATA[android app development]]></category>
		<category><![CDATA[android app development tutorial]]></category>
		<category><![CDATA[Android application]]></category>

		<guid isPermaLink="false">http://tech.sarathdr.com/?p=1112</guid>
		<description><![CDATA[I have had a strange issue with eclipse IDE when exporting an android project as signed apk file in my mac. It quite often happens when you connect a device to your Mac. If you have the same issue, make sure you follow the below steps before you export. Step 1: Remove all connected android [...]]]></description>
			<content:encoded><![CDATA[<p>I have had a strange issue with eclipse IDE when exporting an android project as signed apk file in my mac. It quite often happens when you connect a device to your Mac. If you have the same issue, make sure you follow the below steps before you export. </p>
<p>     <strong>Step 1:</strong> Remove all connected android phone from your mac </p>
<p>     <strong>Step 2:</strong> Make sure that you have unchecked   Project ->Build Automatically </p>
<p><a href="http://tech.sarathdr.com/wp-content/uploads/2013/05/Screen-Shot-2013-05-15-at-17.29.55.png"><img src="http://tech.sarathdr.com/wp-content/uploads/2013/05/Screen-Shot-2013-05-15-at-17.29.55.png" alt="Screen Shot 2013 05 15 at 17.29.55 Eclipse crashes while you export apk in mac   Solution" title="Eclipse crashes while you export apk in mac - Solution" width="347" height="324" class="size-full wp-image-1113" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://tech.sarathdr.com/tips/eclipse-crashes-while-you-export-apk-in-mac-solution/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>4G Network across UK in a nutshell</title>
		<link>http://tech.sarathdr.com/featured/4g-network-across-uk-in-a-nutshell/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=4g-network-across-uk-in-a-nutshell</link>
		<comments>http://tech.sarathdr.com/featured/4g-network-across-uk-in-a-nutshell/#comments</comments>
		<pubDate>Fri, 10 May 2013 16:26:42 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[Featured]]></category>
		<category><![CDATA[Internet]]></category>
		<category><![CDATA[Mobile]]></category>
		<category><![CDATA[4G UK]]></category>
		<category><![CDATA[4G uk plans]]></category>
		<category><![CDATA[ipad 4g Plans]]></category>
		<category><![CDATA[iphone uk plans]]></category>
		<category><![CDATA[what is 4G]]></category>

		<guid isPermaLink="false">http://tech.sarathdr.com/?p=1090</guid>
		<description><![CDATA[4G is a data connection which makes your mobile device compatible in  sending and receiving emails, browsing the internet, playing games, downloading apps and music, etc. 4G network is more than the existing services,   4G network is actually as fast or faster than most home DSL and Cable internet connections. 4G, fourth generation of mobile [...]]]></description>
			<content:encoded><![CDATA[<p><script type="text/javascript"><!--
google_ad_client = "ca-pub-4270259223306626";
/* 4G - 468 */
google_ad_slot = "9971742623";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script><br />
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
<p>4G is a data connection which makes your mobile device compatible in  sending and receiving emails, browsing the internet, playing games, downloading apps and music, etc. 4G network is more than the existing services,   4G network is actually as fast or faster than most home DSL and Cable internet connections. 4G, fourth generation of mobile communications standards has created much hype and this will empower the browsing experience. </p>
<p>EE is the 4G provider in the UK, this cover 50% of the population. They will be covering 80 towns and cities across the UK. O2 and Vodafone also will be 4G providers soon. Although EE was the pioneer , Ofcom has now also awarded 4G spectrum licenses to Telefónica (O2), Vodafone, Hutchison 3G (Three), and Niche Spectrum Ventures (BT). Other service providers will be able to tap into these networks through partnerships.</p>
<h1>Handsets with 4G</h1>
<p><a href="http://tech.sarathdr.com/wp-content/uploads/2013/05/4G-Hand-sets-UK.jpg"><img src="http://tech.sarathdr.com/wp-content/uploads/2013/05/4G-Hand-sets-UK.jpg" alt="4G Hand sets UK 4G Network across UK in a nutshell " title="4G-Hand-sets-UK" width="382" height="302" class="alignright size-full wp-image-1099" /></a><br />
Apple iPhone 5<br />
BlackBerry Z10<br />
HTC One<br />
HTC One SV LTE<br />
HTC One XL<br />
Huawei Ascend P1 LTE,<br />
Nokia Lumia 920 LTE<br />
Samsung Galaxy S3 LTE,<br />
Samsung Galaxy Note II LTE<br />
Samsung Galaxy S4<br />
Sony Xperia SP<br />
Sony Xperia Z</p>
<h1>Cities with 4G Network</h1>
<p><a href="http://tech.sarathdr.com/wp-content/uploads/2013/05/cities-with-4g-networks-in-uk.jpg"><img src="http://tech.sarathdr.com/wp-content/uploads/2013/05/cities-with-4g-networks-in-uk.jpg" alt="cities with 4g networks in uk 4G Network across UK in a nutshell " title="cities-with-4g-networks-in-uk" width="250" height="231" class="alignright size-full wp-image-1101" /></a><br />
Birmingham<br />
Bristol<br />
Cardiff<br />
Edinburgh<br />
Glasgow<br />
Leeds<br />
Liverpool<br />
London<br />
Manchester<br />
Sheffield</p>
<p>The average speed  will double to around 20Mbps, with headline speeds of 80Mbps.</p>
<p>Average 4G download speed will be 8-12 Mbit/s (with potential maximum speeds of 40 Mbit/s). This is five times faster than the average 3G speed in the UK.</p>
<h1>Pay monthly Plans for 4G </h1>
<p>Plans include free unlimited calls and texts, with varying prices on the amount of data used The plans are limited and no unlimited plans are available</p>
<p>500MB for £36<br />
1GB for £41<br />
3GB for £46<br />
5GB for £51<br />
8GB for £56</p>
<h1>SIM-only plans for 4G:</h1>
<p>These plans are available in 4G phones from Orange, T-Mobile, iPhone 5, Carphone Warehouse or Phones4U.</p>
<p>500MB for £21<br />
1GB for £26<br />
3GB for £31<br />
5GB for £36</p>
<h1>iPad and iPad Mini</h1>
<p>The Apple iPad and iPad Mini are also available on the EE 4G.But it is going to be expensive<br />
iPad 4 16GB on 4GEE<br />
3GB £25.99 A MONTH 24 MONTH PLAN Device cost £249.99<br />
8GB £35.99 A MONTH 24 MONTH PLAN Device cost £149.99<br />
3GB £25.99 A MONTH 24 MONTH PLAN Device cost £149.99</p>
<h1>iPad Mini 16GB on 4GEE</h1>
<p>8GB £35.99 A MONTH 24 MONTH PLAN Device cost £49.99<br />
3GB £25.99 A MONTH 24 MONTH PLAN Device cost £149.99</p>
<p>H9GYCEXU8DZF</p>
]]></content:encoded>
			<wfw:commentRss>http://tech.sarathdr.com/featured/4g-network-across-uk-in-a-nutshell/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Convert database cursor result to Json Array &#8211; Android App Development</title>
		<link>http://tech.sarathdr.com/android-app/convert-database-cursor-result-to-json-array-android-app-development/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=convert-database-cursor-result-to-json-array-android-app-development</link>
		<comments>http://tech.sarathdr.com/android-app/convert-database-cursor-result-to-json-array-android-app-development/#comments</comments>
		<pubDate>Fri, 12 Apr 2013 11:20:06 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Android Apps]]></category>
		<category><![CDATA[android app development]]></category>
		<category><![CDATA[Convert cursor results to json array]]></category>
		<category><![CDATA[cursor to json array]]></category>
		<category><![CDATA[db results to json array]]></category>

		<guid isPermaLink="false">http://tech.sarathdr.com/?p=1077</guid>
		<description><![CDATA[Convert cursor database  results to json array - Android app development ]]></description>
			<content:encoded><![CDATA[<p>This might be use ful when you do some database applications with phonegap. Phonegap storage class could be some times slow and difficult handle. Then you can write a separate plugin to do the querying. If you use database raw queries you will get the results as cursor data structure. The below code converts that to json array.</p>
<div class="wp_syntax">
<table>
<tr>
<td class="line_numbers">
<pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
</pre>
</td>
<td class="code">
<pre class="java" style="font-family:monospace;">&nbsp;
function JSONArray getResults<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
&nbsp;
<span style="color: #003399;">String</span> myPath <span style="color: #339933;">=</span> DB_PATH <span style="color: #339933;">+</span> DB_NAME<span style="color: #339933;">;</span><span style="color: #666666; font-style: italic;">// Set path to your database</span>
&nbsp;
&nbsp;
SQLiteDatabase myDataBase <span style="color: #339933;">=</span> SQLiteDatabase.<span style="color: #006633;">openDatabase</span><span style="color: #009900;">&#40;</span>myPath, <span style="color: #000066; font-weight: bold;">null</span>, SQLiteDatabase.<span style="color: #006633;">OPEN_READONLY</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
&nbsp;
<span style="color: #003399;">String</span> searchQuery <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;SELECT  * FROM &lt;table_name&gt;&quot;</span><span style="color: #339933;">;</span>
<span style="color: #003399;">Cursor</span> cursor <span style="color: #339933;">=</span> myDataBase.<span style="color: #006633;">rawQuery</span><span style="color: #009900;">&#40;</span>searchQuery, <span style="color: #000066; font-weight: bold;">null</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
JSONArray resultSet 	<span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> JSONArray<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> 
JSONObject returnObj 	<span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> JSONObject<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
cursor.<span style="color: #006633;">moveToFirst</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">while</span> <span style="color: #009900;">&#40;</span>cursor.<span style="color: #006633;">isAfterLast</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">==</span> <span style="color: #000066; font-weight: bold;">false</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
&nbsp;
       	    <span style="color: #000066; font-weight: bold;">int</span> totalColumn <span style="color: #339933;">=</span> cursor.<span style="color: #006633;">getColumnCount</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
       	    JSONObject rowObject <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> JSONObject<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
       	    <span style="color: #000000; font-weight: bold;">for</span><span style="color: #009900;">&#40;</span> <span style="color: #000066; font-weight: bold;">int</span> i<span style="color: #339933;">=</span><span style="color: #cc66cc;">0</span> <span style="color: #339933;">;</span>  i<span style="color: #339933;">&lt;</span> totalColumn <span style="color: #339933;">;</span> i<span style="color: #339933;">++</span> <span style="color: #009900;">&#41;</span>
       	    <span style="color: #009900;">&#123;</span>
       	    	<span style="color: #000000; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span> cursor.<span style="color: #006633;">getColumnName</span><span style="color: #009900;">&#40;</span>i<span style="color: #009900;">&#41;</span> <span style="color: #339933;">!=</span> <span style="color: #000066; font-weight: bold;">null</span> <span style="color: #009900;">&#41;</span> 
       	    	<span style="color: #009900;">&#123;</span>
&nbsp;
       	    		<span style="color: #000000; font-weight: bold;">try</span> 
       	    		<span style="color: #009900;">&#123;</span>
&nbsp;
	       	    		<span style="color: #000000; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span> cursor.<span style="color: #006633;">getString</span><span style="color: #009900;">&#40;</span>i<span style="color: #009900;">&#41;</span> <span style="color: #339933;">!=</span> <span style="color: #000066; font-weight: bold;">null</span> <span style="color: #009900;">&#41;</span>
	           	    	<span style="color: #009900;">&#123;</span>
	           	    		Log.<span style="color: #006633;">d</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;TAG_NAME&quot;</span>, cursor.<span style="color: #006633;">getString</span><span style="color: #009900;">&#40;</span>i<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	           	    		rowObject.<span style="color: #006633;">put</span><span style="color: #009900;">&#40;</span>cursor.<span style="color: #006633;">getColumnName</span><span style="color: #009900;">&#40;</span>i<span style="color: #009900;">&#41;</span> ,  cursor.<span style="color: #006633;">getString</span><span style="color: #009900;">&#40;</span>i<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	           	    	<span style="color: #009900;">&#125;</span>
	           	    	<span style="color: #000000; font-weight: bold;">else</span>
	           	    	<span style="color: #009900;">&#123;</span>
	           	    		rowObject.<span style="color: #006633;">put</span><span style="color: #009900;">&#40;</span> cursor.<span style="color: #006633;">getColumnName</span><span style="color: #009900;">&#40;</span>i<span style="color: #009900;">&#41;</span> ,  <span style="color: #0000ff;">&quot;&quot;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> 
	           	    	<span style="color: #009900;">&#125;</span>
       	    		<span style="color: #009900;">&#125;</span>
       	    		<span style="color: #000000; font-weight: bold;">catch</span><span style="color: #009900;">&#40;</span> <span style="color: #003399;">Exception</span> e <span style="color: #009900;">&#41;</span>
       	    		<span style="color: #009900;">&#123;</span>
       	    			Log.<span style="color: #006633;">d</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;TAG_NAME&quot;</span>, e.<span style="color: #006633;">getMessage</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>  <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
       	    		<span style="color: #009900;">&#125;</span>
       	    	<span style="color: #009900;">&#125;</span>
&nbsp;
       	    <span style="color: #009900;">&#125;</span>
&nbsp;
       	    resultSet.<span style="color: #006633;">put</span><span style="color: #009900;">&#40;</span>rowObject<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
       	    cursor.<span style="color: #006633;">moveToNext</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #009900;">&#125;</span>
&nbsp;
		cursor.<span style="color: #006633;">close</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> 
		Log.<span style="color: #006633;">d</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;TAG_NAME&quot;</span>, resultSet.<span style="color: #006633;">toString</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #000000; font-weight: bold;">return</span> resultSet<span style="color: #339933;">;</span> 
&nbsp;
<span style="color: #009900;">&#125;</span></pre>
</td>
</tr>
</table>
</div>
]]></content:encoded>
			<wfw:commentRss>http://tech.sarathdr.com/android-app/convert-database-cursor-result-to-json-array-android-app-development/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Get to know Samsung Galaxy S4 &#8211; UK release 26 April – Review</title>
		<link>http://tech.sarathdr.com/featured/get-to-know-samsung-galaxy-s4-uk-release-26-april-review/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=get-to-know-samsung-galaxy-s4-uk-release-26-april-review</link>
		<comments>http://tech.sarathdr.com/featured/get-to-know-samsung-galaxy-s4-uk-release-26-april-review/#comments</comments>
		<pubDate>Mon, 08 Apr 2013 15:17:16 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[Featured]]></category>
		<category><![CDATA[Internet]]></category>
		<category><![CDATA[Mobile]]></category>
		<category><![CDATA[samsung galaxy s4 price]]></category>
		<category><![CDATA[samsung galaxy s4 review]]></category>
		<category><![CDATA[samsung galaxy uk launch]]></category>
		<category><![CDATA[samsung glaxy s4 uk]]></category>

		<guid isPermaLink="false">http://tech.sarathdr.com/?p=1056</guid>
		<description><![CDATA[After so much of ambiguity, Samsung Electronics launched their new Smartphone in galaxy series in this April. Named as Samsung Galaxy S4 looks similar to Samsung Galaxy S3.]]></description>
			<content:encoded><![CDATA[<p>After so much of ambiguity, Samsung Electronics launched their new Smartphone in galaxy series in this April. Named as Samsung Galaxy S4 looks similar to Samsung Galaxy S 3. But it’s faster twice than its predecessor. Same thing they claim against Apple  iPhone 5 and Blackberry Z10.</p>
<p><a href="http://tech.sarathdr.com/wp-content/uploads/2013/04/samsung-galaxy-s4.png"><img src="http://tech.sarathdr.com/wp-content/uploads/2013/04/samsung-galaxy-s4.png" alt="samsung galaxy s4 Get to know Samsung Galaxy S4   UK release 26 April – Review " title="samsung-galaxy-s4-review" width="625" height="183" class="aligncenter size-full wp-image-1063" /></a><br />
It may look similar to Samsung Galaxy S3 , but wait, it has more in it.</p>
<h1><b>Key Features</b></h1>
<ul>
<li>•	Compared to Samsung Galaxy S3, Samsung Galaxy S4 is little bigger. With  a screen size of 4.99mm, it is 5mm longer than  Samsung Galaxy S3 and 1mm slimmer than Samsung Galaxy S3. They have not changed the basic design of  the Samsung Galaxy S3. Hopefully they did not want to take a risk. The phone weighs 130 grams, it is not that lighter than S3.  It is built on Android 4.2.2. IR blaster to control any television set which uses infrared remote cannot be seen as a specification.</li>
<li>4.99 super AMOLED (<strong>Active-Matrix Organic Light-Emitting Diode</strong> )display  is awesome. AMOLED display is highly used in mobiles and televisions. Super AMOLED  is the term coined by Samsung.  FULL HD resolution 1,920&#215;1,080 can be the one of the best things about Samsung Galaxy S4. Samsung Galaxy S4 gives 441ppi. Pixel density. A next-gen, 1.9 GHz quad-core processor with integrated LTE modem (for the U.S. market), a 5-inch Full HD Super AMOLED display with 441 ppi density and Gorilla Glass 3. Gorilla Glass 3 protects from all the scratch marks.</li>
<li><strong>2600 mAh battery</strong><br />
It is 5000 mAh  bigger than  Samsung Galaxy S3’ s battery. It is bigger than batteries of other Smartphones as well battery with built in NFC ( Near Field Communication) and with 2GB memory. And Samsung Galaxy S4 is powered with quad-core Exynos 5400 chipset.</p>
</li>
<li><strong>Storage Capacity</strong><br />
With 2 GB of memory, Samsung Galaxy S4 is available with storage capacity of 16GB, 32GB and 64GB, it&#8217;s expandable by up to 64GB via the MicroSD card slot.</li>
<li><strong>Camera </strong>
<p>The upgraded camera is if 13 mega pixel , with flash but they have supported the camera with Backside-illuminated (BSI) sensor for better low-light sensitivity. The front camera is with 2 mega pixel. You can make use of the video-calling with Samsung dual camera mode. This feature helps you to superimpose yourself as in floating videos. The smart pause feature helps you to pause the video when you look away from the screen and when you look back at it it continues. Smart pause can be better defined as facial recognition. Another feature of Drama shot gives you the all the actions in a single frame.
</li>
<li><strong>Eraser </strong><br />
With<strong> </strong>this feature you can erase an unwanted image from the picture you  have captured .It helps yu to clear the background images and it gives you the image which you want.</li>
<li><strong>S Health</strong><br />
Everyone has become health conscious and Samsung Galaxy  S4 has a brilliant app to track the health and fitness. It has a built in pedometer to track the number of your steps. Sensors in the phone measure the temperature where you are in .An integrated diet tracking feature , It gives you the calorie of food items you want to take. It provides  a database of common food items .There is a heart rate monitoring system too. S Health can be synced with third party blood pressure and glucose meters. That is over the Bluetooth.</p>
<li><strong>S Translator</strong><br />
It helps the users translate language .This can be mainly used when the user is travelling. It supports 10 languages Chinese, UK English, US English, French, German, Italian, Japanese, Korean, Portuguese, and Spanish. It can translate two languages at the  same time</p>
<li><strong>Text reader</strong><br />
Text reader will scan the text and convert it Through Optical Character Recognition. It works on QR ( quick response ) code .This is good for scanning business cards.</li>
</ul>
<h1>Comparison  with Samsung Galaxy  S3 </strong></p>
<p><a href="http://tech.sarathdr.com/wp-content/uploads/2013/04/Samsung-Galaxy-s4-and-S3-Compare.png"><img src="http://tech.sarathdr.com/wp-content/uploads/2013/04/Samsung-Galaxy-s4-and-S3-Compare.png" alt="Samsung Galaxy s4 and S3 Compare Get to know Samsung Galaxy S4   UK release 26 April – Review " title="Samsung-Galaxy-s4-and-S3-Compare" width="625" height="183" class="aligncenter size-full wp-image-1066" /></a></p>
<h2>Design</h2>
<p>Samsung Galaxy  S4 is the bigger version of Samsung Galaxy S3. Both look  same in almost all ways .Home button’s shape has little changed. Height of both models are same , but the width of Samsung Galaxy S4 is being reduced by 0.8 mm. Samsung Galaxy S4 is slimmer and lighter.</p>
<h2>Screen</h2>
<p>The resolution has been increased 1080x1920in s4 when Samsung GalaxyS3’s resolution is 720&#215;1280.S4 s screen size is 5 inches while Samsung Galaxy S3 s is 4.8-inch.</p>
<h2>Processor</h2>
<p>Samsung Galaxy S3 s processor was1.4GHz Exynos 4 Quad truly a hardcore chip. The base was  ARM Cortex-A9 architecture. S4  outshines with Exynos 5 Octa processor. An 8 core chip , that to first in any smart phone. With four Cortex-A15 cores clocked at 1.6GHz. Remaining four out of 8 are Cortex-A7s clocked at 1.2GHz.This is for power saving and smaller tasks  .RAM  is improved to 2 GB in 4 compared 1 GB in Samsung Galaxy S3</p>
<h2>Storage</h2>
<p>Storage is almost the same with Samsung Galaxy S3 . A MicroSD card slot and 16GB, 32GB and 64GB models.</p>
<h2>Cameras</h2>
<p>Samsung Galaxy S3’S 8 MP camera was replaced  with 13Mp rear facing camera and 2.1MP front facing camera. When it comes to the video recording 720 p of S3 will not be effective as 1080p of Samsung Galaxy S4 FULLHD.</p>
<h2>Software</h2>
<p>Samsung Galaxy S3 RUNS IN Android 4.1.2 Jelly Bean, and Samsung Galaxy S4 in version 4.2.2. Not much changes in software.</p>
<h2>Battery</h2>
<p>Galaxy Samsung Galaxy S3&#8242;s 2100mAh battery and Samsung Galaxy S4 IS 2600m Ah</p>
<h1>Samsung Galaxy S4 iPhone  5 COMPARISON</h1>
<p><a href="http://tech.sarathdr.com/wp-content/uploads/2013/04/Samsung-s4-and-iphone5-comparison.png"><img src="http://tech.sarathdr.com/wp-content/uploads/2013/04/Samsung-s4-and-iphone5-comparison.png" alt="Samsung s4 and iphone5 comparison Get to know Samsung Galaxy S4   UK release 26 April – Review " title="Samsung-s4-and-iphone5-comparison" width="625" height="183" class="aligncenter size-full wp-image-1070" /></a></p>
<p>It would not be a surprise when it says Samsung Galaxy S4 outshines. iPhone 5 in each and every feature .Somebody was sharing that it Samsung Galaxy S4 S4 can never be compared with iPhones forthcoming series. The Samsung Galaxy  S4 is Hitech than iPhone 5. The Samsung Galaxy S4 is best in picture quality , pixel density , and better camera. The 441 pin, 5-inch, 1920 x 1080 display of the Samsung Galaxy S4 is better than the retina display on iPhone 5. IPhone screen with 1136 x 640 resolution and 326 ppi density can never be compared with Samsung Galaxy S4.</p>
<p>But when comes to the shape Apple iPhone is quite handy but Samsung Galaxy S4 is a little difficult to handle with one hand. The final impression is apple’s plus points are only its built ins and the thin shape</p>
<h1>User views and market opinions </h1>
<p>The Samsung Galaxy S4 does not bring any whirlwind into the market so far.People have not admitted their claims .Most people are looking at Samsung Galaxy S3 only .But time can only say what is going to happen since it is yet to launch in other places also.</p>
]]></content:encoded>
			<wfw:commentRss>http://tech.sarathdr.com/featured/get-to-know-samsung-galaxy-s4-uk-release-26-april-review/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hide Icons in Mac Desktop</title>
		<link>http://tech.sarathdr.com/internet/hide-icons-in-mac-desktop/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=hide-icons-in-mac-desktop</link>
		<comments>http://tech.sarathdr.com/internet/hide-icons-in-mac-desktop/#comments</comments>
		<pubDate>Wed, 03 Apr 2013 14:42:17 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[hide desktop icons mac]]></category>
		<category><![CDATA[hide icons]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[mac osx]]></category>

		<guid isPermaLink="false">http://tech.sarathdr.com/?p=1049</guid>
		<description><![CDATA[This will be an useful tip to all Mac users. Please run the  below commands from command prompt. This will hide all the icons from the desktop. ]]></description>
			<content:encoded><![CDATA[<p>This will be an useful tip to all Mac users. Please run the  below commands from command prompt. This will hide all the icons from the desktop.</p>
<div class="wp_syntax">
<table>
<tr>
<td class="line_numbers">
<pre>1
2
3
4
</pre>
</td>
<td class="code">
<pre class="shell" style="font-family:monospace;">&nbsp;
defaults write com.apple.finder CreateDesktop -bool false
&nbsp;
killall Finder</pre>
</td>
</tr>
</table>
</div>
<p>To restore all the icons run the below command</p>
<div class="wp_syntax">
<table>
<tr>
<td class="line_numbers">
<pre>1
</pre>
</td>
<td class="code">
<pre class="shell" style="font-family:monospace;">defaults write com.apple.finder CreateDesktop -bool true</pre>
</td>
</tr>
</table>
</div>
]]></content:encoded>
			<wfw:commentRss>http://tech.sarathdr.com/internet/hide-icons-in-mac-desktop/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>iPhone Phonegap plugin for In app Auto Renewable Subscription</title>
		<link>http://tech.sarathdr.com/featured/iphone-phonegap-plugin-for-in-app-auto-renewable-subscription/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=iphone-phonegap-plugin-for-in-app-auto-renewable-subscription</link>
		<comments>http://tech.sarathdr.com/featured/iphone-phonegap-plugin-for-in-app-auto-renewable-subscription/#comments</comments>
		<pubDate>Wed, 27 Mar 2013 13:19:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[Iphone Apps]]></category>
		<category><![CDATA[inapp purchase]]></category>
		<category><![CDATA[iphone app development]]></category>
		<category><![CDATA[iphone apps]]></category>
		<category><![CDATA[iphone web apps]]></category>

		<guid isPermaLink="false">http://tech.sarathdr.com/?p=1000</guid>
		<description><![CDATA[IPhone in app auto renewal subscription plugin for Phonegap. This plugin will be a useful to  develop in app auto renewal subscription for  iPhone apps based on Phonegap library. ]]></description>
			<content:encoded><![CDATA[<p>As a beginner Xcode developer I have faced some difficulties to implement the in App auto renewable subscription from the scratch. There are lots of articles on web about iPhone in app purchase. I grabbed all the ideas to implement this plugin and it is rather simple if you follow the below steps.</p>
<p><strong>Step 1:</strong> Make sure that all you have provided all the information on iTunes before you start.</p>
<ul>
<li>Provide all the payment information Go to your iTunes dashboard click <strong>Contracts, Tax, and Banking</strong></li>
</ul>
<p><a href="http://tech.sarathdr.com/wp-content/uploads/2013/03/Screen-Shot-2013-03-26-at-18.17.55.png"><img src="http://tech.sarathdr.com/wp-content/uploads/2013/03/Screen-Shot-2013-03-26-at-18.17.55.png" alt="Screen Shot 2013 03 26 at 18.17.55 iPhone Phonegap plugin for In app Auto Renewable Subscription" title="iTunes store Details" width="509" height="172" class="aligncenter size-full wp-image-1024" /></a></p>
<ul>
<li>Set up all payment and tax information to work the app properly. This is an necessary step. Finally your payment section will be as follows.</li>
</ul>
<p><a href="http://tech.sarathdr.com/wp-content/uploads/2013/03/Screen-Shot-2013-03-26-at-18.20.33.png"><img src="http://tech.sarathdr.com/wp-content/uploads/2013/03/Screen-Shot-2013-03-26-at-18.20.33.png" alt="Screen Shot 2013 03 26 at 18.20.33 iPhone Phonegap plugin for In app Auto Renewable Subscription" title="iTunes Contract Status " width="650" height="63" class="aligncenter size-full wp-image-1025" /></a></p>
<p><strong>Step 2:</strong> Configure you Auto Renewable Subscription on iTunes.</p>
<ul>
<li>You should provide all the details of the app, including screen shots and other details.</li>
<li>Make sure that your app status in now waiting to upload binary</li>
<li>Then click on Manage in app purchase link on your app details page</li>
</ul>
<p><a href="http://tech.sarathdr.com/wp-content/uploads/2013/03/Screen-Shot-2013-03-26-at-18.27.48.png"><img src="http://tech.sarathdr.com/wp-content/uploads/2013/03/Screen-Shot-2013-03-26-at-18.27.48.png" alt="Screen Shot 2013 03 26 at 18.27.48 iPhone Phonegap plugin for In app Auto Renewable Subscription" title="iTunes Product Configuration " width="489" height="127" class="aligncenter size-full wp-image-1026" /></a></p>
<ul>
<li>Click Create New then you will see 5  options. Select Auto Renewable Subscription</li>
</ul>
<p><a href="http://tech.sarathdr.com/wp-content/uploads/2013/03/Screen-Shot-2013-03-26-at-18.30.24.png"><img src="http://tech.sarathdr.com/wp-content/uploads/2013/03/Screen-Shot-2013-03-26-at-18.30.24.png" alt="Screen Shot 2013 03 26 at 18.30.24 iPhone Phonegap plugin for In app Auto Renewable Subscription" title="iTunes - Create new subscription " width="597" height="287" class="aligncenter size-full wp-image-1027" /></a></p>
<ul>
<li>Provide necessary information for your products and select your duration. The most important part is the product id. You have to give unique name for your product. For example <strong>com.sarathdr.monthlysubscription</strong></li>
</ul>
<p><a href="http://tech.sarathdr.com/wp-content/uploads/2013/03/Screen-Shot-2013-03-26-at-18.32.28.png"><img src="http://tech.sarathdr.com/wp-content/uploads/2013/03/Screen-Shot-2013-03-26-at-18.32.28.png" alt="Screen Shot 2013 03 26 at 18.32.28 iPhone Phonegap plugin for In app Auto Renewable Subscription" title="iTunes Fille subscription details " width="805" height="245" class="aligncenter size-full wp-image-1028" /></a><br />
<a href="http://tech.sarathdr.com/wp-content/uploads/2013/03/Screen-Shot-2013-03-26-at-18.32.17.png"><img src="http://tech.sarathdr.com/wp-content/uploads/2013/03/Screen-Shot-2013-03-26-at-18.32.17.png" alt="Screen Shot 2013 03 26 at 18.32.17 iPhone Phonegap plugin for In app Auto Renewable Subscription" title="iTunes - Select duration of the subscription " width="525" height="149" class="aligncenter size-full wp-image-1029" /></a></p>
<ul>
<li>Generate a shared secret. This Step is specifically for auto renewable subscription. This shared key will be used to validate the receipt after user subscription.</li>
</ul>
<p><a href="http://tech.sarathdr.com/wp-content/uploads/2013/03/Screen-Shot-2013-03-26-at-18.34.56.png"><img src="http://tech.sarathdr.com/wp-content/uploads/2013/03/Screen-Shot-2013-03-26-at-18.34.56.png" alt="Screen Shot 2013 03 26 at 18.34.56 iPhone Phonegap plugin for In app Auto Renewable Subscription" title="iTunes - Generate Secret " width="509" height="60" class="aligncenter size-full wp-image-1030" /></a></p>
<p><strong>Step 3:</strong> Overall ideas for Auto renewable subscription.</p>
<ul>
<li>The plugin use the StoreKit library  for implementing the in app subscription.</li>
<li>The store kit create a queue for all payment requests (transactions) and process it one by one.</li>
<li>It is an asynchronous process so our subscription class is a receiver for the events triggered by the Store kit library.</li>
<li>After processing each transaction it will call the receiver function with the transaction details.</li>
<li>The transaction details contains an encrypted receipt data which should be verified either from your server or from the app to provide the subscription service to the user if the receipt is valid.</li>
<li>It is better to store receipt data either on your app or server side to verify it later to check the expiry of the subscription.</li>
<li>You have to verify the receipt as a json request against the iTunes. Which is explained in another blog post. Also you can use the verify receipt tool. Please find the following links for more details.
<p><a href="http://tech.sarathdr.com/featured/iphone-in-app-purchase-receipt-verification-sandbox/" title="In App purchase receipt validation ">iPhone In App purchase receipt verification – Sandbox</a><br />
<a href="http://tech.sarathdr.com/iphone-receipt/index.php" title="In App purchase receipt verification Sandbox">In App purchase receipt verification Sandbox</a>
</li>
<li>If the transaction is successful the plugin returns base64 encoded receipt data to the success javascript callback function.</li>
</ul>
<p>Step 4: Download the below  files add that to your plugin<br />
<a href="https://github.com/sarathdr/inapp-subscription-iphone"><img src="http://tech.sarathdr.com/wp-content/uploads/2012/11/github_button-e1355486394525.png" alt="github button e1355486394525 iPhone Phonegap plugin for In app Auto Renewable Subscription" title="Git Hub Sarath DR" width="70" height="70" class="alignleft size-thumbnail wp-image-856" /></a>Git Project Link <a href="https://github.com/sarathdr/inapp-subscription-iphone">Download</a> <br />Plugin branch 1.0 ( iPhone Phonegap plugin for In app Auto Renewable Subscription )<br />
<br class="clear" /></p>
<p><a href="http://tech.sarathdr.com/wp-content/uploads/2013/03/Screen-Shot-2013-03-27-at-11.21.28.png"><img src="http://tech.sarathdr.com/wp-content/uploads/2013/03/Screen-Shot-2013-03-27-at-11.21.28.png" alt="Screen Shot 2013 03 27 at 11.21.28 iPhone Phonegap plugin for In app Auto Renewable Subscription" title="Add plugin files " width="445" height="201" class="aligncenter size-full wp-image-1033" /></a></p>
<p><strong>Step 5:</strong> Add the below configuration to the Cordova.plist file.</p>
<p><a href="http://tech.sarathdr.com/wp-content/uploads/2013/03/Screen-Shot-2013-03-27-at-11.23.38.png"><img src="http://tech.sarathdr.com/wp-content/uploads/2013/03/Screen-Shot-2013-03-27-at-11.23.38.png" alt="Screen Shot 2013 03 27 at 11.23.38 iPhone Phonegap plugin for In app Auto Renewable Subscription" title="Edit Cordova Plist " width="487" height="31" class="aligncenter size-full wp-image-1034" /></a></p>
<p><strong>Step 6:</strong> You can use the below javascript to call the plugin function to subscribe</p>
<div class="wp_syntax">
<table>
<tr>
<td class="line_numbers">
<pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
</pre>
</td>
<td class="code">
<pre class="javascript" style="font-family:monospace;"> cordova.<span style="color: #660066;">exec</span><span style="color: #009900;">&#40;</span> <span style="color: #000066; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>result<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
&nbsp;
&nbsp;
                   <span style="color: #006600; font-style: italic;">// Success Function.                         </span>
                   console.<span style="color: #660066;">log</span><span style="color: #009900;">&#40;</span> result <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> 
&nbsp;
                   <span style="color: #006600; font-style: italic;">// you can write the code here to verify the receipt </span>
&nbsp;
                   <span style="color: #006600; font-style: italic;">// Please call the function on Step 7 if the receipt is verified. </span>
&nbsp;
&nbsp;
                <span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span> <span style="color: #000066; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>err<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
&nbsp;
                   <span style="color: #006600; font-style: italic;">// Failure function</span>
                   alert<span style="color: #009900;">&#40;</span>err<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
                   <span style="color: #000066; font-weight: bold;">return</span><span style="color: #339933;">;</span>
&nbsp;
                <span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">&quot;SubscriptionManager&quot;</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">&quot;subscribe&quot;</span><span style="color: #339933;">,</span> <span style="color: #009900;">&#91;</span><span style="color: #3366CC;">&quot;com.sarathdr.monthlysubscription&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre>
</td>
</tr>
</table>
</div>
<p><strong>Step 7:</strong> After you verify the receipt please call the below function. It is not necessary depends on your programming logic.</p>
<div class="wp_syntax">
<table>
<tr>
<td class="line_numbers">
<pre>1
2
3
</pre>
</td>
<td class="code">
<pre class="javascript" style="font-family:monospace;">cordova.<span style="color: #660066;">exec</span><span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>result<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
                         <span style="color: #000066; font-weight: bold;">return</span> <span style="color: #003366; font-weight: bold;">true</span><span style="color: #339933;">;</span>                          
                     <span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span> <span style="color: #000066; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>err<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><span style="color: #000066; font-weight: bold;">return</span><span style="color: #339933;">;</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">&quot;SubscriptionManager&quot;</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">&quot;updateSubscriptionNotifyStatus&quot;</span><span style="color: #339933;">,</span> <span style="color: #009900;">&#91;</span><span style="color: #3366CC;">&quot;&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre>
</td>
</tr>
</table>
</div>
<p><strong>Step 8:</strong> Please consider the below points when you test an auto renewable subscription. </p>
<blockquote><p>When testing auto-renewable in-app purchase subscriptions in the sandbox environment, the duration times will be compressed to allow for more streamlined testing. Additionally, a sandbox subscription will only auto-renew a maximum of 6 times. After the subscription has auto-renewed 6 times, it will no longer renew in the sandbox. The compressed duration times are as follows:
</p></blockquote>
<p><a href="http://tech.sarathdr.com/wp-content/uploads/2013/03/Screen-Shot-2013-03-27-at-12.02.29.png"><img src="http://tech.sarathdr.com/wp-content/uploads/2013/03/Screen-Shot-2013-03-27-at-12.02.29.png" alt="Screen Shot 2013 03 27 at 12.02.29 iPhone Phonegap plugin for In app Auto Renewable Subscription" title="Sandbox Testing Duration " width="345" height="261" class="aligncenter size-full wp-image-1035" /></a></p>
<p><strong>References:</strong></p>
<ol>
<li><a href="http://developer.apple.com/library/mac/#documentation/NetworkingInternet/Conceptual/StoreKitGuide/DevelopingwithStoreKit/DevelopingwithStoreKit.html">Apple Developer</a></li>
<li><a href="http://www.raywenderlich.com/2797/introduction-to-in-app-purchases">http://www.raywenderlich.com/2797/introduction-to-in-app-purchases</a></li>
<li><a href="http://www.imthi.com/blog/programming/iphone-sdk-base64-encode-decode.php">http://www.imthi.com/blog/programming/iphone-sdk-base64-encode-decode.php</a></li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://tech.sarathdr.com/featured/iphone-phonegap-plugin-for-in-app-auto-renewable-subscription/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Useful Android apps and links for App  development</title>
		<link>http://tech.sarathdr.com/featured/useful-android-apps-and-links-for-app-development/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=useful-android-apps-and-links-for-app-development</link>
		<comments>http://tech.sarathdr.com/featured/useful-android-apps-and-links-for-app-development/#comments</comments>
		<pubDate>Tue, 26 Mar 2013 16:12:02 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Android Apps]]></category>
		<category><![CDATA[Featured]]></category>
		<category><![CDATA[android app development]]></category>
		<category><![CDATA[android app development tutorial]]></category>
		<category><![CDATA[useful android app for development]]></category>
		<category><![CDATA[useful android links]]></category>

		<guid isPermaLink="false">http://tech.sarathdr.com/?p=1002</guid>
		<description><![CDATA[I would like to introduce some apps and websites which will be useful for the Android developers. It would be great if you can contribute some more additions to this post. There are plenty of tools and documentation available on the web. If we can collect those details, it will be useful for all. So [...]]]></description>
			<content:encoded><![CDATA[<p>I would like to introduce some apps and websites which will be useful for the Android developers. It would be great if you can contribute some more additions to this post. There are plenty of tools and documentation available on the web. If we can collect those details, it will be useful for all. So please do not hesitate to comment new tools and links which you find useful for Android development.</p>
<p><strong>Airdroid </strong></p>
<p>It is a very useful app to transfer files and open urls etc. By connecting to a wireless network. Sometimes I feel some very difficult to type long urls in low end devices. This application helps you to do this from your browser with a single click.</p>
<p style="text-align: center;"><a href="http://tech.sarathdr.com/wp-content/uploads/2013/03/airdroid.jpg"><img class="aligncenter  wp-image-1008" title="airdroid" src="http://tech.sarathdr.com/wp-content/uploads/2013/03/airdroid.jpg" alt="airdroid Useful Android apps and links for App  development" width="508" height="180" /></a></p>
<p>Also you can install and download apk files vey easily. There are a lot more things you can do with the app. Click the below link to go to the App download page.</p>
<p><a href="https://play.google.com/store/apps/details?id=com.sand.airdroid" rel="nofollow">https://play.google.com/store/apps/details?id=com.sand.airdroid</a></p>
<p><strong>AIDE</strong> &#8211; is a simple development tool for Android phones. If you want to test something very quickly you can use this app.</p>
<p>Also you can copy the source code from eclipse and run it on your phone.<br />
<a href="https://play.google.com/store/apps/details?id=com.aide.ui" rel="nofollow">https://play.google.com/store/apps/details?id=com.aide.ui</a></p>
<p><strong>Webmaster&#8217;s HTML</strong> &#8211; Really useful app to edit the html code and php.</p>
<p><a href="https://play.google.com/store/apps/details?id=com.welant.webmaster.DEMO" rel="nofollow">https://play.google.com/store/apps/details?id=com.welant.webmaster.DEMO</a></p>
<p>Referral Tester: This application is very useful for your tracking implementation. If you want to trigger the App install event before deploying to the Google play store use this app. Though you can also trigger that from from adb shell, this app make it very simple</p>
<p>Download from the below link<br />
<a href="https://play.google.com/store/apps/details?id=com.giago.referraltester" rel="nofollow">https://play.google.com/store/apps/details?id=com.giago.referraltester</a></p>
<p>You could find some useful sample project to refer from the below links.</p>
<p><a href="http://code.google.com/p/apps-for-android/" rel="nofollow">http://code.google.com/p/apps-for-android/</a></p>
<p><a href="https://github.com/commonsguy/cw-andtutorials" rel="nofollow">https://github.com/commonsguy/cw-andtutorials</a></p>
<p><a href="https://github.com/commonsguy/cw-advandroid/" rel="nofollow">https://github.com/commonsguy/cw-advandroid/</a></p>
<p>Android development tutorial for a new bee !</p>
<p><a href="http://developer.android.com/training/index.html" rel="nofollow">http://developer.android.com/training/index.html</a></p>
<p>I will update this post regularly with more links and useful tips for an Android developer.</p>
]]></content:encoded>
			<wfw:commentRss>http://tech.sarathdr.com/featured/useful-android-apps-and-links-for-app-development/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Get Network Connection Name &#8211; Android App development</title>
		<link>http://tech.sarathdr.com/featured/get-network-connection-name-android-app-development/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=get-network-connection-name-android-app-development</link>
		<comments>http://tech.sarathdr.com/featured/get-network-connection-name-android-app-development/#comments</comments>
		<pubDate>Thu, 21 Mar 2013 17:25:22 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Android Apps]]></category>
		<category><![CDATA[Featured]]></category>
		<category><![CDATA[network connection name]]></category>
		<category><![CDATA[Phonegap Network connection name]]></category>
		<category><![CDATA[phongap android app]]></category>

		<guid isPermaLink="false">http://tech.sarathdr.com/?p=972</guid>
		<description><![CDATA[Somebody asked the same question in my website. You can use the below code to retrieve the name of the network connection.]]></description>
			<content:encoded><![CDATA[<p>Somebody asked the same question in my website. You can use the below code to retrieve the name of the network connection.</p>
<div class="wp_syntax">
<table>
<tr>
<td class="line_numbers">
<pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
</pre>
</td>
<td class="code">
<pre class="java" style="font-family:monospace;">&nbsp;
<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">class</span> NativeAccess
<span style="color: #009900;">&#123;</span>
   	<span style="color: #000000; font-weight: bold;">private</span> WebView mAppView<span style="color: #339933;">;</span>
        <span style="color: #000000; font-weight: bold;">private</span> DroidGap mGap<span style="color: #339933;">;</span>
&nbsp;
        <span style="color: #000000; font-weight: bold;">public</span> NativeAccess<span style="color: #009900;">&#40;</span>DroidGap gap, WebView view<span style="color: #009900;">&#41;</span>
        <span style="color: #009900;">&#123;</span>
            mAppView <span style="color: #339933;">=</span> view<span style="color: #339933;">;</span>
            mGap <span style="color: #339933;">=</span> gap<span style="color: #339933;">;</span>
        <span style="color: #009900;">&#125;</span> 
&nbsp;
<span style="color: #000000; font-weight: bold;">public</span> function getConnectionName<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>
     <span style="color: #009900;">&#123;</span>
&nbsp;
        <span style="color: #003399;">String</span> networkProvider <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;&quot;</span><span style="color: #339933;">;</span> 
&nbsp;
        <span style="color: #000000; font-weight: bold;">try</span><span style="color: #009900;">&#123;</span>
&nbsp;
ConnectivityManager cm <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span>ConnectivityManager<span style="color: #009900;">&#41;</span><span style="color: #000000; font-weight: bold;">this</span>.<span style="color: #006633;">getContext</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #006633;">getSystemService</span><span style="color: #009900;">&#40;</span><span style="color: #003399;">Context</span>.<span style="color: #006633;">CONNECTIVITY_SERVICE</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
            NetworkInfo ni <span style="color: #339933;">=</span> cm.<span style="color: #006633;">getActiveNetworkInfo</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
&nbsp;
            <span style="color: #000000; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span> ni.<span style="color: #006633;">isConnected</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span>
            <span style="color: #009900;">&#123;</span>	
&nbsp;
&nbsp;
&nbsp;
            	<span style="color: #000000; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span> ni.<span style="color: #006633;">getTypeName</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">==</span> <span style="color: #0000ff;">&quot;mobile&quot;</span> <span style="color: #009900;">&#41;</span>
            	<span style="color: #009900;">&#123;</span>
            		networkProvider <span style="color: #339933;">=</span> ni.<span style="color: #006633;">getExtraInfo</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> 
            	<span style="color: #009900;">&#125;</span>
            	<span style="color: #000000; font-weight: bold;">else</span> <span style="color: #000000; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span> ni.<span style="color: #006633;">getTypeName</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">==</span> <span style="color: #0000ff;">&quot;WIFI&quot;</span>  <span style="color: #009900;">&#41;</span>
               <span style="color: #009900;">&#123;</span>
&nbsp;
            		WifiManager wifiManager <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span>WifiManager<span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">this</span>.<span style="color: #006633;">getContext</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #006633;">getSystemService</span><span style="color: #009900;">&#40;</span><span style="color: #003399;">Context</span>.<span style="color: #006633;">WIFI_SERVICE</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
                    WifiInfo connectionInfo <span style="color: #339933;">=</span> wifiManager.<span style="color: #006633;">getConnectionInfo</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
                    <span style="color: #000000; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>connectionInfo <span style="color: #339933;">!=</span> <span style="color: #000066; font-weight: bold;">null</span> <span style="color: #009900;">&#41;</span> 
                    <span style="color: #009900;">&#123;</span>
                    	networkProvider <span style="color: #339933;">=</span> connectionInfo.<span style="color: #006633;">getSSID</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
                    	Log.<span style="color: #006633;">d</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;TAG_NETWORK&quot;</span>, connectionInfo.<span style="color: #006633;">getSSID</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
                    <span style="color: #009900;">&#125;</span>
&nbsp;
            	<span style="color: #009900;">&#125;</span>
&nbsp;
&nbsp;
&nbsp;
            	Log.<span style="color: #006633;">d</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;TAG_NETWORK&quot;</span>, ni.<span style="color: #006633;">getExtraInfo</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
                Log.<span style="color: #006633;">d</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;TAG_NETWORK&quot;</span>, ni.<span style="color: #006633;">getReason</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
&nbsp;
            <span style="color: #009900;">&#125;</span>
&nbsp;
        <span style="color: #009900;">&#125;</span>
        <span style="color: #000000; font-weight: bold;">catch</span><span style="color: #009900;">&#40;</span> <span style="color: #003399;">Exception</span> e <span style="color: #009900;">&#41;</span>
        <span style="color: #009900;">&#123;</span>
        	Log.<span style="color: #006633;">d</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;TAG_NETWORK&quot;</span>, e.<span style="color: #006633;">getMessage</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">return</span> networkProvider<span style="color: #339933;">;</span> 
&nbsp;
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #009900;">&#125;</span></pre>
</td>
</tr>
</table>
</div>
<p>If you want to access the below code function from an html page add native access to the class as below. Then call that function from javascript. This will be useful in Phonegap.</p>
<div class="wp_syntax">
<table>
<tr>
<td class="line_numbers">
<pre>1
2
3
4
5
</pre>
</td>
<td class="code">
<pre class="java" style="font-family:monospace;">&nbsp;
<span style="color: #666666; font-style: italic;">// Add this in onCrete function of the class which extends DroidGap </span>
&nbsp;
NativeAccess cna <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> NativeAccess<span style="color: #009900;">&#40;</span><span style="color: #000000; font-weight: bold;">this</span>, appView <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>    
appView.<span style="color: #006633;">addJavascriptInterface</span><span style="color: #009900;">&#40;</span>cna, <span style="color: #0000ff;">&quot;NativeAccess&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre>
</td>
</tr>
</table>
</div>
<p>You can call the function from javascript as follows.</p>
<div class="wp_syntax">
<table>
<tr>
<td class="code">
<pre class="_1" style="font-family:monospace;">&nbsp;
var connectionName = window.CustomNativeAccess.getConnectionName() ;</pre>
</td>
</tr>
</table>
</div>
]]></content:encoded>
			<wfw:commentRss>http://tech.sarathdr.com/featured/get-network-connection-name-android-app-development/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Iphone In App purchase receipt verification &#8211; Sandbox</title>
		<link>http://tech.sarathdr.com/featured/iphone-in-app-purchase-receipt-verification-sandbox/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=iphone-in-app-purchase-receipt-verification-sandbox</link>
		<comments>http://tech.sarathdr.com/featured/iphone-in-app-purchase-receipt-verification-sandbox/#comments</comments>
		<pubDate>Tue, 19 Mar 2013 01:34:17 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[Iphone Apps]]></category>
		<category><![CDATA[in app purchase verify receipt]]></category>
		<category><![CDATA[iphone app developement]]></category>
		<category><![CDATA[iphone app development]]></category>
		<category><![CDATA[iphone inapp purchase]]></category>

		<guid isPermaLink="false">http://tech.sarathdr.com/?p=954</guid>
		<description><![CDATA[Some times some minor mistakes lead us to a big trouble and waste of time. This article will help you to get some idea for Iphone in app purchase and receipt verification in PHP. This post is prior to my new phonegap plugin for In App purchase. Actually I have referred the following link  and used the library for developing the plugin.]]></description>
			<content:encoded><![CDATA[<p>Sometimes some minor mistakes lead us to a big trouble and waste of time. This article will help you to get some idea for iPhone in app purchase and receipt verification in PHP. This post is prior to my new phonegap plugin for In App purchase. Actually I was referring the following link  and used the library to develop the plugin.</p>
<p>http://www.raywenderlich.com/2797/introduction-to-in-app-purchases</p>
<p>The main part is to get the receipt data as string when transaction finishes. You can use the below code in  finish transaction function to get the receipt data and pass the data to your PHP application to verify it.</p>
<div class="wp_syntax">
<table>
<tr>
<td class="line_numbers">
<pre>1
2
3
4
5
6
7
8
9
10
11
12
13
</pre>
</td>
<td class="code">
<pre class="objc" style="font-family:monospace;">&nbsp;
<span style="color: #002200;">-</span> <span style="color: #002200;">&#40;</span><span style="color: #a61390;">void</span><span style="color: #002200;">&#41;</span>finishTransaction<span style="color: #002200;">:</span><span style="color: #002200;">&#40;</span>SKPaymentTransaction <span style="color: #002200;">*</span><span style="color: #002200;">&#41;</span>transaction
<span style="color: #002200;">&#123;</span>
&nbsp;
<span style="color: #400080;">NSData</span> <span style="color: #002200;">*</span>receiptData <span style="color: #002200;">=</span> <span style="color: #002200;">&#91;</span><span style="color: #400080;">NSData</span> dataWithData<span style="color: #002200;">:</span>transaction.transactionReceipt<span style="color: #002200;">&#93;</span>;
&nbsp;
<span style="color: #11740a; font-style: italic;">// This is the string you should pass to server for verification</span>
 <span style="color: #400080;">NSString</span> <span style="color: #002200;">*</span>receiptStr <span style="color: #002200;">=</span> <span style="color: #002200;">&#91;</span><span style="color: #002200;">&#91;</span><span style="color: #400080;">NSString</span> alloc<span style="color: #002200;">&#93;</span> initWithData<span style="color: #002200;">:</span>receiptData encoding<span style="color: #002200;">:</span>NSUTF8StringEncoding<span style="color: #002200;">&#93;</span>;
&nbsp;
<span style="color: #11740a; font-style: italic;">// Use json to pass this value. </span>
&nbsp;
    <span style="color: #002200;">&#91;</span><span style="color: #002200;">&#91;</span>SKPaymentQueue defaultQueue<span style="color: #002200;">&#93;</span> finishTransaction<span style="color: #002200;">:</span>transaction<span style="color: #002200;">&#93;</span>;
<span style="color: #002200;">&#125;</span></pre>
</td>
</tr>
</table>
</div>
<p>You can use the below code to verify the receipt.</p>
<div class="wp_syntax">
<table>
<tr>
<td class="line_numbers">
<pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
</pre>
</td>
<td class="code">
<pre class="php" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">// This is not an original  receipt - Only an example format</span>
&nbsp;
<span style="color: #000088;">$receipt</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'{{
	&quot;signature&quot; = &quot;AoC/7Y1Woi2cOL4SFvS6&quot;;
        &quot;purchase-info&quot; = &quot;ewoJIm9yaWdpbmFsLXB1cmNoYXNlLWRhd&quot;;
        &quot;environment&quot; = &quot;Sandbox&quot;;
	&quot;pod&quot; = &quot;100&quot;;
	&quot;signing-status&quot; = &quot;0&quot;;}'</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000088;">$sandBoxUrl</span>     <span style="color: #339933;">=</span> <span style="color: #0000ff;">'https://sandbox.itunes.apple.com/verifyReceipt'</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$base64Receipt</span>  <span style="color: #339933;">=</span> <span style="color: #990000;">base64_encode</span><span style="color: #009900;">&#40;</span> <span style="color: #000088;">$receipt</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// Password is only for Auto renewable subscription.</span>
&nbsp;
<span style="color: #000088;">$postData</span>   <span style="color: #339933;">=</span> <span style="color: #990000;">json_encode</span><span style="color: #009900;">&#40;</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span> 
	        <span style="color: #0000ff;">'receipt-data'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #000088;">$base64Receipt</span>  <span style="color: #339933;">,</span>
		<span style="color: #0000ff;">'password'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'sdfdsf'</span>
	         <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #666666; font-style: italic;">// POST data</span>
&nbsp;
	try <span style="color: #009900;">&#123;</span>
&nbsp;
&nbsp;
	    <span style="color: #000088;">$ch</span> <span style="color: #339933;">=</span> <span style="color: #990000;">curl_init</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	    <span style="color: #990000;">curl_setopt</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$ch</span><span style="color: #339933;">,</span> CURLOPT_URL<span style="color: #339933;">,</span> <span style="color: #000088;">$sandBoxUrl</span>  <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	    <span style="color: #990000;">curl_setopt</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$ch</span><span style="color: #339933;">,</span> CURLOPT_RETURNTRANSFER<span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	    <span style="color: #990000;">curl_setopt</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$ch</span><span style="color: #339933;">,</span> CURLOPT_POST<span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	    <span style="color: #990000;">curl_setopt</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$ch</span><span style="color: #339933;">,</span> CURLOPT_POSTFIELDS<span style="color: #339933;">,</span> <span style="color: #000088;">$postData</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	    <span style="color: #990000;">curl_setopt</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$ch</span><span style="color: #339933;">,</span> CURLOPT_SSL_VERIFYPEER<span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">FALSE</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	    <span style="color: #990000;">curl_setopt</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$ch</span><span style="color: #339933;">,</span> CURLOPT_SSL_VERIFYHOST<span style="color: #339933;">,</span>  <span style="color: #cc66cc;">2</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	    <span style="color: #990000;">curl_setopt</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$ch</span><span style="color: #339933;">,</span> CURLOPT_HTTPHEADER<span style="color: #339933;">,</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'Content-Type: application/json'</span><span style="color: #339933;">,</span>                                                                                
			    <span style="color: #0000ff;">'Content-Length: '</span> <span style="color: #339933;">.</span> <span style="color: #990000;">strlen</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$postData</span> <span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> 
        	<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>                                                                                                                   
&nbsp;
	    <span style="color: #000088;">$jsonResponse</span> <span style="color: #339933;">=</span> <span style="color: #990000;">curl_exec</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$ch</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>		
	    <span style="color: #990000;">curl_close</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$ch</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
&nbsp;
	<span style="color: #009900;">&#125;</span>
	catch <span style="color: #009900;">&#40;</span> Exception <span style="color: #000088;">$e</span> <span style="color: #009900;">&#41;</span>
	<span style="color: #009900;">&#123;</span>
		<span style="color: #990000;">var_dump</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$e</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
&nbsp;
	    <span style="color: #000088;">$response</span> <span style="color: #339933;">=</span> <span style="color: #990000;">json_decode</span><span style="color: #009900;">&#40;</span>  <span style="color: #000088;">$jsonResponse</span>  <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	    <span style="color: #990000;">var_dump</span><span style="color: #009900;">&#40;</span> <span style="color: #000088;">$response</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">status</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	    <span style="color: #990000;">var_dump</span><span style="color: #009900;">&#40;</span> <span style="color: #000088;">$response</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">receipt</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre>
</td>
</tr>
</table>
</div>
<p>I have created a tool to verify the receipt. Click the below link and submit your receipt. The password field is only for auto renewable subscription. </p>
<p><a href="http://tech.sarathdr.com/iphone-receipt/index.php" title="In App purchase verify receipt" target="_blank">In App purchase receipt verification Sandbox</a></p>
]]></content:encoded>
			<wfw:commentRss>http://tech.sarathdr.com/featured/iphone-in-app-purchase-receipt-verification-sandbox/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
