How to listen for outside touch events for PopupWindow

by Karthik » Tue, 02 Jun 2009 02:29:02 GMT


Sponsored Links
 I want to listen for outside touch events for PopupWindow so that i
can dismiss it when user touched outside of popup window. I'm calling
popupWnd.setOutsideTouchable(true); but how that popup window is
informed of outside touch events?

--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. Weird behaviour with FileInputStream

I would like to read raw binary data from a file on sdcard. Nothing
fancy ...

I'use a FileInputStream a 512 byte[] buffer, API version 8.

In the sample file attached, the first character give an a3 hex value,
10100011 binary value, 163 decimal value, and  character thru
hexadecimal editor. But when i extract the first byte buffer after
call to read(byte[]) method, it gives me 111 decimal != 163. some
other byte are correct, other not, even with negative value. It seems
to be a potential bug don't you ?

byte[] bytes = new byte[512];
FileInputStream stream = new FileInputStream("/sdcard/sample.txt");
stream.read(bytes);

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
sample.txt content
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
o JWJ~   €JR[S74k}mssdJ\__XXZ74)('&%$#"!

-- 

2. set Android IP address from my own android application

I need to set IP adress on Android phone from my own application, any
idea?

-- 

3. Bluetooth No Android

4. My Simple ListView app is leaking memory. What am I doing wrong?

5. Security Exception Problem in calling interface methods

6. How keep DDMS from capturing screen on App side

7. android button