> I would really like to know why people want to know they are running with
> Sense UI.  Is it just for notifications?  Are there other things?

Yes, there are. The Sense UI changes some of the API's behavior. I
know of two things that work differently on Sense UI. Both of them
have to do with my app, which changes the number being dialed.

1) The call log won't allow updates. It strangely allows inserts but
even though it lets you insert the phone number dialed it won't allow
you to also insert the display name (if you do it stays as "unknown"
and looks really awkward). I opened a discussion about this a while
back and didn't realize back then that it only happened on Sense UI
phones. Some people argued that you shouldn't touch the call log (even
though there's nothing about that in the documentation). On the
emulator and on non-Sense UI devices it works flawlessly (at leas on
all of those that I've tested so far). My app need this to keep the
original dialed number in the call log. In this case, when running
Sense UI it's better not to touch the call log that to touch it and
have it look awkward.

2) In particular HTC Desire with Android 2.2 won't allow you to change
the number being dialed.
(see thread:
http://groups.google.com/group/android-developers/browse_thread/thread/1e23230cfaae5038/3fd980598e78c479?lnk=gst&q=desire+2.2)
I do admit that in this case I'm not completely sure it's a Sense UI
problem (I've seen it happen on Motorola devices but it was an easy
fix, removing the priority setting from the Intent). I also had
reports from Desire 2.2 users that had this working and one day, it
just stopped to never work again.


On Sep 28, 12:36 am, GodsMoon <godsm...@gmail.com> wrote:
> 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

Reply via email to