1 / 11

Intro to Mobile App Development

Intro to Mobile App Development. CMSC 150: Lecture 34. What is Android?. Open source OS for mobile devices Google supported Open Handset Alliance project Based on Linux kernel Apps programmed in Java (we already know Java) Why aren’t we doing iOS ? Apps programmed in Objective C

cheche
Download Presentation

Intro to Mobile App Development

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. Intro to Mobile App Development CMSC 150: Lecture 34

  2. What is Android? • Open source OS for mobile devices • Google supported • Open Handset Alliance project • Based on Linux kernel • Apps programmed in Java (we already know Java) • Why aren’t we doing iOS? • Apps programmed in Objective C • One of the professors doesn’t have an iPhone

  3. What is Android? • Android libraries provide access to mobile device features from your Java program • Like java.util, Squint • Mobile-adapted GUI components • Not Swing, but similar stuff • Best development platform is Eclipse • http://www.eclipse.org/ • http://developer.android.com/sdk/index.html

  4. App Construction • Visual aspects specified as “resources” • Strings displayed in app – easier localization • GUI layouts in XML – can be changed without recompilation • Images used by app • Eclipse has a nice visual GUI editor • Drag-and-drop user interface construction • Eclipse also has a software emulator • So you don’t have to have an Android phone to have Android app development fun

  5. GUI components • Android has layouts to organize GUI components • LinearLayout – components stacked vertically or horizontally • TableLayout – like a grid, but more flexible • etc… • GUI components are called “Views” • TextView == JLabel • EditText == JTextField • Button == JButton

  6. App structure • Apps composed of multiple Activities • One Activity == one screen • Activity class is a lot like WindowManager • Provides basic functionality for user interaction • e.g. onClicked() method kind of like buttonClicked() • Also manages App “life cycle” – provides methods called automatically when: • App starts • App suspends • App resumes • etc…

  7. Interaction with other Apps • View some data, dial a number, play a song, see a picture, send an email or text message • Apps can use Intents to launch other apps • Intent class encapsulates the requested action and the data on which to perform it • Android matches the intent with the best App to provide the service, e.g. web browser, image gallery, phone dialer, etc.

  8. Time for “Hello Android”

  9. Sources • Android Presentation by Manish K Chauhan(http://www.slideshare.net/AnshSingh1/android-ppt-8454226) • Hello, Android, 3e by Ed Burnette • Android, How to Program, Deitel, Deitel and Deitel • http://developer.android.com

More Related