Looks like a good solution for an unfortunate problem David. Anyone know what package is MotoBlur would be?
@Dianne I'm using this to instruct the user to change the "Lock phone after" or the "Security lock timer" for SenseUI or MotoBlur respectively. I need to use the right terminology. Also these two settings are "value added features" that break my app, Smart Lock. I'm pretty sure I can't access those custom skin api's. I know my app is a statistical outlier, but I'd call this fragmentation. Thanks, David Shellabarger On Aug 7, 12:50 pm, David <david_almi...@yahoo.com> wrote: > This is how I do it. I would use it sparingly though so you don't bind > your app to a particular phone. I really only use it to determine > whether or not I should be showing light or dark icons in the > notification bar. This seems to work fine with my HTC Incredible and > the emulator to determine whether it is there or not. Of course I > don't have two home screens installed on my incredible so I don't know > what would happen in that case. > > Hope this helps, > David > > private static final String SENSE_UI_LAUNCHER_NAME = > "com.htc.launcher.Launcher"; > private static BooleansenseUI; > > public static final boolean isSenseUI(Context context) { > if (senseUI== null) { > senseUI= false; > PackageManager packageManager = > context.getPackageManager(); > > Intent intent = new > Intent(Intent.ACTION_MAIN); > intent.addCategory(Intent.CATEGORY_HOME); > List<ResolveInfo> list = > packageManager.queryIntentActivities(intent, > PackageManager.MATCH_DEFAULT_ONLY); > for (ResolveInfo info : list) { > if (info.activityInfo != null && > SENSE_UI_LAUNCHER_NAME.equals(info.activityInfo.name)) { > senseUI= true; > break; > } > } > } > returnsenseUI; > } -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en