I use Android Studio to run my app on my phone and it runs fine. But the application itself is never installed... There is no icon for it in the menu. I have to "run" any time I want to test my app. I am presented with no errors.
I believe there is an issue with my manifest. What am I doing wrong here?:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="jb854.eda.kent.ac.uk.edanews">
<uses-feature
android:name="android.software.leanback"
android:required="false" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<application
android:name=".EDANewsApplication"
android:label="@string/app_name"
android:theme="@style/AppTheme">
<activity
android:name=".activity.MainActivity"
android:windowSoftInputMode="adjustResize">
<intent-filter>
<action android:name="android.intent.action.VIEW"/>
<category android:name="android.intent.category.DEFAULT"/>
<category android:name="android.intent.category.BROWSABLE"/>
<data android:scheme="http" android:host="www.eda.kent.ac.uk" android:pathPrefix="/school/"/>
</intent-filter>
</activity>
<activity
android:name=".activity.CommentsActivity"
android:theme="@style/AppTheme.TransparentActivity" />
<activity
android:name=".activity.ArticleActivity"
android:theme="@style/AppTheme.TransparentActivity" />
<activity
android:name=".activity.FullscreenImageActivity"
android:configChanges="orientation|keyboardHidden|screenSize"
android:label="@string/title_activity_fullscreen_image"
android:theme="@style/AppTheme.TransparentActivity" />
<activity
android:name=".activity.FavouritesActivity"
android:label="@string/title_activity_favourites"
android:theme="@style/AppTheme.TransparentActivity" />
</application>
</manifest>
The Android app not installed error can be combated after resetting app permissions. Go to Settings > Apps > Reset App Preferences/Reset Application Permissions. After this, third-party software can be installed on your device.
By default Android allows installation only from the Play Store. In order to allow installation of apps from other sources, open the Settings app and locate "Install Unknown Apps" under Privacy/Security settings. Enable the permission for the app which you use to install your APK.
You should add category LAUNCHER
and action MAIN
to your MainActivity
:
<activity
android:name=".activity.MainActivity"
android:windowSoftInputMode="adjustResize">
<intent-filter>
<action android:name="android.intent.action.VIEW"/>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.DEFAULT"/>
<category android:name="android.intent.category.BROWSABLE"/>
<category android:name="android.intent.category.LAUNCHER"/>
<data android:scheme="http" android:host="www.eda.kent.ac.uk" android:pathPrefix="/school/"/>
</intent-filter>
</activity>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With