130 likes | 266 Views
DataLogger For Android. based on Cosm.com. Presented by: Pang Zineng. What it does?. Data. Diagram. Environment. [Share]. [Share]. [Share]. Your World. (a Feed). (a Picture). How it works?. User. The User. 0..*. Feed. All feeds from this user. 0..*. Data. 1. Diagram.
E N D
DataLoggerForAndroid based on Cosm.com Presented by: Pang Zineng
What it does? Data Diagram Environment [Share] [Share] [Share] Your World (a Feed) (a Picture)
How it works? User The User 0..* Feed All feeds from this user 0..* Data 1 Diagram
How it works? User 0..* Feed 0..* Data All data from this feed 1 Diagram
How it works? User 0..* Feed 0..* Data 1 Diagram The diagram of this data
Structure User Interface Notification Controller Lightweight Controller C C C Cache Database Cosm C C C Hardware External Service
What is inside the components? Cache Database Cosm Hardware External Service
What is inside the components? Cache SharedPreferences External LocationManager, Email app, Downloader Database SQLite (built-in) Hardware Device Info, Network, MediaRecorder, Sensor Cosm HTTP, Cosm API (based on JPachube) Service NotificationManager, Services
Procedure of Creation How different components run • Create data • Update data • Share data
Database Procedure of Creation Create one feed Database Create one data Database Sensor table exists N Hardware Y Scan for available sensors Database Database Load and display sensor list Save sensors info Cosm Create data Database Save the new data
Service Procedure of Update Background Service running Hardware Get new data Hardware Internet connected N Y Database Database Offline data exists Save new data N Y Cosm Upload offline data Cosm Upload new data Service Update notification
Database Procedure of Sharing Enter one Data Cosm Download diagram and statistic External Hardware Display diagram Cache External Email app exists N Y External Share diagram via email fails Cache
Q & A If any…