-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
1 changed file
with
47 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,56 @@ | ||
To run the sample app, you must put the correct app_id and app_key. | ||
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_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 support@mathpix.com 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 _____” | ||
|
||
-Platform: | ||
 | ||
|
||
-Build Tools: | ||
 | ||
|
||
-Gradle Wrapper: | ||
 | ||
|
||
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) | ||
|
||
 | ||
|