안녕하세요 몇일째 삽질하고 있습니다.
프래그먼트에서 웹뷰랑 PullToRefreshListView(당겨서 재시작) 두개 기능을 실현하고 있는데
처음엔 웹뷰에서 당겨서재시작 별 문제 없이 잘되었는데 아래 파일업로드 기능을 넣고 나면
당겨서 재시작이 멈추는 현상이 생깁니다.
당기고 나면 리스타트가 되면서 위에 로드중....이미지 계속 돌아가고 꺼지지를 않네요 ㅜㅜ
몇일째 삽질중이니 초보자이오니 상세한 답변 좀 부탁드립니다.
//////////////////////////////파일업로드 기능//////////////////////
mWebView.setWebChromeClient(new WebChromeClient()
{
//The undocumented magic method override
//Eclipse will swear at you if you try to put @Override here
// For Android 3.0+
public void openFileChooser(ValueCallback<Uri> uploadMsg) {
mUploadMessage = uploadMsg;
Intent i = new Intent(Intent.ACTION_GET_CONTENT);
i.addCategory(Intent.CATEGORY_OPENABLE);
i.setType("image/*");
MainCouponActivity1.this.startActivityForResult(Intent.createChooser(i,"File Chooser"), FILECHOOSER_RESULTCODE);
}
// For Android 3.0+
public void openFileChooser( ValueCallback uploadMsg, String acceptType ) {
mUploadMessage = uploadMsg;
Intent i = new Intent(Intent.ACTION_GET_CONTENT);
i.addCategory(Intent.CATEGORY_OPENABLE);
i.setType("*/*");
MainCouponActivity1.this.startActivityForResult(
Intent.createChooser(i, "File Browser"),
FILECHOOSER_RESULTCODE);
}
//For Android 4.1
public void openFileChooser(ValueCallback<Uri> uploadMsg, String acceptType, String capture){
mUploadMessage = uploadMsg;
Intent i = new Intent(Intent.ACTION_GET_CONTENT);
i.addCategory(Intent.CATEGORY_OPENABLE);
i.setType("image/*");
MainCouponActivity1.this.startActivityForResult( Intent.createChooser( i, "File Chooser" ), MainCouponActivity1.FILECHOOSER_RESULTCODE );
}
});
//////////////////////////////파일업로드 기능//////////////////////