Fundamental Notes/Android 58

Android : android.content.SharedPreferences

android.content.SharedPreferences : 간단한 어플리케이션의 데이터 저장하는 방법 SharedPreferences는 key/value로 맵핑된 한 쌍의 값을 어플리케이션에서 사용하여 동일한 context 하에서 어플리케이션 컴포넌트 간에 데이터를 공유할 수 있다. 기본 타입 : boolean, String, float, long, integer default, class의 인스턴트, 현재의 UI 상태, 사용자 설정의 값을 저장할 수 있다. → 사용자 세션유지 또는 어플리케이션 컴포넌트간의 셋팅값 공유 등을 하는 방법으로 쓰인다. 생성 방법 : 1. getSharedPreferences(Context의 method)를 이용해서 SharedPreferences의 인스턴스를 가져온다...

Android : Thread를 이용하여 setVisibility(View.INVISIBLE)

/* * Copyright (C) 2008 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed..