<?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>AquaJava</title>
	<atom:link href="http://www.aquajava.hu/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.aquajava.hu</link>
	<description>mobile powered.</description>
	<lastBuildDate>Wed, 09 May 2012 14:54:31 +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>Parsing date fields with NSDateFormatter ignoring locale</title>
		<link>http://www.aquajava.hu/2012/02/06/parsing-date-fields-with-nsdateformatter-ignoring-locale/</link>
		<comments>http://www.aquajava.hu/2012/02/06/parsing-date-fields-with-nsdateformatter-ignoring-locale/#comments</comments>
		<pubDate>Mon, 06 Feb 2012 15:27:54 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[iPhone]]></category>
		<category><![CDATA[feed]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[locale]]></category>
		<category><![CDATA[nsdate]]></category>
		<category><![CDATA[nsdateformatter]]></category>
		<category><![CDATA[null]]></category>
		<category><![CDATA[parse]]></category>
		<category><![CDATA[rss]]></category>

		<guid isPermaLink="false">http://www.aquajava.hu/?p=520</guid>
		<description><![CDATA[In many cases if the iOS device international settings is not set to US, you may have errors parsing text-based dates from e.g. RSS feeds. The solution is to set the NSDateFormatter locale to en_US_POSIX. NSLocale *locale = [[NSLocale alloc] initWithLocaleIdentifier:@"en_US_POSIX"]; [dateFormatter setLocale:locale]; [locale release]; by Luke Redpath on Stackoverflow.com]]></description>
			<content:encoded><![CDATA[<p>In many cases if the iOS device international settings is not set to US, you may have errors parsing text-based dates from e.g. RSS feeds.<br />
The solution is to set the NSDateFormatter locale to <code>en_US_POSIX</code>.<br />
<code><br />
NSLocale *locale = [[NSLocale alloc] initWithLocaleIdentifier:@"en_US_POSIX"];<br />
[dateFormatter setLocale:locale];<br />
[locale release];<br />
</code></p>
<p>by Luke Redpath on <a href="http://stackoverflow.com/questions/4418470/inconsistent-behaviour-with-nsdateformatter-on-two-different-devices">Stackoverflow.com</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.aquajava.hu/2012/02/06/parsing-date-fields-with-nsdateformatter-ignoring-locale/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Disable Android 2.3 View overscrolling on prior versions</title>
		<link>http://www.aquajava.hu/2012/02/06/disable-overscrolling/</link>
		<comments>http://www.aquajava.hu/2012/02/06/disable-overscrolling/#comments</comments>
		<pubDate>Mon, 06 Feb 2012 15:10:46 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[2.1]]></category>
		<category><![CDATA[2.2]]></category>
		<category><![CDATA[2.3]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[disable]]></category>
		<category><![CDATA[older]]></category>
		<category><![CDATA[overscroll]]></category>
		<category><![CDATA[prior]]></category>
		<category><![CDATA[reflection]]></category>
		<category><![CDATA[setOverScrollMode]]></category>

		<guid isPermaLink="false">http://www.aquajava.hu/?p=516</guid>
		<description><![CDATA[Update Developers reported, that this does not work/misbehaves on several devices, so should be avoided. Android Gingerbread enables by default overscrolling in default orange style, which could be disturbing in many layouts. To disable it you can use the setOverScrollMode method with the OVER_SCROLL_NEVER parameter, however it is not available on prior Android versions. Here [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Update</strong> Developers reported, that this does not work/misbehaves on several devices, so should be avoided.</p>
<p>Android Gingerbread enables by default overscrolling in default orange style, which could be disturbing in many layouts.<br />
To disable it you can use the <code>setOverScrollMode</code> method with the <code>OVER_SCROLL_NEVER</code> parameter, however it is not available on prior Android versions.<br />
Here is a safe solution for all Android versions:<br />
<code><br />
public static void disableOverscroll(View view) {<br />
    Class<?> viewCls = view.getClass();<br />
    try {<br />
        Method m = viewCls.getMethod("setOverScrollMode",<br />
                new Class[] { int.class });<br />
        int OVER_SCROLL_NEVER = (Integer) viewCls.getField(<br />
                "OVER_SCROLL_NEVER").get(view);<br />
        m.invoke(view, OVER_SCROLL_NEVER);<br />
    } catch (Exception e) {<br />
        // swallow<br />
    }<br />
}<br />
</code></p>
<p>By alex on <a href="http://stackoverflow.com/questions/6687612/trouble-using-reflection-with-setoverscrollmode">Stackoverflow.com</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.aquajava.hu/2012/02/06/disable-overscrolling/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Display only mail apps when calling ACTION_SEND intent</title>
		<link>http://www.aquajava.hu/2012/01/23/android-send-mail/</link>
		<comments>http://www.aquajava.hu/2012/01/23/android-send-mail/#comments</comments>
		<pubDate>Mon, 23 Jan 2012 14:14:45 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[apps]]></category>
		<category><![CDATA[filter]]></category>
		<category><![CDATA[intent]]></category>
		<category><![CDATA[mail]]></category>
		<category><![CDATA[send]]></category>

		<guid isPermaLink="false">http://www.aquajava.hu/?p=512</guid>
		<description><![CDATA[Maybe you have already noticed, that if you invoke the mail sender intent on Android, it may display a lot of installed apps, which can handle text/plain MIME-types, that may confuse the user. To display only mail-capable apps, use message/rfc822 as the parameter of setType method. Via Stackoverflow.com]]></description>
			<content:encoded><![CDATA[<p>Maybe you have already noticed, that if you invoke the mail sender intent on Android, it may display a lot of installed apps, which can handle text/plain MIME-types, that may confuse the user.<br />
To display only mail-capable apps, use <code>message/rfc822</code> as the parameter of <code>setType</code> method.</p>
<p><a href="http://stackoverflow.com/questions/6255915/android-intent-chooser-to-only-show-e-mail-option">Via Stackoverflow.com</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.aquajava.hu/2012/01/23/android-send-mail/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Android Toast-like HUD for iOS</title>
		<link>http://www.aquajava.hu/2012/01/23/toast-hud/</link>
		<comments>http://www.aquajava.hu/2012/01/23/toast-hud/#comments</comments>
		<pubDate>Mon, 23 Jan 2012 13:41:43 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[iPhone]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[display]]></category>
		<category><![CDATA[hud]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[progress]]></category>
		<category><![CDATA[toast]]></category>

		<guid isPermaLink="false">http://www.aquajava.hu/?p=508</guid>
		<description><![CDATA[If you wish to easily report status of background processes to the user, on Android you may use Toast class, however iOS lacks of this great feature. But there is a great library, that provides even more features than Android version: MBProgressHUD.]]></description>
			<content:encoded><![CDATA[<p>If you wish to easily report status of background processes to the user, on Android you may use Toast class, however iOS lacks of this great feature. But there is a great library, that provides even more features than Android version: <a href="https://github.com/jdg/MBProgressHUD">MBProgressHUD</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.aquajava.hu/2012/01/23/toast-hud/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Adding settings bundle to iOS app</title>
		<link>http://www.aquajava.hu/2012/01/23/adding-settings-bundle/</link>
		<comments>http://www.aquajava.hu/2012/01/23/adding-settings-bundle/#comments</comments>
		<pubDate>Mon, 23 Jan 2012 13:34:59 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[iPhone]]></category>
		<category><![CDATA[bundle]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[main]]></category>
		<category><![CDATA[page]]></category>
		<category><![CDATA[settings]]></category>

		<guid isPermaLink="false">http://www.aquajava.hu/?p=501</guid>
		<description><![CDATA[If you want to add your app&#8217;s settings to the main iOS settings page, there are some pretty easy and straightforward steps to do it, which is presented very well in the following tutorial.]]></description>
			<content:encoded><![CDATA[<p>If you want to add your app&#8217;s settings to the main iOS settings page, there are some pretty easy and straightforward steps to do it, which is presented very well in the following <a href="http://useyourloaf.com/blog/2010/5/18/adding-a-settings-bundle-to-an-iphone-app.html">tutorial</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.aquajava.hu/2012/01/23/adding-settings-bundle/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>&#8220;Real&#8221; URL encoding in iOS</title>
		<link>http://www.aquajava.hu/2012/01/18/ios-real-url-encoding/</link>
		<comments>http://www.aquajava.hu/2012/01/18/ios-real-url-encoding/#comments</comments>
		<pubDate>Wed, 18 Jan 2012 13:56:32 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[iPhone]]></category>
		<category><![CDATA[encoding]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[issue]]></category>
		<category><![CDATA[url]]></category>

		<guid isPermaLink="false">http://www.aquajava.hu/?p=499</guid>
		<description><![CDATA[Sometimes if you wish to encode a whole URL including /,&#038;,: , [NSString stringByAddingPercentEscapes:] fails, to solve this issue, use CFURLCreateStringByAddingPercentEscapes + (NSString*)urlEncode: (NSString*) url { NSString* encoded = (NSString *)CFURLCreateStringByAddingPercentEscapes(NULL, (CFStringRef)url, NULL, (CFStringRef)@"!*'();:@&#038;=+$,/?%#[]",kCFStringEncodingUTF8); return [encoded autorelease]; } Source]]></description>
			<content:encoded><![CDATA[<p>Sometimes if you wish to encode a whole URL including /,&#038;,: , <code>[NSString stringByAddingPercentEscapes:]</code> fails, to solve this issue, use <code>CFURLCreateStringByAddingPercentEscapes</code><br />
<code><br />
+ (NSString*)urlEncode: (NSString*) url {<br />
    NSString* encoded = (NSString *)CFURLCreateStringByAddingPercentEscapes(NULL, (CFStringRef)url, NULL, (CFStringRef)@"!*'();:@&#038;=+$,/?%#[]",kCFStringEncodingUTF8);<br />
    return [encoded autorelease];<br />
}<br />
</code><br />
<a href="http://simonwoodside.com/weblog/2009/4/22/how_to_really_url_encode/">Source</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.aquajava.hu/2012/01/18/ios-real-url-encoding/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Android 3.x Action Bar customization</title>
		<link>http://www.aquajava.hu/2012/01/17/android-actionbar/</link>
		<comments>http://www.aquajava.hu/2012/01/17/android-actionbar/#comments</comments>
		<pubDate>Tue, 17 Jan 2012 13:41:43 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[3.0]]></category>
		<category><![CDATA[3.x]]></category>
		<category><![CDATA[action]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[bar]]></category>
		<category><![CDATA[customize]]></category>
		<category><![CDATA[error]]></category>

		<guid isPermaLink="false">http://www.aquajava.hu/?p=495</guid>
		<description><![CDATA[The ActionBar UI component has been introduced in Android 3.0 and above, and it seems to become the standard way to use tabs and context/action menus in Android applications. You may also customize the ActionBar associated to your application in different ways through this great tutorial, however you might run into errors when you wish [...]]]></description>
			<content:encoded><![CDATA[<p>The <a href="http://developer.android.com/guide/topics/ui/actionbar.html">ActionBar</a> UI component has been introduced in Android 3.0 and above, and it seems to become the standard way to use tabs and context/action menus in Android applications.<br />
You may also customize the ActionBar associated to your application in different ways <a href="http://android-developers.blogspot.com/2011/04/customizing-action-bar.html">through this great tutorial</a>, however you might run into errors when you wish to override Tab item styles, to resolve this issue,<br />
<a href="http://android-argentina.blogspot.com/2011_08_01_archive.html">check this blog</a> for a very straightforward solution. (due to private API issues)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.aquajava.hu/2012/01/17/android-actionbar/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Quicklook plugin for iOS provision files</title>
		<link>http://www.aquajava.hu/2012/01/17/quicklook/</link>
		<comments>http://www.aquajava.hu/2012/01/17/quicklook/#comments</comments>
		<pubDate>Tue, 17 Jan 2012 13:15:43 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[iPhone]]></category>
		<category><![CDATA[apple]]></category>
		<category><![CDATA[devices]]></category>
		<category><![CDATA[ios]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[provision]]></category>
		<category><![CDATA[quicklook]]></category>

		<guid isPermaLink="false">http://www.aquajava.hu/?p=490</guid>
		<description><![CDATA[Must have for iOS developers]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.macmation.com/blog/2011/10/quicklook-plugin-for-mobile-provision-files/">Must have for iOS developers <img src='http://www.aquajava.hu/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.aquajava.hu/2012/01/17/quicklook/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Calculating angle between two GPS positions</title>
		<link>http://www.aquajava.hu/2012/01/17/calculating-gps-angle/</link>
		<comments>http://www.aquajava.hu/2012/01/17/calculating-gps-angle/#comments</comments>
		<pubDate>Tue, 17 Jan 2012 13:11:33 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[iPhone]]></category>
		<category><![CDATA[Other]]></category>
		<category><![CDATA[angle]]></category>
		<category><![CDATA[bearing]]></category>
		<category><![CDATA[gps]]></category>
		<category><![CDATA[great circle]]></category>
		<category><![CDATA[location]]></category>

		<guid isPermaLink="false">http://www.aquajava.hu/?p=488</guid>
		<description><![CDATA[Easy way to determine bearing/angle between two locations: Source: Stackoverflow.com ----- CLLocation+Bearing.h #import #import @interface CLLocation (Bearing) -(double) bearingToLocation:(CLLocation *) destinationLocation; -(NSString *) compassOrdinalToLocation:(CLLocation *) nwEndPoint; @end ---------CLLocation+Bearing.m #import "CLLocation+Bearing.h" double DegreesToRadians(double degrees) {return degrees * M_PI / 180;}; double RadiansToDegrees(double radians) {return radians * 180/M_PI;}; @implementation CLLocation (Bearing) -(double) bearingToLocation:(CLLocation *) destinationLocation { double [...]]]></description>
			<content:encoded><![CDATA[<p>Easy way to determine bearing/angle between two locations:<br />
Source: <a href="http://stackoverflow.com/questions/3925942/cllocation-category-for-calculating-bearing-w-haversine-function">Stackoverflow.com</a><br />
<code><br />
----- CLLocation+Bearing.h</p>
<p>#import <Foundation/Foundation.h><br />
#import <CoreLocation/CoreLocation.h></p>
<p>@interface CLLocation (Bearing)</p>
<p>-(double) bearingToLocation:(CLLocation *) destinationLocation;<br />
-(NSString *) compassOrdinalToLocation:(CLLocation *) nwEndPoint;</p>
<p>@end<br />
---------CLLocation+Bearing.m</p>
<p>#import "CLLocation+Bearing.h"</p>
<p>double DegreesToRadians(double degrees) {return degrees * M_PI / 180;};<br />
double RadiansToDegrees(double radians) {return radians * 180/M_PI;};</p>
<p>@implementation CLLocation (Bearing)</p>
<p>-(double) bearingToLocation:(CLLocation *) destinationLocation {</p>
<p> double lat1 = DegreesToRadians(self.coordinate.latitude);<br />
 double lon1 = DegreesToRadians(self.coordinate.longitude);</p>
<p> double lat2 = DegreesToRadians(destinationLocation.coordinate.latitude);<br />
 double lon2 = DegreesToRadians(destinationLocation.coordinate.longitude);</p>
<p> double dLon = lon2 - lon1;</p>
<p> double y = sin(dLon) * cos(lat2);<br />
 double x = cos(lat1) * sin(lat2) - sin(lat1) * cos(lat2) * cos(dLon);<br />
 double radiansBearing = atan2(y, x);</p>
<p> return RadiansToDegrees(radiansBearing);<br />
}<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.aquajava.hu/2012/01/17/calculating-gps-angle/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Android push messaging &#8211; C2DM</title>
		<link>http://www.aquajava.hu/2012/01/17/android-push-messaging/</link>
		<comments>http://www.aquajava.hu/2012/01/17/android-push-messaging/#comments</comments>
		<pubDate>Tue, 17 Jan 2012 11:15:32 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[c2dm]]></category>
		<category><![CDATA[example]]></category>
		<category><![CDATA[guide]]></category>
		<category><![CDATA[message]]></category>
		<category><![CDATA[push]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://www.aquajava.hu/?p=484</guid>
		<description><![CDATA[From Android 2.2 and above, push messaging is supported like on Apple iPhone through the C2DM service. The official developer site and blog features a good client example, but this article features a complete guide with server side PHP examples as well.]]></description>
			<content:encoded><![CDATA[<p>From Android 2.2 and above, push messaging is supported like on Apple iPhone through the C2DM service. The <a href="http://code.google.com/android/c2dm/">official developer site</a> and <a href="http://android-developers.blogspot.com/2010/05/android-cloud-to-device-messaging.html">blog</a> features a good client example, but <a href="http://blog.digitalstruct.com/2010/11/21/android-c2dm-with-php-and-zend-framework/">this article</a> features a complete guide with server side PHP examples as well.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.aquajava.hu/2012/01/17/android-push-messaging/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

