Advertisement
Guest User

Untitled

a guest
May 21st, 2019
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.25 KB | None | 0 0
  1. protected void onCreate(Bundle savedInstanceState) {
  2. super.onCreate(savedInstanceState);
  3. this.requestWindowFeature(Window.FEATURE_NO_TITLE);
  4. TokenFacade.initialize(getApplicationContext());
  5. setContentView(R.layout.activity_aktivacijska);
  6.  
  7. rez = findViewById(R.id.ispisRezAkt);
  8.  
  9. Intent intent = getIntent();
  10. String action = intent.getAction();
  11. String type = intent.getType();
  12.  
  13. if (Intent.ACTION_SEND.equals(action) && type != null) {
  14. if ("text/plain".equals(type)) {
  15. handleSendText(intent); // Handle text being sent
  16. }
  17. }
  18.  
  19.  
  20.  
  21. aktPolje = this.findViewById(R.id.unosAktKodaAkt);
  22. pinpolje = this.findViewById(R.id.unosPinaAkt);
  23.  
  24.  
  25. Button gumb = this.findViewById(R.id.btnAktivacijeAkt);
  26. gumb.setOnClickListener(new View.OnClickListener() {
  27. @RequiresApi(api = Build.VERSION_CODES.KITKAT)
  28. @Override
  29. public void onClick(View v) {
  30.  
  31. new MyTask().execute(LICENCE_KEY, tokenName);
  32. /* Toast toast = Toast.makeText(getApplicationContext(), "Provjera", Toast.LENGTH_SHORT);
  33. toast.show();*/
  34. }
  35. });
  36.  
  37.  
  38. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement