Commit 305d1b9e authored by Prakhar Agrawal's avatar Prakhar Agrawal
Browse files

Create tag 3.1

parent 7cb2c16a
Loading
Loading
Loading
Loading
+4 −16
Original line number Diff line number Diff line
# Leegality Android SDK 4.0
# Leegality Android SDK 3.1#

### Steps to Use ###

1. Download Leegality Library from http://gitlab.leegality.com/leegality-public/android-sdk/blob/v4/leegality.aar
1. Download Leegality Library from http://gitlab.leegality.com/leegality-public/android-sdk/blob/v3.1/leegality.aar
2. Import Leegality Library to your project by following the steps laid down in https://developer.android.com/studio/projects/android-library.html#AddDependency. 
3. To initialize signing, start activity Leegality provided by the Leegality Library. 
Pass signing URL in url key.
@@ -13,20 +13,7 @@ Pass signing URL in url key.
	//REQUEST_CODE is your constant, which is used to identify particular activity.
	```

### Note: 

1. It is recommended to start signing process by using startActivityForResult instead of startActivity to receive the response/error. 
2. If you are using captureLocation, capturePhoto parameter in API. You have to take following permission from the user. These are runtime permissions if you dont take following permission Leegality will not be able to capture Location & Photo of user.
    ```
    <uses-permission android:name="android.permission.CAMERA" />
    <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
    ```
3. If you are using captureLocation, capturePhoto parameter in API. Your android application should be atleast at version 21.
4. If you want to autofill Leegality OTP and NSDL/CDAC OTP at the signing page. You have to take following permission from the user. These are runtime permission if you dont take following permission user have to fill all OTP's manually.
    ```
    <uses-permission android:name="android.permission.READ_SMS" />
    <uses-permission android:name="android.permission.RECEIVE_SMS" />
    ```
#### Note: It is recommended to start signing process by using startActivityForResult instead of startActivity to receive the response/error. 

### Result: ###

@@ -51,3 +38,4 @@ protected void onActivityResult(int requestCode, int resultCode, Intent data){
	super.onActivityResult(requestCode, resultCode, data);
}
```