1 / 10

CMSC 628: Introduction to Mobile Computing

CMSC 628: Introduction to Mobile Computing. Nilanjan Banerjee. University of Maryland Baltimore County nilanb@umbc.edu http://csee.umbc.edu/~nilanb/teaching/628/. Introduction to Mobile Computing. Announcements. Creating Google sites for your group

ziva
Download Presentation

CMSC 628: Introduction to Mobile Computing

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. CMSC 628: Introduction to Mobile Computing Nilanjan Banerjee University of Maryland Baltimore County nilanb@umbc.edu http://csee.umbc.edu/~nilanb/teaching/628/ Introduction to Mobile Computing

  2. Announcements • Creating Google sites for your group • Share it with me (nilanb@umbc.edu) and Filip (fdabek1@umbc.edu) • Start thinking about project ideas and writing them on the googlesite • Moving my office hours from 11 AM – 12 PM on Wednesdays.

  3. Today’s lecture • Try to understand what is an Activity, Intent. • Build a simple mobile app from scratch • Start a new activity • Build simple UI elements such as EditText, Button • Add EventListeners to UI elements • Learn about the lifecycle of the app • Compile and run the app.

  4. Activities -- Primer • Typically corresponds to one UI screen • But they can be • Faceless • A floating window • Return a value • Typically a complex application will have multiple activites • E.g., email application • Activity 1: log in page • Activity 2: displaying a set of email • Transfer data between activities • Usually form a bundle and pass it around (we will talk about in detail)

  5. Intents -- Primer • A description of what you want done… something like a verb • E.g. Intent of a music player is to PLAY • Intents are of two types – Implicit and Explicit • Explicit • Application states what it needs • Implicit • System decides for you which application/component can best respond to the Intent. • You just specify what the Intent is.

  6. Intents Home Picasa Photo Gallery Contacts “Pick photo” GMail Client component makes a request for a specific action System picks best component for that action Chat New components can use existing functionality Blogger Blogger

  7. Resources • Utilities that an application uses and “reuses” • Strings, colors, dimensions, style/theme • .

  8. Lets build a very simple Android Application. EditText View Euros Label View Dollars Converter Button View

  9. Application lifecycle

  10. Next Lecture • More depth of Intents, Intent Filters, defining multiple Activities, concept of subactivities, and passing data between activities. • Time permitting: Using Intents as event triggers • .

More Related