How to make a Splash Screen without extra Activity in Android

Поділитися
Вставка
  • Опубліковано 30 жов 2020
  • In this video we will create a real splash screen that doesn't require an extra activity to be shown.
    ⭐ Get certificates for your future job
    ⭐ Save countless hours of time
    ⭐ 100% money back guarantee for 30 days
    ⭐ Become a professional Android developer now:
    pl-coding.com/premium-courses...
    Regular Android tutorials on my Instagram: / _philipplackner_
    Checkout my GitHub: github.com/philipplackner

КОМЕНТАРІ • 266

  • @alfian3570
    @alfian3570 3 роки тому +69

    7:51 don't do that in tag application, it also applies in another activity. Add theme in tag activity so it only applies on the specific activity.

    • @syednoorullahshah9194
      @syednoorullahshah9194 3 роки тому +1

      thanks !

    • @alphagamer5019
      @alphagamer5019 3 роки тому

      Thanks Buddy ! : )

    • @MateusMeurer
      @MateusMeurer 3 роки тому +2

      Thank you so much bro! I spent a while trying to solve this. newbie here.

    • @haritnaik9534
      @haritnaik9534 3 роки тому

      hello!!!anyone up there??i need some help :)

    • @haritnaik9534
      @haritnaik9534 3 роки тому

      @@MateusMeurer yeah!!me newbie too. I was trying a lot to solve the issue but can't:( ...........................finally got the solution!!had to refer some resources.

  • @adampearson581
    @adampearson581 3 роки тому +14

    Brilliant video. Just nowhere else on the internet providing this level of clarity and simplicity. Thanks so much, Philipp!

  • @ricardoestrella95
    @ricardoestrella95 3 роки тому +1

    FINALLY! Just because of your WISE advice, I'm subscribing. You know how a real splash screen should be. THANK YOU.

  • @trunghieu5386
    @trunghieu5386 3 роки тому

    thanks, lately, I am confused about the splash screen, I used to splash screen like an activity until I watch how you do. Appreciate you!!

  • @kelvintian123
    @kelvintian123 3 роки тому

    Thanks man, this is just awesome! Thanks for all these great videos! All the best and stay safe in this pandemic!

  • @michelleanne3527
    @michelleanne3527 2 роки тому +1

    Thank you sir! I was making my thesis android application and I got a warning from android studio telling me I shouldn't make my own splashscreen~ This really help me a lot! Thank you very much again!!!! :>> (from Philippines)

  • @polinatochilina9681
    @polinatochilina9681 3 роки тому +1

    I'm doing a university project and your videos really help me a lot, thanks! (from Russia)

  • @anfelrosa5661
    @anfelrosa5661 3 роки тому

    This is exactly what i was looking for. Thank you so much

  • @shadabfaizal
    @shadabfaizal 3 роки тому

    bro you got me. such lovely explanation and the best way to implement a splash screeen

  • @georgenady7375
    @georgenady7375 3 роки тому

    this is totally professional .... you are always the best

  • @peterpan7659
    @peterpan7659 3 роки тому +18

    Thanks phil, I love how you do it the "right way".

    • @PhilippLackner
      @PhilippLackner  3 роки тому +1

      Very welcome

    • @kurniawanhendra2683
      @kurniawanhendra2683 3 роки тому

      Phil... You're my hero....

    • @muhammadrayanmansoor4301
      @muhammadrayanmansoor4301 Рік тому

      @@PhilippLackner I WANT TO ADD A PROGRESS BAR ANIMATION IN THIS DRAWABLE RESOURSE FILE BUT I CANT FIND A WAY TO DO SO
      bro can u explain how to implement layout files attributes in drawable resourse file...

  • @kelvineduful7761
    @kelvineduful7761 2 роки тому +1

    I actually created a whole new activity for this I never knew this could be done thanks for the video

  • @pablodevelop
    @pablodevelop 2 роки тому

    Thanks for sharing your knowledge! This will help me with a task in my job 😍 nice tip.

  • @Snuiper228
    @Snuiper228 3 роки тому +14

    Wow, this is a very ingenious way to do it. But instead of writing android: theme in , I wrote in so that it doesn't apply to all of my Activities

    • @ahmedrashed2587
      @ahmedrashed2587 2 роки тому

      can u explain more because i have this issue how i can fix it

    • @Snuiper228
      @Snuiper228 2 роки тому +2

      ​@@ahmedrashed2587 What about the last sentence? If you put in it will be attached to all activities. If it shouldn't apply to all activities, write in the so that it only applies to the activity you wrote it for. It's in manifest

    • @henrynguyen7143
      @henrynguyen7143 2 роки тому

      @@Snuiper228 What if I use only one activity but with multiple fragment ?? Is there any way to fix that one. Edit: Nevermind I fixed it, so you could put the theme that you want for all of your screens in their layout file(s), and still keep the application's theme is the splash screen. Just want to leave it here so if anyone see this, they know how to do.

  • @VenewebTV
    @VenewebTV 3 роки тому

    This video was very usefull, every day I'm learnig a lot, regards from Caracas, Venezuela

  • @RaceDriverF1
    @RaceDriverF1 3 роки тому

    Very helpful. I really appreciate this video. Thanks, mate ;)

  • @soontaek
    @soontaek 3 роки тому +4

    This was something way simpler than I thought! Thanks a lot for all tutorials you make!

  • @dropdead2311
    @dropdead2311 3 роки тому +2

    thanks phil,i just found amazing android channel tutorial that uses dark theme android studio :)....keep it up

  • @gelinkpen93
    @gelinkpen93 3 роки тому

    Very helpful. Thank you so much!

  • @fahidsarker4858
    @fahidsarker4858 3 роки тому

    Love your videos. They really helped me a lot.

  • @lokispacexfan8966
    @lokispacexfan8966 3 роки тому

    I love your method tried it and it's perfect thanks 👍 man

  • @levsha_artist
    @levsha_artist 3 роки тому

    Awesome tutorial. Thank you. From Russia with love!

  • @ugursener1709
    @ugursener1709 2 роки тому

    Thank you so much for the video. Happy coding.

  • @alexgr666n
    @alexgr666n 8 місяців тому

    thank you! best tutorial on this topic!

  • @amano_akane
    @amano_akane 3 роки тому

    Hey! I found your channel yesterday. I was strugging to get started with android studio but thanks to you I have a better understanding of Android Apps development. I have a class project of making a todo list app (from scratch and without any help from the teacher lmao) aaaaand in java (rather than kotlin). Well, 5 hours later, I have a functionning app. It took me some time to translate the kotlin code in java but now everything's working. Thanks a lot

    • @PhilippLackner
      @PhilippLackner  3 роки тому

      Glad I could help!

    • @poojamore056
      @poojamore056 3 роки тому

      how did you translate kotlin code to java?

    • @amano_akane
      @amano_akane 3 роки тому

      @@poojamore056 you just have to find the equivalent

  • @destrosnake
    @destrosnake 3 роки тому

    Excellent video!!! thank you so much!!

  • @wilsonahanmisi1187
    @wilsonahanmisi1187 3 роки тому

    Thanks Phil. You're the best

  • @MrNanoWise
    @MrNanoWise 3 роки тому

    Thanks, man! I've improved a bit idea and directly specified theme for each activity in manifest 3>

  • @subindsuresh4897
    @subindsuresh4897 3 роки тому

    Thanks bro, I was using an extra activity all this time.

  • @appbits1982
    @appbits1982 3 роки тому

    Awesome topic, thanks a lot for sharing this 👌

  • @christiankrahtz7112
    @christiankrahtz7112 11 місяців тому

    hey, thank you for creating the video. It helped out a lot thanks

  • @mahdiz8316
    @mahdiz8316 2 роки тому

    Thank you, it was very helpful.

  • @CodeWithCal
    @CodeWithCal 2 роки тому

    This is a great tutorial. Thank you

  • @anthonyhaidari9016
    @anthonyhaidari9016 2 роки тому

    Love your videos (keep them coming) and I am down with your accent.

  • @aliakram1145
    @aliakram1145 2 роки тому

    Bro a big thank for making our life easier , good by splash activity

  • @MicealNaing
    @MicealNaing 11 місяців тому

    Thank you sir. Finally i found the correct way for splash screen

  • @randypenajimenez3893
    @randypenajimenez3893 3 роки тому

    Thanks for this kind of content. Keep it up!

  • @mehulbisht9708
    @mehulbisht9708 3 роки тому +4

    finally you found this thing that i never managed to do ! But do you have any idea how much time at the maximum can the oncreate take ? i mean, for UPI apps that have transaction like paytm are actually taking more than an app like whatsapp . Is it the security you think that takes so long or a bad splash screen ?

  • @ziyadmansy6016
    @ziyadmansy6016 3 роки тому +3

    Finally did it! xD still appreciate it

  • @fabiotortorella4546
    @fabiotortorella4546 3 роки тому

    Hello Philipp, thanks for the tutorial, ifound it very interesting however how can we set the setcontentview after webview end up load?

  • @VLADMOTIVATES
    @VLADMOTIVATES Рік тому

    congrats for 100k subs bro

  • @sajjadabdulaziz6178
    @sajjadabdulaziz6178 3 роки тому

    thank you bro, that was very helpfuly

  • @firuzaaliyeva5382
    @firuzaaliyeva5382 3 роки тому

    Another great video. Thank you!

  • @annguyenhoang3589
    @annguyenhoang3589 3 роки тому

    niceeee

  • @gokuldas027
    @gokuldas027 3 роки тому

    Thanks, very well explained, very much helpful..

  • @steph291
    @steph291 2 роки тому

    It works for me !!! thanks, Samsung Galaxy A5, canada

  • @pt8817
    @pt8817 2 роки тому

    thanks a lot, i have to build an app with only one activity for the scool and i have to use splashscreen , till now i was just finding the other way with a whole activity as a splashscreen

  • @aswinskumar3868
    @aswinskumar3868 3 роки тому

    What else to say, that was awesome. Thank you.

  • @anmaresh
    @anmaresh 3 роки тому

    very useful video, thanks!

  • @jcdiezdemedina
    @jcdiezdemedina 2 роки тому

    This is a great contribution, many thanks. I have a blank screen for a short time after the logo. How can it be resolved?

  • @PankajKumar-tt7rm
    @PankajKumar-tt7rm 3 роки тому

    Great tutorials sir👍👍👍

  • @dmitrimatantsev1898
    @dmitrimatantsev1898 3 роки тому

    The best solution!
    Thank You for Your work!

  • @Shakhawat
    @Shakhawat Рік тому

    you are the best content creator

  • @anoopkumarueconomicsa8462
    @anoopkumarueconomicsa8462 2 роки тому +2

    This is what I was looking for, a splash screen without a whole new activity.

  • @juancamilov06
    @juancamilov06 2 роки тому +1

    Hey Phil, awesome video man - Did you have the chance of looking the new SplashScreen API for Android 12? Cheers man!

  • @sat_talk
    @sat_talk 3 роки тому

    Great bro.. keep it up..

  • @hellosagar
    @hellosagar 3 роки тому

    Thanks, man you care for us a lot

  • @hellosagar
    @hellosagar 3 роки тому

    Thanks for making this video we need this

  • @thomaesm
    @thomaesm 3 роки тому +9

    Never heard of this approach - thank you for sharing it! Since I use a very short animation of a custom shape in the splash screen in my current app, how would you implement such animations in your approach (I'm using an animated-vector SVG asset for the animation)?

    • @sharkaboi
      @sharkaboi 3 роки тому +7

      This approach does not allow any time limited operations like an animation. It is primarly for making the splash screen last as long as the activity takes to call onCreate, thus preventing the awkward blank white/black activity on startup.

    • @feepin2058
      @feepin2058 3 роки тому +1

      Yeah me too I used to do short animation for my splash screen but I think now I'm going to do that technic because Philipp's right, the user doesn't really care about our logo xD

    • @confuste
      @confuste 3 роки тому

      ​@@feepin2058 However, On Splash activity (the first activity) you can check if the user is logged or not. If user is logged then go to home else then go to login screen.

    • @feepin2058
      @feepin2058 3 роки тому

      @@confuste That's not the matter here, at all

  • @i.k.shaikh3772
    @i.k.shaikh3772 3 роки тому

    Thanks for this informative video sir, can we have a sequel about a simple animation to the logo here, Zoom out for instance ??

  • @joaolucassantosviegas3334
    @joaolucassantosviegas3334 2 роки тому

    Thanks, i was doing it in that way before, but when i was studiyng about it, all other videos was showing the wrong way, using another activity, that always look was wrong for me, so thank you, i tought i was doing it wrong, using theme instead activity, thanks.

  • @AI_Frights
    @AI_Frights 3 роки тому

    Thanks from Ukraine ;) subscribed your channel, thanks for usefull videos. I learn android and improve my english with you)

  • @nathalianobrega6917
    @nathalianobrega6917 2 роки тому

    really nice video, congrats

  • @gajendrapandeya5081
    @gajendrapandeya5081 3 роки тому

    Lovely 💝 thanks a lot

  • @kelvinmutisya9298
    @kelvinmutisya9298 2 роки тому +1

    hi phil, am using PNG and it seem different from SVG after adding it as an Image asset.. could you help on how to go about it since my Logo is in PNG and JPEG only.

  • @FastCodeDeveloper
    @FastCodeDeveloper 3 роки тому

    You should have also said that the parent of the theme that you are creating must be such that there is no problem created when you have buttons because if you change the background you have to also fix the buttons background otherwise it will change them.

  • @sgamingyt5407
    @sgamingyt5407 2 роки тому

    Very Nice Video Thank You

  • @katarinavuknic1105
    @katarinavuknic1105 2 роки тому

    Great, thanks!

  • @Shine-and-line
    @Shine-and-line 3 роки тому

    Thanks for Best Tutorial
    I have used this method for my webview app , is there any way to splash wait for load website in the background ?

  • @navo7641
    @navo7641 2 роки тому

    Thank you sir very much...

  • @eminyenaliyev8037
    @eminyenaliyev8037 3 роки тому

    Thank you, for a video. But i have a question. What will we do if on the bottom of Splash Screen must be version of application( example - Version: 1.0.0 )?

  • @andrilesmanahermawan1448
    @andrilesmanahermawan1448 Рік тому

    thanks bro. good tutor

  • @mohancena8970
    @mohancena8970 2 роки тому

    Very useful brother 🎉😁

  • @ChrisAthanas
    @ChrisAthanas 3 роки тому

    Useful information

  • @khalidasbon2679
    @khalidasbon2679 3 роки тому

    i wanna do it with some animations and seekbar , but with a fragment using navigation component, the problem is : i don't know how can i change only the theme of the splash screen fragment(statusBarColor, actionBarColor...) ??

  • @kaff864
    @kaff864 3 роки тому

    Thanks for making this video
    How can we add text in bottom side with logo?

  • @priyanshumaurya7903
    @priyanshumaurya7903 3 роки тому +1

    love you 3000 bro

  • @yannism9594
    @yannism9594 3 роки тому

    awesome video !

  • @kojofosuedue3686
    @kojofosuedue3686 2 роки тому

    Hi, thanks for this tutorial..but have you by any chance been able to try it on android 4.4 (API 19) . For some reason the logo stretches in a weird way and no amount of hack has been able to fix it. Do you have any idea how I could fix this please?

  • @dbtechprojects2392
    @dbtechprojects2392 3 роки тому

    Thanks for showing this, I've just started building apps, and already doing this the wrong way lol

  • @rianmandala927
    @rianmandala927 3 роки тому

    thank you, this what i want

  • @yahyafati
    @yahyafati 3 роки тому

    The sponsor of this video is awesome, I have tried it, trust me.

  • @geras1m253
    @geras1m253 3 роки тому

    THANK YOU MAN! lysm 😘

  • @rogercolque
    @rogercolque 3 роки тому +2

    i apply this and other activity for more customize with animations and others.

  • @meghanaswamy1715
    @meghanaswamy1715 2 роки тому

    helpful
    Thanks

  • @xD-saleem
    @xD-saleem 3 роки тому

    thanks man, thank you for sharing

  • @dev_jonmorais
    @dev_jonmorais 2 роки тому

    When we have a project containing: Splash / Login / Register / Main / Listing / AddTask. How do I relate all this, in the Architecture Component, using an Activity and Fragments

  • @ahmedbasalib9300
    @ahmedbasalib9300 2 роки тому

    This is amazing but what if i want to make custom design with multiple images for the splash screen how to do that ?

  • @aliftaufikhurrahmataminudd9040
    @aliftaufikhurrahmataminudd9040 3 роки тому

    How about fetching data and doing some logic during the splash screen? Can it be done using this way?

  • @pushkaragnihotri1609
    @pushkaragnihotri1609 3 роки тому

    so where do we add isauthenticated logic? previously i used to do it in splash activity

  • @RonaldoGuedes
    @RonaldoGuedes 2 роки тому

    Is it keeps being the right approach in 2022? or now is a better way?

  • @bachabchiri6144
    @bachabchiri6144 3 роки тому

    Very nice ❤

  • @MohammadEhsanAnsari
    @MohammadEhsanAnsari 3 роки тому

    love you bhai♥️

  • @shitabmushfiq-ulislam6974
    @shitabmushfiq-ulislam6974 2 роки тому

    Really helpful! but what if I need the splash for 1-2 seconds longer than this!?

  • @muhammadwaleedijaz5651
    @muhammadwaleedijaz5651 2 роки тому

    so if we want to use also text view on splash screen then what's the way ??

  • @muhammadrayanmansoor4301
    @muhammadrayanmansoor4301 Рік тому

    I WANT TO ADD A PROGRESS BAR ANIMATION IN THIS DRAWABLE RESOURSE FILE BUT I CANT FIND A WAY TO DO SO
    bro can u explain how to implement layout files attributes in drawable resourse file...

  • @AnkitSharma-ez9js
    @AnkitSharma-ez9js 3 роки тому

    Thanks a lot bro!

  • @kurniawanhendra2683
    @kurniawanhendra2683 3 роки тому

    You're got my fu**** my like and subscription....
    Awesome bro.... 👏👏👏

  • @Autruo
    @Autruo 3 роки тому

    Brilliant, just solve a problem of weeks with your tutorial, please how can I include text with splash screen image

  • @acesteelmusix
    @acesteelmusix 2 роки тому +1

    How to create a svg file? I only have png and jpg files with me