Long press in Webview - App Crash

前端 未结 1 829
南笙
南笙 2021-01-29 05:40

When i long press text in the Webview (android), the app crashes. I also can\'t select text, because it crashes before the text is highlighted. Normally, the app would show the

相关标签:
1条回答
  • 2021-01-29 06:21

    After analyzing the code, I found that the problem was in the beginning of the Java file. It started with

    package com.edireito.dgpro.dgpro;
    import...
    public class MyActivity extends ActionBarActivity {
    

    And when I changed "ActionBarActivity" to "Activity", it worked!

    Thanks.

    0 讨论(0)
提交回复
热议问题