App is reopening all time from the splash screen

Kishan sharma

I have an issue in my app only for the specific device only when I am clicking on the home button after performing the few steps in my app, soo app is in the recent tabs. If I will open the app from the recent tabs then it will open from the last page where I drop the app last, but if I will click on the app icon instead of recent tabs then the app will open from the splash screen.

This will happen only for the one Samsung device and other apps were working fine for the same device.

Please do help me if anyone faced the same issue.

Paris B. G.

The Android Manifest file is what determines the "launcher" or what activity will start when opening your app from the icon. While browsing through the app, if you open another application or press the home button your app goes into the foreground or "pause" state. That is why when you find your app in the recent tab it is resumed from it's last location. The question is where exactly do you want your app to start from? Your android manifest file should be the only file with an orange icon in your project file list. Open it up and it should look similar to this:

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.bnr.que_snitch">

    <application
        android:allowBackup="true"
        android:icon="@mipmap/ic_launcher"
        android:label="@string/app_name"
        android:roundIcon="@mipmap/ic_launcher_round"
        android:supportsRtl="true"
        android:theme="@style/AppTheme">

        <activity
            android:name=".CrimePagerActivity"
            android:parentActivityName=".CrimeListActivity">
        </activity>
        <activity
            android:name=".CrimeListActivity">

                  //THIS IS YOUR LAUNCHER!!!

            <intent-filter>
                 <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>

    </application>

</manifest>

In order copy and paste your launcher (everything inside the intent filter tag)and paste it inside of the activity tag that you want your application to start from.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

control the time of splash screen

Show splash screen each time app becomes active

Android splash screen with a different image each time the app starts

App stops at Splash screen

How to navigate to home from splash screen in second time in flutter?

Removing splash-screen loading gif from Cordova app

Show splash screen only when launching the app from launcher

undefined - params passed to `App.js` from splash screen

Removing splash screen from UWP app in Fall Creators Update (FCU)

How to remove native splash screen from flutter app?

ionic app splash screen are not shown

Ionic - app hangs on splash screen

Splash screen when starting the app

App crashes after splash screen

why is there no picture on the app splash screen

launch a app splash screen everytime we click a app icon from home screen

Is iOS app Launch Screen (splash screen) a must?

White screen after splash screen in IONIC app

Swift UI navigation from splash screen to another screen automatically with delay time

Every time open splash screen when application is resumed from background like WhatsApp fingerprint screen

How to directly boot your android app straight from splash screen, without showing the home screen?

Ionic 3 take so much time to enter the app after splash screen

Running UWP app from Command Line is "ONLY" showing the splash screen of the app

First time open app turns all time to tutorial screen

Android Splash Screen with network load and minimum splash display time

splash screen and one time intro in flutter

Terminal splash screen with Weather, Calendar, Time & Sysinfo?

Android:Splash screen only for the first time

All UWP Samples freezing at splash screen