Finger swipe in Android API level 3 (OS 1.5) ?

by Chris Ross » Tue, 25 May 2010 22:27:45 GMT

Sponsored Links
 hanks much.  I had found something similar elsewhere in my searching, and as 
you ended up making a subclass of SimpleOnGestureListener. As it happens, I
made that class inside of my primary Activity class, so I didn't have to pass
the object into the instantiator like you did, but the same "have to work back
into the main object" effectively applies, and I see your point.

If I get to a point where I'm willing to ignore the 1.5 OS revision, I'll see
what else can be done with the new gestures support added in API level 4...

- Chris

On May 25, 2010, at 3:50 AM, Justin Anderson wrote:


Other Threads

1. How to cancel a connection ?

I open a connect like this:

URL mUrl = new URL("");
URLConnection conn = mUrl.openConnection();
InputStream is = conn.getInputStream();

FileOutputStream fos = new FileOutputStream(tmpFile);
byte[] readBody = new byte[4096];
do {
    int readBytes =;
    if (readBytes <= 0) {
    fos.write(readBody, 0, readBytes);

I have two question
(1) How to cancel the connection when conn.connect() is executed ? I
can not find any useful API from
(2) When user cancel this activity, I use is.close() to cancel the Is that a good way to cancel InputStream ? and how to handle
(cancel) the conn this moment ?

Best Regards,

2. About Surfaceflinger

Dear all ~~

I recently read the source of surfacefinger, the below is my
understanding :

   client process : --->  android.view.surface --->
   server process : surfaceflinger

In my opinion, when there is a client requeset to surfaceflinger, the
surfaceflinger will creat a surfaceflinger clientclientThen it
create a layerbaseclient, surfaceflinger will get a surface with the
layerbaseclient .Although there are so many classes such as
isurfaceflingerclient, isurfacecomposer, isurface€they just are
adapter,all things are implemented in the class surfaceflinger at last.
And am i right ~~ ? Any advice will be grateful ~~

Who can tell me what is the use of client class, graphicplane class, and
the surfaceflinger::delayedtransaction in surfaceflinger.h ? Or anybody
can give me a advice about the class of surfaceflinger. Thanks a lot ~?



3. What is the version number of Webkit that is android's Webkit is based on?

4. URL filter in browse

5. Static analysis errors

6. ListView divider - which drawable?

7. Enabling camera in the emulator !