[MyHosting.com]   [KO4BB Home Page]   [Manuals Home Page]   [KO4BB Wiki]
 

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
android:structure_of_an_android_app [2017/06/05 09:33]
ko4bb
android:structure_of_an_android_app [2017/06/18 11:20]
ko4bb
Line 11: Line 11:
 An Android app is composed of one or more Activities and optionally one or more Service modules, Class modules and Libraries. An Android app is composed of one or more Activities and optionally one or more Service modules, Class modules and Libraries.
  
-An Activity is a block of code (a module) that is associated with a particular ​Graphical User Interface ​(a Layout in Android parlance,) composed of buttons, labels, pictures, text boxes and other graphical elements.+An Activity is a block of code (a module) that is associated with a particular ​screen layout ​(a Layout in Android parlance,) composed of buttons, labels, pictures, text boxes and other graphical elements.
  
 Since in Android only one Activity can be active at any one time (unlike Windows or Linux where you can have multiple running windows sharing the screen), any Activity that is not currently visible is suspended and can even be unloaded from memory by the OS. Note that in Android 7.0,  multiple apps may run in multi-window mode but only one is active at a time, the others are paused. Since in Android only one Activity can be active at any one time (unlike Windows or Linux where you can have multiple running windows sharing the screen), any Activity that is not currently visible is suspended and can even be unloaded from memory by the OS. Note that in Android 7.0,  multiple apps may run in multi-window mode but only one is active at a time, the others are paused.
  
-A Service module does not have a GUI component. A Service ​can continue ​running in the background even if the app is not visible. ​+A Service module does not have a GUI component. A Service ​continues ​running in the background even if the app is not visible, so a Service is the only way to have code running while the app has no visible activity. However, a Service cannot have any visible element (except for Toast messages).
  
 Activities may communicate with a Service module, Class modules and Libraries (both ways) via shared global variables and subroutines. Activities may communicate with a Service module, Class modules and Libraries (both ways) via shared global variables and subroutines.
Line 51: Line 51:
 [[https://​www.b4x.com/​android/​forum/​threads/​android-process-and-activities-life-cycle.6487/​|Basic4Android Process and Activities Lifecycle]] [[https://​www.b4x.com/​android/​forum/​threads/​android-process-and-activities-life-cycle.6487/​|Basic4Android Process and Activities Lifecycle]]
  
-[[https://​www.b4x.com/​android/​forum/​threads/​statemanager-helps-managing-android-applications-settings-and-state.9777/​|Android ​State Manager]]+[[https://​www.b4x.com/​android/​forum/​threads/​service-modules.7542/​|Basic4Android Service Modules]] 
 + 
 +[[https://​www.b4x.com/​android/​forum/​threads/​statemanager-helps-managing-android-applications-settings-and-state.9777/​|Basic4Android ​State Manager]]
  
  
 
android/structure_of_an_android_app.txt · Last modified: 2017/06/18 17:12 by ko4bb
 
Recent changes RSS feed Creative Commons License Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki
Except as noted, this entire site Copyright © 2002-2017. KO4BB All rights reserved.