Skip to content

Instantly share code, notes, and snippets.

/***
* Android L (lollipop, API 21) introduced a new problem when trying to invoke implicit intent,
* "java.lang.IllegalArgumentException: Service Intent must be explicit"
*
* If you are using an implicit intent, and know only 1 target would answer this intent,
* This method will help you turn the implicit intent into the explicit form.
*
* Inspired from SO answer: http://stackoverflow.com/a/26318757/1446466
* @param context
* @param implicitIntent - The original implicit intent
(setq el-get-sources
'(
(:name ruby-mode-trunk-head
:type http
:description "Major mode for editing Ruby files. (trunk-head)"
:url "http://bugs.ruby-lang.org/projects/ruby-trunk/repository/raw/misc/ruby-mode.el")
(:name php-mode-github
:type github
:website "https://github.com/ejmr/php-mode"
:description "Major mode for editing PHP files. (on Github based on SourceForge version))"