Work Manager , Part 1 - Basics of WorkManager | Jetpack component

  Рет қаралды 24,183

Codetutor

Codetutor

Күн бұрын

Пікірлер: 41
@My_Name_Is_Prashant
@My_Name_Is_Prashant 2 жыл бұрын
really you made it so easy to undrestand background services.... thank you Sir...
@Hanna-zj1gk
@Hanna-zj1gk 2 жыл бұрын
This tutorial is very helpful.May I know how to call the second application running in the background when first application is processing currently. I want my first application is processing while the second application is also running in the background without knowing the user that the second application is running in the background. I try with the background service but it doesn't work for me.? Please can u provide any relative sources.
@WeWant-td9bs
@WeWant-td9bs 6 ай бұрын
Thank you for solving the voice problem... Is this jetpack compose project? There is the XML file and button..
@Codetutor-DemystifyCoding
@Codetutor-DemystifyCoding 6 ай бұрын
Thanks for noticing. If you have watched recent uploads, you will observe that you will not find this problem. Thanks for constructive feed back. It always helps.
@pranaychakraborty4866
@pranaychakraborty4866 Жыл бұрын
Can I use work manager to receive incoming sms when app is not running?
@jatinjain1502
@jatinjain1502 3 жыл бұрын
If I clear my app from the background, it doesn't work. Also it is not working when I restart the phone
@ajeetgiri7753
@ajeetgiri7753 2 жыл бұрын
Very good explanation ❤️ Can I use workmanager to generate a reminder notification to users every month?
@Codetutor-DemystifyCoding
@Codetutor-DemystifyCoding 2 жыл бұрын
Yes.. you can.
@anonyfeed1076
@anonyfeed1076 3 жыл бұрын
How to stop running worker?
@sivakumarpurushothaman6956
@sivakumarpurushothaman6956 3 жыл бұрын
Sir, I am very impressed by the way you explore the topics and present us in a nice manner. Great!!!
@subhankarsinha8135
@subhankarsinha8135 3 жыл бұрын
Sir can I fetch current location change in the background using work manager .please help me out sir .. I need this badly
@Codetutor-DemystifyCoding
@Codetutor-DemystifyCoding 3 жыл бұрын
I would suggest use Foreground Service for that. WorkManager is not meant for forever running background task. Since you want to continuously keep track of the location, Foreground service is more suited. I have a tutorial on that topic as well, please do check it out. Hope this helps.
@dezsokosztolanyi9
@dezsokosztolanyi9 3 жыл бұрын
good explanation.
@akashjagtap1096
@akashjagtap1096 3 жыл бұрын
Why background task inconsistent in different devices... Developers will get in trouble in front of manager 😌
@Codetutor-DemystifyCoding
@Codetutor-DemystifyCoding 3 жыл бұрын
I feel you bro 😂😂!!
@kalidsherefuddin
@kalidsherefuddin 9 ай бұрын
Thanks for
@vengateshm2122
@vengateshm2122 3 жыл бұрын
Nice explanation.
@Codetutor-DemystifyCoding
@Codetutor-DemystifyCoding 3 жыл бұрын
Keep watching
@vengateshm2122
@vengateshm2122 3 жыл бұрын
@@Codetutor-DemystifyCoding Always
@techvibrantdocs4122
@techvibrantdocs4122 2 жыл бұрын
Sir please make videos on Android jetpack components all important architecture components.
@Codetutor-DemystifyCoding
@Codetutor-DemystifyCoding 2 жыл бұрын
I have already covered Jetpack components as part of Android Architecture series - kzbin.info/www/bejne/iZCVZpuqnpl8e8U The Jetpack component is discussed in 11th video onwards.
@amar420305
@amar420305 3 жыл бұрын
Is Work manager kill when app kills ? Means how it behave when app kill ?
@Codetutor-DemystifyCoding
@Codetutor-DemystifyCoding 3 жыл бұрын
Depends on how you have configured your WorkRequest. If it is OneTime then it executed only once, if you set it as Periodic, then it will get executed when when app is killed. I have tested it. It works. Even after the device boot, even if you don't launch the app, I have seen the logs of Worker getting started in back ground with approximate scheduled start time.
@cid007007
@cid007007 Жыл бұрын
Worker doWork runs on main thread or different thread ?
@Codetutor-DemystifyCoding
@Codetutor-DemystifyCoding Жыл бұрын
Just log the thread info from inside doWork and see whether it Logs it as main thread id, or some other random thread number. I have a hunch it will not be same as main thread. Try and comment.
@personalexperiences8665
@personalexperiences8665 Жыл бұрын
sir I have set periodic time 15 minutes but work manager call sometimes in 3 minutes or 9 minutes etc. My question is why my work manager not is inconsistent in time? Why it is not call in every fixed 15 minutes?
@Codetutor-DemystifyCoding
@Codetutor-DemystifyCoding Жыл бұрын
This is a known issues with Android Fragmentation. The OEMs some times override the default behaviour. I am pretty sure this is not a standard Google Nexus or Pixel device. Isn't it?
@personalexperiences8665
@personalexperiences8665 Жыл бұрын
@@Codetutor-DemystifyCoding No, It is One Plus mobile device
@skbhati199
@skbhati199 2 жыл бұрын
How can we use websocket foreground,
@saradhi2845
@saradhi2845 3 жыл бұрын
Good explanation. Sir but I implemented my worker to upload geo coordinates of person location even when my app exits,buts it's working when my app exits, I have given auto start permission then it's working for some time and it's getting stopped, again when I open my app it's restarting again. How can achieve proper working
@Codetutor-DemystifyCoding
@Codetutor-DemystifyCoding 3 жыл бұрын
You can not enforce hard time bounds using a WorkManager. It will run for sure but as per the convenience of scheduler. How are you doing the testing? How did you check it's run time and run periodicity?
@saradhi2845
@saradhi2845 3 жыл бұрын
@@Codetutor-DemystifyCoding sir I will explain how i implemented my worker, as i know minimum time for periodic work request is 15 min, but I need to upload coordinates for every 2 min. So firstly i calling one time work request then when it enters into do work method i am invoking one more one time request with intial delay of 2 minutes, so it's goes on. I'm displaying toast of geo coordinates to check whether they got uploaded on my server. Problem is worker is doing my work but not proper, I mean if i start my work now, then close my app, it's displaying toast of coordinates for couple of times, then it's not showing any toast. Again when I open my app suddenly coordinates toast is being displayed .
@akashjagtap1096
@akashjagtap1096 3 жыл бұрын
@@saradhi2845 in service onCancel you need start custom broadcast and in broadcast reciver you can again start service
@JujareVinayak
@JujareVinayak 3 жыл бұрын
U need to make your worker as foreground
@blessonthomas4022
@blessonthomas4022 3 жыл бұрын
wow you are a great teacher
@Codetutor-DemystifyCoding
@Codetutor-DemystifyCoding 3 жыл бұрын
Wow, thank you. Feel free to explore other content on channel. Hope you have subscribed.
@varunagrawal5802
@varunagrawal5802 3 жыл бұрын
Thanks.
@Codetutor-DemystifyCoding
@Codetutor-DemystifyCoding 3 жыл бұрын
You're welcome, Feel free to explore other content on the channel. Hope you have subscribed.
@varunagrawal5802
@varunagrawal5802 3 жыл бұрын
@@Codetutor-DemystifyCoding I have 👍
Spongebob ate Patrick 😱 #meme #spongebob #gmod
00:15
Mr. LoLo
Рет қаралды 17 МЛН
GIANT Gummy Worm Pt.6 #shorts
00:46
Mr DegrEE
Рет қаралды 89 МЛН
Офицер, я всё объясню
01:00
История одного вокалиста
Рет қаралды 3,3 МЛН
How To Get Married:   #short
00:22
Jin and Hattie
Рет қаралды 21 МЛН
CI/CD for Android Projects using Github Actions | Pipelines + Workflows
24:43
Work Manager - Background works easier than ever in Android
28:47
Kotlin Coroutines Beginner Example (Android)
23:12
CodingWithMitch
Рет қаралды 159 М.
TOP 3 Mistakes With Jetpack Compose (Avoid at All Cost 😱)
8:46
Philipp Lackner
Рет қаралды 14 М.
Run a Repeatable Work from the Background using WorkManager
12:26
Android MVP vs MVVM and the winner is...
19:07
ANZ Coders
Рет қаралды 46 М.
Spongebob ate Patrick 😱 #meme #spongebob #gmod
00:15
Mr. LoLo
Рет қаралды 17 МЛН