public class Test extends Activity {
    private static final String TAG = "Test";
    private TestView testView;
    private TestMethod testMethod;
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        testView = new TestView(this);
        setContentView(testView);
    
    }
}
public class TestView extends View{

public TestView(Context context) {
   super(context);
  }

 protected void onDraw(Canvas canvas) {
     
     Bitmap bm = BitmapFactory.decodeResource(getResources(),R.drawable.icon); 
    canvas.drawColor(Color.WHITE);
    canvas.drawBitmap(bm, 0, 0, null);
    testMethod = new TestMethod();
    testMethod.triggerMethod();
  }
    
 public void methodTest() {
      Log.i(TAG,"OK");
  }
  }
public class TestMethod {
 
 private TestView testView;
 public void triggerMethod(){
  
  testView.methodTest();
 
 }
}

실행하면 TestView에서 TestMethod 클래스의 triggerMethod를 호출하면 TestMethod 클래스에서 다시 TestView 클래스의 methodTest 라는 메소드를 호출 하도록 만들고 싶은데, View 를 상속한 TestView 클래스는 어떤 식으로 객체화 해야 하나요? 지금 현재는 NullPointError 입니다.