Android: How to set a listener for Acivity.onNewIntent()?
<p>I'm writting my own plug-in for an existing game engine (so to say it's 3rd-party lib in relation to the main application).</p>

<p>So, I have no access to the <code>MainActivity</code> sources.</p>

<p>Nevertheless I have to react somehow on main activity <code>lifecycle</code> events (<code>onCreate, onDestroy, onPause, onResume, onNewIntent</code> and some unimportant others).</p>

<p>Thanks to <code>Application.ActivityLifecycleCallbacks</code>, I have no problems with most of them.</p>

<p>The problem occurs with <a href="http://developer.android.com/reference/android/app/Activity.html#onNewIntent%28android.content.Intent%29" rel="nofollow">onNewIntent()</a>. I can't find out a <code>listener</code> for this event and imagine a way to handle it.</p>

<p>Does anybody know how to catch <code>onNewIntent</code> event (surely, except overriding it)?</p>