Dear all,
I have code from android studio `
PrinterTextParserImg.bitmapToHexadecimalString(printer, this.getApplicationContext().getResources().getDrawableForDensity(R.drawable.logo, DisplayMetrics.DENSITY_MEDIUM);
`
I want implements to App Inventor Extension function,How to fix?
Implements for "R.drawable.logo"?
I have try :
@SimpleFunction
public String DrawableToHexadecimalString(String logo){
return PrinterTextParserImg.bitmapToHexadecimalString(printer, container.$context().getResources().getDrawableForDensity(logo, DisplayMetrics.DENSITY_MEDIUM));
}
Thanks before,
Regard,
kangris