a) Install Android Studio: https://developer.android.com/studio/index.html
b) Download the “android-sample” SDK for Mathpix: https://github.com/Mathpix/android-sample
c) Open the “android-sample-master” folder in Android Studio.
*)To run the sample app, you must put the correct app_id and app_key.
In Constant.java, there are two variables for them.
public static String app_id="mathpix";
public static String app_key="139ee4b61be2e4abcfb1238d9eb99902";
Please change the values to the correct values.
Notice: we had to disable the open API key due to API abuse, please request one from [email protected] for now.
d) Run “build.gradle”
e) Make sure your: “Platform”, “Build Tools”, and Gradle Wrapper are all up-to-date. You can click on the blue link and Android Studios should initiate an install automatically. Click* “Install _____”
f) Select a “Deployment Target” to run on. You should see the model name/number for your device. If you cannot find your device refer to Exhibit B below.
Exhibit B. Make sure that the ADB option is turned on. If you cannot find your device this make sure that it is in “developer mode”. Some phone’s developer options can be activated on the phone itself. http://www.howtogeek.com/129728/how-to-access-the-developer-options-menu-and-enable-usb-debugging-on-android-4.2/
g) Enable “ADB Integration” on your phone. You can do this through Tools > Android > Enable ADB integration. In some cases you will get a message on your phone screen to confirm.
Exhibit A: Sample confirmation message on phone. (you may or may not see one depending on the device)