Skip to content

Commit 3814491

Browse files
V5.13.0
0 parents  commit 3814491

File tree

200 files changed

+26300
-0
lines changed

Some content is hidden

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

200 files changed

+26300
-0
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# V5.13.0
2+
3+
Initial release for GitHub
4+
5+
StarIOPort3.1.jar (Ver 2.8.0)
6+
starioextension.jar (Ver 1.14.0)
7+
smcloudservices.aar (Ver 1.4.1)

Documents/CommandEmulator_on_SMCS.pdf

184 KB
Binary file not shown.
288 KB
Binary file not shown.

Documents/UsersManual.url

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[InternetShortcut]
2+
URL=https://www.star-m.jp/starprntsdk-oml-android.html

LICENSE

Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
Software License Agreement
2+
3+
Copyright (c) Star Micronics Co., Ltd. All rights reserved.
4+
5+
This Agreement made and entered into by and between you and Star Micronics Co., Ltd. (hereinafter
6+
referred to as "Star") stipulates the terms and conditions pertaining to the licensing of the software.
7+
Please read this Software License Agreement ("Agreement") carefully before installing or using the software
8+
and accompanying data (hereinafter referred to as "the Software"). By installing the Software, you are
9+
agreeing to be bound by this Agreement. If you do not agree to the terms of this Agreement, you are not
10+
entitled to install the Software. References to "Software" in this Agreement include any accompanying
11+
documentation furnished by Star.
12+
13+
1. Permitted License Uses
14+
15+
During the term of this Agreement, Star grants to you a nonexclusive, non-transferable license to use
16+
the Software you're your own use subject to the terms and conditions of this Agreement. Except for this
17+
limited license, Star reserves all other rights in the Software. The rights granted herein are limited to Star's
18+
intellectual property rights in the Software. Only for the purpose of using a Star product, you may install
19+
the Software on a computer that is directly or via a local area network connected to the Star product.
20+
21+
2. Restrictions on Permitted License Uses
22+
23+
You may not reverse engineer, disassemble, or decompile with regard to the Software or otherwise
24+
attempt to discover the trade secrets in the Software. In addition, you may not copy, reproduce, alter,
25+
modify or create derivative works of the Software or any part thereof. Notwithstanding the provision
26+
above, you may analyze, copy, or alter the binary data (object code) of the part of source code disclosed
27+
out of the Software. You may not sublicense, transfer, rent, lease, or redistribute the Software to a third
28+
party. Star is not obligated to provide any maintenance, technical or other support for the Software. You
29+
may use the Software only with a Star product and you are not permitted to use the Software for any
30+
product other than a Star product.
31+
32+
3. Intellectual Property Rights
33+
34+
Copyrights, patents and any other intellectual property rights in the Software shall belong to Star or Star's
35+
licensors. This is a license, not a sale.
36+
37+
4. Termination
38+
39+
This Agreement is effective until terminated. Your rights under this Agreement will terminate
40+
automatically without notice from Star if you fail to comply with any term(s) of this Agreement. Upon the
41+
termination of this Agreement, you shall cease all use of the Software and destroy all copies, full or partial,
42+
of the Software.
43+
44+
5. Disclaimer of Warranties
45+
46+
You expressly acknowledge and agree that use of the Software is at your sole risk and that the entire risk
47+
as to satisfactory quality, performance, accuracy and efforts is with you. The Software is provided "as is",
48+
with all faults and without warranty of any kind, and Star and Star's licensors hereby disclaim all warranties
49+
and conditions with respect to the Software, either express, implied or statutory, including, but not
50+
limited to, the implied warranties and/or conditions of merchantability, of satisfactory quality, of fitness
51+
for a particular purpose, of accuracy, of quiet enjoyment, and non-infringement of third party rights. Star
52+
does not warrant against interference with your enjoyment of the Software, that the functions contained
53+
in the Software will meet your requirements, that the operation of the Software will be uninterrupted or
54+
error-free, or that defects in the Software will be corrected. No oral or written information or advice given
55+
by Star or Star authorized representative shall create a warranty. Should the Software prove defective, you
56+
assume the entire cost of all necessary servicing, repair, or correction.
57+
58+
6. Limitation of Liability
59+
60+
To the extent not prohibited by law, in no event shall Star be liable for personal injury, or any incidental,
61+
special, indirect or consequential damages whatsoever, including, without limitation, damages for loss
62+
of profits, loss of data, business interruption or any other commercial damages or losses, arising out of or
63+
related to your use or inability to use the Software, however caused, regardless of the theory of liability
64+
(contract, tort, or otherwise) and even if Star has been advised of the possibility of such damages. In any
65+
event, Star shall not be liable for any damages, in the aggregate, regardless of type or kind, whether in
66+
contract or tort, in excess of the actual license fees, if any, paid by you for the Software in the three (3)
67+
months immediately preceding the first event giving rise to liability.
68+
69+
7. Governing Law and Severability
70+
71+
This Agreement will be governed by and construed in accordance with the laws of Japan. If for any
72+
reason a court of competent jurisdiction finds any provision, or portion thereof, to be unenforceable, the
73+
remainder of this Agreement shall continue in full force and effect.
74+
75+
8. Third-party Software
76+
77+
If the whole or part of the Software includes any third-party software or intellectual property right
78+
including, but not limited to, open source software (hereinafter referred to as the "Third-party Software"),
79+
you shall comply with the terms and conditions of the license granted by the third party related to your
80+
use of the Third-party Software. In no event shall any of the provisions of this Agreement be construed as
81+
a limitation on the right of the third party to enforce each and every terms and conditions of the license.
82+
In no event shall Star be liable for any limitation on the use of the Software, which might be imposed by
83+
enforcement of the license by the third party. If the Software includes the Third-party Software, you will
84+
find the particulars thereof including the licensing conditions in the "SoftwareLicenseAgreementAppendi
85+
x.pdf". All Third-party Software is provided as-is, with all faults and without warranties of any kind.
86+
87+
9. Compensation for damages
88+
89+
If you fail to comply with any term of this Agreement, Star has the right to terminate this Agreement and
90+
any other agreement made with you and claim compensation for damages suffered resulting from such
91+
termination.
92+
93+
September 14, 2015

