I am trying to integrate a jar as an external library into my ABMaterial app to talk to cups print server on linux.
I really cannot get my head around this and ask for help. Here is my code so far.
The first issue is i can not set the ip and user under CupsClient. As an example could someone please show some code to 1) intialise the object and 2) run the "getPrinters" method.
The link to the API or Jar is http://cups4j.org/api/docs/api/
The doc I have pasted below.
Much Thanks in advance.
I really cannot get my head around this and ask for help. Here is my code so far.
B4X:
Dim printerlist As List
Dim cups As JavaObject
cups.InitializeStatic("org.cups4j.CupsClient")
printerlist = cups.RunMethod("getPrinters", Null )
Log( printerlist )
The first issue is i can not set the ip and user under CupsClient. As an example could someone please show some code to 1) intialise the object and 2) run the "getPrinters" method.
The link to the API or Jar is http://cups4j.org/api/docs/api/
The doc I have pasted below.
Much Thanks in advance.
Last edited by a moderator: