Hello nisrulz,
I have two smartphone:
1 - Note 4 with Android 6.01 and all is OK;
2 - Chinese phone with Android 6.0 and screen is black; when I press START/STOP the button text is always STOP.
Inside onCreate():
stateBtn.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
if (qrEader.isCameraRunning()) { // THIS PIECE OF CODE IS NEVER EXECUTED!!
stateBtn.setText(getString(R.string.btn_start_qrcode));
qrEader.stop();
}
else {// THIS PIECE OF CODE IS ALWAYS EXECUTED!!
stateBtn.setText(getString(R.string.btn_stop_qrcode));
qrEader.start();
}
}
});
Hello nisrulz, I have two smartphone: 1 - Note 4 with Android 6.01 and all is OK; 2 - Chinese phone with Android 6.0 and screen is black; when I press START/STOP the button text is always STOP. Inside onCreate(): stateBtn.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { if (qrEader.isCameraRunning()) { // THIS PIECE OF CODE IS NEVER EXECUTED!! stateBtn.setText(getString(R.string.btn_start_qrcode)); qrEader.stop(); } else {// THIS PIECE OF CODE IS ALWAYS EXECUTED!! stateBtn.setText(getString(R.string.btn_stop_qrcode)); qrEader.start(); } } });
Any idea? Thanks in advance. Rocco