본문 바로가기

안드로이드51

listView 원격이미지 [Android] xml에 ImageButton을 잡아놓고 HttpURLConnection와 InputStream으로 BitmapFactory을 써서 비트맵에 담은후 이미지 버튼에 넣어 사진이 들어갈부분을 웹뷰로 바꿔주고 클릭과 포커스를 false로 해준다. 그리고 javaActivity에서 WebView thumbnail = (WebView)v.findViewById(R.id.youtubethumbnail); if(thumbnail != null){ thumbnail.loadUrl("이미지의 원격주소"); } 이렇게 소스를 추가해주면 끝이다. 기존에 내가 작성했던 소스가 50줄이 넘으니 정말 간단하게 줄였다 :) 게다가 이미지의 비트맵재가공이 없으니 속도도 매우 빨라졌다. 한가지 조심할점이 있다면 xml에서 clicka.. 2015. 12. 14.
WebView Facebook Login (popup/redirection issues) [Android] Android WebView Facebook Login (popup/redirection issues)up vote3down votefavorite1how is everyone?I am working on a simple mobile application utilizing WebView. My website utilizes a layout giving it the appearance of a native app. I also allow users to login with their facebook account into my website. Here are my scenarios** WORKS ** From PC/Chrome: Can access the mobile site URL, login with .. 2015. 12. 14.
http 요청 [Android] 서론현재 시중에 나와 있는 안드로이드 책은 모두 Http로 데이터를 요청하는 예제만 수록하고 있다. 하지만 안드로이드 앱을 개발할 때 http 요청만 처리하는 것이 아니다. https 요청을 http와 동일하게 사용할수는 없다. 이번 프로젝트에서 https로 로그인 관련 작업을 하면서 우리가 안드로이드를 개발할 때 흔히 사용하는HttpClient로 https를 요청할 수 없다는 것을 확인하고 방법을 찾아서 해결했는데 그 방법에 대해서 포스팅하고자 한다.Https 서버구축첫번째로 우리가 해야할 일은 Https 서버를 구축해야한다. 하지만 개인 앱 개발자는 대부분 서버를 가지고 있지 않거나, 서버 작업을 하기 힘든 상황이다. 그래서 이전 포스팅에 OpenSSL과 Node.js를 사용해서 Https 서버를 구.. 2015. 12. 14.
facebook [Android] Master Facebook's OAuth process in AndroidHere we'll show you how to go through the Facebook OAuth process, which lets any Facebook user log in to Facebook and grant your app access to their account. Our simple app simply logs users in and displays some info about their Facebook profile.RUN OUR FACEBOOK OAUTH EXAMPLE1 Log in to Temboo. If you don't already have an account, you can register for f.. 2015. 12. 14.