Thanks for the information hemanth.
Doing a periodic check using a background service might be a drain on
the battery and also will introduce a latency in detecting the
foreground app.
I in fact prefer hacking the kernel. I have looked at sched.c and
sched.h, however I have not yet found any flag
Ah, I type faster than I read.You explicitly stated that you are
looking for something in the kernel to do it!
I think doing this from the kernel is actually more difficult.
Ultimately, it might be simpler and faster to use the framework to
lookup the foreground process.
Implemented well, it shoul
I just posted the link below in another thread.
http://stackoverflow.com/questions/6363207/android-background-service-to-determine-foreground-application
It might be useful for you too.
On Nov 16, 12:22 am, Bateman <7thharmo...@gmail.com> wrote:
> Hi,
> I want to detect the currently executing for