Simplified nested if statement
Removed practically empty finally block
Removed unnecessary variable
Removed unused method parameter
avoid NullPointerException by positioning literal first
added missing calls to super.on{Create,Destroy}
avoid using implementation types where not needed
added build.xml for building with ANT without an IDE
build URI with managed class instead of string concatenation
avoid double encoding URL path
Addiing the identification for media.mrblog.nl
Merge remote-tracking branch 'origin/master' into mrb

* origin/master:
  avoid double encoding URL path
  build URI with managed class instead of string concatenation
  added build.xml for building with ANT without an IDE
  avoid using implementation types where not needed
  added missing calls to super.on{Create,Destroy}
  avoid NullPointerException by positioning literal first
  Removed unused method parameter
  Removed unnecessary variable
  Removed practically empty finally block
  Simplified nested if statement
Add read permission for external storage

This is needed for uploading media, which (may) read the file from
external storage