Developing Android App for POS Terminals .

Posted in: Blog

One of our Appdev360 engineers Khizar Hayat encountered an issue on POS Terminals while working with a client. Previously, bulky POS Terminals used to run heavy peripheral devices for tracking the list of items and generating bills. The POS Terminals were not remote as they had to be placed on the cash counter for users to reach them. A solution was required that could help our client’s business deal the following problems:

  • Mobility
  • Space
  • Cost

Khizar conducted an in-depth research to find a device already available in the market for fulfilling the client’s requirements. He came up with a smart POS Terminal named “Sunmi V1 POS Terminal”. This POS terminal device had an Android 5.1 operating system with a built-in printer and a hand-held scanner. Along with this device came an SDK for creating additional applications.

Khizar developed an Android app using the provided SDK and connected to a mobile POS device. He successfully incorporated features such as taking orders, capturing bills and printing out the receipt.

Code

Following code was used to print texts or images, if any:

Bitmap mBitmap;
    public void printText(final String text) {
        ThreadPoolManager.getInstance().executeTask(new Runnable() {

            @Override
            public void run() {
                if (mBitmap == null) {
                    mBitmap = BitmapFactory.decodeResource(getResources(), R.drawable.tick);
                }
                try {
                    woyouService.printBitmap(mBitmap, callback);
                    woyouService.setFontSize(24, callback);
                    woyouService.printTextWithFont(text + "\n", "", 35, callback);
                } catch (Exception e) {
                    e.printStackTrace();
                }
            }
        });
    }

 

4 thoughts on “Developing Android App for POS Terminals

  1. could you help me in IMPLEMENTATION of the woyouService ?

    Thank you for your help and assistance

    1. Mahmoud,

      Yes, we can do the implementation of woyouService.

      For this, we’ll need to know which printer you want to use along with the sample format that you would like to print.

      Regards,
      Support Department
      Appdev360

      1. Hi, I have problem with sunmi printer V1. I just want to sign in for debugger, but device show error message “Failed to get code, please try later..”. Im register in partner admin and registered in debugger

        1. Hi. Did you solve this problem? i have the same issue 🙁

Leave a Reply

Your email address will not be published. Required fields are marked *