현재 안드로이드 스튜디오에서 jsp에서 값을 받아와 함수를 실행시키는 부분입니다.
@JavascriptInterface
public void TelAction(String str) {
Log.d("test", str);
Intent intent = new Intent(Intent.ACTION_CALL, Uri.parse("tel:" + str));
startActivity(intent);
}
}
function GoTel(phone){
alert(phone);
window.TelAndroid.TelAction(phone);
} 현재 jsp에서 넘어오는 부분입니다
alert를 통해 jsp에서 값이 나오는걸 확인했으나 안드로이드 부분에서
I/chromium: [INFO:CONSOLE(52)] "Uncaught TypeError: Cannot read property 'TelAction' of undefined", source: http://***.*****.***/abcd.do (52)
이러한 에러가 나오게 되는데 어떻게 하면될까요.. 검색을 해도 해봤는데 ㅠㅠ 조언좀 주세요.