안드로이드 개발 질문/답변
(글 수 45,052)
로그인
HttpPost httppost = new HttpPost("https://www.google.com/accounts/ServiceLogin?service=mobile&passive=" + "true&cd=KR&hl=ko&continue=http%3A%2F%2Fwww.google.com%2Fm%3Fsource%" + "3Dandroid-home%26client%3Dms-android-google<mpl=m&btmpl=mobile"); List<NameValuePair> nameValuePairs = new ArrayList<NameValuePair>(2); nameValuePairs.add(new BasicNameValuePair("id", "아이디")); nameValuePairs.add(new BasicNameValuePair("passwd", "비번")); httppost.setEntity(new UrlEncodedFormEntity(nameValuePairs)); HttpResponse response = client.execute(httppost);
이런 식으로 한후에 구글에 들어가보면 로그인 된 상태로 나올줄 알았는데 안되네요. 방향을 잘못잡은건가요? 사용법이 틀린건가요?