- 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_sdk
<uses-permission android:name="android.permission.INTERNET" >
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
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.Init(token,node_id);
MinerSdk.Start();