1. Check out our companion app, Forums for Android! Download from Google Play

how to control touchlistener and clicklistener events

Discussion in 'Android Apps & Games' started by rajeevgandhis, May 18, 2010.

  1. rajeevgandhis

    rajeevgandhis New Member
    Thread Starter
    5

    May 18, 2010
    1
    0
    5
    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...