All Projects → line → line-sdk-android

line / line-sdk-android

Licence: Apache-2.0 license
LINE SDK for Android lets you integrate LINE into your Android app to create a more engaging experience for your users.

Programming Languages

java
68154 projects - #9 most used programming language
C#
18002 projects
javascript
184084 projects - #8 most used programming language
CSS
56736 projects
kotlin
9241 projects
smalltalk
420 projects

Projects that are alternatives of or similar to line-sdk-android

line-sdk-unity
Provides a modern way of implementing LINE APIs in Unity games, for iOS and Android.
Stars: ✭ 84 (-16.83%)
Mutual labels:  line, line-sdk, line-login
google streetview
A command line tool and module for Google Street View Image API
Stars: ✭ 77 (-23.76%)
Mutual labels:  line
line
Development repository for the line cookbook
Stars: ✭ 96 (-4.95%)
Mutual labels:  line
comment-box.nvim
✨ Clarify and beautify your comments using boxes and lines.
Stars: ✭ 91 (-9.9%)
Mutual labels:  line
LINE-Source
Line Application Source
Stars: ✭ 43 (-57.43%)
Mutual labels:  line
gab-cmdline
A GABStudios Java library to help with command line parsing.
Stars: ✭ 12 (-88.12%)
Mutual labels:  line
ghe-line-notify
LINE Notify Gateway for Github Enterprise.
Stars: ✭ 19 (-81.19%)
Mutual labels:  line
line-things-starter
The sample codes for LINE Things Developer Trial
Stars: ✭ 91 (-9.9%)
Mutual labels:  line
react-svg-pathline
React component for drawing SVG path through set of points, smoothing the corners
Stars: ✭ 42 (-58.42%)
Mutual labels:  line
line-example-bot-tiny-php
Line Bot 基礎範例程式碼教學 (PHP) - 輕量版 LINEBotTiny.php
Stars: ✭ 58 (-42.57%)
Mutual labels:  line
clova-cek-sdk-python
SDK of the Clova CEK for Python
Stars: ✭ 19 (-81.19%)
Mutual labels:  line
pyne
LINE for Python
Stars: ✭ 18 (-82.18%)
Mutual labels:  line
linenotify
Template for LINE Notify service in Golang
Stars: ✭ 18 (-82.18%)
Mutual labels:  line
line-bot-sdk
🍥 Haskell向けLINE Messaging API SDK
Stars: ✭ 31 (-69.31%)
Mutual labels:  line
unosolo
Work-in-progress Rust application that converts C++ header-only libraries to single self-contained headers.
Stars: ✭ 26 (-74.26%)
Mutual labels:  line
LINE-FreshBot
LINE Bot
Stars: ✭ 23 (-77.23%)
Mutual labels:  line
text-sdk-php
PHP SDK to send messages with CM.com
Stars: ✭ 18 (-82.18%)
Mutual labels:  line
CHRLINE
LINE Chrome API
Stars: ✭ 41 (-59.41%)
Mutual labels:  line
colortest
Quickly show all your terminal colors
Stars: ✭ 66 (-34.65%)
Mutual labels:  line
line-bot-sdk-php-tiny
A simple SDK for the LINE Messaging API with PHP.
Stars: ✭ 25 (-75.25%)
Mutual labels:  line

Download

Overview

The LINE SDK for Android provides a modern way of implementing LINE APIs. The features included in this SDK will help you develop an Android app with engaging and personalized user experience.

Features

The LINE SDK for Android provides the following features.

User authentication

This feature allows users to log in to your service with their LINE accounts. With the help of the LINE SDK for Android, it has never been easier to integrate LINE Login into your app. Your users will automatically log in to your app without entering their LINE credentials if they are already logged in to LINE on their Android devices. This offers a great way for users to get started with your app without having to go through a registration process.

Utilizing user data with OpenID support

Once the user is authorized, you can get the user’s LINE profile. You can utilize the user's information registered in LINE without building your user system.

The LINE SDK supports the OpenID Connect 1.0 specification. You can get ID tokens that contain the user’s LINE profile when you retrieve the access token.

Setup

Pre-request

Create your own LINE Channel and follow the instructions here to link your app to your channel.

Gradle

Setup current line-sdk version

linesdk_version = '5.6.2'

Add mavenCentral to your repositories if it's not added yet.

repositories {
    ...
	mavenCentral()
}

Import line-sdk dependency

dependencies {
    implementation 'com.linecorp.linesdk:linesdk:$linesdk_version'
    ...
}

Quickstart

A pre-defined LINE login button is provided. You can add it to the user interface of your app to provide your users with a quick way to log in as below

Add login buton to layout xml

<com.linecorp.linesdk.widget.LoginButton
    android:id="@+id/line_login_btn"
    android:layout_width="match_parent"
    android:layout_height="wrap_content" />

Use it in codes

LoginButton loginButton = rootView.findViewById(R.id.line_login_btn);

// if the button is inside a Fragment, this function should be called.
loginButton.setFragment(this); 

// replace the string to your own channel id.
loginButton.setChannelId("the channel id you created");

// configure whether login process should be done by LINE App, or by WebView.
loginButton.enableLineAppAuthentication(true);

// set up required scopes. 
loginButton.setAuthenticationParams(new LineAuthenticationParams.Builder()
        .scopes(Arrays.asList(Scope.PROFILE))
        .build()
);

// A delegate for delegating the login result to the internal login handler. 
private LoginDelegate loginDelegate = LoginDelegate.Factory.create();
loginButton.setLoginDelegate(loginDelegate);

loginButton.addLoginListener(new LoginListener() {
    @Override
    public void onLoginSuccess(@NonNull LineLoginResult result) {
        Toast.makeText(getContext(), "Login success", Toast.LENGTH_SHORT).show();
    }

    @Override
    public void onLoginFailure(@Nullable LineLoginResult result) {
        Toast.makeText(getContext(), "Login failure", Toast.LENGTH_SHORT).show();
    }
});

For more information, refer to the LINE SDK for Android guide on the LINE Developers site.

Try the starter app

To have a quick look at the features of the LINE SDK, try our starter app by following the steps below:

  1. Clone the repository.

    git clone https://github.com/line/line-sdk-android.git

  2. Build the starter app.

    ./gradlew app:assembleDebug

The starter app apk file will be built as app/build/outputs/apk/debug/app-debug.apk.

Contributing

If you believe you have discovered a vulnerability or have an issue related to security, please DO NOT open a public issue. Instead, send us a mail to [email protected].

For contributing to this project, please see CONTRIBUTING.md.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].