• Save
Learn Android at edureka!
 

Learn Android at edureka!

on

  • 1,004 views

The 6-week Android Development course is primarily designed for programming beginners and experienced programmers who want to learn how to create applications in Android. The step-by-step video ...

The 6-week Android Development course is primarily designed for programming beginners and experienced programmers who want to learn how to create applications in Android. The step-by-step video lessons start from Java Essentials for Android and cover all that you need to develop professional Android Apps. There are chapter wise quizzes and coding assignments after each unit to help re-enforce your understanding.

Statistics

Views

Total Views
1,004
Views on SlideShare
1,002
Embed Views
2

Actions

Likes
0
Downloads
0
Comments
0

1 Embed 2

https://twitter.com 2

Accessibility

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Learn Android at edureka! Learn Android at edureka! Presentation Transcript

  • Environment at a Glance for Eclipse
  • 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
  • Eclipse
  • DDMS
  • 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
  • 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 system must have before it can run any of the application's code. • Elements • Attributes • Class names • Multiple values • Resource values • String values
  • 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>
  • 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/
  • Values
  • 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
  • Locales
  • Drawables
  • 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.
  • Listeners
  • Types of Event Listeners • onClick() From View.OnClickListener • onLongClick From View.OnLongClickListener • onKey() From View.OnKeyListener • onTouch() From View.OnTouchListener
  • Supporting Multiple Screens
  • 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 // layout for normal screen size ("default") • res/layout-small/my_layout.xml // layout for small screen size • res/layout-large/my_layout.xml // layout for large screen size • res/layout-xlarge/my_layout.xml // layout for extra large screen size
  • 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
  • •Q& A..?
  • Thanks..!