I have created two class one is LoginSignupActivity.java and another is ProfileActivity.java
LoginSignUpActivity.java---
public class LoginSi
Try to make id public and I think you should get it throw LoginSignUpActivity.id
LoginSignUpActivity.id
If the login is for one time only I recommand you to use SharedPreference.