Developing Your First App for the Cisco Cius...Presentation_ID © 2010 Cisco 2and/or its affiliates....
Transcript of Developing Your First App for the Cisco Cius...Presentation_ID © 2010 Cisco 2and/or its affiliates....
Larry Michalewicz
Developing Your First App for the Cisco Cius
© 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential Presentation_ID 2
Agenda
Writing traditional Android applications
Android Tools and Resources
Cisco Cius Tools and Resources
Reutilizing Existing Technology
© 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential Presentation_ID 3
What is Cius
7 inch Business Tablet
Unified Communications Endpoint (Video/Audio)
Virtual Desktop Client
Collaboration Application Platform
Enterprise Focused Management and Security
Product Manager Point of View
© 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential Presentation_ID 4
What is Cius
7 Inch Tablet – Landscape Orientation
Android 2.2 At Initial Release
Primary Language - Java
Secondary Languages - HTML, CSS, JavaScript
Standard IDE – Eclipse
Command Line Tools = Other IDE Options
Development Machine – Windows, Linux or Mac
Developers Point of View
© 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential Presentation_ID 5
TechWiseTV Application
© 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential Presentation_ID 6
Definitions
AndroidManifest.xml - File that defines application level attributes and permissions
Activity – A single, focused thing that the user can do. The part of an application that you can see.
ListView - A view that shows items in a vertically scrolling list.
ListActivity - hosts a ListView object that can be bound to different data sources
ArrayAdapter - An Adapter object acts as a bridge between data and the view (UI)
© 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential Presentation_ID 7
Definitions
Layout – XML or programmatic definition of displayable objects and their relationship to one another.
LinearLayout – A container that aligns all children in a single direction
ImageView - Displays an arbitrary image, such as an icon.
TextView - Displays text to the user and optionally allows them to edit it.
© 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential Presentation_ID 8
TechWiseTV Application
ListActivity
/Listview
© 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential Presentation_ID 9
TechWiseTV Application
Row
© 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential Presentation_ID 10
TechWiseTV Application
LinearLayout
Horizontal LinearLayout
Vertical
© 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential Presentation_ID 11
TechWiseTV Application
LinearLayout
Horizontal LinearLayout
Vertical
ImageView
TextView TextView
© 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential Presentation_ID 12
Primary Java Classes
TechWiseTVActivity – Main Activity
FeedEntry – Holds data for a single video
Title
Content
Thumbnail URL
Video URL
Feed – Retrieves XML Feed information, and creates and stores FeedEntries
FeedEntryAdapter – Used to visualize data in the list view
© 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential Presentation_ID 13
Tools we are using
Eclipse (http://www.eclipse.org/)
Android SDK (http://developer.android.com/)
Cisco Cius Add-on (http://ciusdeveloper.com/)
YouTube APIs (http://code.google.com/apis/youtube/)