<?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>Flogging English &#187; app</title>
	<atom:link href="http://floggingenglish.com/tag/app/feed/" rel="self" type="application/rss+xml" />
	<link>http://floggingenglish.com</link>
	<description>Too close for missiles; switching to guns....</description>
	<lastBuildDate>Fri, 04 May 2012 04:30:25 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Big brands go mobile &#8211; even if they don&#8217;t know why</title>
		<link>http://floggingenglish.com/2011/06/21/big-brands-go-mobile-even-if-they-dont-know-why/</link>
		<comments>http://floggingenglish.com/2011/06/21/big-brands-go-mobile-even-if-they-dont-know-why/#comments</comments>
		<pubDate>Tue, 21 Jun 2011 18:22:09 +0000</pubDate>
		<dc:creator>retsoced</dc:creator>
				<category><![CDATA[App Development]]></category>
		<category><![CDATA[Blatherings]]></category>
		<category><![CDATA[Design]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[Marketing]]></category>
		<category><![CDATA[Mobile Dev]]></category>
		<category><![CDATA[app]]></category>
		<category><![CDATA[application]]></category>
		<category><![CDATA[branding]]></category>
		<category><![CDATA[corporate]]></category>
		<category><![CDATA[iOS]]></category>
		<category><![CDATA[ipad]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[mobile]]></category>

		<guid isPermaLink="false">http://floggingenglish.com/?p=1473</guid>
		<description><![CDATA[The list of brands out there with an app has a lot of girth to it, and is growing faster than a snotty little girl who just ate the 3 course dinner piece of gum. Unfortunately, not all of them are doing something unique, usable, or even all that interesting, and ends up being another [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p><img class="alignright size-full wp-image-1537" title="Smart Phone" src="http://floggingenglish.com/media/contentMedia//2011/06/smart-phone_small.jpg" alt="smart phone" width="150" height="230" />The list of brands out there with an app has a lot of girth to it, and is growing faster than a snotty little girl who just ate the 3 course dinner piece of gum. Unfortunately, not all of them are doing something unique, usable, or even all that interesting, and ends up being another case of &#8220;just because you can, doesn&#8217;t mean you should.&#8221; The most successful apps serve a purpose, fill a void, are radically different than anything else (<strong><a title="Flipboard for iPad" href="http://flipboard.com/">Flipboard</a></strong>), or are successfully aimed at the community (<strong><a title="Alien Blue HD for iPad" href="http://itunes.apple.com/us/app/alien-blue-hd-reddit-client/id390863118?mt=8">Alien Blue</a></strong>)in which it was meant to serve. It&#8217;s a simple formula to imagine, but it&#8217;s incredibly difficult to hit center-mass, and most miss even the most carefully placed dog-targets.</p>
<p>It&#8217;s easy to look at huge numbers and say these are the brands that uncorked a whopper, I mean just take a gander at some of these numbers (which are likely out of date):</p>
<ul>
<li>Barclaycard - Waterslide - <strong>9,800,000</strong></li>
<li>Zippo &#8211; Virtual Lighter - <strong>6,000,000</strong></li>
<li>eBay - Marketplace - <strong>4,600,000</strong></li>
<li>Audi - A4 Driving Challenge  - <strong>3,500,000</strong></li>
<li>Bank of America - Mobile Banking - <strong>3,000,000</strong></li>
<li>Coca Cola - Spin the Bottle - <strong>870,000</strong></li>
<li>IBM/Amex - U.S. Open - <strong>450,000</strong></li>
<li>Stanley Works - Level - <strong>400,000</strong></li>
<li>North Face - Snow Report - <strong>300,000</strong></li>
<li>vitaminwater - Sound Lab - <strong>250,000</strong></li>
<li>Zipcar - Zipcar App - <strong>170,000</strong></li>
</ul>
<p>At first glance you would say these guys all got it right, but you have to look a little deeper, and relate those numbers to the size of the user base, and the size of that Brands community. Naturally those companies with huge communities and ubiquitous brand recognition are going to have massive downloads. How else can you explain all of the downloads Coke, <strong><a href="http://itunes.apple.com/us/app/spin-the-coke/id303018470?mt=8">Spin the Bottle</a> </strong>has received? That app is only slightly better than the <strong><a title="iGlowStick" href="http://itunes.apple.com/us/app/iglowstickpro/id336918946?mt=8">iGlow stick</a></strong> app.</p>
<p>Now look at the Kmart and <strong><a title="Sears2go app" href="http://itunes.apple.com/us/app/sears2go/id305449194?mt=8">Sears</a></strong> apps, which are nothing more than another way to shop on your iPhone. What value does an app that all but replicates the shopping experience in Safari add to that brands community? Not much, and their 2.5 star rating reflects that.</p>
<p>So who has gotten it right? <strong><a title="Virtual Zippo lighter" href="http://itunes.apple.com/us/app/virtual-zippo-lighter/id291622252?mt=8">Zippo</a></strong> is an easy target for a brand that hit the mark. They have more than 6 million downloads on an app that basically does nothing, and provides no real value other than entertainment novelty. I know that sounds like a slam, but it doesn&#8217;t really have to be. It was something that fit perfectly into their community, and what a lot of people were looking for as a fun way to show their attachment to the iconic pocket lighter. Gap is another example with their <strong><a title="1969 stream" href="http://itunes.apple.com/us/app/gap-1969-stream/id364203948?mt=8">1969 Stream iPad app</a></strong>. It&#8217;s a well designed, well functioning advertising piece that is just fun to look at and flip through, and has a <strong><a title="Gap 1969 stream" href="http://www.gap1969.com/#/WallView/Womens,Mens/5e8ceca5-b096-46e2-9ecc-e4ed5faeec17/">companion website</a></strong>; or the app is the companion to the website &#8211; either way, good jaeerb guys!</p>
<p>There are tons more, too many to list in fact, and a lot of them are really well designed and developed, and a lot of them are junk; but that&#8217;s okay. Even the failures are doing their job, and hopefully the brands are learning from them and working on doing a better job for the next rev. See, that&#8217;s the key here.</p>
<p>Everyone wants to be the next Angry Birds, or Victoria Secret Pink, but what they lose sight of is that they really need to just be themselves, and be true to the personality of their brand. Getting caught up in being the next &#8220;big thing&#8221; is only going to get you so far. Failure is always an option.</p>
<p>So what am I saying here? I&#8217;m saying do your homework, and eat your veggies. Do the research. Spend some money, and build something your kids would want to use. Find a void and fill it with your app. Do something ridiculous and borderline crazy just to see what happens. But know why you&#8217;re doing it, and it can&#8217;t be because your competitors are. If that&#8217;s the only reason, then you might as well just follow the rest of the Lemmings&#8230;&#8230;</p>
<div id="facebook_like"><iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Ffloggingenglish.com%2F2011%2F06%2F21%2Fbig-brands-go-mobile-even-if-they-dont-know-why%2F&amp;layout=standard&amp;show_faces=true&amp;width=500&amp;action=like&amp;font=segoe+ui&amp;colorscheme=light&amp;height=80" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:500px; height:80px;" allowTransparency="true"></iframe></div><div class="shr-publisher-1473"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://floggingenglish.com/2011/06/21/big-brands-go-mobile-even-if-they-dont-know-why/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Blogging from the iPad &#8211; w00t!</title>
		<link>http://floggingenglish.com/2010/04/03/blogging-from-the-ipad-w00t/</link>
		<comments>http://floggingenglish.com/2010/04/03/blogging-from-the-ipad-w00t/#comments</comments>
		<pubDate>Sat, 03 Apr 2010 23:59:11 +0000</pubDate>
		<dc:creator>retsoced</dc:creator>
				<category><![CDATA[App Development]]></category>
		<category><![CDATA[Bronco]]></category>
		<category><![CDATA[Geeking Out]]></category>
		<category><![CDATA[Mobile Dev]]></category>
		<category><![CDATA[app]]></category>
		<category><![CDATA[blogging]]></category>
		<category><![CDATA[ebook]]></category>
		<category><![CDATA[games]]></category>
		<category><![CDATA[ipad]]></category>
		<category><![CDATA[mobile]]></category>
		<category><![CDATA[reader]]></category>
		<category><![CDATA[tablet]]></category>

		<guid isPermaLink="false">http://floggingenglish.com/?p=1327</guid>
		<description><![CDATA[So I got my hands on iPad today, it&#8217;s not mine really, but I get to play with it for a couple of days while I get it setup for a work project. My first reaction is that it&#8217;s pretty freakin&#8217; cool, just like a proper Apple fanboy. I&#8217;m amazed at how nice the majority [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p><a href="http://itunes.apple.com/us/app/karate-chapp/id356987817?mt=8"><img class="alignright size-full wp-image-1326" title="Karate Chapp on the iPad" src="http://floggingenglish.com/media/contentMedia//2010/04/chapp-ipad-small.jpg" alt="" width="221" height="288" /></a>So I got my hands on iPad today, it&#8217;s not mine really, but I get to play with it for a couple of days while I get it setup for a work project. My first reaction is that it&#8217;s pretty freakin&#8217; cool, just like a proper Apple fanboy. I&#8217;m amazed at how nice the majority of the apps that I have look on it even when they are zoomed in to twice normal size. Both of my apps, <strong><a title="get FIB-U-LATOR" href="itms://itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=326102167&amp;mt=8&amp;s=143441" target="_blank">FIB-U-LATOR</a></strong> and <strong><a title="get Karate Chapp" href="http://itunes.apple.com/us/app/karate-chapp/id356987817?mt=8" target="_blank">Karate Chapp</a></strong> scale remarkably well, and hold together visually at two times their designed size.</p>
<p>I also downloaded <strong><a title="iBooks" href="http://itunes.apple.com/us/app/ibooks/id364709193?mt=8" target="_blank">iBooks</a></strong> and started poking around to see how many of the books I have recently bought are in the store&#8230;. Yeah, that would be none. I know it just came out, would be a big use for me if it turns out to be something I can really get into reading on. I would rather have ebooks than have a huge library of books I may not read more than once.</p>
<p>Writing this post is a challenge too since the WordPress interface is really not working. The visual editor doesn&#8217;t work at all, I can&#8217;t scroll any of the in page elements like my categories or the editor. But then again, I&#8217;m sure there&#8217;s an app for that.</p>
<p>It seems that simple web browsing is faster on the iPad too that it is on my iPhone or iPod. It could be that it just seems that way because it&#8217;s a new toy and I&#8217;m still geeking out over it, or the newer device actually performs faster since it has newer chip. Probably a little of both.</p>
<p>Anyway, it&#8217;s really fun to play with, and I can totally see getting one when version two comes out, especially instead of a Kindle, which is a single use item.</p>
<div id="facebook_like"><iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Ffloggingenglish.com%2F2010%2F04%2F03%2Fblogging-from-the-ipad-w00t%2F&amp;layout=standard&amp;show_faces=true&amp;width=500&amp;action=like&amp;font=segoe+ui&amp;colorscheme=light&amp;height=80" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:500px; height:80px;" allowTransparency="true"></iframe></div><div class="shr-publisher-1327"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://floggingenglish.com/2010/04/03/blogging-from-the-ipad-w00t/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>SQLite for iPhone apps</title>
		<link>http://floggingenglish.com/2010/02/06/sqlite-for-iphone-apps/</link>
		<comments>http://floggingenglish.com/2010/02/06/sqlite-for-iphone-apps/#comments</comments>
		<pubDate>Sat, 06 Feb 2010 13:11:26 +0000</pubDate>
		<dc:creator>retsoced</dc:creator>
				<category><![CDATA[App Development]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[app]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[dev]]></category>
		<category><![CDATA[FIB-U-LATOR]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[sqllite]]></category>
		<category><![CDATA[XML]]></category>

		<guid isPermaLink="false">http://floggingenglish.com/?p=1292</guid>
		<description><![CDATA[I recently updated the FIB-U-LATOR app to have more excuses, and I&#8217;ve decided to add another update, only this time I am going to add support for expanded features that require the use of the SQLite Database available to the app in the SDK. Getting data out of the database is pretty easy actually, and [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p><a href="http://floggingenglish.com/media/contentMedia/2010/02/sqllite-1.png" rel="lightbox[1292]"><img class="alignright size-full wp-image-1293" title="MikeTs SQLite manager" src="http://floggingenglish.com/media/contentMedia//2010/02/sqlite-1-small.png" alt="" width="240" height="166" /></a>I recently updated <strong><a title="FIB-U-LATOR" href="http://perubique.com/apps/app-portfolio.php" target="_blank">the FIB-U-LATOR app</a></strong> to have more excuses, and I&#8217;ve decided to add another update, only this time I am going to add support for expanded features that require the use of the SQLite Database available to the app in the SDK. Getting data out of the database is pretty easy actually, and it really doesn&#8217;t take much code to connect to, then retrieve data. Here&#8217;s a <strong><a title="dBlog - SQLite tutorial for iPhone dev" href="http://dblog.com.au/iphone-development-tutorials/iphone-sdk-tutorial-reading-data-from-a-sqlite-database/" target="_blank">quick tutorial over at dBlog</a></strong>, but I&#8217;m getting ahead of myself.</p>
<p>Since I work with MSSQL all the time at the day job, I&#8217;m really accustomed to having a nice GUI to do all the work of creating and managing my databases, and I really have no inclination whatsoever to do any of those tasks at the command line. None at all, no thanks. It didn&#8217;t take me long to find this simple, easy to use GUI called <strong><a title="MikeT's Database App" href="http://www.saxmike.com/MySoftware/MySoftware.asp?Menu=MYSOFTWARE" target="_blank">MikeT&#8217;s SQLite Database Management Application</a></strong>. It is very basic, and simple, but you really don&#8217;t need anything more than that. It&#8217;s fast, simple to figure out, and <a href="http://floggingenglish.com/media/contentMedia//2010/02/sqlite-2.png" rel="lightbox[1292]"><img class="alignright size-full wp-image-1294" title="sqlite-2-small" src="http://floggingenglish.com/media/contentMedia//2010/02/sqlite-2-small.png" alt="" width="240" height="166" /></a>jammed with a bunch of options. You can add encryption when you create the database, and has a dropdown to select the column data type while adding new rows to the table, you can even import data from a tab delimited file to create a new database.</p>
<p>I have some work ahead of me to get my current data into the new database yet, and ideally what I would like to be able to do is convert the plist file to a tab delimited file and just import it. Right now, I&#8217;m not sure how to do that. <strong><a title="EditiX XML editor" href="http://www.apple.com/downloads/macosx/development_tools/editixxmleditor.html" target="_blank">EditiX</a></strong> seems like it&#8217;s a good option, but I haven&#8217;t tried it. There&#8217;s also a big <strong><a title="XmacL XML editors for OS X" href="http://xmacl.com/" target="_blank">list of XML editors for OS X at XMacL</a></strong>. <strong><a title="Oxygen XML Editor" href="http://www.oxygenxml.com/xml_editor.html" target="_blank">Oxygen XML Editor</a></strong> seems like a really powerful option, but it&#8217;s a bit pricey at $350.00 for a single license. I&#8217;d rather hand-jam all of the entries than spend that kind of scratch for an app to do it, I only have a few hundred entries anyway, so it wouldn&#8217;t be a horrible march of death to get it done the hard way.</p>
<p>More to come as I get further into this.</p>
<div id="facebook_like"><iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Ffloggingenglish.com%2F2010%2F02%2F06%2Fsqlite-for-iphone-apps%2F&amp;layout=standard&amp;show_faces=true&amp;width=500&amp;action=like&amp;font=segoe+ui&amp;colorscheme=light&amp;height=80" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:500px; height:80px;" allowTransparency="true"></iframe></div><div class="shr-publisher-1292"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://floggingenglish.com/2010/02/06/sqlite-for-iphone-apps/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Recording, editing and optimizing audio for iPhone development</title>
		<link>http://floggingenglish.com/2010/01/25/recording-editing-and-optimizing-audio-for-iphone-development/</link>
		<comments>http://floggingenglish.com/2010/01/25/recording-editing-and-optimizing-audio-for-iphone-development/#comments</comments>
		<pubDate>Tue, 26 Jan 2010 03:22:50 +0000</pubDate>
		<dc:creator>retsoced</dc:creator>
				<category><![CDATA[App Development]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[app]]></category>
		<category><![CDATA[audio]]></category>
		<category><![CDATA[AVAudioPlayer]]></category>
		<category><![CDATA[channels]]></category>
		<category><![CDATA[compression]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[mono]]></category>
		<category><![CDATA[MP3]]></category>
		<category><![CDATA[sound effects]]></category>
		<category><![CDATA[sounds]]></category>
		<category><![CDATA[stereo]]></category>
		<category><![CDATA[wav]]></category>

		<guid isPermaLink="false">http://floggingenglish.com/?p=1285</guid>
		<description><![CDATA[It&#8217;s no secret that I have another iPhone app in the works, and that it will be available soon. Although, I have been reluctant to give out a lot of detail simply because, well, I&#8217;m a bit paranoid. I will say that it involves Brent and I recording audio for playback in the app, and [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p><img class="alignright size-full wp-image-1288" title="mic" src="http://floggingenglish.com/media/contentMedia//2010/01/mic.jpg" alt="" width="180" height="240" />It&#8217;s no secret that I have another iPhone app in the works, and that it will be available soon. Although, I have been reluctant to give out a lot of detail simply because, well, I&#8217;m a bit paranoid. I will say that it involves Brent and I recording audio for playback in the app, and that it has been interesting working with audio on the iPhone.</p>
<p>The first thing I noticed straight away is that it&#8217;s easy to use files that are far too large for the iPhone to playback properly while working with .wav files. I started working with .wav files for two reasons. The first being that I have a ton of them, and that made it easy to drop files in to test with. Second, compressed audio files cannot be overlapped on the iPhone, so if you want them to play simultaneously, .wav files are your Huckleberry.</p>
<p>First, I needed a microphone that wasn&#8217;t going to sound like an AM Radio, so I went out (dispatched the wife actually &#8211; thanks dear) and picked up a <a href="http://www.amazon.com/gp/product/B000EOPQ7E?ie=UTF8&amp;tag=floggengli-20&amp;linkCode=as2&amp;camp=1789&amp;creative=390957&amp;creativeASIN=B000EOPQ7E"><strong>Blue Snowball</strong></a><img style="border: none !important; margin: 0px !important;" src="http://www.assoc-amazon.com/e/ir?t=floggengli-20&amp;l=as2&amp;o=1&amp;a=B000EOPQ7E" border="0" alt="" width="1" height="1" />. As it turns out, the Snowball is every bit as good as the reviews says it is, and I would highly recommend it. With the Snowball plugged in, SoundBooth open, we were all set and the recording commenced. Recording the audio was easy the most enjoyable part of the project so far, once the app comes out, you&#8217;ll see why.</p>
<p>When we were finished, I ended up with about two dozen CD quality .wav files, which still needed to be trimmed down. The files ranged in file size from 300k up to about 1.2mb. I trimmed the up, but left them as dual-channel files and tried to get them to run in my app. Needless to say the files choked both my iPod and iPhone and needed to be optimized for them to work. I tried a few things, and didn&#8217;t get very far in SoundBooth, so I opened them up in Audacity and removed one of the channels and converted them to mono. I also took the time to trim the ends so there wasn&#8217;t a lot of unneeded dead-space. The files are all now between 20k and 120k in size, and still sound as well as they play.</p>
<p>I have two different players in action on a couple of views in the app, and one has a single track playing at a time using AVAudioPlayer. Through digging around in some of Apple&#8217;s sample code, and online info (particularly from <strong><a title="iPhone DEV SDK" href="http://www.iphonedevsdk.com" target="_blank">iPhone Dev SDK</a></strong>) I was able to get it work.</p>
<p>Here&#8217;s the .h code:</p>
<pre class="brush: c#">

#define kAccelerationThreshold	1.8
#define kUpdateInterval			(1.0/10.f)

#import &lt;UIKit/UIKit.h&gt;
#import &lt;AVFoundation/AVFoundation.h&gt;
#include &lt;AudioToolbox/AudioToolbox.h&gt;

@interface TauntViewController : UIViewController &lt;UIAccelerometerDelegate, AVAudioPlayerDelegate&gt; {

AVAudioPlayer		*_player;

NSArray				*soundArray;

BOOL				soundEnded;

}

@property (nonatomic, assign) AVAudioPlayer*	_player;
@property (nonatomic, retain) NSArray *soundArray;

@property (nonatomic, assign) BOOL soundEnded;

- (IBAction)playTheSound;
- (IBAction)resetSound;

@end</pre>
<p>And the .m file code:</p>
<pre class="brush: c#">

#import &quot;SoundViewController.h&quot;

#import &lt;AudioToolbox/AudioToolbox.h&gt;

@implementation SoundViewController

@synthesize _player;

@synthesize soundArray;

@synthesize soundEnded;

- (void)viewWillAppear:(BOOL)animated{

UIAccelerometer *appAccel = [UIAccelerometer sharedAccelerometer];

appAccel.delegate = self;

appAccel.updateInterval = kUpdateInterval;

soundEnded = YES;

// Load the array with the sample file

soundArray = [[NSArray alloc] initWithObjects:@&quot;sound1&quot;, @&quot;sound2&quot;, @&quot;sound3&quot;, @&quot;sound4&quot;, @&quot;sound5&quot;, @&quot;sound6&quot;, nil];

}

- (void)viewDidLoad {

[super viewDidLoad];

}

- (void)startPlayback{

if ([self._player play]){

self._player.delegate = self;

}

else

NSLog(@&quot;Could not play %@\n&quot;, self._player.url);

}

- (void)didReceiveMemoryWarning {

[super didReceiveMemoryWarning];

}

- (void)viewDidUnload {

[_player release];

}

- (void)dealloc {

[super dealloc];

}

#pragma mark -

- (void)accelerometer:(UIAccelerometer *)accelerometer didAccelerate:(UIAcceleration *)acceleration{

if (sqrt(acceleration.x * acceleration.x) &gt; kAccelerationThreshold || sqrt(acceleration.y * acceleration.y) &gt; kAccelerationThreshold || sqrt(acceleration.z * acceleration.z) &gt; kAccelerationThreshold) {

[self playTheSound];

}

}

- (void)playTheSound{

// play the sound file

if (soundEnded) {

soundEnded = NO;

int soundId = random() % soundArray.count;

NSString *newSound = [soundArray objectAtIndex:soundId];

NSURL *sound1URL = [[NSURL alloc] initFileURLWithPath: [[NSBundle mainBundle] pathForResource:newSound ofType:@&quot;wav&quot;]];

self._player = [[AVAudioPlayer alloc] initWithContentsOfURL:sound1URL error:nil];

[self startPlayback];

}

}

- (void)resetSound{

soundEnded = YES;

}

#pragma mark AVAudioPlayer delegate methods

- (void)audioPlayerDidFinishPlaying:(AVAudioPlayer *)player successfully:(BOOL)flag{

[self resetSound];

[player setCurrentTime:0.];

}

@end</pre>
<p>This selects a random sound from the soundArray into the player every time you shake the device, so long as there is not a sound currently playing. A couple of things I had to do which I am not sure if it&#8217;s the best way to handle it or not is adding the initialization of AppAccel for the Accelerometer in the ViewWillAppear function so that it loads the correct sounds for the view being currently used.</p>
<p>With the optimized sounds, the code works great. I thought about trying the sounds at a higher quality, in stereo, and using MP3s, but I haven&#8217;t tried it yet. Honestly I&#8217;m not sure I will since the files are so small, they sound quite good, and I&#8217;m not sure if there would be anything to gain by using MP3s over the .wav files.</p>
<p>Like I said the app will be out soon, so I hope everyone will like it as much as I do.</p>
<div id="facebook_like"><iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Ffloggingenglish.com%2F2010%2F01%2F25%2Frecording-editing-and-optimizing-audio-for-iphone-development%2F&amp;layout=standard&amp;show_faces=true&amp;width=500&amp;action=like&amp;font=segoe+ui&amp;colorscheme=light&amp;height=80" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:500px; height:80px;" allowTransparency="true"></iframe></div><div class="shr-publisher-1285"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://floggingenglish.com/2010/01/25/recording-editing-and-optimizing-audio-for-iphone-development/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FIB-U-LATOR iPhone app ready for sale</title>
		<link>http://floggingenglish.com/2009/08/14/fib-u-lator-iphone-app-ready-for-sale/</link>
		<comments>http://floggingenglish.com/2009/08/14/fib-u-lator-iphone-app-ready-for-sale/#comments</comments>
		<pubDate>Sat, 15 Aug 2009 02:21:45 +0000</pubDate>
		<dc:creator>retsoced</dc:creator>
				<category><![CDATA[App Development]]></category>
		<category><![CDATA[Blatherings]]></category>
		<category><![CDATA[Design]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[app]]></category>
		<category><![CDATA[excuses]]></category>
		<category><![CDATA[FIB-U-LATOR]]></category>
		<category><![CDATA[for fun]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[Perubique Media]]></category>
		<category><![CDATA[Xcode]]></category>

		<guid isPermaLink="false">http://floggingenglish.com/?p=1182</guid>
		<description><![CDATA[After what seemed to be an eternity of waiting, developing, waiting, mucking around with settings, more developing, and yet more waiting &#8211; my iPhone app FIB-U-LATOR has been listed as Ready for Sale, and is awaiting propagation into the App Store. w00t! w00t! I&#8217;ve been working on this app for several months in my spare [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p><img class="alignright size-full wp-image-1184" title="FIB-U-LATOR" src="http://floggingenglish.com/media/contentMedia//2009/08/screenShots_2.png" alt="FIB-U-LATOR" width="175" height="326" />After what seemed to be an eternity of waiting, developing, waiting, mucking around with settings, more developing, and yet more waiting &#8211; my iPhone app FIB-U-LATOR has been listed as Ready for Sale, and is awaiting propagation into the App Store.</p>
<p>w00t! w00t!</p>
<p>I&#8217;ve been working on this app for several months in my spare time, learning Objective C along the way, and working in a completely new development platform and process than what I&#8217;m used to. The entire process has been quite daunting, frustrating, tiresome and rewarding all in the same breath. For a while it seemed as if I would never get it off the ground, and in all honesty, I was ready to give up and move on. There always seemed to be another hurtle in my path. Be it lack of experience with Objective C, Cocoa, and the iPhone platform, trying to get a bank account set up, or trying to figure out <a href="http://floggingenglish.com/2009/08/02/finally-submitted-app-to-itunes-for-review/" target="_self"><strong>how to deploy my application for distribution</strong></a>.</p>
<p>With all of those behind me I am only waiting for <a href="http://perubique.com/apps/" target="_blank"><strong>FIB-U-LATOR</strong></a> to appear within the App Store itself after being approved by Apple. This last step, from what I have read can take from a few hours, to a couple of days as long as your certificates and account is all set up properly. As with anything else, I would imagine it also falls prey to how busy they are, and luckily I think it has been ample time since the OS 3 was released that it shouldn&#8217;t be a huge issue.</p>
<p>So what is <a href="http://www.facebook.com/home.php#/pages/FIB-U-LATOR/119723581371?ref=ts" target="_blank"><strong>FIB-U-LATOR</strong></a>? It&#8217;s a pretty simple excuse generator that had it&#8217;s life start almost 5 years ago as a Flash app I built figure out the SQL Components that came in one of the FLash Developer Resource kits back when they were still Macromedia. It sort of took on a life of its own after that, and the database grew quite quickly from just a few of us adding stuff at work. The just a few months ago I decided it needed to be an app. Since then, I&#8217;ve learned a great deal about development on the Mac and for the iPhone and I have another app in progress, and another lined up after that.</p>
<p>I&#8217;ve also set up a <a href="http://www.facebook.com/home.php#/pages/FIB-U-LATOR/119723581371?ref=ts" target="_blank"><strong>Facebook page</strong></a>, and added the <a href="http://perubique.com/apps/" target="_blank"><strong>apps section to my portfolio site</strong></a>, Perubique.com. My goal here is to have some fun, makes some good apps and make a little cash on the side. One thing I have yet to complete is a place for folks to submit, and then rate excuses so I can then take the top rated submission and add them to future updates. I&#8217;ve kicked around a couple of contest ideas too, to help generate buzz as well as stimulate sales &#8211; but hopefully in a fun way, not a money grubbing way.</p>
<p>When FIB-U-LATOR is completed its journey and is fully <a href="itms://itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=326102167&amp;mt=8&amp;s=143441" target="_blank"><strong>available in the App Store</strong></a>, I will distribute the links across all my sites.</p>
<p>Thanks for everyone&#8217;s help, friends, family, and Apple/iPhone dev board people.</p>
<div id="facebook_like"><iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Ffloggingenglish.com%2F2009%2F08%2F14%2Ffib-u-lator-iphone-app-ready-for-sale%2F&amp;layout=standard&amp;show_faces=true&amp;width=500&amp;action=like&amp;font=segoe+ui&amp;colorscheme=light&amp;height=80" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:500px; height:80px;" allowTransparency="true"></iframe></div><div class="shr-publisher-1182"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://floggingenglish.com/2009/08/14/fib-u-lator-iphone-app-ready-for-sale/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Finally submitted app to iTunes for review</title>
		<link>http://floggingenglish.com/2009/08/02/finally-submitted-app-to-itunes-for-review/</link>
		<comments>http://floggingenglish.com/2009/08/02/finally-submitted-app-to-itunes-for-review/#comments</comments>
		<pubDate>Sun, 02 Aug 2009 15:10:30 +0000</pubDate>
		<dc:creator>retsoced</dc:creator>
				<category><![CDATA[App Development]]></category>
		<category><![CDATA[Blatherings]]></category>
		<category><![CDATA[app]]></category>
		<category><![CDATA[app store]]></category>
		<category><![CDATA[codesigning]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[itunes]]></category>
		<category><![CDATA[provisional profiles]]></category>
		<category><![CDATA[Xcode]]></category>

		<guid isPermaLink="false">http://floggingenglish.com/?p=1176</guid>
		<description><![CDATA[The last week has been the ultimate test of my development patience and intestinal fortitude (yyeeaaahhhh!!!). I&#8217;ve have spent probably around 12 to 15 hours creating, deleting, downloading, and veraciously swearing at certificates, provisioning profiles, and xcode trying to work the Apple Voodoo to get my app to be able to be signed, then accepted [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>The last week has been the ultimate test of my development patience and intestinal fortitude (yyeeaaahhhh!!!). I&#8217;ve have spent probably around 12 to 15 hours creating, deleting, downloading, and veraciously swearing at certificates, provisioning profiles, and xcode trying to work the Apple Voodoo to get my app to be able to be signed, then accepted as a valid binary via iTunes Connect.</p>
<p>Rather than rehash everything, there were three things to be the issue.</p>
<ol>
<li>I didn&#8217;t use my name as the Common Name when requesting the Distribution cert in keychain access</li>
<li>I did not know that there was a need to set the distribution profile in the target (right click on the app under target, select get info)</li>
<li>I removed the reference to Icon.png in the info.plist file</li>
</ol>
<p>Now that that&#8217;s all said and done &#8211; I want some more for the app to get approved. In the meantime, here are some links to threads and posts that made my morning. Hope they help.</p>
<ul>
<li><a href="http://discussions.apple.com/thread.jspa?threadID=1590980&amp;start=30&amp;tstart=0" target="_blank">http://discussions.apple.com/thread.jspa?threadID=1590980&amp;start=30&amp;tstart=0</a></li>
<li><a href="http://forums.macrumors.com/showthread.php?t=659607" target="_blank">http://forums.macrumors.com/showthread.php?t=659607</a></li>
<li><a href="http://www.bigspaceship.com/blog/labs/iphone-101-understanding-distribution-pt-ii-of-ii/" target="_blank">http://www.bigspaceship.com/blog/labs/iphone-101-understanding-distribution-pt-ii-of-ii/</a></li>
</ul>
<p>There&#8217;s a lot more in my <a href="http://delicious.com/retsoced" target="_blank"><strong>Delicious links</strong></a> as well&#8230;.</p>
<div id="facebook_like"><iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Ffloggingenglish.com%2F2009%2F08%2F02%2Ffinally-submitted-app-to-itunes-for-review%2F&amp;layout=standard&amp;show_faces=true&amp;width=500&amp;action=like&amp;font=segoe+ui&amp;colorscheme=light&amp;height=80" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:500px; height:80px;" allowTransparency="true"></iframe></div><div class="shr-publisher-1176"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://floggingenglish.com/2009/08/02/finally-submitted-app-to-itunes-for-review/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>iPhone frustrations &#124; dev problems and general WTF?</title>
		<link>http://floggingenglish.com/2009/06/05/iphone-frustrations-dev-problems-and-general-wtf/</link>
		<comments>http://floggingenglish.com/2009/06/05/iphone-frustrations-dev-problems-and-general-wtf/#comments</comments>
		<pubDate>Sat, 06 Jun 2009 02:55:30 +0000</pubDate>
		<dc:creator>retsoced</dc:creator>
				<category><![CDATA[App Development]]></category>
		<category><![CDATA[Blatherings]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[app]]></category>
		<category><![CDATA[Apple Developer]]></category>
		<category><![CDATA[code signing]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[multiple devices]]></category>
		<category><![CDATA[provisional profiles]]></category>
		<category><![CDATA[testing]]></category>

		<guid isPermaLink="false">http://floggingenglish.com/?p=1127</guid>
		<description><![CDATA[I am going to preface all of this by saying I love my iPhone. I do, it&#8217;s awesome. That being said, there are few things that really make me wonder just WTF they were thinking. On top of my WTF list is the process involved in retrieving images sent to my phone from other mobile devices. I [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>I am going to preface all of this by saying I love my iPhone. I do, it&#8217;s awesome. That being said, there are few things that really make me wonder just WTF they were thinking.</p>
<p>On top of my WTF list is the process involved in retrieving images sent to my phone from other mobile devices. I would really like to meet the brain child who thought it was super user friendly to have to make me go to a website, and enter in, not one&#8230; but TWO alphanumeric strings to view the image that was sent to me. All from a device that is incapable (for now) of copy and paste. This has to be one of the most retarded things i have ever come across, and the rocket scientist who dreamt that nightmare should go back school and learn about usability. Given the fact that the images are not stored permanently there, why they just wouldn&#8217;t create a linking system like twitpic is beyond me. Just tack a freakin&#8217; GUID on the end of the URL for Pete&#8217;s sake! Gah.</p>
<p>Another thing that plagued me this afternoon was setting multiple devices to enable my iPhone to accept my <em>almost</em> completed app. I went through the setup process of adding the device only to get a code signing error. The same error that hundreds of other developers have gotten. Luckily for me all I had to do was go under Project &gt; edit project settings and then change the Code Signing Identity to the right profile, and viola! I was in business. This seems really clunky to me, and left me wondering if there was abetter way Apple could handle this. If this happens to you, and the Xcode UI options doesn&#8217;t fix it, there is a <a href="http://iphonesdkdev.blogspot.com/2009/01/codesign-error-valid-provisioning.html" target="_blank"><strong>manual process described here</strong></a>, and other places.</p>
<p>Today has been quite frustrating as far as my Apple Developer stuff goes. In general I have accomplished very little. I was unable to open a business checking account because the po-dunk chuckleheads in town decided to make up their own rules in regards to what I need to open an account. Rules contrary to what other banks say, and what the legals dudes who set up my LLC say. The gal on the phone actually said to me, &#8220;well, here at bumf$%#! bank, we have our own set of rules&#8230;&#8221;, well you can guess who she was talking to after that morsel of knowledge. That&#8217;s not to say there aren&#8217;t any folks in town who know what&#8217;s what &#8211; but this old biddy was playing with a box of rocks as far I could tell.</p>
<p>It seems like this is the longest, most arduous process available to get this all taken care of, and it looks like it will probably another 3 weeks before I will have my app in the App Store. I hope it goes faster, but I&#8217;m not holding my breath&#8230;..</p>
<div id="facebook_like"><iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Ffloggingenglish.com%2F2009%2F06%2F05%2Fiphone-frustrations-dev-problems-and-general-wtf%2F&amp;layout=standard&amp;show_faces=true&amp;width=500&amp;action=like&amp;font=segoe+ui&amp;colorscheme=light&amp;height=80" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:500px; height:80px;" allowTransparency="true"></iframe></div><div class="shr-publisher-1127"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://floggingenglish.com/2009/06/05/iphone-frustrations-dev-problems-and-general-wtf/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>iPhone app development: Fade in a label with randomly placed text</title>
		<link>http://floggingenglish.com/2009/04/12/iphone-app-development-fade-in-a-label-with-randomly-placed-text/</link>
		<comments>http://floggingenglish.com/2009/04/12/iphone-app-development-fade-in-a-label-with-randomly-placed-text/#comments</comments>
		<pubDate>Sun, 12 Apr 2009 23:36:47 +0000</pubDate>
		<dc:creator>retsoced</dc:creator>
				<category><![CDATA[App Development]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[app]]></category>
		<category><![CDATA[Interface Builder]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[iPod]]></category>
		<category><![CDATA[text effect]]></category>
		<category><![CDATA[transform]]></category>
		<category><![CDATA[Xcode]]></category>

		<guid isPermaLink="false">http://floggingenglish.com/?p=892</guid>
		<description><![CDATA[With the latest app I am working on I am populating a label with text after a button click (ooohh so exciting), and rather than have it just plop in, I wanted the text to fade in and fade out. Well I haven&#8217;t gotten it to fade out first, then fade back in after the [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>With the latest app I am working on I am populating a label with text after a button click (ooohh so exciting), and rather than have it just plop in, I wanted the text to fade in and fade out. Well I haven&#8217;t gotten it to fade out first, <em>then</em> fade back in after the text has been placed &#8211; but it does fade in. When the button is pressed the text is removed, then the label is set to alpha of 0, then the new text fades in.</p>
<pre style="padding-left: 30px; ">//set text to transparent
statusText.alpha = 0;
statusText.transform = CGAffineTransformIdentity;

[UIView beginAnimations:nil context:NULL];
[UIView setAnimationDuration:.75];
//makes text fade in 100%
statusText.alpha = 1;
[UIView commitAnimations];</pre>
<p>It&#8217;s pretty straight-forward too. After connecting the label to the statusText outlet in <a href="http://developer.apple.com/tools/interfacebuilder.html" target="_blank"><strong>Interface Builder</strong></a>, I simply use that outlet to perform the fade from within the buttonPressed action in the view controller file. As long as you have the CoreGraphics framework imported into your project you are good to go. The next bit is a bit more complex, but not really by much.</p>
<p>The text I am placing is set randomly from a .plist file. First you need to set up your viewcontroller.h file with something like:</p>
<pre style="padding-left: 30px; ">@interface FirstViewController : UIViewController {
    IBOutlet    UILabel     *statusText;
    IBOutlet    UIButton    *changeTextBtn;

    NSDictionary *textList;
    NSArray *categories;
    NSArray *textData;
}

@property (retain, nonatomic) UILabel *statusText;
@property (retain, nonatomic) NSDictionary *textList;
@property (retain, nonatomic) NSArray *categories;
@property (retain, nonatomic) NSArray *textData;
@property (retain, nonatomic) UIButton *changeTextBtn;

- (IBAction)buttonPressed:(id)sender;

@end</pre>
<p>Here, setting up the dictionary for the text strings is the most important. In the .m file is where we get the text to be placed randomly. Using the viewDidLoad function, set the following:</p>
<pre style="padding-left: 30px; ">NSBundle *bundle = [NSBundle mainBundle];
NSString *plistPath = [bundle pathForResource:@"TextList" ofType:@"plist"];

NSDictionary *dictionary = [[NSDictionary alloc]
                            initWithContentsOfFile:plistPath];
self.textList = dictionary;
[dictionary release];

NSArray *components = [self.textList allKeys];
NSArray *sorted = [components
                         sortedArrayUsingSelector:@selector(compare:)];
self.categories = sorted;

NSString *selectedCategory = [self.categories objectAtIndex:1];
NSArray *array = [textList objectForKey:selectedCategory];
self.excuses = array;</pre>
<p>Then place the new random text string using the same buttonPressed function where we set the fade:</p>
<pre style="padding-left: 30px;">int randomNumber = random() % [self.textData count];   
NSString *nextText = [self.excuses objectAtIndex:randomNumber];   
NSString *newText = [[NSString alloc] initWithFormat:@"%@", nextText];
statusText.text = newText;
[newText release];</pre>
<p>That&#8217;s pretty much it. Some of the stuff in the viewDidLoad function you might not need, but I wanted to sort by categories, then sort by the textListing in each of those categories as well. The next thing on my plate is to get the views to flip right then flip left as the user switches between views using the tabbar.</p>
<div id="facebook_like"><iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Ffloggingenglish.com%2F2009%2F04%2F12%2Fiphone-app-development-fade-in-a-label-with-randomly-placed-text%2F&amp;layout=standard&amp;show_faces=true&amp;width=500&amp;action=like&amp;font=segoe+ui&amp;colorscheme=light&amp;height=80" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:500px; height:80px;" allowTransparency="true"></iframe></div><div class="shr-publisher-892"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://floggingenglish.com/2009/04/12/iphone-app-development-fade-in-a-label-with-randomly-placed-text/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

