Create a Development Key Hash

MicroBees uses the key hash to authenticate interactions between your app and the MicroBees app. On OS X, run: keytool -exportcert -alias androiddebugkey -keystore ~/.android/debug.keystore | openssl sha1 -binary | openssl base64 On Windows, run: keytool -exportcert -alias androiddebugkey -keystore %HOMEPATH%\.android\debug.keystore | openssl sha1 -binary | openssl base64


The communication between server and client is managed with rest http. When you want invoke a specific method you can use : see also Create your Activity. Demo code @Override public void onConnectionSuccess() { myBeesClientAndroid.registerListener(this); myBeesClientAndroid.setPosition(false,false); action=myBeesClientAndroid.getAction(); JSONObject obj = new JSONObject(); action.send("/your_method", JSONObject parameters_connection, new AsyncActuators() { @Override public void OnResponseSuccess(JSONObject response) { } [...]

Creating your Activity

This is how you must implement your activity, after connection you can send command or get information from microbees system. Demo code public class MainActivity extends AppCompatActivity implements MyBeesClientAndroid.OnConnection { MyBeesClientAndroid myBeesClientAndroid =null; MyBeesAction action=null; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); myBeesClientAndroid =new MyBeesClientAndroid(this); myBeesClientAndroid.addConnectionCallbacks(this); myBeesClientAndroid.connect(); } @Override protected void onDestroy() { super.onDestroy(); [...]

Including the library in Android Studio

use the "Import Module..." function to include the mybees SDK After you've imported the module click on "Open Module Settings" and add dependencies from this module. Now in build.gradle add this dependencies: dependencies {compile '' compile '' } Open your strings.xml file. Example path: /app/src/main/res/values/strings.xml. Add a new string with the name microbees_clinet_id and value [...]

Getting started

These are the simple step you have to do before start coding your Android APP: download the SDK from here library; Create your microBees Application from Developer Dashboard; Get your App ClientID (the API_KEY); Add our SDK (and dependencies) to your Android Studio project; Configure your project in accordance with the following specifications. This SDK [...]