기본 콘텐츠로 건너뛰기

Android with Firebase

[#104][안드로이드] Firebase Google Login한 사용자 이름과 프로필사진 띄우기

[안드로이드] Firebase Google Login한 사용자 이름과 프로필사진 띄우기 1. FirebaseAuth 객체를 통해 현재 로그인한 사용자 가져오기 mAuth  =  FirebaseAuth.getInstance(); final  FirebaseUser user  =  mAuth.getCurrentUser(); cs 2. uri를 bitmap으로 변환하여 CircularImgeView에 띄우기  CircularImageView user_profile  =  view.findViewById(R.id.user_profile);         Thread mThread =   new  Thread(){             @Override              public   void  run() {                  try {                     URL url  =   new  URL(user.getPhotoUrl(). toString ());                     HttpURLConnection conn  =  (HttpURLConnection) url.openConnection();                     conn.setDoInput( true );                     conn.connect();                     InputStream is  =  conn.getInputStream();                     bitmap  =  BitmapFactory.decodeStream(is);                 }  catch  (MalformedURLException ee) {                     ee.printStackTrace();                 } catch  (IOException e){               

최근 글

[#137][면접] 한화 에스엔씨 / 한화 S&C 코딩테스트(코드파이), 1차 면접 후기

[#136][알고리즘][면접] 코딩면접 준비하기 - 정렬

[#135][알고리즘][면접] 코딩면접 준비하기