Displaying a Google Map using a MapView

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

CodingWithMitch

CodingWithMitch

Күн бұрын

Пікірлер: 40
@chrischarma8858
@chrischarma8858 5 жыл бұрын
Thank you for the tutorial but it wasn't much helpful. You have to show more things from scratch in order to understand the code better.
@quicklaunchers3476
@quicklaunchers3476 5 жыл бұрын
hi help me. every time when i click in userList it stoped app why??
@liot_
@liot_ 6 жыл бұрын
Hi! I have a question, when i run the app the mapview is in blank (it only shows me the google logo on the bottom but it doesnt show me my current position). On the logcat appears this error: 10-04 09:22:24.859 1807-2948/? E/LocSvc_ApiV02: W/virtual loc_api_adapter_err LocApiV02::injectPosition(double, double, float):505]: error! status = eLOC_CLIENT_FAILURE_INVALID_PARAMETER, inject_pos_ind.status = UNKNOWN 10-04 09:22:24.862 1807-2948/? E/LocSvc_IzatApiV02: W/virtual int izat_core::IzatApiV02::injectLocation(GpsExtLocation):799]: error! inject position failed I cant find what could be the problem. Do you know how to solve it? Thanks for all! I always follow your tutorials.
@24holiday68
@24holiday68 5 жыл бұрын
it worked now ,thank you mitch
@slash0t5
@slash0t5 5 жыл бұрын
I am not sure why Mitch, but you managed to not get the null object reference on this line: googleMapView.onCreate(mapViewBundle); in the initGoogleMap method. I, however, cannot get past it.
@omertzur5903
@omertzur5903 3 жыл бұрын
Me too. Did you make it work?
@lux27.42
@lux27.42 5 жыл бұрын
thank you, sir you saved my nightmare project
@vrowmuria
@vrowmuria 4 жыл бұрын
Thanks a lot! It was really helpful. 👍
@jackwang3561
@jackwang3561 2 жыл бұрын
What if I'm using a fragment from the bottom navigation activity, how to solve the issue where savedInstanceState is always null onCreate()
@learnwitharslan1049
@learnwitharslan1049 5 жыл бұрын
9:27 so i've your location ... now i can meet you 😁😁
@benjaminbarahona6947
@benjaminbarahona6947 2 жыл бұрын
see when you start from the middle of it, its very hard to follow. I just wanted to know how to connect the mapView with the mapfragment so it actually displays, and I didn't get that from this video. you do it, but its so specific to your already developed app that it's just to hard to implement whatever you did in any other case.
@hayesism
@hayesism 3 жыл бұрын
I cannot even get close to this working. AndroidStudio just can't resolve/recognize MapView when I type it, no matter what I do. I've played around a bunch with permissions but I still don't think even this type of error should be occuring even if it was a permissions problem?
@ssaakilal6844
@ssaakilal6844 3 жыл бұрын
can we define some static location in java code....then take the current location of the user ...and create route b/n the current location and defined location
@agustinvacavalverde
@agustinvacavalverde 4 жыл бұрын
My current location is showing up on the Google HQs, and I'm obviously not there. In the onMapReady() method, I don't get the error with the "this" context, and I cannot change it to getActivity(), can that be the bug?
@CenturionDobrius
@CenturionDobrius 5 жыл бұрын
Good tutorial, and thanks very, very much on that ! I personally find this lesson very advanced and it's super-hard to follow. it would be good idea to include some additional info about audience level prerequisite for us to know what to expect. This UI looks very nice, in fact this app is very advanced in usable even it is an example, everything is on it's place, however, because I'm beginner and not superficial at all I always want to know other parts of the app as well to know details as well, and there are lot of mid to advanced level, such as adapters, fragments and other stuff. I'm not a kind of person who like to copy/paste a lot, as a matter of fact, I do it only when I'm on a production-level-minded like you are :) Anyway, again, thanks a lot for your dedication !
@quicklaunchers3476
@quicklaunchers3476 5 жыл бұрын
hi help me every time when i click in userList it stoped app why??
@Christopher-pe6zj
@Christopher-pe6zj 4 жыл бұрын
Oh, and thanks for the video! :)
@greatnephilim2713
@greatnephilim2713 4 жыл бұрын
why it dont show location in android kitkat but work fine with api 21 and above
@DanaiKamvoussiora
@DanaiKamvoussiora 4 жыл бұрын
Great video! I have two questions though. Question 1: I'm developing an app where the map activity isn't the main Activity, so I wanted to have an option for the user to return to the main Activity but I cant seem to find anything about this. Since I can't add any buttons and use an intent to send them back (like we would with a second activity) I can't figure out how to do it from the map. It would help me a lot if someone had a solution! Question 2: I'm intrigued to try the map showing on half of my activity instead of sending the user to a different page, but I'm using constraint layout. Is there a way to use fragments in a constraint layout? Thank you!
@muhammadsaadmansoor7777
@muhammadsaadmansoor7777 4 жыл бұрын
if found pl share knowledge you did it.
@xzaviercalvin8734
@xzaviercalvin8734 3 жыл бұрын
I know it's quite randomly asking but do anyone know of a good website to watch newly released tv shows online?
@zakaiishaan9916
@zakaiishaan9916 3 жыл бұрын
@Xzavier Calvin i dunno lately I've been using Flixportal. just google for it:D -zakai
@xzaviercalvin8734
@xzaviercalvin8734 3 жыл бұрын
@Zakai Ishaan thank you, I signed up and it seems like a nice service :D I really appreciate it !
@lordwigstyle8017
@lordwigstyle8017 3 жыл бұрын
This does not work anymore, dont know why, but all of the first code is nearly red
@nirmalprabhu510
@nirmalprabhu510 6 жыл бұрын
is it possible to implement the above features using map activity..
@pavassrivastava3323
@pavassrivastava3323 4 жыл бұрын
My map view is blank...what could be the problem?
@ramprasadsaini4095
@ramprasadsaini4095 3 жыл бұрын
How to make icon in round shape
@x-arybdis
@x-arybdis 5 жыл бұрын
Hey Mitch thank you so much for tutorials. I have one problem about this Mapview. I follow the exact code you implement there but still I have problem when I switched to the Mapview fragment. Could you help me with it? -> android.view.InflateException: Binary XML file line #5: Binary XML file line #5: Error inflating class com.google.android.gms.maps.MapView
@quicklaunchers3476
@quicklaunchers3476 5 жыл бұрын
every time when i click in userList it stoped app why??
@karuneshpalekar5212
@karuneshpalekar5212 4 жыл бұрын
Can one declare mapview in ViewModel
@ysarvaniswapnapriya8801
@ysarvaniswapnapriya8801 5 жыл бұрын
I am using android virtual device and I am getting exactlu your location not mine. How can I solve it?
@klahol3167
@klahol3167 5 жыл бұрын
Hello ! Each time I set a new branch, there are conflicts and I never know if I am supposed "Accept Yours" or "Accept Theirs" on what file. I guess we have to keep the old ones because if not, we lost our last configuration but I don't really know what to keep and what to replace ^^
@codingwithmitch
@codingwithmitch 5 жыл бұрын
You should have created your own project and used the branches as reference to move along the course.
@24holiday68
@24holiday68 5 жыл бұрын
i did exactly what you told me.mitch why am i getting these errors.. Execution failed for task ':app:mergeDebugResources'. > 1 exception was raised by workers: com.android.builder.internal.aapt.v2.Aapt2Exception: Android resource compilation failed /Users/michaelamo/StudioProjects/Google-Maps-2018/app/src/main/res/layout/fragment_user_list.xml:2: error: XML or text declaration not at start of entity. /Users/michaelamo/StudioProjects/Google-Maps-2018/app/src/main/res/layout/fragment_user_list.xml: error: file failed to compile.
@mZ-jw8mv
@mZ-jw8mv 5 жыл бұрын
Dear Mitch! Can you tell me about SubCatalog's ? How to create SubCatalogs in Android Studio
@somerandomchannel382
@somerandomchannel382 6 жыл бұрын
I got issues again here. I will edit my Comments as I re-solve them. But for now.. I got red markers in java/ui/UserListFragment - on public void onStart and public void onStop. mMapView.onStop();, mMapView.onStart(); - Cannot resolve method 'onStart' and same with onStop. * Im using implementation 'com.google.android.gms:play-services-maps:7.0.0' If that is an issue. I also had a very different setup of Google Maps API - as the new API only says you need to add
@ckfks
@ckfks 3 жыл бұрын
I like your video and it's really useful to me, but the whole copy and pasting of the code is totally unnecessary
@marcoycaza1920
@marcoycaza1920 5 жыл бұрын
Gist in here: gist.github.com/mitchtabian/cc7b8bc77935e8071a10a3d6d34710f6
Retrieving the Device Location
6:12
CodingWithMitch
Рет қаралды 21 М.
Project Setup
13:32
CodingWithMitch
Рет қаралды 53 М.
OCCUPIED #shortssprintbrasil
0:37
Natan por Aí
Рет қаралды 131 МЛН
-5+3은 뭔가요? 📚 #shorts
0:19
5 분 Tricks
Рет қаралды 13 МЛН
Creating Custom Google Map Markers
21:04
CodingWithMitch
Рет қаралды 45 М.
Cargar mapas y seleccionar ubicación - Android Studio | Java
20:37
Códigos de Programación - MR
Рет қаралды 41 М.
7 Outside The Box Puzzles
12:16
MindYourDecisions
Рет қаралды 327 М.
Building a Service for GPS Updates
16:34
CodingWithMitch
Рет қаралды 15 М.
React Native Maps with Marker & Callout
16:48
Simon Grimm
Рет қаралды 46 М.
How to implement Google Maps in your Android App.
8:03
tutorialsEU
Рет қаралды 143 М.
Implementing Google Maps on Android
7:17
Codeible
Рет қаралды 43 М.
OCCUPIED #shortssprintbrasil
0:37
Natan por Aí
Рет қаралды 131 МЛН