I am having trouble to start this
I have a new POS system with a printer that is part of it. THey say the way access it is by
import com.elgin.e1.Impressora.Termica
However they do no provide any file.
Could it be a Intent Service? if so how could I access it?
They provide an example for Java: compiling it on B4A does not work since this import is not found.
I am lost.
I have a new POS system with a printer that is part of it. THey say the way access it is by
import com.elgin.e1.Impressora.Termica
However they do no provide any file.
Could it be a Intent Service? if so how could I access it?
They provide an example for Java: compiling it on B4A does not work since this import is not found.
I am lost.
B4X:
// ...
import acom.elgin.e1.Impressora.Termic;
public class MainActivity extends AppCompatActivity { // AppCompatActivity e' um subtipo de Activity
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
Termica.setContext(this);
Termica.AbreConexaoImpressora(6, "M8", "", 0);
}
@Override
protected void onDestroy() {
super.onDestroy();
Termica.FechaConexaoImpressora();
}
// Essa funcao pode ser chamada em um botao, por exemplo
private int Avanca50linhas() {
int retorno = Termica.AvancaPapel(50);
return retorno;
}
}
// ...