Transaction Management in Database Management System
Context Awareness in a Smart Home
1. CONTEXT AWARENESS
IN A SMART HOME
Robin De Croon
@robindecroon & robindecroon.wordpress.com
Advisor dr. Joris Klerkx
Supervisor prof. dr. ir. Erik Duval
2. Content
•Context
•Real Data
•Rapid Prototyping
•Programming Problems
•Statistics & Planning
•Demo
March 26, 2013 2
http://blog.thoughtpick.com/wp-content/uploads/2011/01/web_design_services.11-18.web_content.jpg
3. CONTEXT
Context
Real Data
Rapid Prototyping
Programming Problems
Statistics & Planning
Demo
March 26, 2013 3
4. Context & Purpose
•Mobile application
•Context Awareness
•Smart Home Technology
•Data Visualization
March 26, 2013 4
5. REAL DATA
Context
Real Data
Rapid Prototyping
Programming Problems
Statistics & Planning
Demo
March 26, 2013 5
6. Visit to UGent
•Jelle Nelis
•DYAMAND
• (DYnamic,Adaptive MAnagement of Networks and Devices)
http://ieeexplore.ieee.org/xpl/login.jsp?tp=&arnumber=6423604&url=http%3A%2F%2Fieeexplore.iee
e.org%2Fxpls%2Fabs_all.jsp%3Farnumber%3D6423604
March 26, 2013 6
14. Tablet Application?
M. de Sá and L. Carric¸o,
“Low-fi prototyping for mobile devices,”
in CHI ’06 extended abstracts on Human
factors in computing systems –
CHI EA ’06, (New York, New York, USA),
p. 694, ACM Press, 2006.
March 26, 2013 14
20. Exhausting for the eyes Me
“Bright colors can become tiresome on the eyes and should not be used for large areas of a screen and a
vibrating effect can result from contrasts in brightness being too large or when eyes have difficulty focusing
because of two similarly saturated colors used in combination “ - Stone, Debbie [et al.]. User Interface Design
and Evaluation. Morgan Kaufmann, 2005.
March 26, 2013 20
31. Bugs
March 26, 2013 31
http://info.nsiserv.com/Portals/14250/images/broken%20android.jpg
32. PROGRAMMING
PROBLEMS
Context
Real Data
Rapid Prototyping
Programming Problems
Statistics & Planning
Demo
March 26, 2013 32
33. Hiding Action and Navigation Bar
•Different fullscreen themes
•Different flags
• SYSTEM_UI_FLAG_HIDE_NAVIGATION
• SYSTEM_UI_FLAG_FULLSCREEN
• SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN
• SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION
• SYSTEM_UI_FLAG_LOW_PROFILE
No fullscreen application or
March 26, 2013 Lights out mode 33
34. WebView dynamic size
• WebView reports wrong size
• Not ready when Window.width is called
• Different JavaScript functions
• Different Layouts for webview
• Fixed size
• Reloading the website
• Interface between Java and JavaScript
Window.setTimeout (35 milliseconds)
March 26, 2013 34
35. Selection in ListView
• Unable to select first element programmatically
• Element is selected, but not shown
• Different method calls
• setItemChecked(0, true);
• setSelection(0);
• performItemClick();
• onListItemClick();
• smoothScrollToPosition(0);
• Invalidate()
• Custom layout()
Not needed anymore
March 26, 2013 35
36. DatePicker
•One calendar to select two dates
•DatePicker with from and until
2 subsequent DatePickers
March 26, 2013 36
37. Spinners
March 26, 2013 37
http://images.sodahead.com/polls/002260503/1620742673_532dd66d_mind_blown_xlarge.jpeg
38. Spinners
• (Visibly) select item programmatically & reset
other spinners
• Set selection
• Reset (object to null, reinitialize)
• Remove all spinners from layout
New Activity
• Underline selected item
SpannebleString in custom Listener
March 26, 2013 38
39. Spinners
•Spinners on the left
Custom layout
•Initial text
• Dummy item + Removing dummy item
NoDefaultSpinner (java reflection)
•Reselect selected item
Not necessary (because of other hack)
March 26, 2013 39
40. Retrieving data from Loxone
•FTP connection
• But hashed files (hmac-SHA1)
•XML files accessible through HTTP
• But random file names!
• How to get file list?
• Login required
File names through FTP,
HTTP connection afterwards
March 26, 2013 40
41. STATISTICS
&
PLANNING
Context
Real Data
Rapid Prototyping
Programming Problems
Statistics & Planning
Demo
March 26, 2013 41
44. Planning
• Loxone (30)
• Implementation (40)
• Yield
• Settings
• Evaluation Digital Prototype II (30)
• Literature Study + Paper (20)
• Writing text + blogposts (100)
• Final presentation + defense (40)
• Social Activities (20)
March 26, 2013 44