I need to create a menu which opens a webview page or a simple page with images slide.
I’m more proficient in web programming, not so much in programming for Android. So if it is easier to do it in a WebView I will use it. I will use the images slide otherwise.
So for now, I need 2 items when I press the menu button of the phone. Upon clicking they should open 2 different links in the app (not in the browser).
I’ve done only menu.xml for now:
<?xml version="1.0" encoding="utf-8"?>
<menu xmlns:android="http://schemas.android.com/apk/res/android">
<item android:id="@+id/menu_howto" android:title="@string/howto"
android:icon="@android:drawable/ic_menu_howto" />
<item android:id="@+id/menu_about" android:title="@string/about"
android:icon="@android:drawable/ic_menu_info" />
</menu>
in your main
classyou must @override the menu like:-and then to make the menu buttons clickable you have to add this after
edit : if you want to load the html file from assets file then do this
hope that what you asking for 🙂