2016-08-15 21:29:41 +02:00
|
|
|
package me.impy.aegis;
|
|
|
|
|
2016-08-15 22:31:28 +02:00
|
|
|
import android.content.Intent;
|
2016-08-15 21:29:41 +02:00
|
|
|
import android.support.v7.app.AppCompatActivity;
|
|
|
|
import android.os.Bundle;
|
2016-08-15 22:31:28 +02:00
|
|
|
import android.view.View;
|
|
|
|
import android.widget.Button;
|
2016-08-15 21:29:41 +02:00
|
|
|
|
|
|
|
public class MainActivity extends AppCompatActivity {
|
|
|
|
|
2016-08-15 22:31:28 +02:00
|
|
|
Button btnScan;
|
2016-08-15 21:29:41 +02:00
|
|
|
@Override
|
|
|
|
protected void onCreate(Bundle savedInstanceState) {
|
|
|
|
super.onCreate(savedInstanceState);
|
|
|
|
setContentView(R.layout.activity_main);
|
2016-08-15 22:31:28 +02:00
|
|
|
|
|
|
|
btnScan = (Button) findViewById(R.id.button);
|
|
|
|
btnScan.setOnClickListener(new View.OnClickListener() {
|
|
|
|
@Override
|
|
|
|
public void onClick(View view) {
|
|
|
|
Intent scannerActivity = new Intent(getApplicationContext(), ScannerActivity.class);
|
|
|
|
startActivity(scannerActivity);
|
|
|
|
}
|
|
|
|
});
|
2016-08-15 21:29:41 +02:00
|
|
|
}
|
|
|
|
}
|