Android Studio: Can not resolve symbol 'setJobName'
This is my first trying using this SDK.
I am trying to print an existing PDF document using an HP LasetJet M605m.
My app already generates the PDF and saves it in /storage/emulated/0/folder/filename.pdf
I have added compile 'com.hp.mss:mobileprintsdk:v2.02.466' to my app gradle.
In the present_PQR.java activity file I decalred:
PDFAsset pdfAsset = new PDFAsset("/storage/emulated/0/folder/filename.pdf");
PrintItem printItemDefault = new PDFPrintItem(PrintItem.ScaleType.CENTER, pdfAsset);
PrintJobData printJobData = new PrintJobData(context, printItemDefault);
Before I could continue, I am getting an error here. setJobName is in red.
I have imported all classes including com.hp.mss.hpprint.model.PrintJobData although it is in grey as if it is unused.
I am not sure what I am dong wrong for the error to show.
Any help would be apprecaited!