Help In location

Hey I am making a project where the driver allows people to track his location and so his location gets added to a database and people can access it

This is the screen from where I am putting the location

But its not working please tell
where I am wrong

Maybe this tutorial might help you

https://appinventor.mit.edu/explore/ai2/android-wheres-my-car.html

The device will need to be "Always On" for this to work, AI2 will not run this type of app in the background (e.g. when the device is asleep)

What is not working?

  • The map does not display? Your DataURi is not correct, there should be a comma ( , ) between the latitude and longitude. You should not place the ActivityStarter code in the GotValue event handler. You do not use the latitude and longitude from the LocationSensor1.LocationChanged block to populate the latitude/longitude Blocks in the ActivityStarter.

  • The CloudDB does not work? Possibly because the CloudDB1.RemoveFirstFromList Block...there is no indication that your bus.textloc Tag is a List so how can you expect that block to do anything?

You have multiple issues Aryan. You are not using the LocationSensor corrrectly. You are not using the CloudDB correctly and other issues.

To help, here is a tutorial that shows how to use the LocationSensor along with a CloudDB Social Distancing ... a CloudDB / Location Marker Tutorial . The tutorial might help you get this Project started. Try the tutorial. Confirm it works for you, then adapt it to your Project (your app will not need the the distancematrix part of the tutorial). I'll look to see if there is a simpler tutorial using a CloudDB and LocationSensor and post it later if I find an example.

Here are some resources to help you learn to use the AI2 tools. A very good way to learn App Inventor is to read the free Inventor's Manual here in the AI2 free online eBook http://www.appinventor.org/book2 ... the links are at the bottom of the Web page. The book 'teaches' users how to program with AI2 blocks.

There is a free programming course here http://www.appinventor.org/content/CourseInABox/Intro and the aia files for the projects in the book are here: http://www.appinventor.org/bookFiles

How to do a lot of basic things with App Inventor are described here: http://www.appinventor.org/content/howDoYou/eventHandling .

Also look here App inventor español. Offline. Tutorial. Ejemplos. Instalación. Códigos. Juegos. Curso gratis de App inventor. and here Tutorial Index | imagnity for more tutorials.

Regards,
Steve