Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- protected void onCreate(Bundle savedInstanceState) {
- super.onCreate(savedInstanceState);
- this.requestWindowFeature(Window.FEATURE_NO_TITLE);
- TokenFacade.initialize(getApplicationContext());
- setContentView(R.layout.activity_aktivacijska);
- rez = findViewById(R.id.ispisRezAkt);
- Intent intent = getIntent();
- String action = intent.getAction();
- String type = intent.getType();
- if (Intent.ACTION_SEND.equals(action) && type != null) {
- if ("text/plain".equals(type)) {
- handleSendText(intent); // Handle text being sent
- }
- }
- aktPolje = this.findViewById(R.id.unosAktKodaAkt);
- pinpolje = this.findViewById(R.id.unosPinaAkt);
- Button gumb = this.findViewById(R.id.btnAktivacijeAkt);
- gumb.setOnClickListener(new View.OnClickListener() {
- @RequiresApi(api = Build.VERSION_CODES.KITKAT)
- @Override
- public void onClick(View v) {
- new MyTask().execute(LICENCE_KEY, tokenName);
- /* Toast toast = Toast.makeText(getApplicationContext(), "Provjera", Toast.LENGTH_SHORT);
- toast.show();*/
- }
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement