Hi and welcome. You have multiple issues Akshay.
Have you read Using the Location Sensor
? If you have not read it and done the tutorials, do so to learn how the LocationSensor works.
Here are some suggestions:
Get rid of the Clock, you do not need it.
Checking ever 5000 ms (5 seconds) is more frequent than the phone can/will send a text message. see # 1
Learn how to use the Notifier See the image where you have issues.
Learn how to use the TinyDB.
Hint: get the LocationSensor to work without the TinyDB and Texting. 0,0 means the LocationSensor has not yet achieved a satellite fix. 0,0 is the default location that displays if no satellite fixes have been achieved (explained in Using the Location Sensor). 0,0 is located in the Atlantic Ocean and is the reason you get No location available. It takes usually about 30 seconds for the gps to get a satellite fix … set the LocationSensor.TimeInterval to perhaps 30000 ms and you should have better result. The following Blocks show how you might send text and use the LocationSensor that you might find helpful.
Try again. Get parts of the app to work with the LocationSensor then work with the Texting control Texting . When that works, develop the parts where you save numbers and things to the TinyDB.
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 http://kio4.com/appinventor/index.htm and here http://www.imagnity.com/tutorial-index/ for more tutorials.