Good day
now l want to input the other csv files that l have that is for parking spaces, sports field and roads. as for roads l want to specify their categories eg walking paths and major roads. In the previous blocks we have been using campus buildings only
what l have noticed is that the gps signal when you are inside a building its weak hence am not sure if its possible to create a navigation app within a building
I have been trying to go through my blocks and yours to see where l am missing it , how come the API key is working on yours
- create a separate csv for these other facilities
- or add the destinations for these to your existing List of destinations.
Probably because you input your api token in the aia Block?
I did try using it in the blocks unless if it was a case that l was supposed to delete it in the design
if l create different csv file where am l supposed to attach them in the blocks am l supposed to use the join block
-
no you cannot use the join block
-
there are many ways you can do this. An 'easy' way is to provide a second File control as indicated below. Another way would be to load the facilities csv and provide a switch to select between them. This is YOUR app. Try some blocks on a copy of the app Project that works so that if you make a coding mistake, you can recover.
-
different csv then you can use a second File control (File2) and second ListView possibly and then use similar Blocks as below. You need to replace destSubList with facilitiesSubList and an appropriate name for your second csv
You need to adapt the File1 code to File 2 blocks
for the read from filename block am supposed to put the first file , the second file in the same text block
I am sorry, I do not know what your are suggesting.
I cannot build YOUR app.
You need to experiment and learn to code; not just copy existing code.
You might provide a second app for facilities directions; essentially just replace the csv in the original app with your csv facility file. Change the app name. This way is an easy way to provide a stand alone facilities app.
Alternatively, just expand your existing destination csv. Have all locations on one app.
If you need more help with your worthwhile Project, check with someone on the university computer department to get advice.
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 App Inventor 2 Book: Create Your Own Android Apps ... 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 Course In A Box and the aia files for the projects in the book are here: App Inventor 2 Book: Create Your Own Android Apps
How to do a lot of basic things with App Inventor are described here: How do you...? .
Also look here App inventor español. Offline. Tutorial. Ejemplos. Instalación. Códigos. Juegos. Curso gratis de App inventor. and here http://www.imagnity.com/tutorial-index/ for more tutorials including Imagnity.com List Tutorial, Mirrored - @Saj
Learn about components Component Reference
and visit the Library The MIT App Inventor Library: Documentation & Support Help>Library on the MENU
Thank you
@sinolumbathelma , I have been experimenting. I have an example using two ListView components I would like to publish as a tutorial for the community showing how intents can also be used to locate buildings.
If I have your permission to use your Zimbabwe building csv in the tutorial I will post the tutorial in a few days and a copy here for you to test. I need to know the Zimbabwe part of the tutorial works.
Thank you.
You can use the buildings Csv
Thank you.
Please try TwoLV_CampusExperiment.aia (12.3 KB) and let me know if if works for you.
-- Steve
Good day
I tried out the TwoLV_CampusExperiment and its working properly and l actually enjoyed working on it instead of the other one that we have
Thus l want to try and leave the buildings for University of Zimbabwe only
Thank you for testing. I am glad you like the alternative way to provide directions using ActivityStarter intents.
You can try this
GM_CampusDIrections.aia (10.1 KB) which uses two File controls and two ListViews. The second csv is a dummy place holder.
Simplify the code further using a single File component to load two csv data sets. I used two File controls as a demonstration proof of concept in the above example. Code showing how it would work
loadTwoCSVFiles.aia (11.7 KB) . You can keep GM CampusDirections as it is or adapt the code. Both ways to add additional csv files work.
Good luck.
Thank l will definitely try them out and modify the codes. I am truly learning a lot
May you kindly explain the differences between these applications and a background l want to have a better interpretation of the blocks
Is this what you are looking for?
Latest version of the navigation app for a campus include
- Intents Intents do Google Maps para Android | Maps URLs | Google for Developers
- Using the Activity Starter
- Using the Location Sensor
Earlier versions showed navigation and location methods using these tools (in addition to some of the tools mentioned above:
yes thank you