Mobile App Development 2022W Lecture 17
Video
Video from the lecture given on March 18, 2022 is now available:
Video is also available through Brightspace (Resources->Zoom Meetings (Recordings, etc.)->Cloud Recordings tab). Note that here you'll also see chat messages.
Notes
Lecture 17
----------
Midterm
- still grading, sorry
- will set up interviews once grades are made available
- will post solutions at the same time
- am making them up as I grade
- want to point out concepts that are commonly missed
Application Icons (for launchers, etc
- If you want to learn more, look up adaptive icons for Android
https://developer.android.com/guide/practices/ui_guidelines/icon_design_adaptive
- Basic idea
- you can import an SVG or PNG into Android Studio, it will
convert it to drawable resource (probably a vector)
- And then it will also generate all the versions
Activities are just classes that represent a set of functionality in Android
- normally associated with a specific layout resource
Every activity in your app has to be declared in AndroidManifest.xml
- and any activity that can receive an implicit intent must
have an appropriate intent filter
- you can always send an explicit intent to a designated activity class
Each activity is a whole screen
- you can have activity fragments for portions of a screen that are reused
Intent documentation
https://developer.android.com/reference/android/content/Intent.html
https://developer.android.com/guide/components/intents-filters
After class:
- finally got the web browser launching by
- making sure I only sent the intent once using a boolean flag
- changed the default browser to firefox (after installing firefox)
- chrome just seems broken? No idea