Xamarin Uber Clone - Implementing Google Directions API

Поділитися
Вставка
  • Опубліковано 12 жов 2024

КОМЕНТАРІ • 25

  • @mariuszmlonek3632
    @mariuszmlonek3632 5 років тому +2

    @Ufinix
    I think OnRequestPermissionsResult should look like this:
    "if (grantResults.Length > 1)
    {
    Toast.MakeText(this, "grantResults.Length > 1", ToastLength.Long).Show();
    //Thread.Sleep(3000);
    if (grantResults [0] == Permission.Granted)
    {
    Toast.MakeText (this, "I came in", ToastLength.Long). Show ();
    StartLocationUpdates ();
    }
    } "
    Otherwise, I get the exception
    "System.IndexOutOfRangeException: 'Index was outside the bounds of the array.'"
    which indicate to the line:
    "if (grantResults [0] == (int) Android.Content.PM.Permission.Granted) "
    In my solution, after compiling, running and logging in, the program works correctly

  • @Busisanimac
    @Busisanimac 5 років тому +1

    hie sir lovely tutorial i am a new suscriber..looking forward to coming videos

    • @ufinix3604
      @ufinix3604  5 років тому

      Busisani Dube Thanks !!!. Glad to have you here.

  • @shubhama209
    @shubhama209 4 роки тому +1

    Hey, thanks for the video. What if I want to make the code runnable for both iOS and android? Will this code run for iOS too?

    • @ufinix3604
      @ufinix3604  4 роки тому

      This is for android. But will release a video on how do do the same thing on iOS

    • @shubhama209
      @shubhama209 4 роки тому

      Okay, I will wait. I am looking for a code which will work on both iOS and Android.

    • @fernandomartins2499
      @fernandomartins2499 4 роки тому

      @@ufinix3604 System.ArgumentOutOfRangeException: 'Index was out of range. Must be non-negative and less than the size of the collection.
      Parameter name: index'

  • @eelam_hiphops
    @eelam_hiphops 5 років тому +1

    can u add previous Xamarin Uber Clone links at describtion

    • @ufinix3604
      @ufinix3604  5 років тому

      Hello HipHops here is the link to the Playlist of Xamarin Uber Clone ua-cam.com/video/SgFLq_75x2k/v-deo.html . I will also add the link in the description.
      Thanks for pointing that out!!!

  • @freddyvinces6813
    @freddyvinces6813 3 роки тому

    Help, a have this error: The name 'PolyUtil' does not exist in the current context.

  • @Vanfen
    @Vanfen 4 роки тому

    Hi!
    I cant access my DirectionsParser if it doesnt contain class DirectionsParser. But if I include this class than I cant access variables.
    Can you advice something?
    Thank you!

    • @ufinix3604
      @ufinix3604  4 роки тому

      Ensure that you’re importing the namespace of the DirectionParser class in the class you want to make use of the variables

  • @magiquepryce4622
    @magiquepryce4622 4 роки тому

    Hi. I've been following your lectures. Till this far. Everything is working up until I want to draw the directions. I get the following error.
    Java.Lang.IllegalStateException
    Message=Error using newLatLngBounds(LatLngBounds, int): View size is too small after padding is applied.
    Please help

    • @ufinix3604
      @ufinix3604  4 роки тому

      magique pryce just change your passing size to like 20

    • @fernandomartins2499
      @fernandomartins2499 4 роки тому

      @@ufinix3604 onde faço esta alteração

  • @karthikbharadwaj487
    @karthikbharadwaj487 5 років тому

    thanks for the video...
    how can i solve this error
    System.Net.Http.HttpRequestException: 404 (Not Found)

    • @ufinix3604
      @ufinix3604  5 років тому

      Hello Karthik, ensure you implemented the link appropriately and also make sure you have an active internet connection, those the reasons for error 404.
      You can also make reference to the project files to help you ensure that you are on the right track.
      Let me know if this helps!!!

    • @mariuszmlonek3632
      @mariuszmlonek3632 5 років тому

      If you still need help, try this
      string lt, lg;
      lt = lat.ToString().Replace(',','.');
      lng = lng.ToString().Replace(',', '.');
      string url = "maps.googleapis.com/maps/api/geocode/json?latlng=" + lt + "," + lg + "&key=" + mapkey;
      or just:
      string url = "maps.googleapis.com/maps/api/geocode/json?latlng=" + lat.ToString().Replace(',','.') + "," + lng.ToString().Replace(',','.') + "&key=" + mapkey;

  • @muhammadzubair8019
    @muhammadzubair8019 5 років тому

    how we can access google direction api free.its not working in my project. i get sending request limit exceeded error...

    • @ufinix3604
      @ufinix3604  5 років тому +1

      Muhammad Zubair ensure that you have enabled Billing on your account

    • @muhammadzubair8019
      @muhammadzubair8019 5 років тому

      @@ufinix3604 is there any other way without enabling billing account?

    • @ufinix3604
      @ufinix3604  5 років тому

      Muhammad Zubair None that I know of with google. But the good thing is that google gives you $300 credit for testing for a year.