Unable to access changed value of variable from another class in android studio

后端 未结 2 1636

I have created two class one is LoginSignupActivity.java and another is ProfileActivity.java

LoginSignUpActivity.java---

        public class LoginSi         


        
2条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-22 07:56

    Try to make id public and I think you should get it throw LoginSignUpActivity.id

    If the login is for one time only I recommand you to use SharedPreference.

提交回复
热议问题