본문 바로가기

전체 글

(28)
[mongoDB] CRUD 기본 문법 Collection Url MongoDB\Collection Class — PHP Library Manual 1.10-dev docs.mongodb.com 1. Insert 1-1) insertOne $insertOneResult = $collection->insertOne(['_id' => 1, 'name' => 'Alice']); _id : _id 추가시 데이터 id값 생성 가능 1-2) insertMany $insertManyResult = $collection->insertMany([ [ 'username' => 'admin', 'email' => 'admin@example.com', 'name' => 'Admin User', ], [ 'username' => 'test', 'email' => '..
[Android/안드로이드] Context란? 1. 공식문서 정의 안드로이드 공식 문서의 context의 정의부터 살펴보자. Interface to global information about an application environment. This is an abstract class whose implementation is provided by the Android system. It allows access to application-specific resources and classes, as well as up-calls for application-level operations such as launching activities, broadcasting and receiving intents, etc. 여기서 눈여겨 봐야할 부분은 크게..
[Android/안드로이드] Fragment ( 프래그먼트 ) 정리 프래그먼트의 정의 및 생명주기에 대한 부분은 앞서 포스팅한 게시글을 참조하시면 됩니다. [Android/안드로이드] Activity/Fragment 생명 주기 1. Activity 생명 주기 액티비티의 생명 주기는 7가지로 구성되어 있다. 아래에서 각각의 생명 주기에 대해 알아보자. 1-1) onCreate() 액티비티의 생명 주기가 진행되는 동안 초기화되어 있어야 하는 leehochang.tistory.com 1. FragmentManager 액티비티내에서 프래그먼트를 관리하는 객체이다. Fragment Transaction을 통한 프래그먼트 추가, 삭제, 교체 등 작업을 할 수 있다. 또한 백 스택에 추가, 삭제 등의 작업도 가능하다. 1-1) FragmentManager 접근 액티비티에서 접근 ge..