Move the detection of Android version in the bash script.
This allow to automacally compile asmack for all the android version available
unregister ConnectivityChangedReceiver
Update build script to use latest from upstream
Add a hgfetch function

--HG--
extra : rebase_source : bdec124c33718853c8ce2aa5614beda97538ecd8
Rename the fetch function to svnfetch and make it behave like gitfetch

--HG--
extra : rebase_source : 1e7ee07a449e19fc8e96b55c13b40c2051436a27
Merge with flow/master
Merge pull request #14 from fbarthelery/master

Move the detection of android sdk from build.xml to build.bash
Remove unused patch for beem
gitfetch : Do not prefix branch with "origin/"

This allow to use the -b option changeset ids or branch/tag from other remote
repository
Merge pull request #17 from fbarthelery/master

 gitfetch : Do not prefix branch with "origin/"
SmackAndroid: Renamed exit() to onDestroy() to reflect the use case for the method. Fix a bu  were the Intent Receiver was unregistered with exit() (now onDestroy()) but the SmackAndroid object hasn't been GC'ed by the Dalvik VM / Android Runtime, which would cause an following exit() to throw an Exception because init() has not called the construction and therefore the Receiver was not registered. This should be fixed now. Fixes #16.
Removed unneeded ant call in build()

This actually resulted in a call to 'ant compile' which does a jse asmack build.
buildandroid: added variable substitution, so that ${user.home} does work again in local.properties
buildcustom: make use of local variable, to reuse it later in the function
Fixed bash syntax. Check for advzip binary should now work again.
Use ant parallel with the help of `xargs`.
Whitespace fixes
SmackAndroid: Set context first to avoid NPE. Fixes #18
build.bash: buildandroid() - added more checks
build.bash: Improved patching. Now does really exit if a patch failes. Removed unneeded checks.