How can you make your app stand out? Want users coming back for more? Make your application come to life with haptic feedback! Haptic (or touch) feedback create interactive and engaging user experiences, which translates to more enthusiastic users investing more time in your app...In this session, we will take you step-by-step through the Immersion MOTIV SDK, teaching you how to quickly and easily incorporate pre-designed haptic effects to your apps.
15. What does the MOTIV SDK do for you?
Saves you time developing effects that feel good
across all Android devices and platforms, not just a
single device or platform version (1.6 or higher)
Allows you to have more than simple motor on/off
vibration control, like ramps, staccato repeats and
complicated patterns
Consistent vibe effects across ALL Android devices.
Devices with TouchSense embedded player technology
will feel the best (1/4 billion devices to date) but the
MOTIV emulator creates compatibility support on all
other Android devices. Code once!
15
16. Example – Benefits of MOTIV SDK
Using standard Google vibrate () you must define
motor “on” durations for each device type
– Not useful, not effective for gaming
– Very time consuming to code
– Your effect may feel fine on one Android device but horrible
on another, due to differences in vibe motors
Using MOTIV, we abstract this level for you
– You choose an effect you want from a library
– It will automatically feel consistent across all devices
whether it is an explosion, click, or bounce
– We call this our Universal Haptic Layer (UHL)
16
29. Play Effect
Play a haptic effect
try
{
m_launcher.play(Launcher.BOUNCE_100);
}
catch (RuntimeException e) {}
Use Effect Preview Application on your target Android phone
to choose effect.
30. Stop Effect
• Stop the haptic effect.
try
{
m_launcher.stop();
}
catch (RuntimeException e) {}
Add this to Activity onPause function in case a
phone call is received.
30
31. In a nutshell, that‟s it!
If you can handle the setting up your Eclipse
environment and understand the last five slides…
Then you should be able to add cool UHL effects to
your applications.
But let‟s review the steps within the Eclipse environment
itself through the creation of a simple rolling ball demo
application just to make sure you understand.
31
34. Additional Resources
http://www.immersion.com/MOTIVsdk
Developer guide
http://www.immersion.com/MOTIVguide
Reference doc
http://www.immersion.com/MOTIVref
Sample code
http://www.immersion.com/MOTIVcode
Forum
http://www.immersion.com/MOTIVforum
MOTIV Studio (Only for advanced custom effect design)
http://www.immersion.com/MOTIVsdk
35. Immersion‟s Got Apps Campaign
Immersion Building a Wall of Haptic Apps for Mobile World
Congress (MWC „12) in Barcelona, Spain.
– Show us your apps using the Immersion MOTIV UHL SDK and
add “Integrated with Immersion MOTIV Haptic Effects” to
your description page
– Launch in Android Market or any other Android app store
– If your app is compelling, we‟ll help you promote it and demo
it at Mobile World Congress – Feb 2012 and other tradeshows
– AND drive connection to our OEM / Carrier partners
Contact us at MOTIVdev@immersion.com to participate 35
Immersion provides Android developers with a Universal Haptic Layer (UHL) that includes a library of 124 prebuilt haptic effects. You can also use Immersion’s MOTIV Studio to easily create your own custom haptic effects. MOTIV Studio works in tandem with MOTIV Bridge to allow you to test effects on an Android device.
This application also shows you the code needed for playback within your application when you sample an effect in this app.
Immersion is looking to build a wall of devices as well as a wall of applications for Mobile World Congress. We would like to add more application demos to our devices as well as showcase to our OEM partners for potential bundling opportunities. We are getting more and more demand for haptic applications in the market place and from our partners. Developers can contact us through the MOTIVdev@immersion.com if they have a cool Haptic app to tell us about.
These are some but not all the various activities and co-marketing efforts Immersion is willing to invest in compelling applications. We make a lot of effort to showcase new and exciting applications from developers.