public class WebViewActivity extends Activity {

private WebView webview; //웹뷰

public class MyWebChromeClient extends WebChromeClient {

@Override

public void onProgressChanged(WebView view, int newProgress) {

// TODO Auto-generated method stub

WebViewActivity.this.setProgress(newProgress * 100);

}

}

@Override

protected void onCreate(Bundle savedInstanceState) {

// TODO Auto-generated method stub

super.onCreate(savedInstanceState);

requestWindowFeature(Window.FEATURE_PROGRESS);

setContentView(R.layout.webview);

this.webview = (WebView)findViewById(R.id.webview);

this.webview.setWebChromeClient(new MyWebChromeClient());

}

@Override

protected void [안내]태그제한으로등록되지않습니다-xxonStart() {

// TODO Auto-generated method stub

super.[안내]태그제한으로등록되지않습니다-xxonStart();


webview.loadUrl("이동할 주소");

}

}

 

WRITTEN BY
블로blow
iOS 개발자 생활이야기

트랙백  0 , 댓글  1개가 달렸습니다.
  1. 행복을 졸겨야 할 시간은 지금이다. 행복을 즐겨야 할 장소는 여기다.Topics related articles:


    http://officetutor.tistory.com/1387 新建文章 5

    http://pentaxpic.tistory.com/517 新建文章 8

    http://10000boki.tistory.com/entry/Tokyo 新建文章 5

    http://creamoco.tistory.com/160 新建文章 5
secret