Android Development 1 Yuliana Setiowati Rizky Yuniar Hakkun Ahmad Syauqi Ahsan.

Slides:



Advertisements
Similar presentations
Android Using Menus Yuliana Setiowati Rizky Yuniar Hakkun Ahmad Syauqi Ahsan 1Politeknik Elektronika Negeri Surabaya.
Advertisements

1 Microsoft Access 2002 Tutorial 9 – Automating Tasks With Macros.
INTRO TO MOBILE APP DEVELOPMENT CMSC 150: Lecture 34.
Intents.
 User Interface - Raeha Sandalwala.  Introduction to UI  Layouts  UI Controls  Menus and ‘Toasts’  Notifications  Other interesting UIs ◦ ListView.
Automating Tasks With Macros. 2 Design a switchboard and dialog box for a graphical user interface Database developers interact directly with Access.
By: Jeremy Smith.  Introduction  Droid Draw  Add XML file  Layouts  LinearLayout  RelativeLayout  Objects  Notifications  Toast  Status Bar.
FIRST COURSE Creating Web Pages with Microsoft Office 2007.
Create a New Application and Project Open the Create Application dialog. Enter the application name of your choice and the directory. Select No Template.
How do I create a Web Dilemma in PowerPoint? Start Tutorial Use Black Boxes for Navigation.
BoardMaker Ver 6 Creating Interactive Activities for the Classroom.
8/16/2015alicewebmaster1 Create contents with the new Content Management System (Drupal): Workflow for page editors.
Android Application Development 2013 PClassic Chris Murphy 1.
Windows XP 101: Using Windows XP Professional in the Classroom.
Lecture 3 agenda Layouts Intents (both explicit and implicit) ListViews and Adapters.
 Understanding an activity  Starting an activity  Passing information between activities  Understanding intents  Understanding the activity lifecycle.
