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("http://www.abc.com/4MB.mp3");
URLConnection conn = mUrl.openConnection();
conn.connect();
InputStream is = conn.getInputStream();

FileOutputStream fos = new FileOutputStream(tmpFile);
byte[] readBody = new byte[4096];
do {
    int readBytes = is.read(readBody);
    if (readBytes <= 0) {
        break;
    }
    fos.write(readBody, 0, readBytes);
}while(true);

I have two question
(1) How to cancel the connection when conn.connect() is executed ? I
can not find any useful API from  
http://developer.android.com/reference/java/net/URLConnection.html
(2) When user cancel this activity, I use is.close() to cancel the
is.read(). Is that a good way to cancel InputStream ? and how to handle
(cancel) the conn this moment ?

Best Regards,
Brad
--~--~---------~--~----~------------~-------~--~----~

2. About Surfaceflinger

Dear all ~~

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

   client process : surface.java --->  android.view.surface --->
androidcomposerclient
     
   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 !