How to implement OnScaleGestureListener in Android?
<p>Update: Problem solved.</p>

<p>Hello,</p>

<p>I tried to implement the OnScaleGestureListener in my activity, but I received nothing. What's wrong with the following codes ?</p>

<p>Thanks.</p>

<pre><code>package com.test;

import android.app.Activity;
import android.os.Bundle;
import android.view.GestureDetector.*;
import android.view.MotionEvent;
import android.view.ScaleGestureDetector;
import android.view.ScaleGestureDetector.*;
import android.util.*;

public class Test10 extends Activity implements OnScaleGestureListener {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
    }

    public boolean onScale(ScaleGestureDetector detector) {
        Log.d("","onScale");
        return true;
    }

    public boolean onScaleBegin(ScaleGestureDetector detector) {
        Log.d("","onScaleBegin");
        return true;
    }

    public void onScaleEnd(ScaleGestureDetector detector) {
        Log.d("","onScaleEnd");
    }
}
</code></pre>
