SAP Fiori Cordova Plugin to connect an external Honeywell printer

We all know that SAP Fiori comes with a set of Cordova plugins using which we can access the native features of the mobile device, e.g. Phone Camera, to our Fiori application. This is a very useful feature with which we can use the same Fiori application to run in the browser and also on the mobile device with some of the native capabilities.

But what if we need to connect to an external device, e.g. Printer? What if the plugin does not exist? 

In this scenario, we experimented with connecting an Android application to a Honeywell Bluetooth Printer.

Let’s print “Hello World”?

Here we are going to develop a simple Android application with which we will print “Hello World” on the external Honeywell Printer.

Below is the project structure for the Android Application.

No alt text provided for this image

Writing the Print function

Now we need to write the Print function from where we will call the required methods of the jar file. As you can see we have to create an object and call the functions using that object. 

No alt text provided for this image

Permissions - Manifest file

As this app is going to use Bluetooth, we need to ensure that the permission is given by the user in order to run the application properly. We would need the following 2 permissions to be given.

No alt text provided for this image


Run the application

Now that your Class is ready, build your Custom Plugin in the way we discussed in one of our earlier blogs. Add this custom plugin to your application, and Voila, your application is ready to print.

@Team ROITech - Your SAP Fiori Factory,

Hope you found this blog interesting and useful. In case if you come across any problems with SAP Fiori, we would be happy to help you with a solution.


要查看或添加评论,请登录

Satyaki Basak的更多文章

  • Native vs Hybrid- What to choose for business?

    Native vs Hybrid- What to choose for business?

    Comparison between Native and Hybrid Mobile Applications This is one common doubt we all keep getting time and again…

  • Integrate external devices with SAP Fiori Application.

    Integrate external devices with SAP Fiori Application.

    This is one of the common requirements which we come across in many customer scenarios where the request is to…

    3 条评论
  • SAP Fiori Launchpad performance

    SAP Fiori Launchpad performance

    SAP Fiori launchpad is the entry point to SAP Fiori apps on mobile and desktop devices. It is a shell that hosts SAP…

    1 条评论
  • SAP Fiori for iOS - design Guidelines

    SAP Fiori for iOS - design Guidelines

    After the recent announcement of the SAP and Apple partnership, there has been a big curiosity in the developer…

  • SAP Fiori Cloud Edition (SFCE) - All you need to know about it

    SAP Fiori Cloud Edition (SFCE) - All you need to know about it

    We talked about the different options available with SAP Fiori. Lets now look into the SAP Fiori Cloud which is slowly…

    1 条评论
  • SAP Fiori - Let's look at the available options

    SAP Fiori - Let's look at the available options

    Using modern UX design principles, SAP Fiori delivers a role-based, consumer-grade user experience across all lines of…

    3 条评论

社区洞察

其他会员也浏览了