On Mon, Mar 28, 2016, at 16:22, William Ferguson wrote:
> In ACRA 4.8.6+ you can do that via
> ACRA.isACRASenderServiceProcess(Application), in prior versions you will
> need to check the name of the process yourself.
Since 4.8.6 isn't out yet, I went to look at the implementation of
isACRASenderServiceProcess(), and I see that the implementation relies
upon the process name *ending* in :acra, not *being* :acra.
I haven't fussed with multiple processes on Android much, but are you
sure that endsWith() is the right solution here, versus equality? What
you have may be the right answer, but it struck me as odd, that's all.
It might also be worth noting that if developers use manifest merging
rules to override the process name, that isACRASenderServiceProcess()
may no longer work, and such developers are on their own for determining
whether or not the process is ACRA's.
--
Mark Murphy (a Commons Guy)
https://commonsware.com |
https://github.com/commonsguy
https://commonsware.com/blog |
https://twitter.com/commonsguy