11.07.2015 Views

System Introspection for System Analysis on Mobile Devices

System Introspection for System Analysis on Mobile Devices

System Introspection for System Analysis on Mobile Devices

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

(a) Login screen (b) Waiting <str<strong>on</strong>g>for</str<strong>on</strong>g> resp<strong>on</strong>se (c) Probe not reachableFigure 6.6: Login view and c<strong>on</strong>necting to the probe - Image a showsthe parameters <str<strong>on</strong>g>for</str<strong>on</strong>g> the c<strong>on</strong>figurati<strong>on</strong> of the communicati<strong>on</strong>.Image b shows the status indicator while c<strong>on</strong>nectingto the probe. Image c shows the error displayed if thec<strong>on</strong>necti<strong>on</strong> could not be established.Beac<strong>on</strong> - Keep C<strong>on</strong>nected to the ProbeThe Beac<strong>on</strong> class <strong>on</strong> the mobile client is implemented as a thread. This allowsto run the beac<strong>on</strong> in background and in parallel to other activities. The beac<strong>on</strong>is checked with a lower frequency defined in the c<strong>on</strong>fig file to reduce theimpact <strong>on</strong> the system load. The beac<strong>on</strong> listens to the communicati<strong>on</strong> interface<str<strong>on</strong>g>for</str<strong>on</strong>g> incoming beac<strong>on</strong>s send from the probe. The timestamp of the probeis <str<strong>on</strong>g>for</str<strong>on</strong>g>warded to the TabC<strong>on</strong>fig view. The Beac<strong>on</strong> class m<strong>on</strong>itors the countof missing beac<strong>on</strong>s and resets the counter to zero whenever a new beac<strong>on</strong> arrives.If the counter <str<strong>on</strong>g>for</str<strong>on</strong>g> maximum missing beac<strong>on</strong>s is exceeded the Beac<strong>on</strong>thread stops the current activity and switches to the login view. The count ofmaximum missing beac<strong>on</strong>s can be c<strong>on</strong>figured in the c<strong>on</strong>figurati<strong>on</strong> file.TabManager - C<strong>on</strong>trol via Tabbed Navigati<strong>on</strong>When a client is successfully c<strong>on</strong>nected an instance of the TabManager classis created. The TabManager class extends the TabActivity class and actsas a c<strong>on</strong>tent holder <str<strong>on</strong>g>for</str<strong>on</strong>g> the different views. Each view implemented as a tabis named with a “Tab” prefix to distinguish a normal view from a tab view.Extending the TabActivity class allows c<strong>on</strong>trol of the interacti<strong>on</strong> whenever aview is switched. To display the tabs <strong>on</strong> mobile devices with a lower resoluti<strong>on</strong>,the tab navigati<strong>on</strong> can be scrolled horiz<strong>on</strong>tally.45

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!