1. Introducing Channels - a new way to chat with other Android users!
    Dismiss Notice

how to control touchlistener and clicklistener events


Last Updated:

  1. rajeevgandhis

    rajeevgandhis New Member This Topic's Starter

    Joined:
    May 18, 2010
    Messages:
    1
    Likes Received:
    0
    Hi,

    I have an app, when i am trying to touch and move the screen content it the click event has taken place can some one help me on this.
    i have given the sample code.

    Initialization part:
    -----------------

    (findViewById(R.id.about)).setOnClickListener(aboutListener);


    Method definition part:
    ----------------------

    OnClickListener aboutListener = new OnClickListener()
    {
    public void onClick(View v)
    {
    try
    {
    setPageTitle("Events");
    doSOA("azukipub","18567291");
    appView.loadUrl("javascript:about();");
    }
    catch (Exception e )
    {
    Log.e("PhoneGap", "Failed to invoke aboutListener", e);
    }
    }
    };
     

    Advertisement

Share This Page

Loading...