SlideShare uma empresa Scribd logo
1 de 27
Baixar para ler offline
Jeff Bonnes
twitter: @titaniumdev
http://www.titaniumdevelopment.com.au
Easier Android
Development
Agenda
• Android Market and Behaviours
• Planning your App
• Smarter Defaults
• Tips,Tricks and Advice
Background
App Download Culture
0
25
50
75
100
iOS Android
App Download Culture
Android by the numbers
• Australian Market Share (Dec 2012)
0% 10.0% 20.0% 30.0% 40.0% 50.0% 60.0% 70.0% 80.0% 90.0% 100.0%
iOS Android
Android by the numbers
• Australian Market Share (Dec 2012)
• US Market Share
• Why?
X-platform Examples
X-platform Examples
X-platform Examples
X-platform Examples
Before you code
• Target API?
Before you code
• Devices / Screen Sizes?
Coding Approaches
• Different Apps
• Different UI Code
• Different CommonJS Modules
Project Setup
• dps vs pixels
• density specific images
Project Setup
• Other tiapp.xml values
Development Workflow
• You are using TiShadow, aren’t you?
• fastdev
• Android 2.3 in Emulator, 4.x on device
• Intel x86 Atom System Image: no Google APIs :-(
• VM for Emulator
• tracer.js
Navigation
Action Bar
• Android 3.0+ only
• Must use Heavyweight windows
Alternate Navigation
• TiXUI
• title
• titleControl
• barImage
• rightNavButton
• leftNavButton
require('xui').createWindow();
Light vs Heavy Windows
• Activity
• Back Button
• Animation
• activityEnterAnimation
• activityExitAnimation
• Memory?
• fullscreen
• navBarHidden
• modal
• windowSoftInputMode
Images
• Don’t allow
Android to
stretch images
• Don’t use
images for
backgrounds
(especially
windows!)
Show only what you need
• Things are S L O W E R
• JSON Parsing
• SQLite Updates
• event firing
• Load things only as you need them
Freeing Resources
• Close Windows
• Memory Debugging
• Instruments first
• then DDMS
Intents
• Do less work - use less frameworks
• See Titanium.Android.Intent
Packaging Tricks
• Image Compression
• uses-feature
• Icons - drawables (http://ticons.fokkezb.nl/)
ThankYou!
• twitter: @titaniumdev
• http://www.titaniumdevelopment.com.au
• https://github.com/jeffbonnes/TiXUI

Mais conteúdo relacionado

Destaque (9)

Andrea
AndreaAndrea
Andrea
 
Doc3
Doc3Doc3
Doc3
 
Holes anatomy example & acknowledgement
Holes anatomy example & acknowledgementHoles anatomy example & acknowledgement
Holes anatomy example & acknowledgement
 
Teaching International Students
Teaching International StudentsTeaching International Students
Teaching International Students
 
Augmented Reality with JavaScript and Appcelerator Titanium
Augmented Reality with JavaScript and Appcelerator TitaniumAugmented Reality with JavaScript and Appcelerator Titanium
Augmented Reality with JavaScript and Appcelerator Titanium
 
Grading System and Student Promotion
Grading System and Student PromotionGrading System and Student Promotion
Grading System and Student Promotion
 
Communication classroom talk
Communication classroom talkCommunication classroom talk
Communication classroom talk
 
Rigor and relevance ppt
Rigor and relevance pptRigor and relevance ppt
Rigor and relevance ppt
 
Evaluation of Student Learning Policy Feb. 2014
Evaluation of Student Learning Policy Feb. 2014Evaluation of Student Learning Policy Feb. 2014
Evaluation of Student Learning Policy Feb. 2014
 

Último

Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
vu2urc
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
giselly40
 

Último (20)

Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 

Easier Android Development with Titanium