Versuchs mal damit:
https://github.com/delight-im/Android-AdvancedWebView
Sowas muss man selbst finden. Gerade wenn Du noch am lernen bist, dann ist es absolut am Ziel vorbei nach einer einfachen Lösung zu fragen. Damit lernt man nichts, weil dann einfach Copy&Paste gemacht wird.
Erst einmal danke für die Antwort!
Ja, ich weiß, dass ich es lernen sollte, anstatt es heraus zu kopieren. Jedoch fange ich mit Java bzw. Android erst in ein paar Wochen an, wenn es im Kurs dran kommt. Bis dahin möchte ich nur ein WebView hinbekommen.
So, nun bekomme ich aber einen Fehler, wenn ich es benutze. Wäre froh, wenn du mir noch helfen könntest.
Bei :
<activity android:name="vestranews.technoobi.com.finalversion.MainActivity" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
Das .MainActivity ist rot, aber nicht unterwellt. Und Fehler bekomme ich diesen:
E/AndroidRuntime: FATAL EXCEPTION: main
03-03 13:15:19.923 3310-3310/? E/AndroidRuntime: Process: vestranews.technoobi.com.finalversion, PID: 3310
03-03 13:15:19.923 3310-3310/? E/AndroidRuntime: java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{vestranews.technoobi.com.finalversion/vestranews.technoobi.com.finalversion.MainAtivity}: java.lang.ClassNotFoundException: Didn't find class "vestranews.technoobi.com.finalversion.MainAtivity" on path: DexPathList[[zip file "/data/app/vestranews.technoobi.com.finalversion-1/base.apk"],nativeLibraryDirectories=[/data/app/vestranews.technoobi.com.finalversion-1/lib/x86, /vendor/lib, /system/lib]]
03-03 13:15:19.923 3310-3310/? E/AndroidRuntime: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2327)
03-03 13:15:19.923 3310-3310/? E/AndroidRuntime: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2476)
Es lässt sich zwar exportieren und installieren, jedoch stürzt es direkt ab.