This is an old revision of the document!
Activity Classification
Kelvin Zhu and Gary Sham
Goals
- iOS app to collect telemetry information
- data mining and classification of activities from the telemetry
iOS App
Kelvin Zhu's Hello World program
It is pretty easy to build a single-view iphone/ipad application building view-based project using xcode. After building the project, we can add buttons, labels, text(for input or output) and even pictures onto the view using interface builder.
There are two basic kinds of objects, outlet and action, to realize all the functions for ipod application. Outlet is like variable while action like function. So, to store the input or output for an ipod application, we should use outlet while using action when to implement buttons. We can easily write some objective-c code and link the cotent to all items you've built in interface builder, through which, the objects shown in applications can be linked with the codes written.
Sensors | Location | Connectors and input/output | |
---|---|---|---|
iPhone 4 | Three-axis gyro Accelerometer Proximity sensor Ambient light sensor | Assisted GPS Digital compass Wi-Fi Cellular | 30-pin dock connector 3.5-mm stereo headphone minijack Built-in speaker Microphone |
iPhone 3GS | Accelerometer Proximity sensor Ambient light sensor | Assisted GPS Digital compass Wi-Fi Cellular | 30-pin dock connector 3.5-mm stereo headphone minijack Built-in speaker Microphone SIM card tray |
iPhone 3G | Accelerometer Proximity sensor Ambient light sensor | 30-pin dock connector 3.5-mm stereo headphone minijack Built-in speaker Microphone SIM card tray |
|
iPad | Accelerometer Ambient light sensor | Wi-Fi Digital compass Assisted GPS (Wi-Fi + 3G model) Cellular (Wi-Fi + 3G model) | Dock connector port 3.5-mm stereo headphone jack Built-in speaker Microphone Micro-SIM card tray (Wi-Fi + 3G model only) |
iPad2 | Three-axis gyro Accelerometer Ambient light sensor | Wi-Fi Digital compass Assisted GPS (Wi-Fi + 3G model) Cellular (Wi-Fi + 3G model) | Dock connector port 3.5-mm stereo headphone jack Built-in speaker Microphone Micro-SIM card tray (Wi-Fi + 3G model only) |
Sensor attributes Location <CLLocation>
altitude: for getting the height, just like the altitude in geography. Measured by meter coordinate(latitude, longitude): just same as those in geography. For latitude, the range should be [-90(south pole), 90(north pole)]. For longitude, the range should be [-180(west of the prime meridian), 180(east of the prime meridian)]