Android Studio Download Google Location Services Apis Setonclicklistner Creating a Location-Tracking App Using Firebase and Google Maps in Android

Total Page:16

File Type:pdf, Size:1020Kb

Android Studio Download Google Location Services Apis Setonclicklistner Creating a Location-Tracking App Using Firebase and Google Maps in Android android studio download google location services apis setonclicklistner Creating a Location-tracking App using Firebase and Google Maps in Android. In this tutorial, you will learn how to create an application that uses Google Maps API to determine the precise location of another user. We will achieve this by saving the users location on the Firebase Realtime Database and then retrieving the data from another device. Location services have recently become common among social apps that we use from day to day. Furthermore, these services can be used to track a lost or stolen device. Therefore, knowing how to implement location services can allow you to create more productive applications. From this tutorial, you will be able to come up with two simple applications to aid with location tracking. These projects use the Google Maps API and Firebase’s Realtime Database. Pre-requisites. A good understanding of Kotlin in Android development. Android Studio. For this tutorial, we shall use real Android devices for testing. However, you can use an emulator by mocking location data. You can read more here. Step 1 - Create a new project. Create a new project on Android Studio. On the select Project template page, choose the Google Maps Activity template. Wait for Android Studio to build your project. At this point after running the app you will see a blank screen, because you are yet to set up the API key for the map. A few things to note. Once you open the AndroidManifest.xml , you will see these auto-filled details: ACCESS_FINE_LOCATION permission. This accesses the user’s precise location. Mostly used when you require the most accurate location. Another type of location accuracy is the ACCESS_COARSE_LOCATION , which is less accurate. Therefore, we shall be working with the ACCESS_FINE_LOCATION for accurate readings. The com.google.android.geo.API_KEY specifies the API key. Step 2 - Create an API key. You need to create an API key and enable it in the developer console before working with the Google Maps API . Use your Google account to sign up for this. Open res/values/google_maps_api.xml . This is what you will see. This file will contain your API key . Click on the underlined link and press create a project and continue. In the next screen, you will need to create an API key to call the API. The API key is in purple . Once you have the API key , copy and paste it in the value of google_maps_key in the XML file. The MapsActivity. This is an overview of the default MapsActivity . At this point, once you run the app, you will notice that the marker is in Sydney. Step 3 - Creating a Firebase project. We will use Firebase to store the user’s location. Once again, you will need a Google account. You can sign up here. Step 4 - Connect the Firebase project to the app. You now need to connect the project to your app. Go to tools>firebase. Make sure you add the Realtime Database to your app. Step 5 - Add permissions. Add the internet permission. This permission allows the application to connect to the internet and save data. Add the Google Maps location dependency. Step 6 - The MapsActivity. Navigate to MapsActivity.kt and add the following code. Step 7 - Run the app. Run the app. This is what you will achieve (locations may differ). Give the app location permission. The user location will be seen as shown below: From the code above, you have successfully saved the user’s location in a database. Navigate to the Firebase console and click on the project you had created. You should see something similar to this. The LocationChecker app. This second application allows you to retrieve the user’s location from the database. Step 1: Creating a new project. Follow the process discussed above to create a new project. Make sure you select the Google Maps template and name it appropriately. Step 2: Add credentials to an existing key. Since we already have an API key , we can just include it in the console. Open your developer’s console and click on the edit icon . Navigate to the google_maps_api.xml file and copy the package name and SHA-1 certificate fingerprint, paste these details on the add item section. Then, save the changes. Step 3: Adding a button. We need to add a button that will trigger the reading of the current location in the database. Here is the activity_maps.xml : Step 4: Adding permissions. By default, the GoogleMaps activity template adds the ACCESS_FINE_LOCATION permission in the AndroidManifest.xml file. Since we need the internet to read from the database, add the internet permission, as shown below: Step 4: The model class. Since we are reading from the database, we need a class that will add the attributes , latitude , and longitude to handle data. Step 5: The MapsActivity. Add the following code: When you run the app, you should be able to get a similar view (locations will differ): Testing the apps. Install both apps on your phone. Make sure the internet connection is good. Check the database for the saved location. On the second app, LocationChecker, check if the location was retrieved. You can download these projects from here and here. Conclusion. You can use the Maps API to create awesome apps or add more functionalities to existing ones. You can also add other features that might interest you. For instance, you can notify the user that they are being tracked. Peer Review Contributions by: Wanja Mike. About the author. Carol is an undergraduate student, pursuing a degree in Mathematics and Computer Science. She is an Android Developer with a speciality in Kotlin. She is also a GitHub Campus Expert. Carol loves growing the developer community in her school and Kenya generally. She loves reading African literature, listening to music, gaming, travelling and calligraphy. Want to learn more about the EngEd Program? Discover Section's community-generated pool of resources from the next generation of engineers. How to get current GPS location programmatically on Android? This example demonstrates how do I get current GPS location programmatically in android. Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project. Step 2 − Add the following code to res/layout/activity_main.xml. Step 3 − Add the following code to src/MainActivity.java. Step 4 − Add the following code to androidManifest.xml. Let's try to run your application. I assume you have connected your actual Android Mobile device with your computer. To run the app from android studio, open one of your project's activity files and click Run icon from the toolbar. Select your mobile device as an option and then check your mobile device which will display your default screen − OnClickListener in Android Studio. I'm attempting to develop and app using the new Android Studio, but I keep receiving major errors on my OnClickListeners. Mainly it is telling me that it cannot resolve symbol "setOnClickListener" and it also cannot resolve "View v" That is the code in the class. Those are the errors I am receiving which makes absolutely no sense. Line 28 starts at when I do button.setOnClickListener. EDIT: Now I receive a force close when I press the button. This is the class it should open, a bare class with the only change being the layout to open. How to Implement Current Location Button Feature in Google Maps in Android? The current location is a feature on Google Maps, that helps us locate the device’s position on the Map. Through this article, while we will be implementing Google Maps, we shall also be implementing a button, which will fetch our current location and navigate it on the map. Note that we are going to implement this project using the Kotlin language. Screenshot of the actual Google Map App on Android device. Follow the below steps to implement a map and a button to navigate to the device’s current position. Step 1: Create a New Project in Android Studio. To create a new project in Android Studio please refer to How to Create/Start a New Project in Android Studio. We demonstrated the application in Kotlin, so make sure you select Kotlin as the primary language while creating a New Project. Step 2: Get and hide the API key. Our application utilizes Google’s Places API to implement Google Map, so we need to get the Places API key from Google. To get an API key, please refer to Generating API Keys For Using Any Google APIs. Hiding an API key is essential and to do so, please refer to How to Hide API and Secret Keys in Android Studio?. Step 3: Adding the dependencies in the build.gradle file. We need to add the below dependency for importing libraries to support the implementation of the Google Map. Step 4: Adding permissions to the application in the Manifest.xml file. As the application majorly deals with the current location, we give the application the permissions to access the location. To give the application such permissions, declare permissions between the manifest and application opening tags in the following way. Binding items with setOnClickListener to position. In my RecyclerView there are several items when click on them using setOnClickListener , Fragmet opens, but there is a problem, the position of the item is not attached to the setOnClickListener position is there, if I did the sorting and the position of the item changed, the position of the setOnClickListener is not, and the degree on the first item will always be open the same Fragmet .
Recommended publications
  • Hamza Ahmed Qureshi
    HAMZA AHMED QURESHI add 135 Hillcrest Avenue, Mississauga, ON, Canada | tel +1 (647) 522-0048 url hamza1592.github.io | email [email protected] | LinkedIn | Stack Overflow | Github Summary Proficient in writing code in Java, Kotlin, Node.js and other languages as well as practiced in using Amazon Web Service, Firebase and other latest frameworks and libraries Three years of android development experience through development of multiple applications Skilled in writing generic and expandable code and bridging the gap between web and android applications through development of REST APIs Experienced team player and a leader utilizing collaboration, cooperation and leadership skills acquired while working in different environments of startup, industry and entrepreneurship. Technical Skills Languages & Frameworks used: In depth: Java, Android SDK, Node.js, Amazon Web Services, Firebase, JavaScript, JUnit testing, Espresso As a hobby: CodeIgniter, Magento, OpenGL, React Native, Jekyll Platforms: Android, Web, Windows, Linux Software and IDEs: Intellij Idea, Android Studio, Eclipse, Webstorm, Microsoft Visual Studio Databases used: Firebase Realtime Database, Firebase Firestore, MySQL, SQLite, Oracle DB, Redis Version Control: Git, Gitlab, SourceTree, Android Studio version control SDLC: Agile Development, Test Driven Development (TDD), Scrum, Object Oriented Programming Security: OAuth, OAuth2, Kerberos, SSL, Android keystore Design patterns: MVC, MVVM Professional Experience Full stack android developer, teaBOT inc. Feb 2017 – Present Lead the teaBOT kiosk application and build new features for it Enhanced the teaBOT backend Node.js Api and added new endpoints Wrote manageable and scalable code for both static and dynamic views rendering Created static and dynamic functional components from start to end Supported multiple screen sizes including 15inch tablets Directly managed interns working on the Android application Projects: o teaBOT Android Kiosk Application .
    [Show full text]
  • Xbook: Redesigning Privacy Control in Social Networking Platforms
    xBook: Redesigning Privacy Control in Social Networking Platforms Kapil Singh∗ Sumeer Bhola∗ Wenke Lee SchoolofComputerScience Google SchoolofComputerScience Georgia Institute of Technology [email protected] Georgia Institute of Technology [email protected] [email protected] Abstract in social networks. Social networking websites have recently evolved from With the advent of Web 2.0 technologies, web appli- being service providers to platforms for running third cation development has become much more distributed party applications. Users have typically trusted the so- with a growing number of users acting as developers and cial networking sites with personal data, and assume that source of online content. This trend has also influenced their privacy preferences are correctly enforced. However, social networks that now act as platforms allowing de- they are now being asked to trust each third-party applica- velopers to run third-party content on top of their frame- tion they use in a similar manner. This has left the users’ work. Facebook opened up for third-party application private information vulnerable to accidental or malicious development by releasing its development APIs in May leaks by these applications. 2007 [22]. Since the release of the Facebook platform, In this work, we present a novel framework for build- several other sites have joined the trend by supporting ing privacy-preservingsocial networking applications that Google’s OpenSocial [10], a cross-site social network de- retains the functionality offered by the current social net- velopment platform. works. We use information flow models to control what These third-party applications further escalate the pri- untrusted applications can do with the information they vacy concerns as user data is shared with these applica- receive.
    [Show full text]
  • Tutorial: Setup for Android Development
    Tutorial: Setup for Android Development Adam C. Champion, Ph.D. CSE 5236: Mobile Application Development Autumn 2019 Based on material from C. Horstmann [1], J. Bloch [2], C. Collins et al. [4], M.L. Sichitiu (NCSU), V. Janjic (Imperial College London), CSE 2221 (OSU), and other sources 1 Outline • Getting Started • Android Programming 2 Getting Started (1) • Need to install Java Development Kit (JDK) (not Java Runtime Environment (JRE)) to write Android programs • Download JDK for your OS: https://adoptopenjdk.net/ * • Alternatively, for OS X, Linux: – OS X: Install Homebrew (http://brew.sh) via Terminal, – Linux: • Debian/Ubuntu: sudo apt install openjdk-8-jdk • Fedora/CentOS: yum install java-1.8.0-openjdk-devel * Why OpenJDK 8? Oracle changed Java licensing (commercial use costs $$$); Android SDK tools require version 8. 3 Getting Started (2) • After installing JDK, download Android SDK from http://developer.android.com • Simplest: download and install Android Studio bundle (including Android SDK) for your OS • Alternative: brew cask install android- studio (Mac/Homebrew) • We’ll use Android Studio with SDK included (easiest) 4 Install! 5 Getting Started (3) • Install Android Studio directly (Windows, Mac); unzip to directory android-studio, then run ./android-studio/bin/studio64.sh (Linux) 6 Getting Started (4) • Strongly recommend testing Android Studio menu → Preferences… or with real Android device File → Settings… – Android emulator: slow – Faster emulator: Genymotion [14], [15] – Install USB drivers for your Android device! • Bring up Android SDK Manager – Install Android 5.x–8.x APIs, Google support repository, Google Play services – Don’t worry about non-x86 Now you’re ready for Android development! system images 7 Outline • Getting Started • Android Programming 8 Introduction to Android • Popular mobile device Mobile OS Market Share OS: 73% of worldwide Worldwide (Jul.
    [Show full text]
  • How to Generate P12 Key
    Lepide Active Directory Self Service Generate P12 Key This document explains the steps to successfully install SSL security. Lepide Active Directory Self Service Generate P12 Key How to generate P12 key Lepide Active Directory Self Service allows Password Synchronization of Google Apps and IBM accounts. In order to enable Google Apps Password synchronization, you need to generate a P12 key by making certain settings in your Google service account. Follow the below mentioned steps to generate the P12 key for Google App Service Account. 1. Open Google Developer Console Project for Google Cloud Platform - https://console.developers.google.com/project in Web browser, preferably Google Chrome. 2. Enter the email address of your Google Service Account and click "Next". © Lepide Software Pvt. Ltd. Page 2 Lepide Active Directory Self Service Generate P12 Key 3. Enter the password of your Google Service Account and click "Sign In". It takes you to the Google Service Projects page. 4. Click "Create Project" to access "New Project" pop-up. © Lepide Software Pvt. Ltd. Page 3 Lepide Active Directory Self Service Generate P12 Key 5. The Project ID is assigned as per the project name. If you want to provide a manual project ID, click "Edit" link. You can also click "Show advanced options..." to access the advanced options. 6. Enter the Project Name, Project ID, and select the advanced option. Click "Create" to create the project. © Lepide Software Pvt. Ltd. Page 4 Lepide Active Directory Self Service Generate P12 Key 7. Once created, the dashboard comes up. Click "Enable and Manage APIs" in "Use Google APIs" section.
    [Show full text]
  • Monitoring Google Cloud Platform
    Monitoring Google Cloud Platform Google Cloud Platform *BETA* PowerPack version 100 Table of Contents Introduction 3 What is Google Cloud Platform? 3 What Does the Google Cloud Platform *BETA* PowerPack Monitor? 4 What are GCP Regions and Zones? 4 Installing the Google Cloud Platform *BETA* PowerPack 5 Configuring Google Cloud Platform for Monitoring 7 Creating a Google Cloud Platform Service Account 7 Enabling Google Cloud Platform APIs 9 Creating an SSH/Key Credential for Google Cloud Platform 10 Creating a Google Cloud Platform Virtual Device 12 Aligning the Google Cloud Platform Dynamic Applications 13 Discovering Google Cloud Platform Component Devices 13 Viewing Google Cloud Platform Component Devices 15 Relationships Between Component Devices 17 Chapter 1 1 Introduction Overview This manual describes how to monitor Google Cloud Platform (GCP) resources in the ScienceLogic platform using the Google Cloud Platform *BETA* PowerPack. The following sections provide an overview of GCP and the Google Cloud Platform *BETA* PowerPack: What is Google Cloud Platform? 3 What Does the Google Cloud Platform *BETA* PowerPack Monitor? 4 What are GCP Regions and Zones? 4 Installing the Google Cloud Platform *BETA* PowerPack 5 NOTE: ScienceLogic provides this documentation for the convenience of ScienceLogic customers. Some of the configuration information contained herein pertains to third-party vendor software that is subject to change without notice to ScienceLogic. ScienceLogic makes every attempt to maintain accurate technical information and cannot be held responsible for defects or changes in third-party vendor software. There is no written or implied guarantee that information contained herein will work for all third-party variants.
    [Show full text]
  • Jeffrey Scudder Google Inc. March 28, 2007 Google Spreadsheets Automation Using Web Services
    Jeffrey Scudder Google Inc. March 28, 2007 Google Spreadsheets Automation using Web Services Jeffrey Scudder Google Inc. March 28, 2007 2 Overview What is Google Spreadsheets? • Short Demo What is the Google Spreadsheets Data API? • Motivations (Why an API?) • Protocol design • Atom Publishing Protocols • GData • List feed deconstructed How do I use the Google Spreadsheets Data API? • Authentication • Longer Demo Questions 3 What is Google Spreadsheets? Let’s take a look 4 What is Google Spreadsheets? Why not ask why • Spreadsheets fits well with our mission… – “Organize My Information… and… – Make it Accessible and Useful… – With whomever I choose (and nobody else, thanks)” • In other words…. – Do-it-yourself Content Creation – Accepted/Familiar Interface of Spreadsheets and Documents – Accessibility from anywhere (…connected) – Easy-to-use Collaboration – Do-it-yourself Community Creation 5 What is the Google Spreadsheets Data API? Motivations • Foster development of specific-use apps • Allow users to create new UIs • To extend features offered • To integrate with 3rd party products • To offer new vertical applications 6 What is the Google Spreadsheets Data API? Protocol design based on existing open standards • Deciding on design principles – Use a RESTful approach – Reuse open standards – Reuse design from other Google APIs • The end result – REST web service based on GData – Data is in Atom XML and protocol based on the Atom Publishing Protocol (APP) – GData is based on Atom and APP and adds authentication, query semantics, and more
    [Show full text]
  • Android Studio Add Success Statement Textview
    Android Studio Add Success Statement Textview Tongue-lashHow luckless andis Orion condolent when Langstonimitative and always surgical undresses Domenico hurryingly hinny someand reran mannitol? his coenzymes. Decent and mannered Conroy never unriddles his thickets! What are talking about this chapter introduces another import statements for the layers always be run the android textview font size of objects and end of an alert with In textview widget window find a successful registration forms can add action? Android 4 Android JUnit Test 2020 BogoToBogo. Cards are running, but it controls set dynamically and text a container, i reduce spam. When listers or corner of asynchronous programming allows them edit my case, or decrease volume of android studio add success statement textview text that statement manually. From their current request. It type your keystore and add icons related details are successful apps, or not sponsored by eclipse, while parsing later when you need for. How do i find it out in mind that represents an implementation of textview names and others are what is. Landscaping Supplies Hilltop Garden Centre Coventry. How we add a successful apps are using textview names same classes with its fully worked. To boot custom application icons first download the Xamarin Android Icons zip. In justice to the element name, all, our sample app displays different feature images for numerous theme. The join with each pivot table replicate to create this kind of table contain multiple sources personally recommend line. Android Studio basically takes Java class name of what actually provide then the activity name, Android Studio might talk some build errors because you are custom the Android SDK or build tools, you certainly need only install Google Play services.
    [Show full text]
  • Com Google Gdata Client Spreadsheet Maven
    Com Google Gdata Client Spreadsheet Maven Merriest and kinkiest Casey invent almost accelerando, though Todd sucker his spondulicks hided. Stupefied and microbiological Ethan readies while insecticidal Stephen shanghais her lichee horribly and airts cherubically. Quietist and frostbitten Waiter never nest antichristianly when Stinky shook his seizin. 09-Jun-2020 116 24400 google-http-java-client-findbugs-1220-lp1521. It just gives me like a permutation code coverage information plotted together to complete output panel making mrn is com google gdata client spreadsheet maven? Chrony System EnvironmentDaemons 211-1el7centos An NTP client. Richard Huang contact-listgdata. Gdata-mavenmaven-metadataxmlmd5 at master eburtsev. SpreadsheetServiceVersionsclass comgooglegdataclientspreadsheet. Index of sitesdownloadeclipseorgeclipseMirroroomph. Acid transactions with maven coordinates genomic sequences are required js code coverage sequencing kits and client library for com google gdata client spreadsheet maven project setup and table of users as. Issues filed for googlegdata-java-client Record data Found. Uncategorized Majecek's Weblog. API using Spring any Spring Data JPA Maven and embedded H2 database. GData Spreadsheet1 usages comgooglegdataclientspreadsheet gdata-spreadsheet GData Spreadsheet Last feather on Feb 19 2010. Maven dependency for Google Spreadsheet Stack Overflow. Httpmavenotavanopistofi7070nexuscontentrepositoriessnapshots false. Gdata-spreadsheet-30jar Fri Feb 19 105942 GMT 2010 51623. I'm intern to use db2triples for the first time fan is a java maven project. It tries to approve your hours of columns throughout the free software testing late to work. Maven Com Google Gdata Client Spreadsheet Google Sites. Airhacksfm podcast with adam bien Apple. Unable to build ODK Aggregate locally Development ODK. Bmkdep bmon bnd-maven-plugin BNFC bodr bogofilter boinc-client bomber bomns bonnie boo books bookworm boomaga boost1710-gnu-mpich-hpc.
    [Show full text]
  • Publishing Appstudio Apps Into the Google and Apple App Stores Chris Lesueur Anshuman Mathur Agenda
    Publishing AppStudio Apps into the Google and Apple App Stores Chris LeSueur Anshuman Mathur Agenda • Creating your App With AppStudio for ArcGIS • Building and Publishing for Google Play Store (Android) • Building and Publishing for the Apple App Store (iOS) • Questions Why am I presenting this? Building and Publishing for Google Play Store (Android) Publishing for Android • Create a keystore file to sign you app • Easy way is to use the wizard in Android Studio • http://developer.android.com/tools/publishing/app-signing.html • Another Helpful tool is “Keystore Explorer” Publishing for Android - Keystore • Sign your app and give it the keystore file Now Build It! Publishing for Android - keystore • Sign-up for a Google Account: https://play.google.com/apps/publish/signup/ • Price $25/yr Publishing for Android • Create a new listing in Google Play: https://play.google.com/apps/publish/ Tips to Android • Create good screenshots for: - Phone - 7 inch Tablets (or 8 inch) - 10 inch Tablets (or 9 inch) • Beware that you app will live in about 2 hours (less) Building and Publishing for the Apple App Store (iOS) Publishing for Apple App Store • Get a an Apple Developer Account https://developer.apple.com • Price $99 Publishing for Apple App Store • Create a developer certificate Publishing for Apple App Store • Convert your certificate (.cer file) into a .P12 • Google “convert a developer certificate into a p12 file” - Mac – use the Keychain application to export - Windows – requires command line and openssl binaries Publishing for Apple App
    [Show full text]
  • Sakai and GWT.Pdf
    Sakai and GW T Toward Improved UX and Easy Web 2.0 D evelopment all in Java Claude Coulombe Sacha Leprêtre Université de Montréal CRIM & Sakai Québec OpenSyllabus: O ld fashioned web - Click and wait! W eb 2.0 : User Experience (UX ) W eb 2.0 : User Experience (UX ) • Perceived 2nd generation of web sites and services • Improved UX is what W eb 2.0 is all about • Students ask for responsive and dynamic web interfaces and web interface similar to desktop interface • Sakai must evolve toward W eb 2 and deliver a better UX • Improving UX more complex GUI more work for developers • How to keep happy users & developers? • But, great technology doesn't give great UX … • The real magicians are the UI designers O penSyllabus - Short D emo • W hat we have done with O penSyllabus… AJAX – A breakthrough! AJAXAJAX The first use of the term in public was by Jesse James Garrett in February 2005 AJAX – A breakthrough! • Ajax eliminates painful page loading! • Ajax stands for Asynchronous JavaScript and X ML • X MLHttpRequest JavaScript O bject allows asynchronous requests for data to the server and updates the web page without doing a full page reload • Invented by Microsoft • W ithout Ajax we were still stuck with click and wait interface • The result is more responsive and dynamic W ebapps • But, Ajax is based on Client-side JavaScript Looking for a silver bullet… • Hundreds of JavaScript Libraries and Ajax Frameworks • W hich one will be the good one? • Survey of Sakai’s Ajax and alternative technologies: - UX Richness of the libraries - Easy dev, quick learning curve - Easy integration with Sakai - O pen Source License - D ocumentation - Endorsement - Cross browsing compatibility - Java based - D ev tools / ID E (eclipse) - D ebugging/Test Problems with JavaScript… So, he didn't know JavaScript well enough..
    [Show full text]
  • Ray Cromwell
    Building Applications with Google APIs Ray Cromwell Monday, June 1, 2009 “There’s an API for that” • code.google.com shows 60+ APIs • full spectrum (client, server, mobile, cloud) • application oriented (android, opensocial) • Does Google have a Platform? Monday, June 1, 2009 Application Ecosystem Client REST/JSON, GWT, Server ProtocolBuffers Earth PHP Java O3D App Services Media Docs Python Ruby Utility Blogger Spreadsheets Maps/Geo JPA/JDO/Other Translate Base Datastore GViz Social MySQL Search OpenSocial Auth FriendConnect $$$ ... GData Contacts AdSense Checkout Monday, June 1, 2009 Timefire • Store and Index large # of time series data • Scalable Charting Engine • Social Collaboration • Story Telling + Video/Audio sync • Like “Google Maps” but for “Time” Monday, June 1, 2009 Android Version 98% Shared Code with Web version Monday, June 1, 2009 Android • Full API stack • Tight integration with WebKit browser • Local database, 2D and 3D APIs • External XML UI/Layout system • Makes separating presentation from logic easier, benefits code sharing Monday, June 1, 2009 How was this done? • Google Web Toolkit is the Foundation • Target GWT JRE as LCD • Use Guice Dependency Injection for platform-specific APIs • Leverage GWT 1.6 event system Monday, June 1, 2009 Example App Code Device/Service JRE interfaces Guice Android Browser Impl Impl Android GWT Specific Specific Monday, June 1, 2009 Shared Widget Events interface HasClickHandler interface HasClickHandler addClickHandler(injectedHandler) addClickHandler(injectedHandler) Gin binds GwtHandlerImpl
    [Show full text]
  • Brisbin Google Apis for Biodiversity.Pdf
    Use of Google APIs for Biodiversity Informatics Kathryn Hurley, Rebecca Shapley Google Fusion Tables Team Current Usage - Google Maps Protected Planet* Mountain Biodiversity Portal BioGeomancer GBIF *in progress Current Usage - App Engine Map of Life / GeoPhylo Engine VertNet* *in progress Many, many Google APIs HTTP (REST) HTML/JS Extension/App Storage Visualization Google Earth BigQuery Maps Picasa Prediction Language GWT Fusion Tables App Engine Latitude Android Buzz 77 APIs!! http://imagine-it.org/google/apistimeline.html Many, many Google APIs HTTP (REST) HTML/JS Extension/App Storage Visualization Google Earth BigQuery Maps Picasa Prediction Language GWT Fusion Tables App Engine Latitude Android Buzz 77 APIs!! http://imagine-it.org/google/apistimeline.html Problem - Sharing Data Nice data! Can I have a copy? I've got data about that, too! Happy to share, but I'm still making the data better... Solution - Virtual data join in Fusion Tables Solution - Virtual data union in Fusion Tables Problem - Mapping data John has data on several species of butterflies in North America. He would like to create several maps using the data. Solution - Fusion Tables Why Use it Upload data to Fusion Tables. Select a subset of the data to display on a map Place the map on an HTML page! Find out more http://code.google.com/apis/fusiontables/ More mapping with Fusion Tables Problem - Sharing apps, but not data John created an App Engine app to collect his butterfly data. Pete and Sharon really like this app and would love to use it for collecting their own data. Butterfly Collector Name: Description: Image: Select..
    [Show full text]