E / ViewRootImpl: sendUserActionEvent () вернул ошибку - PullRequest
0 голосов
/ 21 октября 2019

Эта ошибка произошла после перехода на Androidx, я не могу понять, потому что мое приложение не работает и не может выполнять какие-либо функции. ниже приведен код для страницы входа в систему, и при входе в систему появляется ошибка, помогите решить ее

       ```     final String username = etUserName.getText().toString();
            final String password = etPassword.getText().toString();
            Response.Listener<String> responseListner = new Response.Listener<String>() {
                @Override
                public void onResponse(String response) {
                    try {
                        JSONObject jsonResponse = new JSONObject(response);
                        boolean success = jsonResponse.getBoolean("success");

                        if (success) {
                            SharedEmail.setText(jsonResponse.getString("username"));
                            SharedName.setText(jsonResponse.getString("name"));
                            String name = jsonResponse.getString("name");
                            String username = jsonResponse.getString("username");
                            String password = jsonResponse.getString("password");
                            String email = jsonResponse.getString("email");
                            String Complaints = jsonResponse.getString("Complaint");
                            String Upsellings = jsonResponse.getString("Upselling");
                            String Concierges = jsonResponse.getString("Concierge");

                            //Save ShardPref ***************************************************
                            SharedPreferences.Editor editor = sharedpreferences.edit();
                            editor.putString(Name, name1.getText().toString());
                            editor.putString(Email, email1.getText().toString());
                            editor.putString(UserN, username1.getText().toString());
                            editor.putString(EmailEmail, emailemail.getText().toString());
                            editor.putString(Complaint, Complaints);
                            editor.putString(Upselling, Upsellings);
                            editor.putString(Concierge, Concierges);
                            editor.commit();

                            deviceInfo();

                            Intent intent = new Intent(LoginActivity.this, MainMenu.class);
                            LoginActivity.this.startActivity(intent);
                            overridePendingTransition(R.anim.slide_in, R.anim.slide_out);

                            //get ShardPref for Toast *******************************************
                            getScore();
Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...