android advanced techniques

Post on 24-Apr-2015

544 Views

Category:

Technology

3 Downloads

Preview:

Click to see full reader

DESCRIPTION

Me and my friend Eugeniu Arbuleac had the pleasure to speak about some advanced techniques in developing Android apps at the GDG Timisoara Inaugural Event.

TRANSCRIPT

ANDROID ADVANCED TECHNIQUESEugeniu Arbuleac@arbuleacarbuleac.ev@gmail.com

Andrei Catinean@electrycandrei.catinean@gmail.com

APPLICATION

INTELLIGENT

SMOOTH

INVISIBLE

EFFICIENT

RELIABLE

FRESH

FRESHNESS

FRESHNESS

Fresher - more battery drain

FRESHNESS

Fresher - more battery drain Location update

FRESHNESSLOCATION UPDATE

Use Passive Location Provider

FRESHNESSLOCATION UPDATE

Use Passive Location Provider

String passProvider = LocationManager.PASSIVE_PROVIDER;locManager.requestLocationUpdates(passProvider,minTime, minDistance, locListener);

FRESHNESSLOCATION UPDATE

Use Passive Location Provider

Location listener + Broadcast intents => getting location when your application is not running

FRESHNESSLOCATION UPDATE

General flow : get providers get accuracy set current data

FRESHNESSLOCATION UPDATE

General flow : get providers get accuracy set current data

Monitor the best provider !

FRESHNESS

Fresher - more battery drain Location updateData update

FRESHNESSDATA UPDATE

How frequently do you do this ?

FRESHNESSDATA UPDATE

How frequently do you do this ?

Alarms Wakeup vs. NonWakeup

FRESHNESSDATA UPDATE

How frequently do you do this ?

Alarms Wakeup vs. NonWakeup

twice a day every 30 min

FRESHNESSDATA UPDATE

Connectivitywithout: stop alarms

poor: less frequent updates

Battery Managercharged: go update

not charged: less updates

INTELLIGENCE

INTELLIGENCE

Give as many suggestions as you can

INTELLIGENCE

Give as many suggestions as you can

AccountManager Autocompletion

INTELLIGENCE

Give as many suggestions as you can

AccountManager Autocompletion

Sync devices

INTELLIGENCE

Give as many suggestions as you can

AccountManager Autocompletion

Sync devices Backup your application data

SMOOTHNESS

SMOOTHNESS

Fast, responsive and consistent

SMOOTHNESS

Fast, responsive and consistent

Move all your tasks to background - use AsyncTask and Loader APIDroidcon Bucharest 2012 Roman Mazur keynote - http://goo.gl/XR5HU

INVISIBILITY

INVISIBILITY

“Queue and Send” Pattern

check(connection);

if(!connected){!! addQueue;!} else if(!action){! !! ! addQueue;} !retry later;

INVISIBILITY

Stick to the design guidelines - use standard patterns d.android.com/design

INVISIBILITY

LESS is MORE more functionality in less actions

Stick to the design guidelines - use standard patterns d.android.com/design

INVISIBILITY

Droidcon Bucharest 2012 Android UI/UX - Best Practices : http://goo.gl/vJBSU

EFFICIENCY

EFFICIENCYLow battery draining

EFFICIENCYHow cell radio works

EFFICIENCYHow cell radio works

EFFICIENCY

Bundle Cache Intelligent updates

RELIABILITY

image provided by androidify.com

Test your applications

WRAPPING UP

Build your FRESH, INTELLIGENT and SMOOTH apps

Remain invisible

Efficiency is your main aim

Don’t forget about being reliable

QUESTIONS ?

THANK YOU !

Eugeniu Arbuleac@arbuleacarbuleac.ev@gmail.com

Andrei Catinean@electryc

andrei.catinean@gmail.com

top related