0

I'd like to know how I can connect the Epson ePOS SDK to Android using Flutter.

From what I've learned, the SDK isn't available for download and installation in my project. Therefore, I need to write Android natively using AndroidManifest.xml, res/xml/device_filter.xml, and build.gradle

The details are as follows:

AndroidManifest.xml

<meta-data
  android:name="io.flutter.embedding.android.NormalTheme"
  android:resource="@style/NormalTheme"
/>
<intent-filter>
   <action android:name="android.intent.action.MAIN"/>
   <action android:name="android.hardware.usb.action.USB_DEVICE_ATTACHED" />
   <category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
   <meta-data android:name="android.hardware.usb.action.USB_DEVICE_ATTACHED"
   android:resource="@xml/device_filter" />

android/res/xml/device_filter.xml

<?xml version="1.0" encoding="utf-8"?>
<resources>
    <usb-device vendor-id="1208" />
</resources>

and android/app/build.gradle

dependencies {
    implementation "androidx.core:core-ktx:1.6.0"
    implementation 'com.epson.epos2:epos2-android:5.15.0'
}

I'd like to know what I should do next to integrate the SDK into Android using Flutter.

I studied the documentation attached below and used chatGPT to help me a little.

If you guys can help me, I would appreciate it, and thanks in advance for your answers.

Epson ePOS SDK for Android

Epson epos SDK user manual

How to

3
  • Unclear if you've seen: docs.flutter.dev/platform-integration/platform-channels however StackOverflow is for specific questions generally with code / error logs. Note: Why is "Can someone help me?" not a useful question? Commented Sep 1 at 11:11
  • Thank you for your comment. I'll try using Flutter platform-channel. And thanks again for the tips on how to post. This is my first time posting, and it's very helpful. I'll try to post better in the future. Commented Sep 2 at 2:58
  • Hi from where did you get. implementation 'com.epson.epos2:epos2-android:5.15.0' I've been looking around for an SDK online but all documents do not point to an actual sdk Commented Sep 4 at 14:32

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.