반응형
[Project Glue] Rest API와 로그인 체크
Android, iOS 2017. 1. 24. 19:14

그러고보니 다룰만한 것을 그냥 넘어가서찝찝해서 다시 다뤄보고자 글을 쓴다. 1String authorization = "Token "+ Networking.getToken();cs AddGroupPresenterImpl.java에서 토큰을 받아옴으로로그인 체크를 하게 된다.아래는 Networking.java이다. 123456789101112131415private static SharedPreferences loginCheck; public Networking(Context context){ this.context = context; // getSharedPreferences : 해당 프로세스(어플리케이션)내에 File 형태로 Data를 저장 // 로그인한뒤 받은 Response에서 쿠키정보를 안드로이드..

728x90
반응형