Repository: gaganode/gaga_android_sdk Branch: main Commit: d301ceec3cb8 Files: 3 Total size: 1.2 KB Directory structure: gitextract_eihy0ouj/ ├── .gitignore ├── README.md └── gaga_pro_sdk_v0.0.200.jar ================================================ FILE CONTENTS ================================================ ================================================ FILE: .gitignore ================================================ .DS_Store **/.DS_Store ================================================ FILE: README.md ================================================ ## Gaga Miner Android SDK integration Tutorial - This document is a simple example of SDK integration. - For official stable running application reference please go to [Gaga Android](https://github.com/gaganode/gaga_android). ### 1. Go to GitHub to download the latest version .jar SDK [https://github.com/gaganode/gaga_android_sdk](https://github.com/gaganode/gaga_android_sdk) ### 2. Add the SDK.jar file to your libs folder and Add as library ![](https://user-images.githubusercontent.com/46369948/206830317-a9d801d1-c35a-4f64-80b4-616efa5d77cb.jpg) ### 3. Add the SDK.jar file to your libs folder and Add as library ```java ``` ### 4. In your Activity start the sdk ```java String token= "{your token}"; SharedPreferences miner_sdk_sp= getSharedPreferences("miner_sdk",MODE_PRIVATE); long node_id=miner_sdk_sp.getLong("node_id", Math.abs(new Random().nextLong())); miner_sdk_sp.edit().putLong("node_id",node_id).apply(); //MinerSdk.setProduct(Build.BRAND+":"+Build.MODEL); //optional:for better optimization MinerSdk.init(node_id,token); MinerSdk.start(); ```