When to Use a Single Activity Architecture On Android?

แชร์
ฝัง
  • เผยแพร่เมื่อ 10 ก.พ. 2025

ความคิดเห็น • 39

  • @X3lnThPi
    @X3lnThPi 5 วันที่ผ่านมา +10

    Newbie here, learning Android. I always try to follow single activity architecture but I always wondered what use case would need me to have multi activity. Got all my doubts cleared. Thankyou for sharing.

    • @rayaanasim3139
      @rayaanasim3139 5 วันที่ผ่านมา

      hey I am also a newbie (tho been learnign from YT for over 2 months now) I am now able to make applications but where do you get these kind of infos
      For eg in the last application I made of a gym I made a separate activity for every feature [AM I COOKED?
      ]

  • @Checkcheck1234
    @Checkcheck1234 5 วันที่ผ่านมา +5

    Jetpack compose + Single Activity Architecture is the greatest combo... 🔥

    • @0x5HUVO
      @0x5HUVO 4 วันที่ผ่านมา

      Hello, i'm new to android development..learning kotlin ,do i need to learn jetpack compose or xml for the ui? can you help me pls

    • @Checkcheck1234
      @Checkcheck1234 4 วันที่ผ่านมา

      @0x5HUVO yes... For the UI ... U must learn either XML or Jetpack compose.. for now Jetpack compose is recommended.. coz XML has got old... But learning basics of XML and layouts before learning jetpack compose would help..

  • @AlGa-2024
    @AlGa-2024 5 วันที่ผ่านมา +1

    I took a class on Android programming 8 years ago using Java and XML. I've only recently gotten back into it, and I've switched to Kotlin from Java, but I wasn't sure about the benefits of using Compose, so this was really informative! Thank you!

  • @abr3410
    @abr3410 5 วันที่ผ่านมา +7

    I've always used single activity architecture, didn't know its recommended that way

  • @Alchemist10241
    @Alchemist10241 4 วันที่ผ่านมา

    Thanks a lot. You finally answered the question that had been lingering in the back of my mind for a long time.

  • @stasleonov5196
    @stasleonov5196 3 วันที่ผ่านมา

    Thank you very much, as always interesting and informative, I tried to make a pip, it turned out not to be difficult

  • @KimbleXYZ
    @KimbleXYZ 5 วันที่ผ่านมา

    Great video! This is going to be super helpful for anyone starting Android development today!

  • @RickertBrandsen
    @RickertBrandsen 4 วันที่ผ่านมา

    also there is one extra use-case on the table at least in my opinion. When you are using external tools/sdks, it is in my opinion much cleaner to launch an activity e. g. for scanning barcodes etc.

  • @ndubuisiamadi
    @ndubuisiamadi 4 วันที่ผ่านมา

    Damn. I wish I saw this earlier or researched more about this. Recently got a client to build a some what complex app and coming from Java and XML, I didn't know Single Activities are not recommended. This explains why my custom nav bar animation lags on low end devices

  • @Zinetpc
    @Zinetpc 5 วันที่ผ่านมา

    Thank you dear, Great Man!!

  • @imabdullah0
    @imabdullah0 5 วันที่ผ่านมา +2

    If I start koin in My Application class and I use the dependency in my Second Activity so Does that Work? and Does I have to make another NavHost for the Second Activity?

  • @krisnaerlangga8998
    @krisnaerlangga8998 6 วันที่ผ่านมา +2

    Another back to back banger video. Thank you Philipp for providing quality content where it truly needed the most😊

  • @stasleonov5196
    @stasleonov5196 6 วันที่ผ่านมา

    as always, thank you very much for the video

  • @ArthurKhazbs
    @ArthurKhazbs 5 วันที่ผ่านมา

    Some other examples of when a separate activity could be easier:
    - Data collection policy UI mandatory for Health Connect
    - License notices UI generated automatically by a Gradle plugin

  • @LeonardoPirro
    @LeonardoPirro 3 วันที่ผ่านมา

    Bit of a random question: which theme do you use for Android Studio?

  • @esekaemmanuel7295
    @esekaemmanuel7295 5 วันที่ผ่านมา

    Thanks ❤

  • @kishorekk23
    @kishorekk23 5 วันที่ผ่านมา

    Can u make a video about custom LazyLayout compose 😊

  • @nguyenphucson2812
    @nguyenphucson2812 4 วันที่ผ่านมา

    When i learn android by creating a alarm pet project, i create a separate activity for an alarm ringing display for snooze and stop. What is you guy thought?

  • @guyguy467
    @guyguy467 5 วันที่ผ่านมา

    Thanks. Please make a video with some examples of Single Activity Architecture

    • @PhilippLackner
      @PhilippLackner  5 วันที่ผ่านมา +1

      @@guyguy467 all apps that don't fall under these exceptions here

    • @ncba
      @ncba 3 ชั่วโมงที่ผ่านมา

      😂

  • @ArthurKhazbs
    @ArthurKhazbs 5 วันที่ผ่านมา +1

    I guess the "Activity" has evolved from being used as a "Screen" to rather being used as a "Window"

  • @alphabe-j1n
    @alphabe-j1n 5 วันที่ผ่านมา

    how about putting two activity at the same time, google talk about this recently

  • @kos534
    @kos534 5 วันที่ผ่านมา

    What about when user click on notification and open a screen? Can it be done in single activity?

  • @bitwise-dev
    @bitwise-dev 5 วันที่ผ่านมา

    Again every guidelines are just a guide not a rule or law that one should never break, don't be too religious. Another great content! You made me want to implement a PiP feature on my project just by mentioning it since it looks pretty simple.

  • @martinseal1987
    @martinseal1987 6 วันที่ผ่านมา +1

    Did not see pip coming

  • @kanzel88
    @kanzel88 5 วันที่ผ่านมา

    how about dynamic feature (and it's navigation)?

    • @PhilippLackner
      @PhilippLackner  5 วันที่ผ่านมา

      @@kanzel88 true, that's another exception

  • @martinseal1987
    @martinseal1987 6 วันที่ผ่านมา +2

    TLDR: EVERY SINGLE TIME!!! 😂 (Not a spoiler i havent watched it fully yet)

  • @quantumgaming7
    @quantumgaming7 5 วันที่ผ่านมา

    Simply show dialogue for force update

  • @_software_engineering
    @_software_engineering 5 วันที่ผ่านมา

    ❤🧡💙 👌

  • @baharudinmaulana78
    @baharudinmaulana78 6 วันที่ผ่านมา

    Gokilll