locked
splash screen not loading issue RRS feed

  • Question

  • User330912 posted

    I have added splash screen to portable project. its working fine in ios. but in android project is not loading splash. its going to directly Main activity. I have set main activity to MainLauncher = true.

    • Application Portable App.cs public App() { MainPage = new NavigationPage(new Splash()); }

    In ios there are no issue. loading correctly. Please help me to solve this

    Thursday, May 16, 2019 7:07 AM

Answers

  • User382871 posted

    Did you use SplashActivity to implement splash screen?

    I have set main activity to MainLauncher = true. If so, you should set MainLauncher = true in splashActivity not MainActivity. [Activity(Theme = "@style/Splash", Label = "SampleSplash", MainLauncher = true, Icon = "@mipmap/icon", NoHistory = true)] public class SplashActivity : AppCompatActivity { ... }

    • Marked as answer by Anonymous Thursday, June 3, 2021 12:00 AM
    Thursday, May 16, 2019 9:51 AM

All replies

  • User2148 posted

    http://codeworks.it/blog/?p=294

    Thursday, May 16, 2019 9:25 AM
  • User382871 posted

    Did you use SplashActivity to implement splash screen?

    I have set main activity to MainLauncher = true. If so, you should set MainLauncher = true in splashActivity not MainActivity. [Activity(Theme = "@style/Splash", Label = "SampleSplash", MainLauncher = true, Icon = "@mipmap/icon", NoHistory = true)] public class SplashActivity : AppCompatActivity { ... }

    • Marked as answer by Anonymous Thursday, June 3, 2021 12:00 AM
    Thursday, May 16, 2019 9:51 AM