Skip to content

Commit ff2c341

Browse files
committed
[Sample] Moving samples to a new place.
1 parent 35cd775 commit ff2c341

File tree

274 files changed

+960
-1133
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

274 files changed

+960
-1133
lines changed

.gitignore

Lines changed: 5 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -2,71 +2,16 @@
22
# Android
33
################################################################################
44

5-
# Built application files
6-
*.apk
7-
*.ap_
8-
9-
# Files for the ART/Dalvik VM
10-
*.dex
11-
12-
# Java class files
13-
*.class
14-
15-
# Generated files
165
bin/
17-
gen/
18-
out/
19-
20-
# Gradle files
21-
.gradle/
226
build/
237

24-
# Local configuration file (sdk path, etc)
25-
local.properties
26-
27-
# Proguard folder generated by Eclipse
28-
proguard/
29-
30-
# Log Files
31-
*.log
32-
33-
# Android Studio Navigation editor temp files
34-
.navigation/
35-
36-
# Android Studio captures folder
37-
captures/
38-
39-
# IntelliJ
8+
# gradle & android specific files
9+
.gradle/
4010
*.iml
41-
.idea/workspace.xml
42-
.idea/tasks.xml
43-
.idea/gradle.xml
44-
.idea/assetWizardSettings.xml
45-
.idea/dictionaries
46-
.idea/libraries
47-
.idea/caches
48-
49-
# Keystore files
50-
# Uncomment the following line if you do not want to check your keystore files in.
51-
#*.jks
52-
53-
# External native build folder generated in Android Studio 2.2 and later
54-
.externalNativeBuild
55-
56-
# Google Services (e.g. APIs or Firebase)
57-
google-services.json
58-
59-
# Freeline
60-
freeline.py
61-
freeline/
62-
freeline_project_description.json
11+
.idea
12+
local.properties
6313

64-
# fastlane
65-
fastlane/report.xml
66-
fastlane/Preview.html
67-
fastlane/screenshots
68-
fastlane/test_output
69-
fastlane/readme.md
14+
.DS_Store
7015

7116
################################################################################
7217
# MyScript

README.md

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -12,26 +12,15 @@ This repository comes in addition with further advanced Android examples that de
1212

1313
2. If you already have a certificate go to next step, else claim to receive the free license to start develop your application by following the first steps of [Getting Started](https://developer.myscript.com/getting-started).
1414

15-
3. Copy this certificate to `certificate/src/main/java/com/myscript/certificate/MyCertificate.java`
15+
3. Copy this certificate to `samples/certificate/src/main/java/com/myscript/certificate/MyCertificate.java`
1616

17-
4. Open `java` folder in Android Studio.
17+
4. Open `samples` folder in Android Studio.
1818

1919
## Various examples
2020

2121
This repository provides you with an additional set of ready-to-use examples based on Android:
2222

23-
1. The batch mode sample is an example of how to integrate iink SDK off-screen, without any user interface. It consists in batch processing content, i.e. processing a series of pointer events corresponding to already collected ink strokes and exporting the recognition result. It comes with four pointer events samples that correspond to four different content types "Text", "Math", "Diagram", "Raw Content". When starting the app a dialog will be displayed to choose which type of part you want to proceed. By default those content types are exported in respectively .txt, LaTeX, svg and JIIX formats, but you can choose to export in png by modifying the following line in the MainActivity class:
24-
25-
~~~#!java
26-
// this is the function where we process exteranl output and export it
27-
// add true if you want to export in png
28-
offScreenProcess(typeOfPart[it])
29-
~~~
30-
<div align="center">
31-
<img src="batch.gif" alt="batch sample" width="302">
32-
</div>
33-
34-
NB: you will retrieve data converted in your device internal storage: `Android/data/com.myscript.iink.samples.batchmode/files`
23+
1. The batch mode sample is an example of how to integrate iink SDK without any user interface. It consists in batch processing content, i.e. processing a series of pointer events corresponding to already collected ink strokes and exporting the recognition result. It comes with four pointer events samples that correspond to four different content types "Text", "Math", "Diagram", "Raw Content". When starting the app a dialog will be displayed to choose which type of part you want to proceed. By default those content types are exported in respectively .txt, LaTeX, svg and JIIX formats, but you can choose to export in png depending on your choice in the configuration window.
3524

3625
2. The exercise assessment illustrates the case when you want to use several writing areas each one for a specific purpose in your application. It is thus using multiple editors, one per writing area, as each one has a different purpose:
3726
- First one is dedicated to "Math" content types

batch.gif

-312 KB
Binary file not shown.

build.gradle

Lines changed: 0 additions & 48 deletions
This file was deleted.

build_android.gradle

Lines changed: 0 additions & 47 deletions
This file was deleted.

certificate/.gitignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

java/.gitignore

Lines changed: 0 additions & 78 deletions
This file was deleted.

0 commit comments

Comments
 (0)