Fix check common subtitle subdir existence without suffix slash bug.
intents: Add a java class for listening to intent broadcasts
Merge pull request #2275 from ulion/fix_checking_subtitle_common_subdir_without_slash_end_bug

Fix check common subtitle subdir existence without suffix slash bug.
intents: hook up a JNI_OnLoad for finding our java functions

This should be extended to do lots more, so that we can quickly add java code
and access it from native, without the mess that is jni.
Use GetProtocol() like other code does.
droid: remove the stateful life-cycle manager

Simply properly react to messages instead. This ends up being much cleaner and
more straightforward.

There were many problems with the old life-cycle code:
- It based all decisions on gain/loss of focus, which is incorrect, as that
  pertains to input rather than windowing.
- Due to the above, there were many race conditions.
- The startup/teardown were convoluted
- It was a mix of examples, a stateful one where the app keeps track of status,
  and a stateless one mainly handle by appglue. Since we really only care about
  a handful of events (startup/exit/newwindow/destroywindow mainly), stateless
  is the way to go for us.

This fixes random black-screens, fixes, and crashes when starting XBMC as a
launcher.
Fix double append to m_curlAliasList bug by NULL check.
Fix memory leak, Exists/Stat allocated resource not released correctly.
Merge pull request #2273 from FernetMenta/assfix

fix ass subs for GLES
[atv2] - make hooking more clean and safe by checking the selector of the class before hooking
[atv2] - fix XBMC is getting 100% transparent when bluetooth keyboard is detected. (keyboard detection triggers an ios popup overlay which influences with our opengl layer when it vanishes). Since we are hooking now anyways - we just hook into that popupmanager and suppress any popups during XBMC runtime.
Merge pull request #2271 from ulion/ios_fix_keyboard_not_show_if_was_canceled_before_show

[IOS] Fix native keyboard not show if was canceled before it did show
[Cosmetic] Remove superfluous "!= 0"
[fix] Add lost parameter.
Create channels with m_bEPGEnabled set to false for hidden channels

When first creating a channel, set m_bEPGEnabled to !channel.bIsHidden.
This enables the EPG scanner to only work on visible channels as
default, thereby reducing scan time, especially important on setups with
thousands of available channels, but with only a limited set visible.
Merge pull request #2280 from ace20022/cosmetic

[Fix] Add lost parameter in GUIKeyboardFactory
AE: fix segfault after indirection patches
Merge pull request #2239 from ulion/fix_simplefilecache_waitdata

Refactor CSimpleFileCache::WaitData, kill race conditions.
Make sure call CurlFile::Exists with url path ends with slash for ftp dir.
[Application] Silence warning double -> int