Skip to content Skip to sidebar Skip to footer

Unable To Resolve Static Method?

I'm new to android and heard about retrofit. But when I tried to implement this, I'm getting this error: 11-07 10:57:59.969 8036-8291/com.example.first.servicefirst W/dalvikvm�

Solution 1:

Your parsing of response is not correct. Check with this code

     call.enqueue(new Callback<ModelLogin>()
            {
                @Override
                public void onResponse(Response<ModelLogin> response, Retrofit retrofit)
                {

                    if(response.getLoginResult().getResult().equals("2")
                    {
                        Intent intent=new Intent(getApplicationContext(),Main2Activity.class);
                        startActivity(intent);
                    }

                }

Post a Comment for "Unable To Resolve Static Method?"