1. Documents
  2. Android SDK

Try LINE Login on Android

The Android LINE Login starter application lets you quickly see how LINE Login works on an Android app. If you’d like to integrate LINE Login with your existing app, go to Integrate LINE Login.

Before you begin

Make sure you have completed the following:

Getting the LINE starter app and SDK

  1. Check out the SDK Android starter repository

    $ git clone https://github.com/line/line-sdk-starter-android-v2.git
  2. Download the LINE Android SDK zip file from the “Downloads” section of the Channel Console
  3. Unzip the file and copy the .aar file into the app/libs folder of the repository

Configuring your project

  1. Open the project in Android Studio
  2. Enter your Channel ID in the constants.java file

    java public static final String CHANNEL_ID = "xxxxxxxxxx";
  3. Go to the Technical configuration page in the Channel Console and set the following values:
    • Android package name: jp.line.android.sdk.sample
    • Android package signature: Set as any value. This field cannot be left blank.

Running the app

Run the app using an Android device or an emulator. When you first log in, you must agree to let the app access your profile information.

  • Tap the “Log in with LINE” button to log in using the auto-login feature. If you are logged in to the LINE app on the device, you will be able to log in automatically without entering your login credentials.
  • Tap the “Browser Login” button to login using your device’s browser (Chrome). Using this option, you’ll need to enter your login credentials (email and password) to log in to the app.

Try out the features available on the LINE SDK

Once you have logged in to the app, you can tap the buttons to try out the following features of the LINE SDK.

  • Get user profile
  • Refresh token
  • Verfiy token
  • Log out user

Next steps

You have now seen how LINE Login works in an Android app. To learn more about how to integrate LINE Login with your own existing Android app, go to Integrating LINE Login with your Android app.