Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Beginning of Android intents handling #2276
I'm headed out of town, so I figured I'd go ahead and get some eyes on this and let some people start playing with it.
This is the start of cleanly handling intents on Android, so we can avoid a huge mess of jni as we start to do more.
Here, we add a new bridge that lets us call native from Java, which is much cleaner for more android-y interfaces like listeners and broadcasters.
Next step is to add functionality for waiting on messages, callbacks, etc, and to remove our jni code for sending intents in favor of adding it here.
added a commit
this pull request
Mar 1, 2013
This comment has been minimized.
This comment has been minimized.Show comment Hide comment
By the time we land in JNI_Onload, libxbmc.so has been loaded and ctors have been called.
It is possible to receive an event before XBMC has actually started its loop, but that's a good thing, because we want to be able to block that until some intents (mount) are received anyway.