Reputation: 11
what exactly will happens when we start executing an activity which file will be invoked in the kernel level. I mean which .c class file or which header will be called can any one tell me in brief or the procedure. How the process takes place in the kernel level when an activity intiated.
Upvotes: 1
Views: 213
Reputation: 66
Suppose you touch the screen to do some activity. The touch screen manager will call kernel to determine the touch screen coordinates to pass the info to appropriate application. The kernel will use touch screen driver which is part of the kernel to calculate the touch screen location and it will be passed to the user space program. The exact mechanism may be device file interface or some system call interface.
Upvotes: 0
Reputation: 10947
If the activity is triggered by some I/O event (e.g., pressing a button), then:
The size of the Linux kernel is huge (more than 9 millions of lines of code). To understand which file is executed you need to know at least the type of I/O event and the type of I/O controller.
Upvotes: 2
Reputation: 949
The basic fact is Android activity has nothing to do with your kernel directly. So it is not a valid question to ask at first. Actually when you get your activity displayed on screen, plenty of things happens, enabling the touch sensor, adjusting the backlight of your screen and ofcourse setting up the frame buffer for display, to name a few. Each of these internally invokes several kernel drivers handling different devices. I hope this helps you understand the answer to your question.
Upvotes: 1
Reputation: 7924
The linux kernel doesn't handle activities, some process running inside Dalvik (the not-so-java VM) does.
Upvotes: 1