Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void login() {
- username = (EditText)findViewById(R.id.usernameinput);
- debugtexttt = (EditText)findViewById(R.id.debugtext);
- password = (EditText)findViewById(R.id.passwordinput);
- Ion.with(getApplicationContext()).load("http://furryfan.cf/app/login.php?username=" + username + "&password=" + password).asString()
- .setCallback(new FutureCallback<String>() {
- @Override
- public void onCompleted(Exception e, String result) {
- debugtexttt.setText("http://furryfan.cf/app/login.php?username=" + username + "&password=" + password);
- if(result == "1"){
- loginsuccess();
- }else{
- debugtexttt.setText(e.toString());
- }
- }
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement