• sales

    +86-0755-88291180

Android SDK for NFC-Powered e-Paper

Import the .jar file

  • Download the SDK
    • Download the SDK and unzip it to get the .jar file
    • NFC SDK
  • Copy the Jar file to libs directory of your project.



  • Find the .jar file in your project, right-click it to add it as libraries.
 


  • After adding, the line will bee auto-added to build.gradle.:


Use guide

There are two functions provided, one is send function and any is status function.

Sent function

    Type
    Typee-Paper
    12.13inch
    22.9inch
    34.2inch
    47.5inch
    57.5inch HD
    62.7inch
    Pictures
    Typee-Paperwidthheight
    12.13inch250122
    22.9inch296128
    34.2inch400300
    47.5inch800480
    57.5inch HD880528
    62.7inch264176

    Status function

      • int b()
      • Return:
        • 0-100:The current process of sending.
        • -1:Failed

      Examples

      protected void onNewIntent(Intent intent) {//Recognized the NFC
          if (mWriteMode && NfcAdapter.ACTION_TAG_DISCOVERED.equals(intent.getAction())) {
              detectedTag = intent.getParcelableExtra(NfcAdapter.EXTRA_TAG);
              String[] tech = detectedTag.getTechList();//Get the descriptor
              if(tech[0].equals("android.nfc.tech.NfcA")) {//if the descriptor is correct
                  Thread t = new Thread() {//Create an new thread
                      @Override
                      public void run() {
                          Boolean success = false;
                          NfcA tntag;//NFC tag
      
                          final a  a = new a();//Create a new instance.
                          a.a();//初始化发送函数
      
                          Thread thread = new Thread(new Runnable() {//Create thread
                              @Override
                              public void run() {
                                  EPD_total_progress = 0;
                                  while(EPD_total_progress != -1){
                                      EPD_total_progress = a.b();//Read the process
                                      if(EPD_total_progress == -1){
                                          break;
                                      }
                                      setStatusBody(getString(R.string.txing) + EPD_total_progress +"%");
                                      if(EPD_total_progress == 100 ){
                                          break;
                                      }
                                      SystemClock.sleep(10);
                                  }
                              }
                          });
                          thread.start();//start the thread
                          tntag = NfcA.get(detectedTag);//Get the tag instance.
                          try {
                              int whether_succeed = a.a(tntag,Size_Flag, bmp_send);//Send picture
                              if(whether_succeed == 1){
                                  success = true; 
      
                                  runOnUiThread(new Runnable() {
                                      @Override
                                      public void run() {
                                          checkNFCpopwindow.dismiss(); //Tips
      
                                      }
                                  });
                                  Success_Sound_Effects();
      
                              }else{
                                  setStatusBody(getString(R.string.txfail));
                              }
      
                          } finally { 
                              try {
                                  if (success == false) {
                                      setStatusBody(getString(R.string.txfail));
                                      runOnUiThread(new Runnable() {
                                          @Override
                                          public void run() {
                                              checkNFCpopwindow.dismiss();
                                          }
                                      });
                                  }
                                  tntag.close();
                              } catch (IOException e) {//handle exception error
                                  e.printStackTrace();
                              }
                          }
                      }
                  };
                  t.start();//Start thread
              }
          }
      }
      TAG: R7FA4 PLUS B Development Board Based on R7FA4M1AB3CFM Compatible with Arduino UNO For R4 WiFi Arduino Thermal imaging camera Raspberry Pi MLX90641 MPS2280D Raspberry Pi 5 PCIe to M.2 NVMe Dual SSD Adapter Board HAT Pi5 Double 2280 Raspberry Pi 5 8mp Camera Spotpear Raspberry Pi Pico 2 P2350-Plus Smart Car Kit PicoGo2 Autonomous Driving Learning Car RV1103 Jetson Orin How to Use Product ROS2 Raspberry Pi 5 UART TTL To RS485 C Built-In Protection Circuits Raspberry Pi 5 USB to SPI Core3566004032 Desktop Ornament MPS2.5G Raspberry Pi 5 PCIe to NVME SSD And 2.5G Ethernet RJ45 HAT RTL8125 2280 2242 2230 LuckFox Pico max Raspberry Pi Pico 2 RP2350/RP2040 W5100S-EVB-Pico W6300-EVB-Pico2 Ethernet Development Board ETH RJ45 Raspberry Pi HQ Camera Official Original High Quality For M12 Lenses 12.3MP IMX477 Sensor