MIDTERM-REVIEW-MOBPROG.pdf
Document Details
Uploaded by FlatterCyan
Massachusetts Institute of Technology
Full Transcript
REVIEWER SUMMARY M1 – M5 (MIDTERM) What is Android: Open Source Large Developer and Community Reach Increase Marketing Inter App Integration Reduce Cost of Development Higher Success Ration Rich Development Environment Android Versions: V...
REVIEWER SUMMARY M1 – M5 (MIDTERM) What is Android: Open Source Large Developer and Community Reach Increase Marketing Inter App Integration Reduce Cost of Development Higher Success Ration Rich Development Environment Android Versions: VERSION NAME VERSION # FEATURES Alpha 1.0 Google Maps Camera Beta 1.1 Gmail, Contacts, and Google Synchronization Web Browser WiFi and Bluetooth support CupCake 1.5 First released codename New UI design Video uploading to YouTube and Picasa MPEG-4 support for video recording Improved web browser with copy and paste functionality Donut 1.6 Support for larger screen sizes Gallery and Camera enhancements Improved speed of system apps Éclair 2.0 + 2.1 Updated UI with new features Support for Live Wallpapers Bluetooth 2.1 support Enhanced Google Maps Minor API changes Froyo 2.2 Support for animated GIFs WiFi hotspot functionality Speed improvements Upload file support in the browser Numeric and alphanumeric password support GingerBread 2.3 + 2.4 Improved copy-paste functionality Updated UI design Social networking support Enhanced keyboard usability HoneyComb 3.0 + 3.1 + 3.2 Gmail app improvements Updated 3D UI Media sync from SD card Chinese handwriting Google eBooks integration Video chat support via Google Talk Adobe Flash support in the browser Ice-Cream Sandwich 4.0 Improved text input and spell check WiFi Direct support REVIEWER SUMMARY M1 – M5 (MIDTERM) Photo editor features Enhanced keyboard correction Face unlock feature Improved video recording resolution Up to 16 tabs in the web browser JellyBean 4.1 + 4.2 + 4.3 Introduction of Google Now Voice search capabilities Smooth user interface enhancements Improved camera application Security enhancements Voice typing support Multiple user accounts for tablets Support for 4K resolution Bluetooth Low Energy support Bi-directional text support Native emoji support KitKat 4.4 Screen recording feature "OK Google" functionality for voice activation GPS support improvements Offline music playback support UI updates for Google Maps Emoji integration in Google Keyboard Lollipop 5.0 + 5.1 Introduction of ART (Android Runtime) Enhanced battery saving features Improved user interface with Material Design Bug fixes and performance improvements Support for multiple SIM cards Marshmallow 6.0 Fingerprint authentication support USB Type-C compatibility Battery-saving "Doze" mode New app permission model New emoji additions Nougat 7.0 Native split-screen mode for multitasking Data saver feature Improved storage manager Enhanced display touch responsiveness Oreo 8.0 Picture-in-Picture (PIP) support Multi-display support Improved notification system Adaptive icons Pie 9.0 Screenshot button addition "Lockdown" mode for biometric security Support for display cutouts Adaptive battery prediction Adaptive brightness based on user habits Queen Cake or 10 New permissions for background location access Quince Tart Sharing shortcuts for quick sharing with contacts Dynamic depth format for photos System-wide dark theme/mode Red Velvet Cake 11 Native screen recording functionality Notification muting during video playback Increased touch sensitivity Notification history feature REVIEWER SUMMARY M1 – M5 (MIDTERM) Auto-revoke app permissions Snow Cone 12 Scrolling screenshots capability Enhanced App Search functionality Improved auto-rotate feature Simplified WiFi sharing process One-handed mode Rich content insertion support Tiramisu 13 Enhanced security features New reading mode for better text visibility Digital car keys support Native LE Bluetooth support Additional Material You theme options QR code scanner integration Upside Down Cake 14 Smarter scaling and large font support Notification flashes for alerts Restrictions on photo and video access Protected PIN feature Enhanced data protection Regional preferences for localization Predictive back gestures Health Connect integration Vanilla Ice Cream 15 (Features not detailed yet as of the latest available information.) Android Architecture Hierarchy: 1. Applications The top layer of the android architecture whatever we will build those will be installed on this layer only 2. Application Framework provides the classes used to create Android applications provides a generic abstraction for hardware access and manages the user interface and application resources provides the services through which we can create a particular class and make that class helpful for the Application creation. 3. Android Runtime important part of Android rather than an internal part and it contains components like core libraries and the Dalvik virtual machine. is the engine that powers our applications along with the libraries and it forms the basis for the application framework. Dalvik Virtual Machine (DVM) REVIEWER SUMMARY M1 – M5 (MIDTERM) - relies on the Linux kernel for threading and low-level memory management. - register-based virtual machine like Java Virtual Machine (JVM) - specially designed and optimized for android to ensure that a device can run multiple instances efficiently. 4. Plaform Libraries includes various C/C++ core libraries and Java-based libraries to provide support for Android development. 5. Linux Kernel is a bottom layer and heart of the android architecture. manages all the drivers such as display drivers, camera drivers, Bluetooth drivers, audio drivers, memory drivers, etc. will provide an abstraction layer between the device hardware and the remainder of the stack. will provide an abstraction layer between the device hardware and the remainder of the stack. REVIEWER SUMMARY M1 – M5 (MIDTERM) P. S – Wala dito module 2 skip na yun android studio setup lang naman REVIEWER SUMMARY M1 – M5 (MIDTERM) Android Components: Additional Components: REVIEWER SUMMARY M1 – M5 (MIDTERM) Resource Types: Resource Description animator/ XML files for property animations. anim/ XML files for property and tween animations (animator/ preferred for property animations). color/ XML files defining state lists of colors, accessed from the R.color class. drawable/ Image and XML files for bitmaps, state lists, shapes, and animation drawables, accessed from R.drawable. layout/ XML files for UI layouts, accessed from R.layout menu/ XML files for defining app menus, accessed from R.menu raw/ Arbitrary raw files accessed with Resources.openRawResource(). Consider using assets/ for retaining file hierarchy. values/ XML files with simple values like strings and colors. Resources are defined by child elements in. xml/ Arbitrary XML files accessible at runtime via Resources.getXML(). font/ Font files (TTF, OTF, etc.) and XML files for fonts, accessed as resources. Android Resources: REVIEWER SUMMARY M1 – M5 (MIDTERM) How to access resources? In Code: Getting myimage by Accessing /drawable from Resources In Code: set the text on a TextView object with ID msg using a resource ID as follows In XML: use @name/value REVIEWER SUMMARY M1 – M5 (MIDTERM) Android Activities: is one screen of the Android app's user interface. Activity Life Cycle (ACL): mas detailed kesa sa ppt. REVIEWER SUMMARY M1 – M5 (MIDTERM) Activity Descrption onCreate() Callback when activity is first created onStart() Callback when activity is visible to the user onResume() Callback when user interacts with the app onPause() Callback when user app stops getting inputs onStop() Callback when activity is no longer visible onRestart() Callback when activity is opened again. onDestroy() Callback when before the activity is destroyed by the system Layouts in Views: o Layouts defines the structure for a UI in our app. REVIEWER SUMMARY M1 – M5 (MIDTERM) o Views draws something that users can see and interact. ▪ An individual UI component, generally referred to as a "widget". Different kinds of View objects include TextView, Button, and CheckBox. ▪ Attributes -> android:id android:layout_height android:layout_width o ViewGroup ▪ A container for other View elements. LinearLayout, RelativeLayout, and FrameLayout. ▪ Do not assume that any derivation of ViewGroup will accept nested Views. ▪ Some ViewGroups are implementations of the AdapterView class, which determines its children only from an Adapter. ▪ Attributes -> android:id android:layout_height and android:layout_width Layout Attributes Sample: REVIEWER SUMMARY M1 – M5 (MIDTERM) LinearLayou android:orientation (horizontal or t vertical) REVIEWER SUMMARY M1 – M5 (MIDTERM) RelativeLay out REVIEWER SUMMARY M1 – M5 (MIDTERM) Frame Layout Table Parang sa HTML Layout table tr td REVIEWER SUMMARY M1 – M5 (MIDTERM) Web View List View REVIEWER SUMMARY M1 – M5 (MIDTERM) Grid View REVIEWER SUMMARY M1 – M5 (MIDTERM) UI CONTROLS – need ng ID para magamit sa Java code EVENTS- kapag may event na need kunin parang sa java gui lang REVIEWER SUMMARY M1 – M5 (MIDTERM)