Understanding and Using Services in Android: Background & Foreground Services

  Рет қаралды 75,413

Codeible

Codeible

Күн бұрын

Пікірлер
@frax84
@frax84 2 жыл бұрын
I give you 3C score for this video: Concise, Complete, Clear. Really good explanation. Thank you
@DebugWithAdam
@DebugWithAdam 2 жыл бұрын
I have been looking for something like this to complete our 5 months flutter project, finally I got the solution from your content. Thank you so much, looking forward to seeing more contents
@roman71717
@roman71717 2 жыл бұрын
This is one of the best-explained tutorials I have watched!! Thank you :)
@lubuntumleto5052
@lubuntumleto5052 Жыл бұрын
Good example how simple it could be, when guide is so clear and opened step by step, thank you sir.
@itallstartedwhen
@itallstartedwhen 2 жыл бұрын
Best video on the topic on KZbin, so well explained 😍😍😍😍😍😍😍😍
@truthonly_
@truthonly_ 2 жыл бұрын
Ultimate content. I never understood services that easily ever before. Thank you 🤟
@okeuwechue9238
@okeuwechue9238 Жыл бұрын
Very clear and direct explanation of the different service types. 👍 However you mention that multiple instances of the service will get created if started multiple times, but this isn't so; there will only be one instance of the service object but its onStartCommand() function will be invoked those multiple times.
@strawberryinc.2275
@strawberryinc.2275 2 жыл бұрын
i really needed this, @Codeible, thank you big time.
@teladoum9
@teladoum9 Жыл бұрын
Thank you. I'm looking for this video longtime. Be blessed. Soyez béni mon frère.
@myhealthobs5290
@myhealthobs5290 Жыл бұрын
I wonder who organised the naming if foreground vs background. Unbelievable, thanks for clearing it up
@drygordspellweaver8761
@drygordspellweaver8761 Жыл бұрын
lol it was Larry Ellison, the Devil himself.
@Somerandomnessvvv
@Somerandomnessvvv 3 жыл бұрын
Come onnn this gotta be one of the best practical service tuts. Can’t wait to see you work with kotlin.
@mohdfaris9054
@mohdfaris9054 2 жыл бұрын
Yesss good job baby..setan kocak bini orang sampai dsana ..party sex u setan...
@satwikkar7761
@satwikkar7761 2 жыл бұрын
Best video on utube regarding services in android... 👍👍👍👍
@involved1984
@involved1984 Жыл бұрын
Amazing and simple explaination. Thanks. Keep up the good work 👍
2 жыл бұрын
Thank you for clear and worked practice even on API 28. Great work. More android tutorials please.
@abunaser3525
@abunaser3525 2 жыл бұрын
I left java 3 years ago .and start using kotlin . But your explanation is So good that I end up subscribing to your channel. Hope you start using compose multiplatform 🙂 this is the very first video from you that I watched .so don't you if you are already using kotlin . Anyway nice video ..
@drakohgaming5131
@drakohgaming5131 9 ай бұрын
you're salve my life bro, i have weeks searching this info. Thanksh! like and new sub
@hassanesilverlight1550
@hassanesilverlight1550 2 жыл бұрын
Thank you. Best Service tutorial ever.
@mohdfaris9054
@mohdfaris9054 2 жыл бұрын
Terbaik servies dia..tapi home Macan setan dia...malu.out site..setan bertanduk lima..celaka
@mdrashid6002
@mdrashid6002 4 ай бұрын
Great Thanks boss for such a clear explanation, What about the Bound Services??
@ravindrashekhar4419
@ravindrashekhar4419 2 жыл бұрын
Clear Cut simple and Illustrative video, good for starters.
@georgenady7375
@georgenady7375 2 жыл бұрын
man ! thank you very much for your awsom explaination for that topic
@alokeshnath4269
@alokeshnath4269 2 жыл бұрын
I have tested this on real device when I restart the device I didn't see the notification that you got...? Is there anything to add more?
@joshuantw
@joshuantw 2 жыл бұрын
Awesome video my dude. Really clear.
@asimjmi2010
@asimjmi2010 2 жыл бұрын
Nice explanation.... you're awesome man 👍🏻
@MauricioSouza-93
@MauricioSouza-93 5 ай бұрын
Great explanation!! Thanks!!
@darklaker
@darklaker 2 жыл бұрын
The best explanation for services I've found and it's just what I needed. I would add a handler to show a toast message from the service. Handler mainHandler = new Handler(getMainLooper()); mainHandler.post(new Runnable() { @Override public void run() { // Do your stuff here related to UI, e.g. show toast Toast.makeText(getApplicationContext(), "Message from Service", Toast.LENGTH_SHORT).show(); } });
@explorer1125
@explorer1125 Жыл бұрын
Very good explanation..!!👏
@onwodoh
@onwodoh Жыл бұрын
This was a good video. I learned so much in a short amount of time!
@D-Coder440
@D-Coder440 2 ай бұрын
Osm! Thank you bro for this helpful video
@codingfeed9206
@codingfeed9206 2 жыл бұрын
Im your new Subscriber because of your video i easily understand some coding stuff
@codingfeed9206
@codingfeed9206 2 жыл бұрын
Thank you
@vr_connoisseur
@vr_connoisseur Жыл бұрын
nice video, helped me so much!
@TupolevSlaVTuber
@TupolevSlaVTuber Жыл бұрын
nice tut crystal clear and spot on
@shubhm_agarwal
@shubhm_agarwal 2 жыл бұрын
Great explanation helped me a lot. Hence subscribed.
@habibmalim6178
@habibmalim6178 3 жыл бұрын
so helpful thank you very much 😊 does it work with all android versions specially oreo or higher ?
@Codeible
@Codeible 3 жыл бұрын
Hello it should work for API 26 or higher.
@hamsakumar4535
@hamsakumar4535 2 жыл бұрын
@@Codeible Any alternate service to run for below 26.
@llothar68
@llothar68 11 ай бұрын
If i use NDK to run a C++ library, which service should i use to run the code out of process? Sometimes C++ crashs and i want them to take a service down but not the whole app. So i need to do the same as all webbrowsers do it.
@hrishikeshpator3853
@hrishikeshpator3853 Жыл бұрын
Thank you❤
@suche_cz
@suche_cz 2 жыл бұрын
Thank you, this video was really usefull
@LasWegas
@LasWegas Жыл бұрын
Great!
@petermolnar6017
@petermolnar6017 10 ай бұрын
Thanks for this great video!
@قناةالرياضيات-ن7ر
@قناةالرياضيات-ن7ر 2 жыл бұрын
I hope to learn how to play the list view of music through the service by Raw or Assest folder to work in background long time ... thanks for this video
@marwenhammami9575
@marwenhammami9575 2 жыл бұрын
Thanks
@kemaldeveli8195
@kemaldeveli8195 3 жыл бұрын
I like your videos a lot please share more videos with us
@Hanna-ir6te
@Hanna-ir6te 2 жыл бұрын
Thanks for this tutorial. May I know how how to create second application which will run in the background service when first application is processing without interacting of first app?
@derkeks814
@derkeks814 2 жыл бұрын
Great Video! Is there a way to stop the Service by code?
@Hanna-zj1gk
@Hanna-zj1gk 2 жыл бұрын
This tutorial is very helpful. May I know how how to create second application which will run in the background service when first application is processing without interacting of first app?
@musicjagot1632
@musicjagot1632 Жыл бұрын
Android 12 & 13 How long will it be running Foreground service??
@yacoubasylla7358
@yacoubasylla7358 2 жыл бұрын
Thank you very much
@maliksoft3675
@maliksoft3675 2 жыл бұрын
very nice thanks for this video.
@NghiaNguyen-hn5st
@NghiaNguyen-hn5st 2 жыл бұрын
its amazingg thanks you
@lucasmontec
@lucasmontec Жыл бұрын
I believe from what I read on google documentation, that there is no need to check if the service is running. Apparently, that was a bug.
@moe_shah_0078
@moe_shah_0078 Жыл бұрын
How would you stop the foreground service?
@alexmercerind
@alexmercerind 9 ай бұрын
Very useful!!!
@yusufmustari
@yusufmustari 2 жыл бұрын
Thanks bro... very helpfull
@pietrolanuti2571
@pietrolanuti2571 2 ай бұрын
in android 14 sdk version 34, when the app closes the foregroundservice also closes. Are there any solutions for this? Thanks
@sumitkumar-bz2vv
@sumitkumar-bz2vv Ай бұрын
I dont think so, where you read this?
@NielAclag
@NielAclag 2 жыл бұрын
thank you!!
@mychannel-jb3zk
@mychannel-jb3zk Жыл бұрын
I understand that telegram had an unlimited open service in background, how it is posible?
@AshooOffice
@AshooOffice Жыл бұрын
Thnks a lot
@jeremyheng8573
@jeremyheng8573 2 жыл бұрын
Thank you for the sharing! Any idea we can get Firestore document update if our app is terminated?
@Codeible
@Codeible 2 жыл бұрын
Hello, Yes you can.
@jeremyheng8573
@jeremyheng8573 2 жыл бұрын
@@Codeiblewhat method should we implement to update client document if app is terminated
@Codeible
@Codeible 2 жыл бұрын
@@jeremyheng8573 What do you mean? You can just update the document like normal using the Firebase API for Android.
@mohdfaris9054
@mohdfaris9054 2 жыл бұрын
Hello good job.....nerka u all setan...nice...tqqqq
@avigneswaranwaran
@avigneswaranwaran 2 жыл бұрын
Awesome
@sandeepchauhan7918
@sandeepchauhan7918 2 жыл бұрын
Very good explanation.
@sandeepchauhan7918
@sandeepchauhan7918 2 жыл бұрын
@instagram I cant answer It. I have limited knowledge and experiance.
@samiulalim1230
@samiulalim1230 2 жыл бұрын
Normally the codes working fine but when i add a webview in main activity then foground service stopped when apk closed. Is there any solution for it. I want to keep webview in my project and also want the foreground service
@Codeible
@Codeible 2 жыл бұрын
Hi, should still work.
@samiulalim1230
@samiulalim1230 2 жыл бұрын
@@Codeible not working after adding webview 😭😭
@gunturdarmawan1513
@gunturdarmawan1513 2 жыл бұрын
U have udemy courses?
@67Diadem
@67Diadem 2 жыл бұрын
After restarting the app background service is not displaying in the notification area. I have tested on my mobile. Please help 🥺
@androidlearners9163
@androidlearners9163 2 жыл бұрын
Thanks alot bro
@cloner_8852
@cloner_8852 2 жыл бұрын
I have created an alarm app in Android 11, but it does not work when the app is closed. Does anyone know where the problem is ??
@AnuragSingh-eb6of
@AnuragSingh-eb6of 2 жыл бұрын
How I can block wifi internet from using to a specific app in aops /os
@tanmaysinghal8370
@tanmaysinghal8370 2 жыл бұрын
For me only one notification was being created even without checking if the service is running already or not....
@mohdfaris9054
@mohdfaris9054 2 жыл бұрын
Ready....hahahhah...manpussss
@jaimitkumarpanchal7603
@jaimitkumarpanchal7603 2 жыл бұрын
if service stops after few seconds then what to do?
@Codeible
@Codeible 2 жыл бұрын
If the service stops, it could mean that the task is finished. If you want to keep it alive, you need to do something to keep the service alive like a while loop.
@harleenkaurarora1817
@harleenkaurarora1817 2 жыл бұрын
If phone is idle mode background service is not working. How to do this??
@Codeible
@Codeible 2 жыл бұрын
You need to use foreground service.
@harleenarora5189
@harleenarora5189 2 жыл бұрын
@@Codeible Example you have provided is with foreground service only right?
@Codeible
@Codeible 2 жыл бұрын
@@harleenarora5189 Both Foreground and Background.
@cosovic14
@cosovic14 2 жыл бұрын
Is there a way to have a foreground service without a notification ?
@Codeible
@Codeible 2 жыл бұрын
No, you need ir.
@aymaneme96
@aymaneme96 2 жыл бұрын
waaaaaaaaaaaaaaaaaaaaaaaaaw ma bro its amazing
@hometv8446
@hometv8446 2 жыл бұрын
Very helpful
@mediaatech7992
@mediaatech7992 2 жыл бұрын
so thanks you bro
@gianmarioorru1808
@gianmarioorru1808 2 жыл бұрын
the app works fine in the background, but if I want to use it in the foreground it crashes after about 7 seconds. I don't know why
@onuralagoz6531
@onuralagoz6531 2 жыл бұрын
Use wake lock with no time limit to make foreground service work infinitely. But never forget that unnecessary amount of foreground service usage is a real battery killer
@virgile8453
@virgile8453 2 жыл бұрын
amazing
@sedatdemirtas9955
@sedatdemirtas9955 2 жыл бұрын
Thanks
@nikhilsachan_cse7144
@nikhilsachan_cse7144 Жыл бұрын
There is no code for stopping foreground service
@slcsb116
@slcsb116 2 жыл бұрын
Can you make this in kotlin ?
@alisheykhi9649
@alisheykhi9649 2 жыл бұрын
great bro , but im looking for Bound service impl 🙂
@adnananik7586
@adnananik7586 Жыл бұрын
thanks
@priyanshusahu8024
@priyanshusahu8024 2 жыл бұрын
i cant able to receive broadcast after my app has been killed
@pankajlagad3291
@pankajlagad3291 2 жыл бұрын
How to keep running the service even we kill the app ?
@Codeible
@Codeible 2 жыл бұрын
Create a foreground service - 3:43 If you want to restart the service automatically, create a broadcast receiver - 11:12
@ArturoDevA
@ArturoDevA 2 жыл бұрын
fail when stop service and after 10 seconds enable
@Nick-cx4rs
@Nick-cx4rs Жыл бұрын
Yo how this receiver working really we didnt even set registerReceiver()
@Hong-Mu
@Hong-Mu 2 жыл бұрын
useful
@dfged9654
@dfged9654 Жыл бұрын
kzbin.info/www/bejne/mHKap2SLl8-fsNk Here, the service is stopped. But the service is not explicitly stopped by calling stopService() or stopSelf() from within the service itself or by another component such as an activity or a broadcast receiver. I wonder why? Thx :)
@yeongshyhhaw9374
@yeongshyhhaw9374 2 жыл бұрын
how to stop..
@pewienktos1292
@pewienktos1292 2 жыл бұрын
n1
@VoxLott
@VoxLott Жыл бұрын
Why so many ads dude? I watched sum of 1.5 mins ads whole through this video
@shafiqsadat37
@shafiqsadat37 2 жыл бұрын
@mdottech6502
@mdottech6502 2 жыл бұрын
Awesome
@imadsaddik
@imadsaddik Жыл бұрын
Thanks
Bound Services on Android
43:00
CodingWithMitch
Рет қаралды 62 М.
Foreground Services - Android Basics 2023
22:22
Philipp Lackner
Рет қаралды 81 М.
Smart Sigma Kid #funny #sigma
00:14
CRAZY GREAPA
Рет қаралды 2,9 МЛН
버블티로 부자 구별하는법4
00:11
진영민yeongmin
Рет қаралды 15 МЛН
А что бы ты сделал? @LimbLossBoss
00:17
История одного вокалиста
Рет қаралды 8 МЛН
Фоновая работа в Android: Service и WorkManager // Курс «Android Developer. Professional»
1:41:26
Understanding and Using Services in Kotlin - Beginner
16:08
Android Geek
Рет қаралды 11 М.
Digging Into Android System Services
31:58
Dave Smith
Рет қаралды 33 М.
Android Notifications with Firebase Cloud Messaging
12:23
Codeible
Рет қаралды 64 М.
MVVM vs. MVI - Understand the Difference Once and for All
18:40
Philipp Lackner
Рет қаралды 45 М.
OAuth 2.0 and OpenID Connect (in plain English)
1:02:17
OktaDev
Рет қаралды 1,7 МЛН
Deep Dive into Android IPC/Binder Framework
54:57
InfoQ
Рет қаралды 61 М.
Android App Development in Java All-in-One Tutorial Series (4 HOURS!)
3:54:35
Smart Sigma Kid #funny #sigma
00:14
CRAZY GREAPA
Рет қаралды 2,9 МЛН