Android BroadcastReceiver Tutorial with Example

  Рет қаралды 9,094

The Code City

The Code City

Күн бұрын

Пікірлер: 57
@milanmalla3173
@milanmalla3173 5 жыл бұрын
Works like a butter.. Thanks bro, needed this for my project.
@albertoo7329
@albertoo7329 4 жыл бұрын
Amazing, it even helped me understand BroadcastReceivers
@TheCodeCity
@TheCodeCity 4 жыл бұрын
Great to hear!
@SatriaBatangH1tam
@SatriaBatangH1tam 4 жыл бұрын
whre is Final Part ?
@TheCodeCity
@TheCodeCity 4 жыл бұрын
Apologies for the delay, the last part was removed due to bad quality, it's been re-recorded and uploaded here: kzbin.info/www/bejne/nqm2dJJ_nqtnrsU
@IsaacAsante17
@IsaacAsante17 3 жыл бұрын
Brilliant tutorial, man
@TheCodeCity
@TheCodeCity 3 жыл бұрын
Thank you very much!
@rogercolque
@rogercolque 4 жыл бұрын
hi nice content. question: we can update in a textview the location changes without using a broadcast?
@TheCodeCity
@TheCodeCity 3 жыл бұрын
Yes you can, but you will have to use other methods to be notified of the changes
@rajbakhunchhe4254
@rajbakhunchhe4254 4 жыл бұрын
this tutorial helped me a lot. Thanks for such nice description. but what do we need to do to run it in background?
@TheCodeCity
@TheCodeCity 4 жыл бұрын
The service is running in background itself, we are just receiving the coordinates in the activity, if you don't want to receive the broadcast in the activity then just don't send it from the background service. You can check out the service part of the tutorial here: kzbin.info/www/bejne/r5Slh5hpnr6np7M
@dhanyajoju
@dhanyajoju 4 жыл бұрын
thanks for uploading. It would be more interesting if you could explain what is the purpose of each line.
@TheCodeCity
@TheCodeCity 4 жыл бұрын
Ok next time
@nadjwarazali466
@nadjwarazali466 4 жыл бұрын
Hello Sir, how can i integrate with Google Maps view?
@niroopnife9044
@niroopnife9044 4 жыл бұрын
Works perfectly good but i have a problem since i'm enabling the receiver through the button click in the oncreate but how to stop the broadcast receiver now?
@blessythomas5422
@blessythomas5422 3 жыл бұрын
Where are you writing this in the Android studio or texteditor?
@TheCodeCity
@TheCodeCity 3 жыл бұрын
In Android Studio
@blessythomas5422
@blessythomas5422 3 жыл бұрын
@@TheCodeCity Thank you so much sir..your tutorials are great..♥️♥️😁
@TheCodeCity
@TheCodeCity 3 жыл бұрын
@@blessythomas5422 My pleasure bud!
@zandronarvaza6891
@zandronarvaza6891 4 жыл бұрын
where can I put volley?? inside broadcast receiver?
@newlife-vx9vz
@newlife-vx9vz 4 жыл бұрын
Hello, Merry Christmas! Thank you for sharing your knowledge. Can Broadcast Receiver be used to programmatically read other apps such as Messenger, Viber and Whatsapp ? .. without opening the respective app (of course with user permission). Thank you for acknowledging my question.
@vishalshrestha6733
@vishalshrestha6733 4 жыл бұрын
It's possible to check which apps might be open, but other that that it should be not possible to "read" those apps.
@nagarkarsiddhi6540
@nagarkarsiddhi6540 4 жыл бұрын
Ty Bro After Long One Day Research
@TheCodeCity
@TheCodeCity 4 жыл бұрын
You're welcome :)
@mohdyusuf6277
@mohdyusuf6277 4 жыл бұрын
Sir,please make more videos on Broadcast receiver?
@uncannyRishabh
@uncannyRishabh 4 жыл бұрын
Can you also show how to send location updates to a firebase server
@sauravkumar-if4ho
@sauravkumar-if4ho 4 жыл бұрын
getDoubleExtra is always returning default value....Although I am getting exact co-ordinates in Log. Please help.
@עידןטפר
@עידןטפר 4 жыл бұрын
thanks again you helped me alot
@CoffeeHouseJazz
@CoffeeHouseJazz 4 жыл бұрын
How can i keep it running in the background?
@easilyai
@easilyai 4 жыл бұрын
return START_STICKY in onStartCommand
@elpatasculichi
@elpatasculichi 4 жыл бұрын
hello there ... did you keeping running in the background ?
@gammynumnums1
@gammynumnums1 4 жыл бұрын
Your tracker shows different coordinates with the notifications... Mine stays in one location. Where did I go wrong?
@rachidbouali5255
@rachidbouali5255 4 жыл бұрын
thanks so much , it is elegant code, helped me a lot in my sport android app
@TheCodeCity
@TheCodeCity 4 жыл бұрын
Happy to help :)
@zandronarvaza6891
@zandronarvaza6891 4 жыл бұрын
Hey there.. I really like this project and have used your videos as reference for my school project, I'm still learning android and I'm having trouble figuring out on how to post the data. Can you give me a hand please?
@TheCodeCity
@TheCodeCity 4 жыл бұрын
Do check the retrofit tutorial in the channle if you mean POST API all by "post the data".
@zandronarvaza6891
@zandronarvaza6891 4 жыл бұрын
@@TheCodeCity What i meant was post data to database like integrating volley
@BeMyMotive
@BeMyMotive 4 жыл бұрын
hi thanks for the great tutorial.. why isnt the final part available?? I cant watch it
@TheCodeCity
@TheCodeCity 4 жыл бұрын
Apologies for the delay, the last part was removed due to bad quality, it's been re-recorded and uploaded here: kzbin.info/www/bejne/nqm2dJJ_nqtnrsU
@naelaiman7622
@naelaiman7622 4 жыл бұрын
hello sir, can you teach how to calculate the amount of distance traveled without having the user to select a starting point and end point. this would help a lot btw your videos helped me a lot!! THanks!
@עידןטפר
@עידןטפר 4 жыл бұрын
how can i control when to start, stop or pause the location tracker?
@TheCodeCity
@TheCodeCity 4 жыл бұрын
You can use stopService method stop the location service
@pavankumarpattar5517
@pavankumarpattar5517 3 жыл бұрын
toast msg are not coming
@techshortstamil5573
@techshortstamil5573 4 жыл бұрын
how to plot those latitude and longitude in google maps
@TheCodeCity
@TheCodeCity 4 жыл бұрын
Apologies for the delay, the last part was removed due to bad quality, it's been re-recorded and uploaded here: kzbin.info/www/bejne/nqm2dJJ_nqtnrsU
@chandran-youtube
@chandran-youtube 4 жыл бұрын
that introooooo
@TheCodeCity
@TheCodeCity 4 жыл бұрын
Good? Bad?
@abderrazakach2943
@abderrazakach2943 5 жыл бұрын
Notification not work in my application (my mobile redmi note 7 )
@TheCodeCity
@TheCodeCity 5 жыл бұрын
Can you elaborate? I don't think there's something related to notification.
@KayDee2021
@KayDee2021 4 жыл бұрын
Can we get the location updates even if there is no internet connection? I am trying to check if the same service works in remote areas.
@TheCodeCity
@TheCodeCity 4 жыл бұрын
@@KayDee2021 Yes we can, but there needs to be connection with Google Play Services atleast once upon installation.
@KayDee2021
@KayDee2021 4 жыл бұрын
@@TheCodeCity Thanks
@TheCodeCity
@TheCodeCity 4 жыл бұрын
@@KayDee2021 You're welcome :)
@ogunodabas9332
@ogunodabas9332 4 жыл бұрын
THANK YOU SİR
@raanshah8297
@raanshah8297 4 жыл бұрын
It's got rectified
@TheCodeCity
@TheCodeCity 4 жыл бұрын
What's the full error?
@helix-b9p
@helix-b9p 4 жыл бұрын
Thank you ... subscribe and like!!!>< please explain using flutter and google map api tutorial?? oh i dont see your code ..please upload github???
GPS Location Tracker in Android -  Full Tutorial 2021
23:50
The Code City
Рет қаралды 46 М.
Broadcast Receivers | Full Explanation
21:34
Mafia Codes
Рет қаралды 22 М.
coco在求救? #小丑 #天使 #shorts
00:29
好人小丑
Рет қаралды 120 МЛН
СИНИЙ ИНЕЙ УЖЕ ВЫШЕЛ!❄️
01:01
DO$HIK
Рет қаралды 3,3 МЛН
UFC 310 : Рахмонов VS Мачадо Гэрри
05:00
Setanta Sports UFC
Рет қаралды 1,2 МЛН
Services in Android - Part 16, Foreground Services
8:54
Codetutor
Рет қаралды 13 М.
Location | Getting Current location | FusedLocationProviderClient
12:41
synchronized keyword  : Part-1 (WashRoom Example)
1:12:02
SmartCode Studio
Рет қаралды 53
Android Get Current Location Every 5 Minutes - Tutorial & Source Code
19:10
Async Method Execution in Spring
33:12
Developer Hut
Рет қаралды 193
coco在求救? #小丑 #天使 #shorts
00:29
好人小丑
Рет қаралды 120 МЛН