1
DroidGap을 확장하는 활동이 있습니다. 버튼 클릭으로 다른 활동을 시작해야합니다. 버튼은 창 내부에로드 된 웹보기 안에 있습니다.phonegap을 사용하여 다른 활동을 시작하는 방법은 무엇입니까?
아무도 모른다면 제안 해주세요. 버튼
DroidGap을 확장하는 활동이 있습니다. 버튼 클릭으로 다른 활동을 시작해야합니다. 버튼은 창 내부에로드 된 웹보기 안에 있습니다.phonegap을 사용하여 다른 활동을 시작하는 방법은 무엇입니까?
아무도 모른다면 제안 해주세요. 버튼
추가 클릭 이벤트 : 웹보기에서
<button type="button" onclick="your_button.performClick();">Your Button</button>
설정 클릭 이벤트 :
WebSettings ws = wv.getSettings();
ws.setJavaScriptEnabled(true);
wv.addJavascriptInterface(new Object() {
public void performClick() {
// Your can start Activity here
Intent intent = new Intent();
// set Activity which you want to start
// Set flags, actions and other parameters if required
this.cordova.startActivity(intent);
}
}, "your_button");