Android Programming Lecture 9 Service and broadcast receiver
Android Programming Lecture 9 Service and Broadcast Receiver
Sample App: Music Player Sweet With A Love Like You 2
Sample App: Music Player 2
Sample App (1/7) Click on the icon and get the startup Launcher activity is started by the sending of a special intent-the Launcher intent o Application Manifest declares Which Java class accepts the launcher intent <acti ty android: name=". MainActivity 回的要 android: label="@string/app name"> <intent-filter> <action android: name="android. intent. action. MAIN"/> <category android: name="android intent. category. LAUNCHER"/ </intent-filter> </activity>
Sample App (1/7) • Click on the icon and get the startup • Launcher activity is started by the sending of a special intent – the Launcher intent o Application Manifest declares which Java class accepts the launcher intent 3
Sample App(2/7) Left side is a menu for different views The activity has a few fragments(sub activity) for navigation Google Play Music o Youtube tutoria My Library Tablet Click on updates Fragment B My Library Activity A contains ragment A and Fragment B
Sample App (2/7) • Left side is a menu for different views • The activity has a few fragments (subactivity) for navigation o Youtube tutorial • Click on My Library 4
Lien Now M Lera Sample App( 3/7) Click Albums to get into the Albums sub-activity(fragment) o Tab UI can be easily achieved T LIbrary using Tab Host View Group ATIS Amenca Town American Hi-Fi L Form Widgets Click an album name Amencan idiot 用Gdew[ Scrollview 已 HorizontalScrollview Q SearchView Adagio sostenuto Marre bokar 49 WebView 5
Sample App (3/7) • Click Albums to get into the Albums sub-activity (fragment) o Tab UI can be easily achieved using Tab Host ViewGroup • Click an album name 5