i use this code
PPP.GetName show error java.lang.RuntimeException: Method: getName not found
B4X:
Dim P As Printer = Printer_Static.GetDefaultPrinter
Log(P.GetName)
For Each PP As JavaObject In P.GetPrinterAttributes.GetSupportedPapers
Dim PPP As Paper
PPP.Initialize
PPP.SetObject(PP)
Log(PPP.ToString)
Log(PPP.GetName)
Next