Code Monkey home page Code Monkey logo

Comments (1)

pmk2429 avatar pmk2429 commented on August 17, 2024 1

In order to use this application, you need to authorize the application(main package) using OAuth 2.0 since this application access Google APIs, Google recommends to authorize the app.
More information on the topic can be found here

It requires for developers to digitally sign the appp in order to be installed. The signing can be done in debug mode and release mode. Since if you are working on app and need your app to be digitally signed, you can do it in debug mode. Now, signing can be done using Android Studio or via keytool. The Android SDK generates a certificate to sign apps in debugmode.
A more detailed explanation of what signing is and why it is useful as well as required can be found here

You can generate SHA1 fingerprint for signing the apps on Google Developer Console using the following command on Windows:
keytool -list -v -keystore ~/.android/debug.keystore -alias androiddebugkey -storepass android -keypass android

or

keytool -list -v -keystore "%USERPROFILE%\.android\debug.keystore" -alias androiddebugkey -storepass android -keypass android

After the running the above command in command prompt, a SHA1 fingerprint of your debug.keystore will be produced which act as a signature and this signature is used to sign off your app in Google Dev Console.
Remember Keystore is basically a place where the private keys for your app are kept. In simple words its a certificate generated by user or a program, used for signing an Android app.

Next, create credentials appropriate to your project in the Google Developers Console:
Open the Credentials page

  1. Click Add credentials > OAuth 2.0 client ID.
  2. Select Android.
  3. In the Package name field, enter your Android app's package name.(The one in AndroidManifest.xml)
  4. Paste the SHA1 fingerprint into the form where requested.
  5. Click Create.

Otherwise, follow the steps below, which are for applications that only need to make unauthorized API calls:

  1. Click Add credentials > API key.
  2. Select Android key.
  3. Paste the SHA1 fingerprint into the form where requested.
  4. Type your Android app's package name into the form where requested.
  5. Click Create.

Here is the tutorial if you want to refer more

The ResourceID is the one where all the resources of the application are defined and which you need to specify in order to sign your app on Google Dev Console. In other words, you need path to the package where Ris defined.
R is a class containing the definitions for all resources of a particular application package. It is in the namespace of the application package.
This step is basically the same step as Step #3 and Step #4 in above mentioned steps

Hope this will help you to get started using the app.

from android-samples.

Related Issues (20)

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.