OpenSense SDK Update Available for Download

 

It’s hard to believe it’s been over three months since Mobile World Congress in Barcelona where we announced some exciting new updates to the HTC OpenSense Software Development Kit (SDK).  Based on your response to that post it’s clear that you’re excited about the chance to build more applications that run on our platform.

Well, the time is here and we’re excited to announce these new APIs are available in the latest release of the SDK at htcdev.com!  Now you can download the update and begin implementing your own innovative new apps that plug into features like the Sound Enhancer, Lock Screen, new Common Controls or Media Link HD (coming soon).

For example, if you want to your app to check for the Sound Enhancer API and then set a click handler to start it up, you can do this with only a few lines of code:

/**
* Sets the click listener of passed in View to launch HTC Sound Enhancer if possible.
*
* @param enhanceSoundButton View to set click listener on
* @return true if the click listener was set
*/

private boolean setHtcSoundEnhancerOnClick(final View enhanceSoundButton) {
final Intent enhanceSoundIntent = new Intent(
“com.htc.HtcSoundEnhancerSetting.ShowSettingPage”);

// Check if API is supported.
final List<ResolveInfo> activities = getPackageManager()
.queryIntentActivities(enhanceSoundIntent, NO_FLAGS);

if (activities.isEmpty()) {
return false;
}

// Call it on click.
enhanceSoundButton.setOnClickListener(new OnClickListener() {
@Override
public void onClick(final View view) {
startActivity(enhanceSoundIntent);
}
});
return true;

}

This is really the essence of the API.  It’s clear, concise, and won’t take a lot of development cycles to bring a nice differentiating feature to your app when it runs on an HTC device.

We’ve also updated the Developer Center section of the HTCdev website to include new sample code, like the one above, and tutorials to help kick-start your development process.  If you’re starting from ground zero and want to know how to get started with Android development, you can always begin with the Orientation to Android Training as a launch point for your development needs!

At HTCDev our goal is to provide resources for those with development experience, but also to create new developers out of many of you who have been ‘thinking about writing an app.’ We know there’s a lot of you out there eager to start coding and put your creative juices to work.  Our enthusiastic group of Developer Evangelists is here for all your mobile development needs, so don’t be afraid to reach out to us!  Follow us on Twitter at @htcdev and any comments or suggestions are welcome.

Once you’re finished coding, click here to tell us about the awesome app you’ve built!

  • Pingback: HTC’s OpenSense SDK gets update, now available for download « android-alert

  • Lance Nanek

    The currently public APIs don’t support complete custom skinning at the moment. They do allow apps to offer users customization to the lock screen appearance and behavior, however. User choose to use these from their settings app, in the personalization section.

  • http://twitter.com/jetleigh Leigh

    Hi! Thanks for the comment – see my team mate Lance’s response above. Let us know if you have other questions regarding the APIs!

  • http://www.facebook.com/profile.php?id=1294167524 Abanoub Maher

    i want to know when is the ics update for htc rhyme i saw that sony ericsson xperia mini got the ics why not the rhyme and i want to know will it lag when ics is updated so i love this phone and i have ne x too but i want to know about the rhyme plz

  • Kiran Kumar

    can i update my HTC Explorers sense version to sense 4.0 ? and how about rooting my mobile and installing custom ROM and ICS 

    sorry if i was wrongly asken actually i/m a noob about these mobile things

  • http://www.facebook.com/narendra.jadon Narendra Jadon

    will htc one v get sense 4 full version in future????
    or it will remain lite version only??? :/

    • Lance Nanek

      Hi Narendrea. Nothing has been announced re changing the One V from Sense 4.0a. I’ll forward that it is being requested to the right people, though. Thanks for the interest!

  • http://www.facebook.com/profile.php?id=100000106712053 Ramu Bhai

    Hello HTC Guys,
    I ready somewhere that “Media Link HD” won’t work with HTC One V. Is that true, that would be sad. :(

    You guys could allow just the Mirror mode (whatever comes on phone comes on big screen)… Leave Dual Mode if that is too intensive.

    Cheers.

    • Lance Nanek

      Hi Ramu. Some basic functions like playing movies, music, and pictures to the MediaLink HD will be supported on One V in the future, although not mirror mode.

  • http://www.facebook.com/milenkovic.branko Branko Milenkovic

    After updating my HTC One V, Sound Enhancer for Beats Audio is disappeared. No more presets. Why did you remove this feature?

  • http://www.facebook.com/profile.php?id=100000783729348 Anurag Bisht

    Hi, the day I bought a HTC phone back a few months ago, I have fallen in love with the user interface and the style symbol u people provide to this phone . Not only hardware but the software say sense is of top notch. Well could you guide me as I want to pursue my career as an app developer is there any way I could develop apps For HTC, I’m serious about it and would love to work with HTC in near future. I would definitely check new open sense SDK ,

  • Michelle Frazier-Plank

    When will ICS be available for Vivid?

    • http://twitter.com/LanceNanek Lance Nanek

      Hi Michelle, ICS update for Vivid is already out. Have you tried the “Check for Updates” option in your phone’s software settings? Are you sure you aren’t using a custom ROM?