This is a simple Android application that loads a website into a WebView. It includes a Splash Screen and a Main Activity that handles the web browsing experience.
- Open in Android Studio:
- Open Android Studio.
- Select "Open an existing Android Studio project".
- Navigate to this folder and click "Open".
- Run the App:
- Connect your Android device or start an Emulator.
- Click the green "Run" button (Play icon) in the toolbar.
You can easily customize the app by modifying a few files.
To change the website that loads in the app:
- Open
app/src/main/res/values/strings.xml. - Change the value of
website_url.<string name="website_url">https://www.yourwebsite.com/</string>
To change the name of the app as it appears on the phone:
- Open
app/src/main/res/values/strings.xml. - Change the value of
app_name.<string name="app_name">Your App Name</string>
The main logo file is located at app/src/main/res/drawable/logo.png.
To update the app icon:
- Replace
app/src/main/res/drawable/logo.pngwith your new logo file (ensure it is a PNG). - For the launcher icon (the icon on the home screen), you should use the Image Asset Studio:
- Right-click on the
appfolder in Android Studio. - Go to New > Image Asset.
- Select your new logo image in the "Path" field.
- Adjust the scaling and background.
- Click Next and then Finish.
- Right-click on the
To change the app's theme colors (toolbar, status bar, etc.):
- Open
app/src/main/res/values/colors.xml. - Update the hex codes for the colors.
purple_500: The primary color of the app (Toolbar).brand_color: Used for specific branding elements.black/white: Standard colors.
Example:
<color name="purple_500">#E91E63</color> <!-- Change to your brand color -->The app shows a custom screen when there is no internet connection.
- Icon: The icon is located at
app/src/main/res/drawable/ic_wifi_off.xml. You can replaceic_wifi_off.xmlwith another vector drawable. - Message: To change the text "No Internet Connection" or the error message, update the strings in
activity_main.xml(or ideally, extract them tostrings.xml). - Layout: You can modify the design in
app/src/main/res/layout/activity_main.xmlinside theRelativeLayoutwith IDlayoutError.