Which process is responsible for injecting KeyEvents to the system ?

by Ashrotronics » Thu, 30 Apr 2009 01:50:57 GMT


Sponsored Links
 Hi all:
      This happened When i tryed to send keyevents repeatly: After a
period of time (may be 2h or more) , I started to get
RemoteExceptions. obviously, the process hadling keyevents is
dead ,But i'm not sure which process is,Could anyone tell me ?
     And, how i could avoid this happen ? Or,how could i recover the
system after this error(maybe just killing the Process is ok?)
    Thanks in advance !

Ashrotronics
--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. display an animated .gif image

in my app, i have a access to a url to an image.

i'd like to display an animated .gif image

is there an system function or activity that i
can call for this.

(something besides the web app )

-- 

2. Scrollview fling

Hi!
I'm here again because I have some problems.
I want to have a scrollview after fling callback, but I don't find
anything on the web talking about it.
I explain; I have to do a scrollview containing paging. When the page
separator ( it can be a textview, or something like that ) is on the
first half of the screen, the scrollview must be scrolled and the
separator must be at the top of the screen.
Here is my code, but have some problems with fling :

// mMarkers is a array of View containing pages separators
// mCurrentView is the indice of the current page

@Override
public boolean onTouchEvent(MotionEvent ev) {
   int location[] = new int[2];
   // if next page is the most visible
   if((mCurrentView +1) < mMarkers.length) {
        mMarkers[mCurrentView +1].getLocationOnScreen(location);
        if((location[Y] - mScreenHeight/2) < 0) {
                scrollTo(0, getScrollY() + location[1] - 55);
                ++mCurrentView;
                return true;
        }
   }
   // if previous page is the most visible
   if((mCurrentView -1) >= 0) {
        mMarkers[mCurrentView -1].getLocationOnScreen(location);
        if((location[Y] + mScreenHeight/2) > 0) {
                scrollTo(0, getScrollY() + location[1] - 55);
                --mCurrentView;
                return true;
        }
   }
   return super.onTouchEvent(ev);
}

So is it a good approach or not ? How can I do that else ?
Thanks a lot in advance!

-- 

3. wrap_content and fill_parent using Java

4. POSTing to WebView

5. Inyect Assistance data to the GPS

6. onDetachedFromWindow issues

7. Using the AudioRecord API