Android webinar class_1

607 views
517 views

Published on

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
607
On SlideShare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
0
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide
  • such as development toolkits for other programming languages, and can write and contribute their own plug-in modules.
  •  The emulator lets you develop and test Android applications without using a physical device.
  • Java compilers convert your code from human readable Java source files to something called “bytecode” in the Java world. “Bytecode” is interpreted by a JVM, which operates much like a physical CPU might operate on machine code, to actually execute the compiled code. Performance - Java performance in generally second only to C/C++ in common language performance comparisons. In the Java programming language and environment, a just-in-time (JIT) compiler is a program that turns Java bytecode (a program that contains instructions that must be interpreted) into instructions that can be sent directly to the processor.The just-in-time compiler comes with the virtual machine and is used optionally. It compiles the bytecode into platform-specific executable code that is immediately executed
  • Java compilers convert your code from human readable Java source files to something called “bytecode” in the Java world. “Bytecode” is interpreted by a JVM, which operates much like a physical CPU might operate on machine code, to actually execute the compiled code. Performance - Java performance in generally second only to C/C++ in common language performance comparisons. In the Java programming language and environment, a just-in-time (JIT) compiler is a program that turns Java bytecode (a program that contains instructions that must be interpreted) into instructions that can be sent directly to the processor.The just-in-time compiler comes with the virtual machine and is used optionally. It compiles the bytecode into platform-specific executable code that is immediately executed
  • Java compilers convert your code from human readable Java source files to something called “bytecode” in the Java world. “Bytecode” is interpreted by a JVM, which operates much like a physical CPU might operate on machine code, to actually execute the compiled code. Performance - Java performance in generally second only to C/C++ in common language performance comparisons. In the Java programming language and environment, a just-in-time (JIT) compiler is a program that turns Java bytecode (a program that contains instructions that must be interpreted) into instructions that can be sent directly to the processor.The just-in-time compiler comes with the virtual machine and is used optionally. It compiles the bytecode into platform-specific executable code that is immediately executed
  • Adv. Question : What is the range of primitive data types ?Initalization:If no value is assigned prior to use, then the compiler will give an errorJava sets primitive variables to zero or false in the case of a boolean variableAll object references are initially set to null
  • Android webinar class_1

    1. 1. Environment at a Glance for Eclipse
    2. 2. 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
    3. 3. Eclipse
    4. 4. DDMS
    5. 5. 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
    6. 6. DDMS
    7. 7. Android Emulator
    8. 8. Android Emulator• What is an Emulator ?• Why should I use it ?• Can I run Eclipse Applications on my device ?
    9. 9. Activity Life Cycle
    10. 10. Activity Life Cycle
    11. 11. Lifecycle Callbacks
    12. 12. View Groups
    13. 13. Structure of the Manifest File
    14. 14. 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 applications code.• Elements• Attributes• Class names• Multiple values• Resource values• String values
    15. 15. Apps 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>
    16. 16. 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/
    17. 17. Values
    18. 18. 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
    19. 19. Locales
    20. 20. Drawables
    21. 21. 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.
    22. 22. Listeners
    23. 23. Types of Event Listeners• onClick() From View.OnClickListener• onLongClick From View.OnLongClickListener• onKey() From View.OnKeyListener• onTouch() From View.OnTouchListener
    24. 24. Supporting Multiple Screens
    25. 25. 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 applications 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
    26. 26. 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
    27. 27. •Q& A..?
    28. 28. Thanks..!

    ×