2019-12-29 00:10:44 +01:00
|
|
|
package com.example.lookifyv2;
|
|
|
|
|
|
|
|
import androidx.appcompat.app.AppCompatActivity;
|
|
|
|
|
|
|
|
import android.content.Intent;
|
2020-02-23 00:20:49 +01:00
|
|
|
import android.graphics.PorterDuff;
|
2019-12-29 00:10:44 +01:00
|
|
|
import android.os.Bundle;
|
|
|
|
import android.view.View;
|
|
|
|
import android.widget.Button;
|
|
|
|
|
|
|
|
public class DecodeFail extends AppCompatActivity {
|
|
|
|
|
|
|
|
private Button button_tryagain;
|
|
|
|
private Button button_backtomain;
|
|
|
|
|
|
|
|
@Override
|
|
|
|
protected void onCreate(Bundle savedInstanceState) {
|
|
|
|
super.onCreate(savedInstanceState);
|
|
|
|
setContentView(R.layout.activity_decode_fail);
|
|
|
|
|
|
|
|
button_tryagain = findViewById(R.id.try_again_button);
|
2020-02-23 00:20:49 +01:00
|
|
|
button_tryagain.getBackground().setColorFilter(0xFF67BAFF, PorterDuff.Mode.MULTIPLY);
|
2019-12-29 00:10:44 +01:00
|
|
|
button_backtomain = findViewById(R.id.backto_main_button);
|
2020-02-23 00:20:49 +01:00
|
|
|
button_backtomain.getBackground().setColorFilter(0xFF67BAFF, PorterDuff.Mode.MULTIPLY);
|
2019-12-29 00:10:44 +01:00
|
|
|
|
|
|
|
button_tryagain.setOnClickListener(new View.OnClickListener() {
|
|
|
|
@Override
|
|
|
|
public void onClick(View v) {
|
|
|
|
openScan();
|
|
|
|
}
|
|
|
|
});
|
|
|
|
button_backtomain.setOnClickListener(new View.OnClickListener() {
|
|
|
|
@Override
|
|
|
|
public void onClick(View v) {
|
|
|
|
Finish();
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
public void Finish(){
|
|
|
|
finish();
|
|
|
|
}
|
|
|
|
|
|
|
|
public void openScan(){
|
|
|
|
Intent intent_Scan = new Intent(this, TakePhoto.class);
|
|
|
|
startActivity(intent_Scan);
|
|
|
|
finish();
|
|
|
|
}
|
|
|
|
}
|