SERVICES - Android Fundamentals

แชร์
ฝัง
  • เผยแพร่เมื่อ 29 ธ.ค. 2024

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

  • @denizbutandroid
    @denizbutandroid 4 ปีที่แล้ว +35

    I think giving an example of real life use case for services, intent services and broadcast receivers could help people understand them better.

  • @iftak01
    @iftak01 3 ปีที่แล้ว +1

    You need more subs ! Good stuff

  • @chadzulu4328
    @chadzulu4328 3 ปีที่แล้ว +2

    Very clear and well-paced. Thanks so much Philipp!

  • @binyaminrobbins6335
    @binyaminrobbins6335 4 ปีที่แล้ว +1

    Thanks Philip! Your tutorials are always so well explained !

  • @Kunal-jp8tn
    @Kunal-jp8tn 3 ปีที่แล้ว +2

    Thank you so much. It helped a lot. Can you make a tutorial on how services and broadcast receivers work together ?

  • @ChrisAthanas
    @ChrisAthanas 3 ปีที่แล้ว

    Very clear explanation of a usually complex tutorial

  • @MindfulM
    @MindfulM 4 ปีที่แล้ว +1

    This tutorial was very informative, thank you so much for making it.

  • @shivamtripathi9853
    @shivamtripathi9853 4 ปีที่แล้ว +1

    Excellent Tutorials

  • @theai2020
    @theai2020 2 ปีที่แล้ว

    Can you make a detail video on services like using bound service and AIDL

  • @techmarinar
    @techmarinar 3 ปีที่แล้ว

    Thanx man this was very helpful 😊

  • @user-sankarsana
    @user-sankarsana 2 ปีที่แล้ว

    Great!👍

  • @Sir_RBort
    @Sir_RBort 3 ปีที่แล้ว

    Thanks you so much, this is amazing.

  • @khayryazzez
    @khayryazzez ปีที่แล้ว

    can you create a video about how to modify the UI inside the Service

  • @AmitKumar-pw1ln
    @AmitKumar-pw1ln 3 ปีที่แล้ว

    thanks philips this was helpful !! pls make a vdo on work manager and job schedular

  • @AlgeriaHere
    @AlgeriaHere 4 ปีที่แล้ว

    This is actually a good video thank you , but we all know that google has submitted services to some restrictions , one of them is that service will not be running on oreo and over , is that any good solution for run service as before in older apis , or is there any good alternativs , i tried many things but didn't work

  • @S_Karthik
    @S_Karthik 4 ปีที่แล้ว +2

    sir can u make a code using background music / alarm app

  • @yuzhenwang8103
    @yuzhenwang8103 3 ปีที่แล้ว

    NICE tutorial sir

  • @ferdiag1
    @ferdiag1 2 ปีที่แล้ว

    Hi Phlipp, im new in kotlin and i dont get it, how can i send a class of type spotifyRemoteapp from a service to a broadcastreceiver. I tried it with an serializued, parcelized, intend (even try to save it in a datastore) but i always get error messages and iam turning in a cycle. Do you have a good i idea how to handle this problem?

  • @suvammondal2996
    @suvammondal2996 4 ปีที่แล้ว +1

    Hi,
    Execellent video !!
    One request, can you please make a video how to update any UI component(for example, Text) from Service ?

    • @darrinreed8027
      @darrinreed8027 3 ปีที่แล้ว

      Are you having problems with context for the service?

    • @7xFuryPlayz
      @7xFuryPlayz 2 ปีที่แล้ว +1

      @@darrinreed8027 you use broadcast receiver for this simple

  • @Logan-mj3wx
    @Logan-mj3wx 4 ปีที่แล้ว +1

    You should do a video explaining a little more about yourself. How you got into development, what resources you find useful. Also, thanks for the great content, by far the best android dev channel there is. Excited to see what you do next!

  • @JossEnssy
    @JossEnssy 3 ปีที่แล้ว

    Hi sir...
    I am using to bind to connect my service with my main activity..
    I want to know how may use one service on differents activities..
    Could you help me sir..?
    I don't find information about that on internet...😔

  • @NadAPerder
    @NadAPerder 2 ปีที่แล้ว

    Can we do an app that run without any activity?.

  • @Sir_RBort
    @Sir_RBort 3 ปีที่แล้ว

    Can you explain me please, How Can another application access this Service?

  • @TheDeeStain
    @TheDeeStain 3 ปีที่แล้ว

    I guess my question is I understand both IntentService and Service but does work manager replace these?

    • @frozen1093
      @frozen1093 2 ปีที่แล้ว

      so, did you find answer ? Does work manager replace IntentService and Service ?

    • @TheDeeStain
      @TheDeeStain 2 ปีที่แล้ว

      @@frozen1093 Yeah use work manager

  • @sleepydev4700
    @sleepydev4700 4 ปีที่แล้ว

    Such a great explanation. But how can I start service right after app is booting without open the app?
    Currently I want to use Alarm Manager to set alarm feature in my app, but this alarm app is reset everytime app is reboot
    Thanks in advance 🙏

    • @priyanshu3658
      @priyanshu3658 2 ปีที่แล้ว

      Your system receives onboot complete broadcast.

  • @guy1407
    @guy1407 4 ปีที่แล้ว

    Please show or explain , how to set an id to the thread shown here, because it is staying on/online after we press stop service!!!!!!!!

    • @PhilippLackner
      @PhilippLackner  4 ปีที่แล้ว

      save that thread in a variable and in onTaskRemoved function of the service stop it

    • @guy1407
      @guy1407 4 ปีที่แล้ว

      @@PhilippLackner Many thanks sire!

  • @RohanSingh-fh3tt
    @RohanSingh-fh3tt 4 ปีที่แล้ว

    Can we use a coroutine to start a service in background thread?

    • @PhilippLackner
      @PhilippLackner  4 ปีที่แล้ว

      No, services run in the main thread, but they support multithreading (if you don't use intent Service). So you can just start the coroutine in the service

    • @RohanSingh-fh3tt
      @RohanSingh-fh3tt 4 ปีที่แล้ว

      @@PhilippLackner Likewise you used thread in service, That way we can use coroutine in service but we have to use dispatchers.Main to get that coroutine data back to main thread am I right?

    • @PhilippLackner
      @PhilippLackner  4 ปีที่แล้ว +4

      @@RohanSingh-fh3tt yea as coroutines are always run inside of a thread that's very similar. In general inter thread communication can happen between all threads, no matter which dispatcher. You only need the main dispatcher if you want to change the ui from within the coroutine

  • @jayceeddeyro1406
    @jayceeddeyro1406 4 ปีที่แล้ว +2

    Create more Tutorials!

    • @PhilippLackner
      @PhilippLackner  4 ปีที่แล้ว +3

      You will get your tutorials every second day as usual :D

  • @aniketsharma5221
    @aniketsharma5221 3 ปีที่แล้ว

    If a service is running in my application. And I open several different apps. Will Android OS remove the service app from memory because it hasn't been open in a while or not because a service a running?

    • @akashdeepwadhwa5828
      @akashdeepwadhwa5828 3 ปีที่แล้ว

      it will kill the service which is not in use for resource management

  • @shreyashchoudhary7413
    @shreyashchoudhary7413 3 ปีที่แล้ว

    Epic!

  • @darrinreed8027
    @darrinreed8027 3 ปีที่แล้ว

    Hello, great example! I did have a question though, I can't figure out a way to get the context of a service. I use a service to open up a window manager and that window has a view group, the window can move around and draw on other apps. But I have text views and spinners in the view group, they need context. I have tried several ways to no resolve. Any ideas?

  • @guy1407
    @guy1407 4 ปีที่แล้ว

    Please kindly give here an example when to use : RETURN START_REDELIVER_INTENT

  • @ramadhansaputra3812
    @ramadhansaputra3812 ปีที่แล้ว

    onstartcommand, stopservice, ondestroy