tags:

views:

46

answers:

1

How can I tell if a device is using HTC's SenseUI?

I thought about using android.os.Build information, but they seem inconsistent.. is there a more definitive way?

I need to be able to tell if I can launch the calendar by using com.android.calendar or com.htc.calendar.

I welcome any suggestions!!

A: 

You are welcome to use PackageManager to see if com.htc.calendar exists on the device. And you can use PackageManager to derive an Intent useful for opening that package. Whether that will "launch the (HTC) calendar" is up to HTC and Android, not you.

Also, as Marya suggests, what you are doing is not a good idea, because there is no rule that HTC will use com.htc.calendar on every Sense device, now and in the future.

CommonsWare
What's the better way to launch a calendar intent then?
@atolar: The Calendar application is not part of the Android SDK. There is no documented and supported way to "launch a calendar intent", for HTC or "plain" Android.
CommonsWare