CA 16 R 405 Mobile Application Development Theory
CA 16 R 405 - Mobile Application Development (Theory) Adarsh Patel Technical Team Lead, Arth Technology, Vadodara
CA 16 R 405 - Mobile Application Development (TH) • Unit 1: Introduction to Android • Mobile Applications, Comparison of various Mobile Application Programming Languages, Basics of Android, Features of Android, Benefits of Android, Using Eclipse, Running and debugging Applications, Configuring Android Development Environment • Unit 2: Android Development Tools • Android Documentations, Debugging Applications with DDMS, Emulator, Using other Android Tools. • Unit 3: Android Application Development • Building an Android Application, Introduction to Application Context, Using Application Context, working with Activities, working with Intents, Working with Dialogs, Logging Application Information.
CA 16 R 405 - Mobile Application Development (TH) • Unit 4: Managing Application Resources • Using Application and System Resources, working with simple Resource Values, working with Drawable Resources, working with Layouts, Working with Files, working with other types of Resources available in Android. • Unit 5: Configuration with Manifest • Configuring the Android Manifest File, Configuring basic Applications settings, Defining Activities, Managing Application Permissions, Managing other Application settings. • Unit 6: The Application Framework • Designing an Application Framework, Designing an Android Trivia, Prototype, Implementing an Application Prototype, Running the Prototype • Unit 7: Developing GUI • Splash Screen Layout, Implementing animated Splash Screen, working with Animation, Designing Main Menu Screen, Implementing Main Menu Screen Layout, working with List. View Control, working with other Menu types, Designing the Help Screen, working with Files, Designing the Screen with Tabs
CA 16 R 405 - Mobile Application Development (TH) • Unit 8: Collecting User Inputs • Using Forms to collect User Inputs, Designing the setting screen, using common Form Controls, saving Form data with Shared Preferences, Using Dialogs to collect User Inputs, Activity Dialogs, Date. Picker Dialogs, Custom Dialogs • Unit 9: Testing and Publishing the Application • Best Practices for Testing, Maximizing Test Coverage, Understanding Release Process, preparing Release Candidate Build, Testing Application Release Candidate, Packaging an Application, Testing the Signed Application Package • Unit 10: Using Eclipse IDE • Creating Classes and Methods, Organizing imports, Documenting Code, Using Auto complete, Formatting Code, Refactoring, Resolving Build Errors, Creating Custom Log filters, Integrating Source Control
What have you learned so far Adarsh Patel
What have you learned so far 1. working with Layouts – Constraint Layout – Relative Layout – Linear Layout – Other 2. Layout in depth 3. Sub layout
Today’s Learning 1. 2. 3. 4. Splash Screen Home Screen List. View example using Country List Radio. Button example using Education
Splash Screen
Splash Activity XML <Linear. Layout android: orientation="vertical" android: gravity="center“> <Image. View android: src="@drawable/ic_android_black_24 dp" android: layout_width="100 dp" android: layout_height="100 dp" /> <Text. View android: layout_margin. Top="20 dp" android: text="The Great App" android: layout_width="wrap_content" android: layout_height="wrap_content" /> </Linear. Layout>
Splash Screen Coding new Handler(). post. Delayed(new Runnable() { @Override public void run() { Intent i = new Intent(Splash. this, Home. class); start. Activity(i); finish(); } }, 4000);
Home Screen
Home Activity XML <Image. View android: layout_weight="2" android: src="@drawable/ic_android_black_24 dp" android: layout_width="match_parent" android: layout_height="wrap_content" /> <Linear. Layout android: layout_margin="10 dp" android: layout_weight="1" android: layout_width="match_parent" android: layout_height="wrap_content"> <Button android: layout_weight="1" android: text="Button 1" android: layout_width="wrap_content" android: layout_height="match_parent" /> <Button android: layout_weight="1" android: text="Button 2" android: layout_width="wrap_content" android: layout_height="match_parent" /> </Linear. Layout>
List View
List View Activity XML <Text. View android: text. Appearance="? android: text. Appearance. Medium" android: gravity="center_horizontal" android: text="List of Countries" <string-array android: layout_width="match_parent" name="countries"> android: layout_height="wrap_content" /> <item>India</item> <List. View android: layout_margin="10 dp" android: padding="10 dp" android: entries="@array/countries" android: layout_width="match_parent" android: layout_height="match_parent"></List. View> <item>USA</item> <item>UK</item> <item>Canada</item> </string-array>
Radio. Button example using Education
Radio. Button Activity XML <Text. View android: text. Style="bold" android: text="Education 1" android: layout_width="match_parent" android: layout_height="wrap_content" /> <Radio. Group android: id="@+id/groupeducation 1" android: layout_width="match_parent" android: layout_height="wrap_content" > <Radio. Button android: id="@+id/radio 1" android: text="SSC" android: layout_width="wrap_content" android: layout_height="wrap_content" /> <Radio. Button android: id="@+id/radio 2" android: text="HSC" android: layout_width="wrap_content" android: layout_height="wrap_content" /> </Radio. Group>
Radio. Button Activity XML <Text. View android: text. Style="bold" android: layout_margin. Top="10 dp" android: text="Education 2" android: layout_width="match_parent" android: layout_height="wrap_content" /> <Radio. Group android: id="@+id/groupeducation 2" android: layout_width="match_parent" android: layout_height="wrap_content" > <Radio. Button android: id="@+id/radio 3" android: text="BCA" android: layout_width="wrap_content" android: layout_height="wrap_content" /> <Radio. Button android: id="@+id/radio 4" android: text="BBA" android: layout_width="wrap_content" android: layout_height="wrap_content" /> <Radio. Button android: id="@+id/radio 5" android: text="Other" android: layout_width="wrap_content" android: layout_height="wrap_content" /> </Radio. Group> <Button android: id="@+id/btnsubmit" android: layout_gravity="center_horizontal" android: text="Submit" android: layout_width="wrap_content" android: layout_height="wrap_content" />
Radio. Button Code int selected. Id=((Radio. Group) find. View. By. Id(R. id. groupeducation 1)). get. Checked. Radio. Butt on. Id(); Radio. Button rb 1 =(Radio. Button)find. View. By. Id(selected. Id); Toast. make. Text(Option 2. this, rb 1. get. Text(), Toast. LENGTH_ SHORT). show(); int selected. Id 2=((Radio. Group) find. View. By. Id(R. id. groupeducation 2)). get. Checked. Radio. Butt on. Id(); Radio. Button rb 2 =(Radio. Button)find. View. By. Id(selected. Id 2); Toast. make. Text(Option 2. this, rb 2. get. Text(), Toast. LENGTH_ SHORT). show();
Android Tutorial & Sample Codes & Presentations can be found @ http: //adarshspatel. in
- Slides: 19