This is not possible, sorry. On Tue, Feb 23, 2010 at 4:07 PM, RCP2278 <[email protected]> wrote: > Hi, > > Is there a way to capture or intercept touch events in the Android > status bar? Currently the behavior looks like it displays the current > date when I touch on the status bar and also pull down the expanded > view. Is it possible to catch this touch event so that I can possibly > launch an activity from this instead of displaying the date? Ideally > if it can be done in the application level that would be great, but > I'm not sure if it can be done that way. > > I wrote a simple app that basically logs when onTouchEvent() or > dispatchTouchEvent() is called from my customized view just to see > what coordinates are captured when these callback functions are > called. Whenever I touch on the status bar, onTouchEvent() or > dispatchTouchEvent() are not getting called, which indicates some > other event is getting called when the status bar is touched (??). > But once I go beyond the border of the status bar (and the app title), > these events are then called. My approach would have been to > implement a service that listens when touch events are detected in the > status bar, but if it can't even get those events(), not sure my > approach would even work. > > If anyone can help, I will greatly appreciate it. > > R > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en >
-- Romain Guy Android framework engineer [email protected] Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

