GithubHelp home page GithubHelp logo

urovosamples / sdk_releaseforandroid Goto Github PK

View Code? Open in Web Editor NEW
48.0 4.0 24.0 2.38 MB

This repository contains all the samples files for Urovo Android Smart POS Payment Terminal;Handheld Data Terminal, including the revision history.

HTML 73.88% CSS 19.69% JavaScript 6.42%

sdk_releaseforandroid's Issues

DT40 PrinterManger java.lang.RuntimeException: stub

05/27 21:45:14: Launching 'PrinterManager' on Urovo DT40.
$ adb shell am start -n "com.example.printersample/com.example.printersample.PrinterManagerActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER
Waiting for process to come online...
Connected to process 8186 on device 'urovo-dt40-4923be62'.
Capturing and displaying logcat messages from application. This behavior can be disabled in the "Logcat output" section of the "Debugger" settings page.
I/Adreno: QUALCOMM build : f161b04, I0380b38922
Build Date : 04/06/19
OpenGL ES Shader Compiler Version: EV031.25.03.03
Local Branch :
Remote Branch :
Remote Branch :
Reconstruct Branch :
Build Config : S L 6.0.7 AArch64
I/Adreno: PFP: 0x005ff110, ME: 0x005ff066
I/ConfigStore: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasWideColorDisplay retrieved: 0
I/ConfigStore: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasHDRDisplay retrieved: 0
I/OpenGLRenderer: Initialized EGL, version 1.4
D/OpenGLRenderer: Swap behavior 2
I/mPrinterManager: ------- position -------0
I/mPrinterManager: ------- mBarcodeTypeValue -------3
D/PrinterManagerActivity: ---------set PrinterSpeed = 1
D/AndroidRuntime: Shutting down VM
E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.example.printersample, PID: 8186
java.lang.RuntimeException: stub
at android.device.PrinterManager.open(PrinterManager.java:79)
at com.example.printersample.PrinterManagerActivity.getPrinterManager(PrinterManagerActivity.java:308)
at com.example.printersample.PrinterManagerActivity.access$200(PrinterManagerActivity.java:36)
at com.example.printersample.PrinterManagerActivity$2.onClick(PrinterManagerActivity.java:148)
at android.view.View.performClick(View.java:6597)
at android.view.View.performClickInternal(View.java:6574)
at android.view.View.access$3100(View.java:778)
at android.view.View$PerformClick.run(View.java:25896)
at android.os.Handler.handleCallback(Handler.java:873)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:193)
at android.app.ActivityThread.main(ActivityThread.java:6747)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:860)

EAN 13

currentY = printerManager.drawBarcode(messageToPrint, stringFromX, stringFromY, barCodeType, barCodeWidth, barCodeHeight, rotation);

I don't now why, but if i start with
messageToPrint == "4006127013035",
stringFromX == 0,
stringFromY == 0,
barCodeType == 13,
barCodeWidth == 3,
barCodeHeight == 60,
rotation == 0,
then nothing not going on. Errors does not appears, currentY always 0, and nothing does n't printing!

Please help!!!

Cant register broadcast for scanner

