Neither user nor current process has android.permission.SET_PREFERRED_APPLICATIONS

by Dianne Hackborn » Fri, 06 Mar 2009 04:13:38 GMT

Sponsored Links
 Ah yeah.  This is either a bug, or just not something that is supported.  We
will change Dialtacs to not use implicit intents for its tabs, since
replacing them just won't work.  This will avoid running into such problems
involving it.

> > 

Neither user nor current process has android.permission.SET_PREFERRED_APPLICATIONS

by Dianne Hackborn » Fri, 06 Mar 2009 07:54:28 GMT

 t is not currently possible to replace tabs across non-trusting .apks --
this would require running the activity of the tab content in a different
process than the containing tab, and we just can't do that right now.

Also there is nothing in the SDK saying that Dialtacts as it stands will
continue to exist in its current form. I would completely expect that other
manufacturers of Android phones will have their own totally different
dialers, with different tabs, or no tabs at all, so replacing the entire UI
is really the only safe thing to do.

As far as permissions, I believe the only special permission Dialtacts has
is for placing emergency calls, so if you wanted to replace it you would
need to have a button to get to the built-in dialer for emergency calls.
Sorry about that, but that's unfortunately a restriction we have to live
with for now.

I think there may also be some private APIs that the current impl uses (such
as maybe showing presence information with contacts) so you wouldn't be able
to write something that is functionality identical to the standard one.
This is also somewhat the nature of the beast -- you can be sure that
various manufacturers will do exended dialers with all kinds of hooks into
special parts of their particular device. This is really a UI that is so
fundamental to a lot of the specifics of a particular device that these
things are going to be the case.

We would certainly like to have more extensive facilities for
replacing/customizing the dialer, but I can't tell you what or when that
might be. If there are things you see that can help, we would welcome

On Thu, Mar 5, 2009 at 1:14 PM, MakeMobile

Dianne Hackborn
Android framework engineer

Note: please don't send private questions to me, as I don't have time to
provide private support. All such questions should be posted on public
forums, where I and others can see and answer them.


Sponsored Links

Other Threads

1. How to dump rom?

Hello all I have been trying to redo the rom and make some
modifications to the rom on my g1 and have had good luck at it so far
but always had the dreamimg.nbh to flash back if I messed up. I am
wanting to do the same thing to thre Google Ion phone that I got from
the I/O conferance. Does anyone know how I can dump the entire rom
from the phone the way it is first or a nbh for the phone the way it
is now or a way I can make one? Thanks everyone.

2. RelativeLayout breaks the paradigm of ViewGroup with onMeasure and onLayout

> RelativeLayout does exactly what the documentation says it should be

No, they're not.  They are assigned in onMeasure(). Well, if you want
to get technical, they are calculated in onMeasure(), and assigned in

The size and position should be determined in onLayout.  They are not,
they are determined in onMeasure.  The javadoc explicitly states that
the size and position should be determined in onLayout.  They are not.

In my previous post I stated that this was a problem when you override
the class.

I understand the rationale here.  Obviously it would be inefficient to
calculate all of these values twice. There could be a way around this,
such as having an invalidation flag, which would make onLayout
recalculate the values as necessary.

Anyways, no big deal.  If I could update it myself, I would update the
javadoc for RelativeLayout to say that the values are calculated in
onMeasure and not onLayout.

- Matt

3. how can i get all View info of the forground activity

4. A way to change context menu background and selector

5. Video play error

6. Content Provider notifications?

7. Get Assisted GPS server address from device