This section is meant for people who have existing android native and would like to integrate Ezetap PoS solution through a native android SDK implementation.
######This documentation contains the instructions to integrate- Ezetap Native Android SDK
#1. Native Android Integration
If you have an Deploy-able Android Native Application this API will help you integrate Ezetap Services to your App. To integrate this API, you need to have a good grasp of Android app development, building APKs etc. The Ezetap integration part involves setting up a project, importing a library and then actual coding with just a few lines of code.
- Android development environment
- Android phone that can connect to internet
- This documentation
- Ezetap app key or login credentials to Ezetap service
- Ezetap device to test
##Sample App There is a sample Android App inside the sample folder of the repository. You can use this project as a reference to integrate Ezetap SDK.
#####Follow the steps below to get the demo app working-
- Import the project as an Android Project in Eclipse IDE.
- Clean & Build the project.
- Run the Sample application on your Smartphone.
- EzeNativeSampleActivity.java will be your point of reference for Native Android SDK integration
Note- The errors you may face while importing the project will most likely be for Android version mismatch which EclipseIDE would normally resolve itself. Changing the Android version or restarting the Eclipse can help u solve this problem
- You can find ChargeAPI jar file in the releases folder of this repository, Add the jar file in libs folder of your Native Android Project.
- In the manifest file of your project add the permission WRITE_EXTERNAL_STORAGE, which looks like this-
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />- In the manifest file of your Android Project add a new Activity, which looks like this-
<activity android:name="com.eze.api.ChargeAPIActivity"
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale"
android:screenOrientation="portrait"
android:theme="@android:style/Theme.Translucent.NoTitleBar.Fullscreen" />- IMPORTANT- If your project's targetSdkVersion is higher or equal to 23(Android 6.0 Marshmallow) please add Android support library v4 to your Android project from here. The Android support libraries are not required if your project's targetSdkVersion is lesser than 23.
- Good to go, please refer Ezetap API Portal for API usage
Note- The EzeAPIActivity has to be configured with the same attributes as given above.