The LINE Login Android 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 on Android.
Before you begin
Make sure you have completed the following:
Getting the LINE starter app and SDK
Clone the line-sdk-starter-android-v2 repository.
$ git clone https://github.com/line/line-sdk-starter-android-v2.git
Download the LINE SDK for Android from the Downloads page.
Unzip the file and copy the
.aarfile into the
app/libsfolder of the repository.
Configuring your project
- Open the project in Android Studio.
Enter your channel ID in the
public static final String CHANNEL_ID = "xxxxxxxxxx";
Go to the "App settings" page in the console and set the following values:
- Android package name:
- 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 Login with LINE to log in using the auto-login feature. If you are logged in to the LINE app on your device, you will be logged in automatically without entering your login credentials.
- Tap Browser Login to log in using your device's browser (Chrome). Using this option, you'll need to enter your login credentials to log in to the app.
Try out the features available on the LINE SDK for Android
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
- Verify token
- Log out
You have now seen how LINE Login works in an Android app. To learn more about how to integrate LINE Login with your existing Android app, go to Integrating LINE Login with your Android app.