- Android SDK
Try LINE Login on Android
Make sure you have completed the following:
- Created a Channel to use with your Android starter application
- Have a Channel ID (can be found in the Channel Console)
- Android Studio installed
- Check out the SDK Android starter repository
$ git clone https://github.com/line/line-sdk-starter-android-v2.git
- Download the LINE Android SDK zip file from the “Downloads” section of the Channel Console
- Unzip the file and copy the .aar file into the app/libs folder of the repository
- Open the project in Android Studio
- Enter your Channel ID in the constants.java file
java public static final String CHANNEL_ID = "xxxxxxxxxx";
- 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.
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.
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
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.