마스터Q&A 안드로이드는 안드로이드 개발자들의 질문과 답변을 위한 지식 커뮤니티 사이트입니다. 안드로이드펍에서 운영하고 있습니다. [사용법, 운영진]

초보자인데 웹뷰 하이퍼링크 관련 문제 질문해요

0 추천
웹뷰로 html로 a.html을 접속해서 a에서 하이퍼링크를 통해 b.html로 가려하는데 강제종료가 됍니다.

html보다 웹뷰쪽에 문제가 있는거 같은데 해결 방법 알려주세요
익명사용자 님이 2018년 9월 3일 질문
에러 메세지 입니다..
E/AndroidRuntime: FATAL EXCEPTION: main
                  Process: com.example.user.myapplication, PID: 18649
                  android.os.FileUriExposedException: file:///android_asset/1234.html exposed beyond app through Intent.getData()
                      at android.os.StrictMode.onFileUriExposed(StrictMode.java:1799)
                      at android.net.Uri.checkFileUriExposed(Uri.java:2354)
                      at android.content.Intent.prepareToLeaveProcess(Intent.java:9510)
                      at android.content.Intent.prepareToLeaveProcess(Intent.java:9468)
                      at android.app.Instrumentation.execStartActivity(Instrumentation.java:1525)
                      at android.app.Activity.startActivityForResult(Activity.java:4399)
                      at android.app.Activity.startActivityForResult(Activity.java:4358)
                      at android.app.Activity.startActivity(Activity.java:4682)
                      at android.app.Activity.startActivity(Activity.java:4650)
                      at android.content.ContextWrapper.startActivity(ContextWrapper.java:386)
                      at ahj.startActivity(SourceFile:22)
                      at aeV.a(SourceFile:28)
                      at org.chromium.android_webview.AwContentsClientBridge.shouldOverrideUrlLoading(SourceFile:173)
                      at org.chromium.base.SystemMessageHandler.nativeDoRunLoopOnce(Native Method)
                      at org.chromium.base.SystemMessageHandler.handleMessage(SourceFile:9)
                      at android.os.Handler.dispatchMessage(Handler.java:102)
                      at android.os.Looper.loop(Looper.java:154)
                      at android.app.ActivityThread.main(ActivityThread.java:6682)
                      at java.lang.reflect.Method.invoke(Native Method)
                      at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1520)
                      at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1410)

1개의 답변

0 추천
http://mparchive.tistory.com/76

 

에러메세지로 구글링 해본 결과입니다. 확인해 보세요.
뱅구다 (11,280 포인트) 님이 2018년 9월 4일 답변
...