@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
@@ufinix3604 System.ArgumentOutOfRangeException: 'Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index'
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!!!
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!
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
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!!!
@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
hie sir lovely tutorial i am a new suscriber..looking forward to coming videos
Busisani Dube Thanks !!!. Glad to have you here.
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?
This is for android. But will release a video on how do do the same thing on iOS
Okay, I will wait. I am looking for a code which will work on both iOS and Android.
@@ufinix3604 System.ArgumentOutOfRangeException: 'Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index'
can u add previous Xamarin Uber Clone links at describtion
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!!!
Help, a have this error: The name 'PolyUtil' does not exist in the current context.
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!
Ensure that you’re importing the namespace of the DirectionParser class in the class you want to make use of the variables
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
magique pryce just change your passing size to like 20
@@ufinix3604 onde faço esta alteração
thanks for the video...
how can i solve this error
System.Net.Http.HttpRequestException: 404 (Not Found)
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!!!
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;
how we can access google direction api free.its not working in my project. i get sending request limit exceeded error...
Muhammad Zubair ensure that you have enabled Billing on your account
@@ufinix3604 is there any other way without enabling billing account?
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.