main
메인에서 뷰 클레스를 만들었습니다
private ScratchView3_1 scratchView3_1;

ScratchView3_1 sv1 = new ScratchView3_1(this);
LayoutParams lp1 = new LayoutParams(LayoutParams.WRAP_CONTENT,
LayoutParams.WRAP_CONTENT);
r1 = (RelativeLayout) findViewById(R.id.img_where1);

r1.addView(sv1, lp1);




ScratchView3_1
클레스 안쪽에는

public void initSource() {
i++
} 이라는 함수를 만들었습니다..


그래서 메인에서 이벤트를 받을때마다 ScratchView3_1안쪽에 있는 initSource()함수를 실행 하고싶습니다.
그래서
main
private ScratchView3_1 scratchView3_1;

ScratchView3_1 sv1 = new ScratchView3_1(this);
LayoutParams lp1 = new LayoutParams(LayoutParams.WRAP_CONTENT,
LayoutParams.WRAP_CONTENT);
r1 = (RelativeLayout) findViewById(R.id.img_where1);

r1.addView(sv1, lp1);

scratchView3_1클레스 initSource()함수 실행하기.. 이부분을 넣어줬는데요
------------------------------------------------------------
scratchView3_1 = (ScratchView3_1) getApplicationContext();   --이분분에서 컨텍스트를 할수 없는 캐이스라고 하는데 
                                                                                           무엇때문에 그런지 잘모르겠습니다
scratchView3_1.initSource();
------------------------------------------------------------