I have built an app via Android Studio. The build is successful. I have created an APK file successfully. It is signed.
I have downloaded the APK to my device. It is found and unpacks successfully. I get the 'install anyway' prompt and it installs.
However, only the Done button is active, the Open button is disabled.
When I look for the app on my device icons (all screens not just home) it is not there. If I open Settings > Apps it is there.
What is going on? Surely if if is corrupt it wouldn't build or it would fail to launch but this is both installed and not installed at the same time.
Thanks.
EDIT: To be clear, in Settings > Apps I see the app and it says Installed but if I search for the app on my phone it is not found.
AndroidManifest as follows (this was built from new project):
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools">
<uses-permission android:name="android.permission.INTERNET" />
<application
android:allowBackup="true"
android:icon="@mipmap/ts_icon"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher"
android:supportsRtl="true"
android:theme="@style/AppTheme"
tools:targetApi="31">
<activity
android:name=".MainActivity" />
</application>
Thanks everyone - I somehow lost my Launcher section of my Manifest. Working version below.
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools">
<uses-permission android:name="android.permission.INTERNET" />
<application>
<activity
android:name=".MainActivity"
android:allowBackup="true"
android:exported="true"
android:icon="@mipmap/ts_icon"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher"
android:supportsRtl="true"
android:theme="@style/AppTheme"
tools:targetApi="31">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category
android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>
Make sure you have a launcher activity from where you are going to launch the webview.
Your manifest should contain something similar to this.
<activity
android:name=".MainActivity"
android:exported="true"
android:label="@string/app_name"
android:screenOrientation="portrait"
android:theme="@style/Theme.appName">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category
android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>