Chapter 5: Investigate! Lists, Arrays, and Web Browsers.
1 MySQL and phpMyAdmin. 2 Navigate to and log on (username: pmadmin)
Favorite Twitter® Searches App Android How to Program © by Pearson Education, Inc. All Rights Reserved.
XP New Perspectives on Browser and Basics Tutorial 1 1 Browser and Basics Tutorial 1.
Another Method to Open WebSpace as a Web Folder Alternative Method for Creating Web Folder in WebSpace, Slide 1Copyright © 2004, Jim Schwab, University.
Android Boot Camp for Developers Using Java, Comprehensive: A Guide to Creating Your First Android Apps Chapter 5: Investigate! Android Lists, Arrays,
Department of Mechanical Engineering, LSUSession VII MATLAB Tutorials Session VIII Graphical User Interface using MATLAB Rajeev Madazhy
HTML presentation Embedding Graphics in Web Pages n HTML uses an empty tag called the (image tag) n n n or n n n Note: all web production tools do insert.
Intent Android Club Agenda Intent class Explicit activation Implicit activation.
Domain 3 Understanding the Adobe Dreamweaver CS5 Interface.
Overview of Android Application Development
CS378 - Mobile Computing Intents. Allow us to use applications and components that are part of Android System – start activities – start services – deliver.
1. Profile settings 2. Messaging system 3. Downloading files 4. Uploading files 5. Creating groups 6. Calendar events.
Advanced FrontPage Forms, Page Templates and Wizards, Behaviors, CSS, DWT and Page Layout.
COMP 365 Android Development.  Every android application has a manifest file called AndroidManifest.xml  Found in the Project folder  Contains critical.
Pasewark & Pasewark Microsoft Office 2003: Introductory 1 INTRODUCTORY MICROSOFT OUTLOOK Lesson 1 – Outlook Basics and .
Review of last session Add text to your website Add text to your website Title Title Paragraph Paragraph Title and paragraph Title and paragraph Add photographs.
Action button “search” will query the jobs table once clicked.
Windows Builder An Eclipse Plugin for Creating Windows Graphical User Interfaces Copyright © 2014 Curt Hill.
© 2016 Cengage Learning®. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. Android Boot Camp.
Lec 03 Intents Explicit Intents Implicit Intents.
Linking Activities using Intents How to navigate between Android Activities 1Linking Activities using Intents.
Creating an Example Android App in Android Studio Activity lifecycle & UI Resources.
Creating Graphical User Interfaces (GUI’s) with MATLAB By Jeffrey A. Webb OSU Gateway Coalition Member.
How to Download and Install the Naper eReader and eBook Naper Publishing Group.
XP New Perspectives on Microsoft Office Access 2003 Tutorial 10 1 Microsoft Office Access 2003 Tutorial 10 – Automating Tasks With Macros.
Lec 04 Intents and Bundles Fragments. Activated by Intents Activities Services Broadcast Receivers (aka Receivers) (
1 After completing this lesson, you will be able to: Get around the Internet with your browser. Connect to the Internet. Print Web pages. Save Web pages.
Intents 1 CS440. Intents  Message passing mechanism  Most common uses:  starting an Activity (open an , contact, etc.)  starting an Activity.
로봇을 조종하자 4/4 UNIT 18 로봇 SW 콘텐츠 교육원 조용수. 학습 목표 Intent Activity 호출 2.
Wimba Pronto Setting Pronto Preferences of the ND University System April 2009.
Chapter 27 Getting “Web-ified” (Web Applications) Clearly Visual Basic: Programming with Visual Basic nd Edition.
IllinoisJobLink.com Training Video Creating a Resume Copyright © 2015, America’s Job Link Alliance–Technical Support (AJLA–TS) All rights reserved. This.
Intents and Broadcast Receivers Dr. David Janzen Except as otherwise noted, the content of this presentation is licensed under the Creative Commons Attribution.
ANDROID LAYOUTS AND WIDGETS. Slide 2 Introduction Parts of the Android screen Sizing widgets and fonts Layouts and their characteristics Buttons, checkboxes.
CMF For Content Authors. Slide 1©2001 Zope Corporation. All Rights Reserved. Outline Understand CMF approach to content Demonstrate content author goals.
Chapter 5: Investigate! Lists, Arrays, and Web Browsers.
1 Introduction to the Android Platform and SDK Jacek Surazski.
Android Mobile Application Development
Weebly Elements, Continued
Android Intent Filters
Linking Activities using Intents
An Eclipse Plugin for Creating Windows Graphical User Interfaces
Lecture 3 agenda A tour of Android studio features
Using the HTML and CSS Validation Services
How To Use As Another Account On Gmail
Android Programming Lecture 5
Windows XP 101: Using Windows XP Professional in the Classroom
Android Topics What are Intents? Implicit Intents vs. Explicit Intents
Activities and Intents
You will need to click the login button here
An Eclipse Plugin for Creating Windows Graphical User Interfaces
Mobile Programming Dr. Mohsin Ali Memon.
Activities, Fragments, and Intents
Presentation transcript:

Android Development 1 Yuliana Setiowati Rizky Yuniar Hakkun Ahmad Syauqi Ahsan

 What you will learn …  Understanding activities.  Understanding the concept of intents  How to use the Intent object to link activities

 An activity is a window that contains the user interface of your applications  An application can have zero or more activities  Typically, applications have one or more activities, and the main aim of an activity is to interact with the user

 Intents are used as a message-passing mechanism that works both within your application, and between applications  An Android application could include any number of activities.  Activities are independent of each other;  Main activity is designated as the first one (main) that should be presented to the user when the application is launched.  Moving from one activity to another is accomplished by asking the current activity to execute an intent.

Intents are invoked using the following options

The main arguments of an Intent are: 1. Action The built-in action to be performed, such as ACTION_VIEW, ACTION_EDIT, ACTION_MAIN, or user-created-activity 2. Data The primary data to operate on, such as a phone number to be called (expressed as a URI).

 Typically an intent is called as follows: Intent myActivity= new Intent(action, data); startActivity(myActivity); Built-in or user-created activity Primary data (as an URI) tel:// sendto://

 Intents List: Invoking Google Applications on Android Devices  app-intents.html app-intents.html

Examples of action/data pairs are:  ACTION_DIAL tel:123tel:123 Display the phone dialer with the given number filled in.  ACTION_VIEW Show Google page in a browser view. Note how the VIEW action does what is considered the most reasonable thing for a particular URI.  ACTION_EDIT content://contacts/people/2 Edit information about the person whose identifier is "2".  ACTION_VIEW content://contacts/people/2 Used to start an activity to display 2-ndperson.  ACTION_VIEW content://contacts/people/Display a list of people, which the user can browse through. Selecting a particular person to view would result in a new intent

List of standard actions that Intents can use for launching activities(usually through startActivity(Intent)). ACTION_SENDTO ACTION_ANSWER ACTION_INSERT ACTION_DELETE ACTION_RUN ACTION_SYNC ACTION_PICK_ACTIVITY ACTION_SEARCH ACTION_WEB_SEARCH ACTION_FACTORY_TEST ACTION_MAIN ACTION_VIEW ACTION_ATTACH_DATA ACTION_EDIT ACTION_PICK ACTION_CHOOSER ACTION_GET_CONTENT ACTION_DIAL ACTION_CALL ACTION_SEND

 This example show how intent can be used for calling another built in application, like phone dial, contact, browser, ets

 Open Eclipse  Select: File > Import  Chose project (project name : IntentExample)  Click: Finish

Drag “LinearLayout” and drop here…!!!

Drag 2 “Button” and drop to “Linearlayout” …!!!

 Set properties for each button.  Click Menu Window -> Show View -> Other..  Dialog appear, choose General -> Properties

Choose a button and see the properties, search ‘Text’ and ‘Layout’ properties. For 1 st button : Set ‘Text’ prop. = Call Set ‘Layout Weight’ prop. = 1 Set ‘Layout width’ = fill_parent For 2 nd button : Set ‘Text’ prop. = Web Search Set ‘Layout Weight’ prop. = 1 Set ‘Layout width’ = fill_parent

 Open IntentExampleActivity.java.  Type this codes into your program.

 This program is the declaration for component that has been made in main.xml to be recognize in IntentExampleActivity.java.

Example for call the built in android dial application Example for searching ‘android’ on the web

 Try it : Replace existing codes in ‘#Intent Codes’ slide or create new button to apply following intents example : Intent for calling send message application : Intent for calling contact application : Intent for calling browser application and open a web

!! Good Luck !!