Environment at a Glance for Eclipse
Course Curriculum
 Module 1
» Basics of Android
 Module 2
» Android Layouts and Widgets
 Module 3
» Communication and M...
Eclipse
• Eclipse is a multi-language software development
environment comprising an integrated development
environment (I...
Eclipse
DDMS
DDMS
• Android ships with a debugging tool called the Dalvik Debug
Monitor Server (DDMS)
• which provides:
– port-forwardi...
DDMS
Android Emulator
Android Emulator
• What is an Emulator ?
• Why should I use it ?
• Can I run Eclipse Applications on my device ?
Activity Life Cycle
Activity Life Cycle
Lifecycle Callbacks
View Groups
Structure of the Manifest File
Manifest File
• Manifest presents essential information about the application to the
Android system, information the syste...
App's Launcher Activity
• The main activity for your app must be declared in the manifest with
these parameters.
<activity...
Questions You need to Ask
• What is AndroidManifest.xml ?
• Why there is a .java file in src/ directory ?
• What do we put...
Values
Values
• Android will run on many devices in many regions
• Whenever the application runs in a locale for which you have
n...
Locales
Drawables
Drawable – What are they?
• A Drawable is a general abstraction for "something that can
be drawn."
• Unlike a View, a Draw...
Listeners
Types of Event Listeners
• onClick() From View.OnClickListener
• onLongClick From View.OnLongClickListener
• onKey() From ...
Supporting Multiple Screens
Supporting Different Screens
• Android runs on a variety of devices that offer different
screen sizes and densities
• Syst...
Supporting Different Screens
• xlarge screens are at least 960dp x 720dp
• large screens are at least 640dp x 480dp
• norm...
•Q& A..?
Thanks..!
Upcoming SlideShare
Loading in...5
×

Android

848

Published on

Published in: Education, Technology
0 Comments
2 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
848
On Slideshare
0
From Embeds
0
Number of Embeds
5
Actions
Shares
0
Downloads
1
Comments
0
Likes
2
Embeds 0
No embeds

No notes for slide

Android

  1. 1. Environment at a Glance for Eclipse
  2. 2. Course Curriculum  Module 1 » Basics of Android  Module 2 » Android Layouts and Widgets  Module 3 » Communication and Media  Module 4 » Storage Techniques and Animation in Android  Module 5 » Web Services and Customizations of Widgets  Module 6 » Advanced Android Concepts
  3. 3. Eclipse • Eclipse is a multi-language software development environment comprising an integrated development environment (IDE) • Users can extend its abilities by installing plug-ins written for the Eclipse Platform • It is written mostly in Java
  4. 4. Eclipse
  5. 5. DDMS
  6. 6. DDMS • Android ships with a debugging tool called the Dalvik Debug Monitor Server (DDMS) • which provides: – port-forwarding services – screen capture on the device – thread and heap information on the device – LogCat process
  7. 7. DDMS
  8. 8. Android Emulator
  9. 9. Android Emulator • What is an Emulator ? • Why should I use it ? • Can I run Eclipse Applications on my device ?
  10. 10. Activity Life Cycle
  11. 11. Activity Life Cycle
  12. 12. Lifecycle Callbacks
  13. 13. View Groups
  14. 14. Structure of the Manifest File
  15. 15. Manifest File • Manifest presents essential information about the application to the Android system, information the system must have before it can run any of the application's code. • Elements • Attributes • Class names • Multiple values • Resource values • String values
  16. 16. App's Launcher Activity • The main activity for your app must be declared in the manifest with these parameters. <activity android:name=".MainActivity"> <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity>
  17. 17. Questions You need to Ask • What is AndroidManifest.xml ? • Why there is a .java file in src/ directory ? • What do we put in res/ directory ? • Inside res/ what are these ? – drawable-hdpi/ – layout/ – values/
  18. 18. Values
  19. 19. Values • Android will run on many devices in many regions • Whenever the application runs in a locale for which you have not provided locale-specific text, Android will load the default strings from res/values/strings.xml • Different qualifiers can be used for different locales like res/values-fr
  20. 20. Locales
  21. 21. Drawables
  22. 22. Drawable – What are they? • A Drawable is a general abstraction for "something that can be drawn." • Unlike a View, a Drawable does not have any facility to receive events or otherwise interact with the user.
  23. 23. Listeners
  24. 24. Types of Event Listeners • onClick() From View.OnClickListener • onLongClick From View.OnLongClickListener • onKey() From View.OnKeyListener • onTouch() From View.OnTouchListener
  25. 25. Supporting Multiple Screens
  26. 26. Supporting Different Screens • Android runs on a variety of devices that offer different screen sizes and densities • System provides APIs that allow you to control your application's UI for specific screen sizes and densities • res/layout/my_layout.xml • res/layout-small/my_layout.xml • res/layout-large/my_layout.xml • res/layout-xlarge/my_layout.xml // layout for normal screen size ("default") // layout for small screen size // layout for large screen size // layout for extra large screen size
  27. 27. Supporting Different Screens • xlarge screens are at least 960dp x 720dp • large screens are at least 640dp x 480dp • normal screens are at least 470dp x 320dp • small screens are at least 426dp x 320dp
  28. 28. •Q& A..?
  29. 29. Thanks..!

×