README.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# StarPRNT SDK Android Java
2+
3+
StarIO/starioextension/smcloudservices is a library for supporting application development for Star printers.
4+
5+
## Scope
6+
7+
Please refer to the [StarPRNT SDK](https://www.star-m.jp/products/s_print/sdk/starprnt_sdk/manual/android_java/en/index.html) document about the supported printers.
8+
9+
Works with these Emulation:
10+
- StarPRNT Mode
11+
- Star Line Mode
12+
- Star Graphic Mode
13+
- ESC/POS
14+
- ESC/POS Mobile
15+
- Star Dot Impact
16+
17+
18+
## Limitation
19+
1. Only the last connected USB printer can communicate with Android V5.0.
20+
21+
2. Please use "PIN code enable" in Bluetooth security with SM-L200.
22+
23+
3. When using printer with Bluetooth Interface, please do not change the memory switch setting of "ASB Status" from default value(invalid). (Bank 7/Bit C)
24+
25+
4. During our test, we have confirmed using Nexus9 with Android 7.0 may rarely cause a hang-up. To recover from this phenomenon, restart the OS.
26+
27+
5. With some Android devices, the transmission of large amounts of data(*) via Bluetooth may cause slow printing or intermittent printing. The printing can be improved by splitting data and extending the transmission interval.
28+
e.g., data created by appendBitmap method
29+
30+
6. If mC-Sound was connected after the printer power was turned ON, melody speaker API does not work properly. Please turn on the printer after connecting mC-Sound to it.
31+
32+
7. Change the behavior of releasePort method
33+
Beginning from StarIOPort3.1.jar V2.6.0 (StarPRNT SDK V5.11.0), the releasePort method behavior has been changed as shown below.
34+
- V2.5.0 and before:
35+
In the case of calling getPort method multiple times before calling releasePort method, the port is released by calling releasePort method the same number of times as the getPort method was called.
36+
- V2.6.0 and later:
37+
The port is always released when releasePort method is called.
38+
39+
## Copyright
40+
41+
Copyright 2016-2020 Star Micronics Co., Ltd. All rights reserved.

SDK/app/build.gradle

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
apply plugin: 'com.android.application'
2+
3+
android {
4+
compileSdkVersion 29
5+
6+
defaultConfig {
7+
applicationId "com.StarMicronics.StarIOSDK"
8+
9+
minSdkVersion 21
10+
targetSdkVersion 29
11+
12+
versionCode 45
13+
versionName "5.13.0"
14+
}
15+
buildTypes {
16+
release {
17+
minifyEnabled false
18+
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
19+
}
20+
}
21+
}
22+
23+
dependencies {
24+
implementation 'com.starmicronics:stario:2.8.0'
25+
implementation 'com.starmicronics:starioextension:1.14.0'
26+
implementation 'com.starmicronics:smcloudservices:1.4.1'
27+
implementation 'androidx.appcompat:appcompat:1.1.0'
28+
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
29+
}

SDK/app/proguard-rules.pro

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Add project specific ProGuard rules here.
2+
# By default, the flags in this file are appended to flags specified
3+
# in C:\Users\Teppei\AppData\Local\Android\sdk/tools/proguard/proguard-android.txt
4+
# You can edit the include path and order by changing the proguardFiles
5+
# directive in build.gradle.
6+
#
7+
# For more details, see
8+
# http://developer.android.com/guide/developing/tools/proguard.html
9+
10+
# Add any project specific keep options here:
11+
12+
# If your project uses WebView with JS, uncomment the following
13+
# and specify the fully qualified class name to the JavaScript interface
14+
# class:
15+
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
16+
# public *;
17+
#}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
package com.starmicronics.starprntsdk;
2+
3+
import android.app.Application;
4+
import android.test.ApplicationTestCase;
5+
6+
/**
7+
* <a href="http://d.android.com/tools/testing/testing_android.html">Testing Fundamentals</a>
8+
*/
9+
public class ApplicationTest extends ApplicationTestCase<Application> {
10+
public ApplicationTest() {
11+
super(Application.class);
12+
}
13+
}

SDK/app/src/main/AndroidManifest.xml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3+
package="com.starmicronics.starprntsdk">
4+
5+
<uses-permission android:name="android.permission.INTERNET" />
6+
<uses-permission android:name="android.permission.BLUETOOTH" />
7+
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN" />
8+
9+
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
10+
11+
<application
12+
android:allowBackup="true"
13+
android:icon="@mipmap/app_icon"
14+
android:roundIcon="@mipmap/app_icon_round"
15+
android:label="@string/app_name"
16+
android:theme="@style/AppTheme"
17+
android:resizeableActivity="false">
18+
19+
<activity
20+
android:name=".TitleActivity"
21+
android:theme="@style/TitleTheme"
22+
android:hardwareAccelerated="false"
23+
android:configChanges="orientation|screenSize"
24+
android:screenOrientation="portrait">
25+
26+
<meta-data android:name="android.hardware.usb.action.USB_DEVICE_ATTACHED" android:resource="@xml/device_filter" />
27+
28+
<intent-filter>
29+
<action android:name="android.intent.action.MAIN" />
30+
<category android:name="android.intent.category.LAUNCHER" />
31+
<action android:name="android.hardware.usb.action.USB_DEVICE_ATTACHED" />
32+
</intent-filter>
33+
</activity>
34+
35+
<activity
36+
android:name=".MainActivity"
37+
android:label="@string/app_name"
38+
android:screenOrientation="portrait" />
39+
40+
<activity
41+
android:name=".CommonActivity"
42+
android:screenOrientation="portrait" />
43+
44+
</application>
45+
46+
</manifest>

0 commit comments

Comments
 (0)