Home > OS >  Application runs but dosent have a location
Application runs but dosent have a location

Time:06-03

I have this weird problem that only happens with one project. The app is launched and works perfectly fine but is not on the phone :

Here you can see that the app nono works on the phone and is running, yet it isn't located on the phone like the other 2 projects I have Boccia and Hello. I tried this on a physical phone and it's the same issue, the app works but isn't on it. How do I fix it

Logcat is empty for some reason

<activity
        android:name=".MainActivity"
        android:exported="true">
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />
            <category android:name="android.intent.category.LAUNCHER" />
            <action android:name="android.intent.action.SEND"/>
            <category android:name="android.intent.category.DEFAULT"/>
            <data android:mimeType="message/rfc822"/>
        </intent-filter>
    </activity>

Activity inside the manifest

CodePudding user response:

Replace:

    <activity
        android:name=".MainActivity"
        android:exported="true">
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />
            <category android:name="android.intent.category.LAUNCHER" />
            <action android:name="android.intent.action.SEND"/>
            <category android:name="android.intent.category.DEFAULT"/>
            <data android:mimeType="message/rfc822"/>
        </intent-filter>
    </activity>

with:

    <activity
        android:name=".MainActivity"
        android:exported="true">
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />
            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
        <intent-filter>
            <action android:name="android.intent.action.SEND"/>
            <category android:name="android.intent.category.DEFAULT"/>
            <data android:mimeType="message/rfc822"/>
        </intent-filter>
    </activity>
  • Related