Android webinar class_5

  • 255 views
Uploaded on

 

  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
    Be the first to like this
No Downloads

Views

Total Views
255
On Slideshare
0
From Embeds
0
Number of Embeds
0

Actions

Shares
Downloads
0
Comments
0
Likes
0

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide
  • 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
  • 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

Transcript

  • 1. PROJECT PLAN
  • 2. Process for Project Submission & Evaluation• Each student is expected to create an Android App as Project Work for the Course.• Certificates will be provided to the students after project submission and evaluation• At the time of project submission a Skype interview will be conducted.• The project will be evaluated on Usability, Functionality and Design.• We are always there to help you on forum and on skype.
  • 3. Project Plan Week 4 + Week 5 Week 6
  • 4. Evaluation Process 10 Days Interviews Awards Certificates Evaluation 7 Days And Submission
  • 5. Http Classes
  • 6. HttpClient Class• HttpClient Objects are required to execute HTTP requests while handling cookies, authentication, connection management, and other features.• HttpGet() method retrieves the information and save it in HttpResponse Object.• HttpClient client = new DefaultHttpClient();• URI uri = new URI("http://www.edureka.in");• HttpGet request = new HttpGet();• request.setURI(uri);• HttpResponse response = client.execute(request);
  • 7. JSON
  • 8. JSON• JSON (JavaScript Object Notation) is a data exchange format which is very condense.• json.org libraries allows us to work easily with JSON files.• JSON are based on key / value pairs.• The key is a string, and the value can be a number, String, Boolean or an Object.
  • 9. JSON• JSON Syntax : – Data is in name/value pairs – Data is separated by comma – Curly brackets holds objects – Square brackets holds arrays• Objects can contain multiple name/values pairs: – { “name":“Edureka" , “course":“Android" }• Arrays can contain multiple objects: – { “company ": [ {“name":“Edureka" , “course":“Android" }, {“name":“Edureka" , “course":“iOS" } ] }
  • 10. Tweeter Feeds Demo
  • 11. Customization of Buttons
  • 12. Customizing a button• You can control exactly how your controls are styled using a theme that you apply to your entire application• If you want to truly redefine the appearance of your button, you can specify a custom background.
  • 13. Customizing a buttonPackage Explorer Custom_btn.xml Button before pressing Button Clicked
  • 14. Customization
  • 15. Customization• An adapter is used to bind data to a view• BaseAdapter is an abstract base class for the Adaptor interface to simplify implementing adapters• Override getView() to inflate, populate, and return a custom view for the given index in the array.
  • 16. Customizing a GridViewActivity_main.xml Customized GridViewGrid_view_helper.xml
  • 17. Customizing a ListViewActivity_main.xml Customized ListViewlist_view_helper.xml
  • 18. •Q & A..?