<?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>gadgetfrik &#187; Tips and Tricks</title>
	<atom:link href="http://www.gadgetfrik.com/category/tips-and-tricks/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.gadgetfrik.com</link>
	<description>Gadgets, Technology and everything Geeky</description>
	<lastBuildDate>Thu, 19 Aug 2010 14:05:46 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>iPad tips: Hard Reset and taking a screenshot of your screen</title>
		<link>http://www.gadgetfrik.com/2010/08/ipad-tips-hard-reset-and-taking-a-screenshot-of-your-screen/</link>
		<comments>http://www.gadgetfrik.com/2010/08/ipad-tips-hard-reset-and-taking-a-screenshot-of-your-screen/#comments</comments>
		<pubDate>Wed, 18 Aug 2010 05:51:02 +0000</pubDate>
		<dc:creator>gadgetfrik</dc:creator>
				<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[gadgets]]></category>

		<guid isPermaLink="false">http://www.gadgetfrik.com/?p=678</guid>
		<description><![CDATA[If you&#8217;ve never owned an iPhone before and just got your hands on an iPad you must be wondering what you should do in case your iPad starts behaving strangely &#8211; which seldom happens actually. For some reasons known only to Apple, your device could be slow, unresponsive or apps might even crash which seemed [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.gadgetfrik.com%2F2010%2F08%2Fipad-tips-hard-reset-and-taking-a-screenshot-of-your-screen%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.gadgetfrik.com%2F2010%2F08%2Fipad-tips-hard-reset-and-taking-a-screenshot-of-your-screen%2F&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>If you&#8217;ve never owned an iPhone before and just got your hands on an iPad you must be wondering what you should do in case your iPad starts behaving strangely &#8211; which seldom happens actually. For some reasons known only to Apple, your device could be slow, unresponsive or apps might even crash which seemed to be working just fine previously. Well in case you are at your wit&#8217;s end on how to resolve these issues, then you could try the following tips.</p>
<p><span id="more-678"></span></p>
<p><strong>iPad Hard Reset</strong></p>
<p><strong><span style="font-weight: normal;">This is probably the first thing I would try. Here are the steps to do this:</span></strong></p>
<p><strong><span style="font-weight: normal;">1. First, find the power button that is located at the top right corner of the iPad when holding it in portrait mode.</span></strong></p>
<p><strong><span style="font-weight: normal;">2. Once you have located the power button, hold it down for 3 seconds. You will see a rectangular bar on the screen with a red rectangle containing an arrow pointing to the right end of the screen.</span></strong></p>
<p><strong><span style="font-weight: normal;">3. Slidee the arrow towards the right and the iPad will shutdown (not sleep).</span></strong></p>
<p><strong><span style="font-weight: normal;">4. Wait for a few seconds. Maybe half a minute will do the trick. Hold down the power button until you see the Apple logo appear on the screen.</span></strong></p>
<p><strong><span style="font-weight: normal;">5. Your iPad has been hard reset and in most cases resolve the issue.</span></strong></p>
<p><a href="http://gadgetfrik.com/wp-content/uploads/2010/08/ipad-hard-reset.jpg"><img class="aligncenter size-full wp-image-679" title="ipad hard reset" src="http://gadgetfrik.com/wp-content/uploads/2010/08/ipad-hard-reset.jpg" alt="" width="198" height="255" /></a></p>
<p><strong>Take a screenshot of your screen on iPad</strong></p>
<p>Lets say you have an issue on the iPad for which you need help. Get a hold of your geeky friend (you know how to contact me <img src='http://gadgetfrik.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  ). If he is not willing to work for beers at your place then you might just want to send a screenshot of what the issue is through email. Here are the steps you need to follow to take a screenshot.</p>
<p>1. Hold the iPad in portrait mode.</p>
<p>2. Get to the screen which you want to take a screenshot of.</p>
<p>3. Hold the power button and the Home button (located in the bottom center of the iPad facing you) together</p>
<p>4. You will hear a camera click. Fret not! There&#8217;s no camera in the iPad. It just took a screenshot similar to the ctrl+fn+prt scr function on your PC.</p>
<p>5. You can locate the screenshot picture in your camera roll under &#8220;Pictures&#8221;.</p>
<p>6. Voila! Email the photo to your friend.</p>
<p>I hope you found these tips helpful. Do subscribe to my blog for future tips as well. Let me know if you need any help in the comments section.</p>
<div class="shr-publisher-678"></div>]]></content:encoded>
			<wfw:commentRss>http://www.gadgetfrik.com/2010/08/ipad-tips-hard-reset-and-taking-a-screenshot-of-your-screen/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How to install iOS4 on your iPhone 3GS (GM seed version)</title>
		<link>http://www.gadgetfrik.com/2010/06/how-to-install-ios4-on-your-iphone-3gs-gm-seed-version/</link>
		<comments>http://www.gadgetfrik.com/2010/06/how-to-install-ios4-on-your-iphone-3gs-gm-seed-version/#comments</comments>
		<pubDate>Wed, 16 Jun 2010 01:59:50 +0000</pubDate>
		<dc:creator>gadgetfrik</dc:creator>
				<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[gadgets]]></category>
		<category><![CDATA[iphone]]></category>

		<guid isPermaLink="false">http://www.gadgetfrik.com/?p=644</guid>
		<description><![CDATA[Right after I wrote the post on how iOS4 is running on my iPhone 3GS I had people asking me on how I installed the GM seed version on my iPhone 3GS. In fact its a very simple procedure and almost like restoring your phone. But take note that you will need to backup your [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.gadgetfrik.com%2F2010%2F06%2Fhow-to-install-ios4-on-your-iphone-3gs-gm-seed-version%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.gadgetfrik.com%2F2010%2F06%2Fhow-to-install-ios4-on-your-iphone-3gs-gm-seed-version%2F&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>Right after I wrote the post on <a href="http://www.gadgetfrik.com/2010/06/sneak-preview-of-ios4-on-my-iphone-3gs/" target="_blank">how iOS4 is running on my iPhone 3GS </a>I had people asking me on how I installed the GM seed version on my iPhone 3GS. In fact its a very simple procedure and almost like restoring your phone. But take note that <strong>you will need to backup your data </strong>because everything will be wiped out when you restore your iPhone. The best part is that the device UDID is not necessary &#8211; so if you have a friend who has a developer&#8217;s account go ahead and get yourself the iOS GM seed version on your 3GS right away! Here&#8217;s a cool video that I followed to get my iPhone 3GS to be upgraded to iOS4.</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="640" height="385" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/xCljI2fzC5w&amp;hl=en_US&amp;fs=1&amp;" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="640" height="385" src="http://www.youtube.com/v/xCljI2fzC5w&amp;hl=en_US&amp;fs=1&amp;" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<div class="shr-publisher-644"></div>]]></content:encoded>
			<wfw:commentRss>http://www.gadgetfrik.com/2010/06/how-to-install-ios4-on-your-iphone-3gs-gm-seed-version/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>So how do you get an iTunes account if you are in Malaysia?</title>
		<link>http://www.gadgetfrik.com/2009/10/so-how-do-you-get-an-itunes-account-if-you-are-in-malaysia/</link>
		<comments>http://www.gadgetfrik.com/2009/10/so-how-do-you-get-an-itunes-account-if-you-are-in-malaysia/#comments</comments>
		<pubDate>Thu, 22 Oct 2009 09:40:25 +0000</pubDate>
		<dc:creator>gadgetfrik</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[itunes]]></category>

		<guid isPermaLink="false">http://www.gadgetfrik.com/?p=560</guid>
		<description><![CDATA[I&#8217;ve seen numerous tweets on twitter asking help from people on how to open an iTunes account in Malaysia. Pity that Apple doesn&#8217;t trust us Malaysians to give us a legal avenue to open an iTunes account and download music legally. Probably they are worried about our notorious history (and present) for piracy and also [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.gadgetfrik.com%2F2009%2F10%2Fso-how-do-you-get-an-itunes-account-if-you-are-in-malaysia%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.gadgetfrik.com%2F2009%2F10%2Fso-how-do-you-get-an-itunes-account-if-you-are-in-malaysia%2F&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>I&#8217;ve seen numerous tweets on twitter asking help from people on how to open an iTunes account in Malaysia. Pity that Apple doesn&#8217;t trust us Malaysians to give us a legal avenue to open an iTunes account and download music legally. Probably they are worried about our notorious history (and present) for piracy and also credit card fraud. But we&#8217;re not alone. A lot of countries don&#8217;t actually have the iTunes store available and hence will not be able to buy music from the the iTunes store. If you really want to open an iTunes account, there is a way to get around this.</p>
<div id="attachment_561" class="wp-caption aligncenter" style="width: 650px"><img class="size-full wp-image-561" title="itunes store malaysia" src="http://www.gadgetfrik.com/wp-content/uploads/2009/10/itunes-store-malaysia.png" alt="itunes store malaysia takes you to the app store" width="640" height="326" /><p class="wp-caption-text">itunes store malaysia takes you to the app store</p></div>
<p><span id="more-560"></span><br />
There&#8217;s a little trick that you can employ to get this done. Thanks to <a href="http://www.globalitunes.org" target="_blank">Globalitunes</a> you can now create an iTunes account from anywhere in the world. All you need is your credit card or paypal details and you can well be on your way. You can also purchase an iTunes gift card which would mean that you wouldn&#8217;t need to enter any credit card details. Here are the steps you need to take to create your account:</p>
<p>1. Go to the itunes application and locate the lower right corner of the application. You will see the Malaysian flag which indicates that you are connected to the Malaysia iTunes store (which doesn&#8217;t exist by the way). Click on it and change it to Unites States.</p>
<p>2. Click on &#8216;Redeem&#8217; on the top right corner of iTunes.</p>
<p><img class="aligncenter size-full wp-image-563" title="Picture 2" src="http://www.gadgetfrik.com/wp-content/uploads/2009/10/Picture-2.png" alt="Picture 2" width="437" height="261" /></p>
<p>3. Enter the redemption code for the iTunes gift card you purchased and click &#8216;Redeem&#8217;</p>
<p><img class="aligncenter size-full wp-image-564" title="Picture 3" src="http://www.gadgetfrik.com/wp-content/uploads/2009/10/Picture-3.png" alt="Picture 3" width="383" height="254" /></p>
<p>4. Click &#8216;Create Account&#8217;</p>
<p><img class="aligncenter size-full wp-image-565" title="Picture 4" src="http://www.gadgetfrik.com/wp-content/uploads/2009/10/Picture-4.png" alt="Picture 4" width="421" height="251" /></p>
<p>5. Click &#8216;Continue&#8217; to indicate you have read the terms and conditions</p>
<p><img class="aligncenter size-full wp-image-566" title="Picture 5" src="http://www.gadgetfrik.com/wp-content/uploads/2009/10/Picture-5.png" alt="Picture 5" width="421" height="252" /></p>
<p>6. Create your iTunes account here</p>
<p><img class="aligncenter size-full wp-image-567" title="Picture 6" src="http://www.gadgetfrik.com/wp-content/uploads/2009/10/Picture-6.png" alt="Picture 6" width="408" height="248" /></p>
<p>7. Now you will be required to fill out your name, address etc. This will have to be a US address. Fret not, you can easily get through this step by visiting <a href="http://www.fakenamegenerator.com" target="_blank">fakenamegenerator</a>. This website helps to create a random identity for you with a corresponding US address as well.</p>
<p>Enter the details in the box that appears in iTunes but <strong>DO NOT</strong> enter any credit card details. Just click &#8216;None&#8217; and continue.</p>
<p>8. That&#8217;s about it! Enjoy downloading music and videos from iTunes.</p>
<p>Step by step instructions reproduced from <a href="http://www.globalitunes.org/setup-guide.php" target="_blank">Globalitunes Setup Guide</a>.</p>
<p>A neat way to create an iTunes account for Malaysians. But I certainly hope that Apple will soon bring the iTunes store to Malaysia as well.</p>
<div class="shr-publisher-560"></div>]]></content:encoded>
			<wfw:commentRss>http://www.gadgetfrik.com/2009/10/so-how-do-you-get-an-itunes-account-if-you-are-in-malaysia/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>How do you get into the iPhone App business &#8211; part one</title>
		<link>http://www.gadgetfrik.com/2009/10/how-do-you-get-into-the-iphone-app-business-part-one/</link>
		<comments>http://www.gadgetfrik.com/2009/10/how-do-you-get-into-the-iphone-app-business-part-one/#comments</comments>
		<pubDate>Wed, 14 Oct 2009 03:18:09 +0000</pubDate>
		<dc:creator>gadgetfrik</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[gadgets]]></category>
		<category><![CDATA[iphone app development]]></category>

		<guid isPermaLink="false">http://www.gadgetfrik.com/?p=552</guid>
		<description><![CDATA[This is a question a lot of people have actually asked me. Apple has done a great job of marketing their app store and according to some recent reports, there are more than 80,000 apps in the app store. A lot of people have made it big by selling their apps on the app store [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.gadgetfrik.com%2F2009%2F10%2Fhow-do-you-get-into-the-iphone-app-business-part-one%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.gadgetfrik.com%2F2009%2F10%2Fhow-do-you-get-into-the-iphone-app-business-part-one%2F&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>This is a question a lot of people have actually asked me. Apple has done a great job of marketing their app store and according to some recent reports, there are more than 80,000 apps in the app store. A lot of people have made it big by selling their apps on the app store and this has actually fuelled a lot of interest among those who don&#8217;t even own an iPhone. Not only individual developers but even <a href="http://www.appleinsider.com/articles/09/07/15/big_game_publishers_embrace_app_store.html" target="_blank">big game developers have started to embrace the Apple app store</a>. Not exactly surprising considering the fact that some have even suggested that the app store is going to be as huge as the internet. As exaggerated as it may sound, the app is HUGE and it is able to reach to millions of customers each day. The keyword here is &#8211; convenience. It&#8217;s just too easy for any customer to browse the app store, search for some keywords, look at a few apps and decide to download it for a buck! And when there is enough interest the volume of customers who are downloading apps is enough to make a developer rich.<br />
<span id="more-552"></span><br />
So if you are one of the aspiring entrepreneurs aspiring to take the plunge into the world of iPhone apps, let me tell you something &#8211; there are 2 ways of doing this. One is the traditional way &#8211; you get a mac, get an iphone, learn up objective C, learn up iPhone SDK and start writing apps and of course put it up for sale on the app store. Simple enough! The other way, the not so traditional way is to hire an <a href="http://www.twitter.com/rajrmatblogger" target="_blank">iPhone apps developer</a>. Certainly you will need to have a mac at the least since you will need to compile your apps and attach your &#8220;certificate&#8221; that Apple will issue to you when you register as an iPhone developer. But if you think that you even want to eliminate that investment there is a way to do this too! I will be revealing the techniques you can follow based on my interaction with my clients.</p>
<p><strong>The traditional way!</strong></p>
<p>Ok, this is how I started off. Luckily I did have the headstart of knowing objective C. But learning up the SDK is not really the most easiest thing that I have encountered. When I started off sometime in early 2008, there weren&#8217;t many blogs or books or tutorials except for some boring literature from Apple themselves. This is probably the reason why there were few developers around and the app store wasn&#8217;t really &#8220;booming&#8221; like it is now. But somehow I got through it thanks to some great blogs and books that I read.</p>
<p><strong><em>Blogs/Websites that I recommend:</em></strong></p>
<p><a href="http://www.icodeblog.com" target="_blank">icodeblog</a><br />
<a href="http://www.iphonedevsdk.com/forum">iPhone DEV SDK forum</a></p>
<p>Of course there are quite a number of other blogs written by developers including yours truly <img src='http://gadgetfrik.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> ! I&#8217;ve always had a passion for books and there are a few books which helped me quite a bit on the way too!</p>
<p><strong><em>Books that I recommend:</em></strong></p>
<p><a href="http://www.amazon.com/gp/product/1430224592?ie=UTF8&amp;tag=guinnandgadge-20&amp;linkCode=xm2&amp;camp=1789&amp;creativeASIN=1430224592" target="_blank">Beginning iPhone Development 3</a><br />
<a href="http://www.amazon.com/gp/product/0321555457?ie=UTF8&amp;tag=guinnandgadge-20&amp;linkCode=xm2&amp;camp=1789&amp;creativeASIN=0321555457" target="_blank">The iPhone Developers Cookbook</a></p>
<p><em><strong>If you need some basics then you can start reading the three part series on how to become an iPhone developer. </strong></em><em><br />
</em><a href="http://www.gadgetfrik.com/2009/03/how-to-become-an-iphone-app-developer-part-one/" target="_blank">How to become an iPhone app developer &#8211; Part one</a><br />
<a href="http://www.gadgetfrik.com/2009/03/how-to-become-an-iphone-app-developer-part-two/" target="_blank">How to become an iPhone app developer &#8211; Part two</a><br />
<a href="http://www.gadgetfrik.com/2009/04/how-to-become-an-iphone-app-developer-part-three/" target="_blank">How to become an iPhone app developer &#8211; Part three</a></p>
<p>These are all great resources to get you started on developing your apps. Of course more than developing apps what is important is getting your market research done. Look at what apps are doing well, why are they doing well etc. Next thing you need to figure out is whether you want to put in your app as a paid app or as a free app. There are pros and cons for both which I will be discussing in the upcoming continuation posts of this series. I hope that you will find the above resources to be helpful for your next app development.</p>
<p>I will be discussing the non traditional way of entering the iPhone App business in my next post. Lookout for it! If you would like to be notified about my future posts, do consider subscribing to my <a href="http://www.gadgetfrik.com/feed/" target="_blank">RSS feed</a>.</p>
<div class="shr-publisher-552"></div>]]></content:encoded>
			<wfw:commentRss>http://www.gadgetfrik.com/2009/10/how-do-you-get-into-the-iphone-app-business-part-one/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>How to play an audio file in your iPhone App?</title>
		<link>http://www.gadgetfrik.com/2009/10/how-to-play-an-audio-file-in-your-iphone-app/</link>
		<comments>http://www.gadgetfrik.com/2009/10/how-to-play-an-audio-file-in-your-iphone-app/#comments</comments>
		<pubDate>Tue, 06 Oct 2009 04:35:58 +0000</pubDate>
		<dc:creator>gadgetfrik</dc:creator>
				<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[gadgets]]></category>
		<category><![CDATA[iphone app development]]></category>

		<guid isPermaLink="false">http://www.gadgetfrik.com/?p=548</guid>
		<description><![CDATA[Although its been a while since I figured out how to play an audio file in an iPhone app, it still is a pain in the ass every time I try to make it work on a new app. I still keep doing some trial and errors or refer to the numerous blogs out there [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.gadgetfrik.com%2F2009%2F10%2Fhow-to-play-an-audio-file-in-your-iphone-app%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.gadgetfrik.com%2F2009%2F10%2Fhow-to-play-an-audio-file-in-your-iphone-app%2F&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>Although its been a while since I figured out how to play an audio file in an iPhone app, it still is a pain in the ass every time I try to make it work on a new app. I still keep doing some trial and errors or refer to the numerous blogs out there helping out fellow iPhone app developers. So I decided to once and for all document the steps that I usually take to play a sound file. Typically the file extensions that are allowed are:</p>
<p>- <strong>.caf</strong><br />
- <strong>.m4a</strong><br />
- <strong>.wav</strong><br />
- <strong>.mp3</strong></p>
<p>In my opinion I find the first 3 easier to work with rather than the popular .mp3 format. For some reason there are audio clips in .mp3 format which don&#8217;t seem to work. Luckily there are so many .mp3 to .wav converters around which you can use. Or the easiest way will be to use iTunes to convert to AAC format which will assign a .m4a extension for the audio clip. Anyway, here are the steps you need to follow to play an audio file in your iPhone app.<br />
<span id="more-548"></span></p>
<p>1. Copy the audio file to your project directory<br />
2. Create a file called SoundEffects.h with the following code:</p>
<p><span style="color: #0000ff;">#import &lt;UIKit/UIKit.h&gt;<br />
#import &lt;AudioToolbox/AudioServices.h&gt;</span></p>
<p><span style="color: #0000ff;">@interface SoundEffect : NSObject {<br />
SystemSoundID soundID;<br />
}<br />
- (id) initWithContentsOfFile:(NSString *)path;<br />
-(void)play;</span></p>
<p><span style="color: #0000ff;">@end</span></p>
<p>3. Create another file called SoundEffects.m and add the following code to it:</p>
<p><span style="color: #0000ff;">#import &#8220;SoundEffect.h&#8221;</span></p>
<p><span style="color: #0000ff;">@implementation SoundEffect</span></p>
<p><span style="color: #0000ff;">- (id) initWithContentsOfFile:(NSString *)path;<br />
{<br />
self = [super init];<br />
if (self != nil) {<br />
NSURL *filePath = [NSURL fileURLWithPath: path isDirectory:NO];</span></p>
<p><span style="color: #0000ff;">AudioServicesCreateSystemSoundID((CFURLRef)filePath, &amp;soundID);<br />
}<br />
return self;<br />
}</span></p>
<p><span style="color: #0000ff;">-(void)play {</span></p>
<p><span style="color: #0000ff;">AudioServicesPlaySystemSound(soundID);<br />
}</span></p>
<p><span style="color: #0000ff;">@end</span></p>
<p>4. Add the following code in your main.m</p>
<p><span style="color: #0000ff;">-(void) awakeFromNib {</span></p>
<p><span style="color: #0000ff;">NSBundle *mainBundle = [NSBundle mainBundle];<br />
soundEffect = [[SoundEffect alloc] initWithContentsOfFile:[mainBundle pathForResource:@"farSound" ofType:@"caf"]];<br />
}</span></p>
<p>5. At the place where you want to play the sound file, add the following code:<br />
<span style="color: #0000ff;">[soundEffect play];<br />
</span><br />
You will need to manually add the Audio Toolkit framework to your application bundle as well. This is a step that a lot of developers forget to do. If you do not do this, then your project will not compile. Wish Apple could make this much more straightforward rather than going through so many steps and invoking the Audio Toolkit framework. Anyway, hope this will be helpful for your development and as usual do let me know if you face any problems.</p>
<div class="shr-publisher-548"></div>]]></content:encoded>
			<wfw:commentRss>http://www.gadgetfrik.com/2009/10/how-to-play-an-audio-file-in-your-iphone-app/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to check if your iPhone App is running on Simulator or Device?</title>
		<link>http://www.gadgetfrik.com/2009/10/how-to-check-if-your-iphone-app-is-running-on-simulator-or-device/</link>
		<comments>http://www.gadgetfrik.com/2009/10/how-to-check-if-your-iphone-app-is-running-on-simulator-or-device/#comments</comments>
		<pubDate>Thu, 01 Oct 2009 06:16:49 +0000</pubDate>
		<dc:creator>gadgetfrik</dc:creator>
				<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[gadgets]]></category>
		<category><![CDATA[iphone app development]]></category>

		<guid isPermaLink="false">http://www.gadgetfrik.com/?p=543</guid>
		<description><![CDATA[Its been a while since I wrote an actual programming tutorial for iPhone app developers. I&#8217;ve been busy developing a few applications for my clients and since I have completed one major project, I am writing this post to share one of my findings. The app is actually a birthday cake application &#8211; sort of [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.gadgetfrik.com%2F2009%2F10%2Fhow-to-check-if-your-iphone-app-is-running-on-simulator-or-device%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.gadgetfrik.com%2F2009%2F10%2Fhow-to-check-if-your-iphone-app-is-running-on-simulator-or-device%2F&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>Its been a while since I wrote an actual programming tutorial for iPhone app developers. I&#8217;ve been busy developing a few applications for my clients and since I have completed one major project, I am writing this post to share one of my findings. The app is actually a birthday cake application &#8211; sort of like a virtual birthday cake. The user basically downloads the app to his iphone, enters his name (or the person to be wished), lights up the virtual candles and blows the candles out. Simple right? Simple yet fun concept. The tricky part was to design the algorithm for the blow detection into the mic. Once the algorithm was developed, the next part was testing it out. The testing on simulator and device is totally different for one obvious reason &#8211; you <strong>CANNOT blow</strong> into the simulator. So I needed to keep changing variable values while switching from simulator to device until I found out how silly the method actually was. There is an easier way to do this. Here&#8217;s how I did it.<br />
<span id="more-543"></span><br />
This code&#8217;s inspiration was from <a href="http://iphonedevelopment.blogspot.com/2009/05/device-detection.html" target="_blank">Jeff Lemarche&#8217;s</a> blog post.</p>
<p><span style="color: #0000ff;">NSString *model= [[UIDevice currentDevice] model];<br />
NSString *iPhoneSimulator = @&#8221;iPhone Simulator&#8221;;</span></p>
<p><span style="color: #0000ff;">float k=0.7; //This can be any value<br />
uint detected;</span></p>
<p><span style="color: #0000ff;">if ([model compare:iPhoneSimulator] == NSOrderedSame)<br />
{<br />
// iPhone simulator<br />
detected = MODEL_IPHONE_SIMULATOR;<br />
k=0.0; //This can be any value}</span></p>
<p>Don&#8217;t forget to declare <strong>MODEL_IPHONE_SIMULATOR</strong> as an enum!</p>
<p>Simple right? In the above code example the variable <strong>k</strong> takes the value 0.0 if it detects that the program is running on a simulator. The variable <strong>k</strong> takes the value 0.7 if it detects the program running on a device. Once you have this done, you can use a simple if-then-else statement to continue the rest of your program to respond accordingly. I have tried this out and works perfectly. Don&#8217;t take my word for it &#8211; you can try it out yourself too!</p>
<div class="shr-publisher-543"></div>]]></content:encoded>
			<wfw:commentRss>http://www.gadgetfrik.com/2009/10/how-to-check-if-your-iphone-app-is-running-on-simulator-or-device/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>How I setup push email on my iPhone for my Gmail Account</title>
		<link>http://www.gadgetfrik.com/2009/09/how-i-setup-push-email-on-my-iphone-for-my-gmail-account/</link>
		<comments>http://www.gadgetfrik.com/2009/09/how-i-setup-push-email-on-my-iphone-for-my-gmail-account/#comments</comments>
		<pubDate>Thu, 24 Sep 2009 09:37:57 +0000</pubDate>
		<dc:creator>gadgetfrik</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[gadgets]]></category>
		<category><![CDATA[gmail]]></category>

		<guid isPermaLink="false">http://www.gadgetfrik.com/?p=518</guid>
		<description><![CDATA[FINALLY its here &#8211; push service for Gmail. It&#8217;s really baffling how come Gmail didn&#8217;t incorporate this feature for their millions of loyal users. Although Yahoo! was offering push email for quite some time, it seemed that you needed to purchases third party software to enable this feature in Gmail. Although it was widely speculated [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.gadgetfrik.com%2F2009%2F09%2Fhow-i-setup-push-email-on-my-iphone-for-my-gmail-account%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.gadgetfrik.com%2F2009%2F09%2Fhow-i-setup-push-email-on-my-iphone-for-my-gmail-account%2F&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p><img class="alignright size-medium wp-image-520" title="mailbox" src="http://www.gadgetfrik.com/wp-content/uploads/2009/09/mailbox-300x251.png" alt="mailbox" width="300" height="251" />FINALLY its here &#8211; push service for Gmail. It&#8217;s really baffling how come Gmail didn&#8217;t incorporate this feature for their millions of loyal users. Although Yahoo! was offering push email for quite some time, it seemed that you needed to purchases third party software to enable this feature in Gmail. Although it was widely speculated that it was just a matter of time before Google was going to enable push services on Gmail it wasn&#8217;t very clear when exactly! So what exactly is Push Email?</p>
<p>According to <a href="http://www.wisegeek.com/what-is-push-email.htm" target="_blank">WiseGeek</a></p>
<blockquote><p>Push email utilizes a mail delivery system with real-time capability to “push” email through to the client as soon as it arrives, rather than requiring the client to poll and collect or pull mail manually. With a push email smartphone, for example, the client’s mailbox is constantly updated with arriving email without user intervention. Smartphones announce new mail arrival with an alert.</p></blockquote>
<p>In simpler words, what it means is that your mailbox is updated as soon as a mail arrives in the server. You do not have to login to your account to get the email by yourself.<br />
<span id="more-518"></span><br />
Now that <a href="http://gmailblog.blogspot.com/2009/09/push-gmail-for-iphone-and-windows.html" target="_blank">push email is available for Gmail</a>, I couldn&#8217;t wait to try it out on my iPhone 3GS. Here are the steps to follow:</p>
<p>(<em>Reproduced from <a href="http://www.google.com/support/mobile/bin/answer.py?answer=138740&amp;topic=14252" target="_blank">Google Support Page</a></em>)</p>
<p><strong>Requirements and Upload</strong><br />
1. Google Sync is only supported on iPhone OS versions 3.0 and above. You can check your current version by going to Settings &gt; General &gt; About &gt; Version. To upgrade, follow the instructions at http://www.apple.com/iphone/softwareupdate/. Please upgrade to iPhone OS 3.0 before setting up Google Sync.</p>
<p>2. Perform a sync with iTunes to ensure that Contacts and Calendars from your iPhone are backed up to your computer.</p>
<p><strong>Getting Started</strong><br />
1. Open the Settings application on your device&#8217;s home screen.<br />
2. Open Mail, Contacts, Calendars.<br />
3. Tap Add Account&#8230;.<br />
4. Select Microsoft Exchange.</p>
<p><strong>Enter Account Info</strong><br />
5. In the Email field, enter your full Google Account email address. If you use an @googlemail.com address, you may see an &#8220;Unable to verify certificate&#8221; warning when you proceed to the next step.<br />
6. Leave the Domain field blank.<br />
7. Enter your full Google Account email address as the Username.<br />
8. Enter your Google Account password as the Password.<br />
9. Tap Next at the top of your screen.<br />
9a. Choose Accept if the Unable to Verify Certificate dialog appears.<br />
10. A new Server field will appear. Enter m.google.com.<br />
11. Press Next at the top of your screen again.<br />
12. Select the Google services you want to sync.<br />
13. Unless you want to delete all the existing Contacts and Calendars on your phone, select the Keep on my iPhone option when prompted. This will also allow you to keep syncing with your computer via iTunes.</p>
<p>If you want to sync only the My Contacts group, you must choose to Delete Existing Contacts during the Google Sync install when prompted. If you choose to keep existing contacts, it will sync the contents of the &#8220;All Contacts&#8221; group instead.</p>
<p>You&#8217;ve set up Google Sync for your iPhone. Synchronization will begin automatically if you have Push enabled on your phone. You can also open the Mail, Calendar or Contacts app and wait a few seconds to start a sync.</p>
<p>Remember to upgrade your iPhone to version 3.0 before enabling this service. Have fun!</p>
<div class="shr-publisher-518"></div>]]></content:encoded>
			<wfw:commentRss>http://www.gadgetfrik.com/2009/09/how-i-setup-push-email-on-my-iphone-for-my-gmail-account/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A roundup of iTunes 9.0 and iPhone OS 3.1 – part 2</title>
		<link>http://www.gadgetfrik.com/2009/09/a-roundup-of-itunes-9-0-and-iphone-os-3-1-%e2%80%93-part-2/</link>
		<comments>http://www.gadgetfrik.com/2009/09/a-roundup-of-itunes-9-0-and-iphone-os-3-1-%e2%80%93-part-2/#comments</comments>
		<pubDate>Fri, 11 Sep 2009 05:51:47 +0000</pubDate>
		<dc:creator>gadgetfrik</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[gadgets]]></category>
		<category><![CDATA[iphone]]></category>

		<guid isPermaLink="false">http://www.gadgetfrik.com/?p=492</guid>
		<description><![CDATA[This is a continuation of A roundup of iTunes 9.0 and iPhone OS 3.1 &#8211; part 1. In the previous post we saw some of the neat (and not so neat) stuff that comes with iTunes 9.0. So what&#8217;s new with iPhone OS 3.1 then? Well before you install iPhone OS 3.1 you will need [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.gadgetfrik.com%2F2009%2F09%2Fa-roundup-of-itunes-9-0-and-iphone-os-3-1-%25e2%2580%2593-part-2%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.gadgetfrik.com%2F2009%2F09%2Fa-roundup-of-itunes-9-0-and-iphone-os-3-1-%25e2%2580%2593-part-2%2F&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>This is a continuation of <a href="http://www.gadgetfrik.com/2009/09/a-roundup-of-itune-9-0-and-iphone-os-3-1/" target="_blank">A roundup of iTunes 9.0 and iPhone OS 3.1 &#8211; part 1</a>. In the previous post we saw some of the neat (and not so neat) stuff that comes with iTunes 9.0. So what&#8217;s new with iPhone OS 3.1 then? Well before you install iPhone OS 3.1 you will need to <a href="http://www.apple.com/itunes/download/" target="_blank">download iTunes 9.0</a>. Once you&#8217;ve done that then you got to of course download iPhone OS 3.1 (which is a pretty huge file) and this would probably take you quite some time if you&#8217;re on Streamyx &#8211; how surprising (trying to keep a straight face here).<br />
<span id="more-492"></span><br />
Ok, so what&#8217;s new with OS 3.1 actually? Here&#8217;s a quick snapshot:</p>
<p><img class="aligncenter size-full wp-image-493" title="iPhone OS 3.1" src="http://www.gadgetfrik.com/wp-content/uploads/2009/09/iPhone-OS-3.1.png" alt="iPhone OS 3.1" width="640" height="346" /></p>
<p>I&#8217;ve pretty much covered most of the features here in the previous post and I wont go through them again. But here are some of the features that are worth mentioning:</p>
<p>- You can now trim a video (if you have an iPhone 3GS) and save it as a new file<br />
- You can save a video file from MMS or email<br />
- Organize your apps via iTunes 9.0 on your homescreen(s)<br />
- Remotely lock iPhone via Mobileme (useful if your phone gets stolen and you have personal information)<br />
- Use voice control with the iPhone 3GS using a bluetooth headset</p>
<p>These are some of the features that really caught my attention. For a more comprehensive list of features and updates you can go to the official <a href="http://www.apple.com/iphone/softwareupdate/" target="_blank">iPhone OS 3.1 website</a>.</p>
<p>So what are the issues that I found with the firmware update? The most obvious one is the quieter &#8220;tick&#8221; sound while typing the keys. I miss the louder ticks as I got used to it already. Well I guess at least people around me are not going to get annoyed anymore. Here&#8217;s a forum I found which lists some <a href="http://forum.theiphoneblog.com/iphone-help/177875-list-iphone-3-1-issues.html" target="_blank">issues on iPhone OS 3.1</a> as well. I&#8217;m still playing around with the new firmware and I will update this post if I find any other issues with the new firmware update. Meanwhile if you find anything unusual feel free to share it in the comments section as usual <img src='http://gadgetfrik.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> !</p>
<p>Overall you aren&#8217;t really losing anything if you didn&#8217;t update to the latest and greatest firmware for the iPhone. Of course you wouldn&#8217;t be able to take advantage of all the features in iTunes 9.0 without this update but like I mentioned in my previous post it doesn&#8217;t mean much to Malaysian users since the iTunes store is not available to us anyway. What use is Genius when we cannot even download music from the iTunes store?</p>
<p><strong>One word of caution:</strong> For those who are happy and contended with your jailbroken iPhones please DO NOT upgrade to OS 3.1 yet! You will NEVER be able to jailbreak your phone again. Please wait for the dev team to release the new jailbreak/unlock for OS 3.1. Be patient &#8211; after all it&#8217;s not that big a deal. If you&#8217;re using OS 3.0 then you&#8217;re good to go.</p>
<div class="shr-publisher-492"></div>]]></content:encoded>
			<wfw:commentRss>http://www.gadgetfrik.com/2009/09/a-roundup-of-itunes-9-0-and-iphone-os-3-1-%e2%80%93-part-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How does Apple rate your app?</title>
		<link>http://www.gadgetfrik.com/2009/08/how-does-apple-rate-your-app-rejected-by-apple/</link>
		<comments>http://www.gadgetfrik.com/2009/08/how-does-apple-rate-your-app-rejected-by-apple/#comments</comments>
		<pubDate>Tue, 11 Aug 2009 07:37:31 +0000</pubDate>
		<dc:creator>gadgetfrik</dc:creator>
				<category><![CDATA[General Discussion]]></category>
		<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[iphone app development]]></category>
		<category><![CDATA[iphone apps]]></category>

		<guid isPermaLink="false">http://www.gadgetfrik.com/?p=428</guid>
		<description><![CDATA[I had recently completed yet another app for the app store and happily submitted it on itunesconnect waiting for approval within a week. Well it took about 10 days for the iPhone Developer team to reply and they responded that the app was actually rejected due to incorrect rating. This was definitely quite unexpected for [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.gadgetfrik.com%2F2009%2F08%2Fhow-does-apple-rate-your-app-rejected-by-apple%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.gadgetfrik.com%2F2009%2F08%2Fhow-does-apple-rate-your-app-rejected-by-apple%2F&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>I had recently completed yet another app for the app store and happily submitted it on itunesconnect waiting for approval within a week. Well it took about 10 days for the iPhone Developer team to reply and they responded that the app was actually rejected due to incorrect rating. This was definitely quite unexpected for me since this was a fairly simple app and of all the reasons I didn&#8217;t expect it to be rejected due to an incorrect rating. So what is the rating of an app? When you submit an application on itunesconnect, Apple expects you to rate the application like below:<br />
<span id="more-428"></span><br />
<img class="aligncenter size-full wp-image-432" title="rating for iphone application" src="http://www.gadgetfrik.com/wp-content/uploads/2009/08/rating-for-iphone-application2.png" alt="rating for iphone application" width="850" height="480" /></p>
<p>My application had no nudity, no obscenity, no pornography and certainly no offensive materials. So I chose the lowest rating (which is of course the best rating in this case) and sent it to Apple. But I received an email from them about 10 days later which literally made me fall off my chair. Here is what the email said:</p>
<p style="text-align: center;"><img class="size-full wp-image-434 aligncenter" title="apple app rejected email" src="http://www.gadgetfrik.com/wp-content/uploads/2009/08/apple-app-rejected-email.jpg" alt="apple app rejected email" width="835" height="175" /></p>
<p>My iPhone application actually has a couple of tabs which connects to the internet. But these webpages are hardcoded in the app and cannot be changed by the user. There is no way of entering any other webpage as I did not provide a full fledged browser to enter the URL as well. It was a custom made browser with a couple of harmless webpages. I wonder how smart the people at the iPhone Developer team are to come to the conclusion that this application allows unrestricted access to the internet and hence should be rated 17+? Weird!</p>
<p>But then again, I&#8217;m just a small drop in the ocean for the immensely popular app store and I decided to not swim against the current. I updated my app on the &#8220;<strong>Mature/Suggestive Themes</strong>&#8221; column and chose the option &#8220;<strong>frequent/intense</strong>&#8220;. The next thing I know, my app is a 17+ app instead of a 4+ app. Well I guess I can&#8217;t do much other than to send the app for approval and sit tight! Alright Mr. Smarty Pants at the iPhone Developer Program, you got your way. Now let my app get into the app store!</p>
<div class="shr-publisher-428"></div>]]></content:encoded>
			<wfw:commentRss>http://www.gadgetfrik.com/2009/08/how-does-apple-rate-your-app-rejected-by-apple/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How to know if a paid app becomes free?</title>
		<link>http://www.gadgetfrik.com/2009/07/how-to-know-if-a-paid-app-becomes-free/</link>
		<comments>http://www.gadgetfrik.com/2009/07/how-to-know-if-a-paid-app-becomes-free/#comments</comments>
		<pubDate>Mon, 27 Jul 2009 06:40:22 +0000</pubDate>
		<dc:creator>gadgetfrik</dc:creator>
				<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[iphone app development]]></category>
		<category><![CDATA[iphone apps]]></category>

		<guid isPermaLink="false">http://www.gadgetfrik.com/?p=404</guid>
		<description><![CDATA[How many times have you come across promotions on the App Store when a paid app actually becomes free? Its kind of cool for the developer because he uses it as a marketing tool to get more downloads later on. But how do you actually know when the app becomes free on the app store? [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.gadgetfrik.com%2F2009%2F07%2Fhow-to-know-if-a-paid-app-becomes-free%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.gadgetfrik.com%2F2009%2F07%2Fhow-to-know-if-a-paid-app-becomes-free%2F&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p><img class="alignright size-medium wp-image-409" title="Picture 1" src="http://www.gadgetfrik.com/wp-content/uploads/2009/07/Picture-12-300x161.png" alt="Picture 1" width="300" height="161" />How many times have you come across promotions on the App Store when a paid app actually becomes free? Its kind of cool for the developer because he uses it as a marketing tool to get more downloads later on. But how do you actually know when the app becomes free on the app store? There is this cool website called <a href="http://freeappalert.com/" target="_blank">Freeappalert</a> which actually notifies you when a paid app becomes free. Its pretty cool and you can take a look at all the apps which just became free on the homepage of the website itself. You could also subscribe to its RSS feed so that you will be notified about any new apps that just became free as well.<br />
<span id="more-404"></span></p>
<p>It definitely seems to be a growing tactic among iPhone developers (I have tried it myself) to make your app free for a limited time. It ensures that there is enough exposure considering the number of apps that are currently on the app store. It also helps to get reviews on the app as more eyes translate to more reviews as well. If you are lucky enough, it could also make it up to the top downloads list which could mean that it would definitely be a candidate for more sales in the future! Go ahead and try it yourself!</p>
<div class="shr-publisher-404"></div>]]></content:encoded>
			<wfw:commentRss>http://www.gadgetfrik.com/2009/07/how-to-know-if-a-paid-app-becomes-free/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
