1. The Activity Class- provide a visual interface for user interaction- each activity typically supports one focused thing a user can do, such as viewing an email message showing a login screen application often comprise multiple activities 2. The Task BackStack*Navigation through activities android supports navigation in several ways: Tasks - a task is a set of related activities - these relate..
4 building blocks all android application built1. activity - main class, Gui long-running or background operations2. services3. broadcast receivers - listen for and respond to events4. content provider - multiple applications to store and share data applications- apps are made from components- android instantiates and runs them as needed- each component has its own purpose and apis activity- pri..
Android SDK- IDE, debugger, emulator, company domain its reverse and unique Android emulator is really slowno support for Bluetooth connectivity and no support for connecting accessories to the emulator via USB cableshe emulator is not the device. You can't really know how your app is going to look and perform on an actual device just by looking at how it performs in the emulator can configure t..
The Android platform is a software stack Android also comes with a software developers kit, or here's tons of documentation, tutorials, blogs, and examples . At the bottom there's the Linux kernel layer. Above that, there are system libraries and the Android run time system. Above that, there's a rich application framework player to support the development of new applications,. And at the very t..
Sunshine app은 다중 activities를 가지고, intents를 사용해서 그 들 사이에 왔다갔다할 수 있다. intents를 사용해서 다중 activites를 통합할 수 있고, 다른 앱에서도 액티비티들을 호출할 수 있고, 안드로이드 프레임웍이 엑티비티를 다루는 법에 대해서 알아본다. 리소스가 한정적이라 많은 앱들이 백그라운드로 실행되고 있으면 좋지가 않지만 안드로이드자체로 kill을 제공해주고 있고 안드로이드 라이프사이클을 통해 한동안 사용하고 있지 않은 낮은 우선순위의 어플리케이션들을 kill되는 것을 알아본다. Android Activity Life Cycle onCreate onStart onResume onPause------------->Created ----------->Visib..
스크린사이로 네비게이팅 하는 법현재 앱내에 다른 앱들로부터의 activities 를 사용하는 법 activity가 직접적으로 다른 것들을 콜하는 것이 아니라 android는 intents 라 부르는 메세징오브젝트들을 이용해서 소통을 한다. intents 는 action이 발생하는 앱에 요청을 놓는다. 새로운 activity를 시작하는 것에서 부터 사진을 선택한다던지 또는 디스플레이한다던지, 폰콜은 한다던지. 클래스 이름을 직접 호출해서 실행시키는 거 대신 intents 를 사용하는 이유는 뭘까 편지봉투를 예를 들어 설명할 수 있다. 편지봉투에는 누구에게 보낼 것인지, 여기서는, 배달하고자하는 컴포넌트가 무엇인지. 배달되어지고자하는 데이타의 양이 적은 공간이라고 해도 . primitive topples되어..
Android 프레임웍에는 4가지 주요한 app 컴포넌트들이 있다이들은, activities, services, broadcast receivers and content providers 이다 Content Provider를 이용해서 앱에서 유저의 contacts, documents 또는 컬런더에 grab data, write data 를 몇 줄 코드로 작성할 수 가 있다. 예를 들어 명함앱을 작성시, 명함을 사진찍으면 데이타를 추춣해서 연락처에 정보를 추가할 수 가 있다.만약 명함을 잊어버려도, 앱에서는 연락정보를 같은 데이타 소스에 저장할 필요가 있다. 이것이 폰의 기본 연락처 앱이 바라보고 있는 곳이기 때문이다.데이타 소스는 앱에 대해서 private 한 공간이고 security 의 이유가 된다 그..
1.Forecast weather views뷰는 각각 리스트 아이템은 각각의 이미지와 텍스트 블락을 가지고 있는 연속적인 views 를 구성한다이는 다른 폰트 사이즈들과 이미지들을 포함하고 있는 rich experience를 만들 수 있게 한다리스트의 이 영역만이 보여줄수있을지라도, 코드는 생성(create)해야하고, 놓여야하고(lay out), 모든 off 스크린 views상에 덧붙여야한다(populate) 게다가, 디스플레이되어지는 어떤 이미지들은 메모리상에 상주되어져아한다.이는 포맷팅을 적게하고 작은 리스트를 사용하도록 하는게 합리적이나, 큰 리스트들에 대해서는비실용적이게 된다.리스트상에 각각의 아이템에 대해서는 상호작용이 다뤄져야 할 것이다. 예를 들어, 클릭 핸들러에 할당한다든지,,보여지는 게 ..