differentiating single click and long click.

by mmkr » Fri, 19 Feb 2010 02:19:02 GMT


Sponsored Links
 Hi all,
        I have an array list of a view in my application. The view has
both single click and long click
listeners. To detect a particular view that is selected I'm using
isPressed() for single click listener. Now how can I detect that a
particular view is longclicked from the array list of view?

thanks in advance

--



differentiating single click and long click.

by social hub » Fri, 19 Feb 2010 02:36:43 GMT


 can u try using onclickpress() and implement there




>


Sponsored Links


differentiating single click and long click.

by social hub » Fri, 19 Feb 2010 02:37:06 GMT


 sorry meant onlongpress






>>



Other Threads

1. Problem on creating Socket

Hi all,
    I'm working at an application about network and faced some
problem.I did a client which will send some data to the server.But, if
the server is not open, my client will in trouble. Here is the code
and exact state:
try{
            Socket netSocket = new Socket("10.0.2.2", 9001);      /
*Problem is in this line*/
/*
At this line, when I try to create a socket binding to the local PC,
the program will pause for very long time(almost 5 mins) and then go
to IOExcption handling code where shows "The operation timed
out.".When the server in my local PC is running, everything is OK.I
need the program can response immediately, can anyone help me?
*/
                                ......
                                 }
                catch (UnknownHostException e)
                {
                        Log.d("SoControl", "UnknownHostException : " +
        e.getLocalizedMessage());
                }
                catch (IOException e)
                {
                        Log.d("SoControl", "IOException : " +
e.getLocalizedMessage());
                }

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

2. Multi Touch support in Android

Hi

I want to implement multi-touch gesture detection in my application.
Does android provides support multi-touch?
If yes, then how can we simulate multi-touch on emulator.
If no, then is there any hack, which we can use to get multi finger
touch
in our application.

Kindly provide suggestions

Thanks

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

3. What is GL_DIRECT_TEXTURE_2D_QUALCOMM used for?

4. IMX31 keypad issue

5. cupcake error on start Phone application

6. why I can't access http://developer.android.com

7. Init Gallerys load images