if we call startApp here we'll call it again in the main flow
factor out package/activity detection
enable getting current android activity (fixes #358)
Merge pull request #427 from jlipps/master

android getCurrentActivity