55
events were organized by JUG Switzerland during 2023.

Jeff Lawson has thirty years' experience as a software developer and trainer.

His first Java product was a JNDI service provider, which he presented at JavaOne 2001. Since then he has worked on many Java products, including WebSphere at IBM's Toronto Software Lab.

Jeff currently develops Android apps and delivers Android training courses in Switzerland.

18.12.2014

Building Robust Android Apps

A Comprehensive Solution

LOCATION: Luzern
KEYWORDS: Hands-On, Lessons learned, Methods

AGENDA:18:15 - 19:30h: Talk incl. Q/A
Afterwards you are invited to a refreshment.

SPEAKER: Jeff Lawson   COMPANY: Cogent Logic

Developers who are new to Android tend to focus on activities, the components that implement the user interface.

It is natural to store application state as instance variables within activities but we soon discover that activities are transient and their state is soon lost.
Some people solve this problem by using class variables or by having each activity access a database. Neither of these solutions works well!

Imagine an app with just one activity and imagine that this activity starts a background thread. Suppose the user hits the back button, which destroys the activity. The system will automatically end the app (Linux process).
What happens to the background thread? It will be killed, resulting in incomplete execution and possibly an inconsistent or corrupt database state.

Clearly, what is needed is a robust app architecture that is fully compliant with the transient nature of activities, that is designed to run background threads orthogonal to activities, that supports asynchronous processing and database access and handles app lifetime in an orderly manner.
In short, we need a robust architecture for Android apps!

This presentation describes such an architecture. Complete sample code is provided.

LEVEL OF TALK: Intermediate
LANGUAGE: Talk: en / Slides: en


Jeff Lawson has thirty years' experience as a software developer and trainer.

His first Java product was a JNDI service provider, which he presented at JavaOne 2001. Since then he has worked on many Java products, including WebSphere at IBM's Toronto Software Lab.

Jeff currently develops Android apps and delivers Android training courses in Switzerland.


LEVELS:

BEGINNER
The presented topic is new to the audience or only little and superficial experience exists. This talk will mainly cover basic aspects of the topic and not go into much detail.

INTERMEDIATE
The presented topic is known to the audience, serious practical experience is expected. This talk might cover some basic aspects of the topic, but will as well go into depth and details.

ADVANCED
The presented topic is well-known to the audience, serious practical experience and a deep understanding are required. This talk will not cover basics of the topic, but will go into depth, might discuss details, compare different approaches, and so on.

ALL
The topic presented is of interest to all levels and does not require any special prior knowledge.

top

Supporting members

Platin

Gold

Silver

 
 

 

About

JUG Switzerland aims at promoting the application of Java technology in Switzerland.

JUG Switzerland facilitates the sharing of experience and information among its members. This is accomplished through workshops, seminars and conferences. JUG Switzerland supports and encourages the cooperation between commercial organizations and research institutions.

JUG Switzerland is funded through membership fees.

Design
Partner

 

Contact

Java User Group Switzerland
8000 Zürich
info@jug.ch

© Java User Group Switzerland