Mobile
-
Android ArchitectureMobile/Android 2020. 6. 2. 15:39
1. Architecture 1.1 Android Activity Lifecycle 1.2 State Lifecycle 2. Component Component Description Activities They dictate the UI and handle the user interaction with the smartphone screen. Services They handle background processing associated with an application. Broadcast Receivers They handle communication between Android OS and applications. Content Providers They handle data and database..
-
UI ThreadMobile/Android 2020. 5. 26. 21:52
1. Overview UI Thread is a special thread started by the Android framework and associated with a single application. There are two alternative names for UI thread so it's either UI thread or sometimes it's called also main thread and to be absolute re girls I must tell you that you are a threat and main threat are not necessarily the same thread. There are situations when these threads will be d..
-
Garbage Collector, Memory Leaks, and Thread Termination in AndroidMobile/Android 2020. 5. 26. 15:52
All objects in your application must be garbage collected eventually except for objects that you explicitly want to use for the entire lifetime of the application. All started threads in your application must terminate in a timely manner to prevent memory leaks. 1. Memory Allocation 1.1 OutOfMemoryException If allocated memory never released, sooner or later the application will crash with OutOf..
-
Android Processes and ThreadsMobile/Android 2020. 5. 26. 14:32
1. Overview 2. Process In Android, each running program (application) gets its own task and this task is associated with an isolated execution environment (sandbox). Together they constitute a process. 2.1 Corollary Since processes are sandboxed in Android, one application can't access the environment of another application. (reliability, security) 3. Threads In Android, each process can host on..