![Page 1: AppInventor and Google Fusion Tables and Google Fusion Tables Daniel Sheehan MIT GIS Services dsheehan@mit.edu gishelp@mit.edu Senior GIS Specialist](https://reader035.vdocuments.site/reader035/viewer/2022062504/5aa5b5de7f8b9a517d8d9927/html5/thumbnails/1.jpg)
AppInventor and Google Fusion Tables
Daniel Sheehan MIT GIS Services
[email protected] [email protected]
http://libguides.mit.edu/gis Senior GIS Specialist
MIT Libraries
![Page 2: AppInventor and Google Fusion Tables and Google Fusion Tables Daniel Sheehan MIT GIS Services dsheehan@mit.edu gishelp@mit.edu Senior GIS Specialist](https://reader035.vdocuments.site/reader035/viewer/2022062504/5aa5b5de7f8b9a517d8d9927/html5/thumbnails/2.jpg)
A short, outsider’s history of AppInventor
• Scratch (SmallTalk)
–Mitch Resnick and Life Long Kindergarten group
![Page 3: AppInventor and Google Fusion Tables and Google Fusion Tables Daniel Sheehan MIT GIS Services dsheehan@mit.edu gishelp@mit.edu Senior GIS Specialist](https://reader035.vdocuments.site/reader035/viewer/2022062504/5aa5b5de7f8b9a517d8d9927/html5/thumbnails/3.jpg)
A short, outsider’s history of AppInventor
• StarLogo TNG (Java)
–Eric Klopfer
–The App Inventor blocks were initially based on the MIT master’s thesis of Ricarose Roque.*
* http://web.mit.edu/newsoffice/2010/android-abelson-0819.html
![Page 4: AppInventor and Google Fusion Tables and Google Fusion Tables Daniel Sheehan MIT GIS Services dsheehan@mit.edu gishelp@mit.edu Senior GIS Specialist](https://reader035.vdocuments.site/reader035/viewer/2022062504/5aa5b5de7f8b9a517d8d9927/html5/thumbnails/4.jpg)
A short, outsider’s history of AppInventor
• Hal Abelson and Google
– “It’s not about sitting at a desktop computer. It’s about these incredibly powerful computers that you now carry around with you that can do location-aware things, and they can find your friends, and they can make phone calls and do other stuff. App Inventor, as an educational program, is about giving young people who are trying to learn about computing power over the real computing that they’re using in their lives.”*
• Moved to MIT Center for Mobile Learning in 2012
* http://web.mit.edu/newsoffice/2010/android-abelson-0819.html
![Page 5: AppInventor and Google Fusion Tables and Google Fusion Tables Daniel Sheehan MIT GIS Services dsheehan@mit.edu gishelp@mit.edu Senior GIS Specialist](https://reader035.vdocuments.site/reader035/viewer/2022062504/5aa5b5de7f8b9a517d8d9927/html5/thumbnails/5.jpg)
First project
• “Digital Brunton” compass
• Orientation sensor
• Location sensor
• Write to appspot.com
![Page 6: AppInventor and Google Fusion Tables and Google Fusion Tables Daniel Sheehan MIT GIS Services dsheehan@mit.edu gishelp@mit.edu Senior GIS Specialist](https://reader035.vdocuments.site/reader035/viewer/2022062504/5aa5b5de7f8b9a517d8d9927/html5/thumbnails/6.jpg)
But now we can write to Fusion tables
![Page 7: AppInventor and Google Fusion Tables and Google Fusion Tables Daniel Sheehan MIT GIS Services dsheehan@mit.edu gishelp@mit.edu Senior GIS Specialist](https://reader035.vdocuments.site/reader035/viewer/2022062504/5aa5b5de7f8b9a517d8d9927/html5/thumbnails/7.jpg)
Web interface to Design mobile UI
![Page 8: AppInventor and Google Fusion Tables and Google Fusion Tables Daniel Sheehan MIT GIS Services dsheehan@mit.edu gishelp@mit.edu Senior GIS Specialist](https://reader035.vdocuments.site/reader035/viewer/2022062504/5aa5b5de7f8b9a517d8d9927/html5/thumbnails/8.jpg)
Working with blocks
Set latitude and longitude labels to the values from the location sensor
![Page 9: AppInventor and Google Fusion Tables and Google Fusion Tables Daniel Sheehan MIT GIS Services dsheehan@mit.edu gishelp@mit.edu Senior GIS Specialist](https://reader035.vdocuments.site/reader035/viewer/2022062504/5aa5b5de7f8b9a517d8d9927/html5/thumbnails/9.jpg)
More blocks …
The most complicated block – the Insert statement.
![Page 10: AppInventor and Google Fusion Tables and Google Fusion Tables Daniel Sheehan MIT GIS Services dsheehan@mit.edu gishelp@mit.edu Senior GIS Specialist](https://reader035.vdocuments.site/reader035/viewer/2022062504/5aa5b5de7f8b9a517d8d9927/html5/thumbnails/10.jpg)
Insert Command in Fusion Tables INSERT INTO <table_id>
(<column_name> {,
<column_name>}*) VALUES
(<value> {, <value>}*)
INSERT INTO 1IT1UOfOWTiMl9z4FDEYNZEYxv86JfegHnyaLuts (Latitude, Longitude, Description) VALUES (txtLat.text, txtLon.text, ‘txtDescription.text’) – quotes required where field type is Text
![Page 11: AppInventor and Google Fusion Tables and Google Fusion Tables Daniel Sheehan MIT GIS Services dsheehan@mit.edu gishelp@mit.edu Senior GIS Specialist](https://reader035.vdocuments.site/reader035/viewer/2022062504/5aa5b5de7f8b9a517d8d9927/html5/thumbnails/11.jpg)
Clean up
Show the query and the results – mostly debugging
![Page 12: AppInventor and Google Fusion Tables and Google Fusion Tables Daniel Sheehan MIT GIS Services dsheehan@mit.edu gishelp@mit.edu Senior GIS Specialist](https://reader035.vdocuments.site/reader035/viewer/2022062504/5aa5b5de7f8b9a517d8d9927/html5/thumbnails/12.jpg)
Populated fusion table
![Page 13: AppInventor and Google Fusion Tables and Google Fusion Tables Daniel Sheehan MIT GIS Services dsheehan@mit.edu gishelp@mit.edu Senior GIS Specialist](https://reader035.vdocuments.site/reader035/viewer/2022062504/5aa5b5de7f8b9a517d8d9927/html5/thumbnails/13.jpg)
And visualizing as map
![Page 14: AppInventor and Google Fusion Tables and Google Fusion Tables Daniel Sheehan MIT GIS Services dsheehan@mit.edu gishelp@mit.edu Senior GIS Specialist](https://reader035.vdocuments.site/reader035/viewer/2022062504/5aa5b5de7f8b9a517d8d9927/html5/thumbnails/14.jpg)
JavaScript for adding Fusion Table in Maps API
FusionLayer = new
google.maps.FusionTablesLayer
1942400,
{suppressInfoWindows: false});
FusionLayer.setMap(map);
Within JavaScript Initialize() function
![Page 15: AppInventor and Google Fusion Tables and Google Fusion Tables Daniel Sheehan MIT GIS Services dsheehan@mit.edu gishelp@mit.edu Senior GIS Specialist](https://reader035.vdocuments.site/reader035/viewer/2022062504/5aa5b5de7f8b9a517d8d9927/html5/thumbnails/15.jpg)
GPS inaccuracies in urban environment
GPS track recorded using MyTracks on Android phone
![Page 16: AppInventor and Google Fusion Tables and Google Fusion Tables Daniel Sheehan MIT GIS Services dsheehan@mit.edu gishelp@mit.edu Senior GIS Specialist](https://reader035.vdocuments.site/reader035/viewer/2022062504/5aa5b5de7f8b9a517d8d9927/html5/thumbnails/16.jpg)
Things to think about
• Get your machine set if you didn’t do this before (http://appinventor.mit.edu/explore/content/setup-mit-app-inventor.html)
• Change application settings for apps from unknown sources
• It’s not programming but like programming, logic is key, syntax is vital