Git Product home page Git Product logo

compute-getting-started-android's Introduction

status: inactive

This project is no longer actively developed or maintained.

compute-getting-started-android

This is sample code for an Android application that displays some Google Compute Engine(GCE) resources using the GCE API. The sample was created using Android Studio but should also work with Eclipse as well through maven pom.xml importing.

Products

Language

APIs

Setup Instructions

  1. Clone the repo locally. git clone https://github.com/GoogleCloudPlatform/compute-getting-started-android

  2. Import the project:

    1. Open Android Studio and choose "Import Project."
    2. Select the ComputeGettingStartedAndroid/ComputeGettingStartedonAndroid/build.gradle to import and choose the gradle wrapper option. Use default values for the rest of the import screens.
    3. NOTE: If you recieve an import error indicating that "play-services", a required dependency, could not be found comment out the Google Play Services dependency line of build.gradle. This is on line 54 of ComputeGettingStartedAndroid/ComputeGettingStartedonAndroid/build.gradle. Import the project again. Comment the dependency back in after the following step.
  3. Check dependencies (even if the project compiles) using the Android SDK Manager. Ensure the following packages are installed and up-to-date:

    1. Android Support Repository
    2. Android Support Library
    3. Google Play Services
    4. Google Repository
  4. Close and reopen your project. Clean dependencies using the Build menu by choosing "Rebuild Project."

  5. Register an developer project with Google. your project and application application with Play Services and allow you to retrieve OAuth2 tokens from Android. Alternatively, it is possible to implement your own OAuth2 flow.

    1. Use the Cloud Console to create (or reuse) a project for tinkering.
    2. Use the Cloud console to create a new client ID underneath your project representing Android app. This is done within the API Access section. The client ID should be of type "Installed Application" type and subtype Android. Use com.google.devrel.samples.compute.android as the package name. Retrieve your Android debug keystore fingerprint from ADB. On a Mac this command would typically look like this with an empty password: keytool -list -v -keystore ~/.android/debug.keystore
  6. Deploy the Android App

    1. Deploy your app via normal Android deployment procedures.
    2. You will need to use a version 17 or later "Google APIs" enabled AVD definition if you are using an emulator instead of a physical device. Physical devices need only have Google Play installed to work.

compute-getting-started-android's People

Contributors

paulrashidi avatar lesv avatar elibixby avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.