11. Sensors
How are you holding it
You are going too fast
You’re off by 180 degrees
Rollercoasters are awesome
11
12. Sensors
Ÿ Accelerometer
„ Acceleration in m/s/s (x,y,z)
Ÿ Magnetometer
„ Magnetic field in uT (x,y,z)
Ÿ Gyroscope
„ Angular velocity in rad/s (x,y,z)
Ÿ RotationMatrix
„ Rotation on x, y, z
Ÿ Compass
„ Degrees from north
12
22. Headless Apps
Ÿ Do I need to be headless
Ÿ Should I always run
„ Long Running Headless Apps
Ÿ Should I run on certain triggers
„ Trigger based headless apps
22
23. Headless Triggers
Ÿ Port directed SMS
Ÿ Geofence Enter/Exit
Ÿ Device Startup
Ÿ Push Notifications
Ÿ more to come…
23
37. Analytics
Use to measure
Ÿ Audience reach
Ÿ Engagement
Ÿ Usage pattern
Ÿ Retention, conversions, revenue and more
Use to track key metrics
Ÿ purchases, downloads, revenues, rankings, etc.
37
45. String Pattern
Ÿ Register for String Patterns
„ RegEx or Strings
Ÿ Make them active links
Ÿ Get invoked by them
45
46. Notifications
Something that can wait?
„ Hub notifications with invoke
Immediate attention required?
„ Show a Notification Dialog
Not immediate but can’t wait too long
„ Instant Preview with invoke
46
47. Hub Integration
Ÿ Appear as an account in Hub
Ÿ How will you sync your messages?
Ÿ Push Notification Service
„ Requires Push trigger
Ÿ Periodic sync
„ Requires a long running headless
Ÿ Connect with invoke hooks for
„ View/Delete/Reply etc.
47
48. Active Frames
Show the single most important item
Is it more important for users to see the
state of the app when it is minimized?
Update when new data arrives
48
51. Battery
Ÿ Monitor
„ Condition
„ Charge capacity
„ Level
„ Temperature
Ÿ Should you still play that video?
Ÿ Should you turn off location queries?
51
57. How can I find out more?
57
• Code
• Example
source
code
available
on
Git
Hub
h8ps://blackberry.github.com
• Support
• More
detailed
help
and
informaAon
is
available
on
the
Support
Forums
h8p://supporDorums.blackberry.com
• Contact
us
if
you
have
ques-ons
• Twi8er
• Ranbijay
Kumar
@ranbijay
• Sean
McVeigh
@sdlmcveigh
Resources
58. For More Information…
Ÿ JAM805 - Beyond the Device: Extending the Device
Experience with Wireless Peripherals
Ÿ JAM804 - Beyond the Device: Extending the Device
Experience with (mostly) Wired Peripherals
Ÿ JAM803 - How the Use of NFC is Evolving: Innovative
Ways to Use NFC Beyond Payments
Ÿ JAM834 – Making the Most of Cards and Invocation
58
59. For More Information…
Ÿ JAM840 – Headless Apps with Cascades
Ÿ JAM842 – Native Camera: View the World from a
Different Angle
Ÿ JAM839 – Maps, Geofencing and Location Based
Services in your App
Ÿ JAM825 – Understanding Who Uses Your App and How
with in-app Analytics
59