Hello!
I`m using UROVO DT40 and trying to use integrated scanner. So after this some searchs found only this repo. After some look on ScanManager Sample found that you register broadcast to get result after result, but cant find realise for register(unregister) broadcast. Because there is no reference on this method. IDE found problem that there is not function with this parameters, but if build and run app - everything is fine.
PROBLEM: Cant understand how to register broadcast reciver for scanned code.

private void registerReceiver(boolean register) {
        if (register && mScanManager != null) {
            IntentFilter filter = new IntentFilter();
            int[] idbuf = new int[]{PropertyID.WEDGE_INTENT_ACTION_NAME, PropertyID.WEDGE_INTENT_DATA_STRING_TAG};
            String[] value_buf = mScanManager.getParameterString(idbuf);
            if (value_buf != null && value_buf[0] != null && !value_buf[0].equals("")) {
                filter.addAction(value_buf[0]);
            } else {
                filter.addAction(ACTION_DECODE);
            }
            filter.addAction(ACTION_CAPTURE_IMAGE);

            registerReceiver(mReceiver, filter); // <- THIS ONE
        } else if (mScanManager != null) {
            mScanManager.stopDecode();
            unregisterReceiver(mReceiver); // <- AND THIS 
        }
    }

Error on Write data PicManager

I need help, I have followed the steps based on the examples for writing mifare classic 1k cards NFC blocks, but the "m1_writeBlock" method always returns -1. Is there a way to trace the error and know what happens?

Thanks.

import android.device issue

import android.device error while import device package

import android.device.scanner.configuration.Constants;
import android.device.scanner.configuration.PropertyID;
import android.device.scanner.configuration.Symbology;
import android.device.scanner.configuration.Triggering;

Not reciver Data when scanner QRCode

Hi Team
I have a problem. I don't have received the data result when scanner the QRcode by DT50 Devices.

It doesn't the listener function
// Get scan results, including string and byte data etc.
byte[] barcode = intent.getByteArrayExtra(DECODE_DATA_TAG);
int barcodeLen = intent.getIntExtra(BARCODE_LENGTH_TAG, 0);
byte temp = intent.getByteExtra(BARCODE_TYPE_TAG, (byte) 0);
String barcodeStr = intent.getStringExtra(BARCODE_STRING_TAG);
if (mScanCaptureImageShow) {
// Request images of this scan
context.sendBroadcast(new Intent(ACTION_DECODE_IMAGE_REQUEST));
}
LogI("barcode type:" + temp);
String scanResult = new String(barcode, 0, barcodeLen);
// print scan results.
scanResult = " length:" + barcodeLen + "\nbarcode:" + scanResult + "\nbytesToHexString:" + bytesToHexString(barcode) + "\nbarcodeStr:" + barcodeStr;
Message msg = mHandler.obtainMessage(MSG_SHOW_SCAN_RESULT);
msg.obj = scanResult;
mHandler.sendMessage(msg);

Text justification

Hello,
It seems that your SDK does not support text justification. For example, we want to print from the right side of the paper instead of the left hand side:

Hello
Hello (must be printed at right)

Printing first Hello at the left is OK, but how to print the second Hello at the right?

ScannerManager crash

运行ScanManager直接crash报错:求群主帮忙解决

Caused by: java.lang.RuntimeException: stub
at android.device.ScanManager.getScannerState(ScanManager.java:258)
at com.scan.demo.ScanManagerDemo.initScan(ScanManagerDemo.java:457)
at com.scan.demo.ScanManagerDemo.onResume(ScanManagerDemo.java:769)
at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1269)
at android.app.Activity.performResume(Activity.java:6789)

payment integration

I have used MagManager sample for swiping card & get information. But what is the next step to perform for PIN verification & pay some amount to merchant? Please share some flow or detailed documentation.

Printer Maganer

PrinterManagerActivity.java line 304 mPrinterManager.open();
error:
2020-09-17 11:22:01.802 24355-24370/com.example.printersample E/AndroidRuntime: FATAL EXCEPTION: Thread-2
Process: com.example.printersample, PID: 24355
java.lang.RuntimeException: stub
at android.device.PrinterManager.open(PrinterManager.java:79)
at com.example.printersample.PrinterManagerActivity.getPrinterManager(PrinterManagerActivity.java:304)
at com.example.printersample.PrinterManagerActivity.access$200(PrinterManagerActivity.java:35)
at com.example.printersample.PrinterManagerActivity$CustomThread$1.handleMessage(PrinterManagerActivity.java:513)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:154)
at com.example.printersample.PrinterManagerActivity$CustomThread.run(PrinterManagerActivity.java:522)

Failed to open library

Hi,
In my project, when I want to use SDK with a DT50, I have this message, on the PiccReader open :
--> Failed to open 'libpicc_jni.so'

Is this a known issue ? I have no problem with other models...

Thanks.

P8100 doesn't return barcode type for GS1 QR Code and GS1 DataMatrix

When I scan the below 2 barcodes using a P8100 device I get the barcode data correctly but barcode type it returns NONE. Although when I scan the same 2 barcodes using a DT50 device then I get barcode type as QRCODE and DATAMATRIX respectively. I assumed that the Urovo Scanner SDK will return the same barcode type on every Urovo Scanner device.

GS1 QR Code - https://barcode.tec-it.com/en/GS1QRCode?data=010123456789012890TEC-IT%5CF8200https%3A%2F%2Fwww.tec-it.com&translate-esc=true&eclevel=L&dmsize=Default
GS1 DataMatrix - https://barcode.tec-it.com/en/GS1DataMatrix?data=01012345678901281721022110ABCD1234%5CF217654&translate-esc=true&eclevel=L&dmsize=Default

Where are the official docs?

According to readme:
"""Need more information about getting started with Urovo Android device? Check the [official docs][getting-started]."""

But where are they?

PiccManager apduTransmit maximum data length

Hi!

We are trying to use PiccManager's apduTransmit method to send extended APDU command, but run in to the following error:

FORTIFY: memcpy: prevented 792-byte write into 512-byte buffer

Does 512-byte limit that is imposed by apduTransmit method comes from software or hardware?

We are using Urovo i9000S running Android 8.1.0

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.