Advertisement
bluethefox

Untitled

Aug 9th, 2018
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.90 KB | None | 0 0
  1.  public void login() {
  2.  
  3.         username  = (EditText)findViewById(R.id.usernameinput);
  4.         debugtexttt  = (EditText)findViewById(R.id.debugtext);
  5.         password  = (EditText)findViewById(R.id.passwordinput);
  6.  
  7.         Ion.with(getApplicationContext()).load("http://furryfan.cf/app/login.php?username=" + username + "&password=" + password).asString()
  8.                 .setCallback(new FutureCallback<String>() {
  9.                     @Override
  10.                     public void onCompleted(Exception e, String result) {
  11.                         debugtexttt.setText("http://furryfan.cf/app/login.php?username=" + username + "&password=" + password);
  12.                         if(result == "1"){
  13.  
  14.                             loginsuccess();
  15.                         }else{
  16.                         debugtexttt.setText(e.toString());
  17.                         }
  18.                     }
  19.                 });
  20.  
  21.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement