android - Getting the Foreground Activity of any application in a Service written in other application -


what want need reference current activity of application on foreground.

basically have written service , want reference "current" foreground activity in service. "current" mean application activity other 1 has started service.

what want need reference current activity of application on foreground.

that not possible. other applications running in other processes; not have access java objects, such activity instances, in processes.


Comments

Popular posts from this blog

javascript - gulp-nodemon - nodejs restart after file change - Error: listen EADDRINUSE events.js:85 -

Fatal Python error: Py_Initialize: unable to load the file system codec. ImportError: No module named 'encodings' -

javascript - oscilloscope of speaker input stops rendering after a few seconds -