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
patches.

On Thu, Mar 5, 2009 at 1:14 PM, MakeMobile
<makemobileinnovati...@gmail.com>wrote:



--
Dianne Hackborn
Android framework engineer
hack...@android.com

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. Android Emulator Internet Connectivity*

I followed these steps on following Emulator.

Emulator Details = (Target Name= Android 1.6, Platform = 1.6, API
Level= 4).

Steps = Settings -> Wireless Controls -> Mobile Networks -> Access
Point Names -> T-Mobile US.

Then entered value for proxy and port, and thus can access the
Internet sucessfully from emulator browser.

-----------------------------------------------------------------------------------------------------------------------------------------------------

But same steps when followed on the emulator with google API failed to
connect to internet.


Emulator Details = (Target Name= Google APIs (Google Inc.), Platform =
1.6, API Level= 4).

--------------------------------------------------------------------------------------------------------------------------------------------------
 Similarly when followed the following steps in latest emulator
failed, again failed on internet connectivity

Emulator Details = (Target Name= Android 2.1, Platform = 2.1, API
Level= 7).

Steps = Settings -> Wireless and Networks -> Mobile Networks -> Access
Point Names -> TelKila.

Then entered value for proxy and port.

---------------------------------------------------------------------------------------------------------------------------------------------------------

Question> If same steps are connecting emultaor of older version
connect to internet why is it failing in case of Google API's and New
version?

                How to connect my map and browser to internet in
latest emulator?

------------
Thank You

-- 

2. Need help with PlatformLibrary sample

Hi,

Awhile back I wrote some customized code that modified the underlying
framework to perform some tasks I needed to do.  Unfortunately, that
implementation was coupled and statically compiled with the rest of
the android framework code, which I soon learned was not supported
practice.  I was then referred to the PlatformLibrary example to use
as an example for supporting customized framework code without having
to modify the android framework.

Now that I finally have some time to do this and refactor that code I
wrote a while back, I'm now looking at this sample.  However, I think
I've spent way too much time trying to even get this to work and run
on the emulator.  I've googled the groups for any answers, and even
though there are some references to it, I never got it to completely
work.  I think I've pushed through the proper files to the emulator
(.so, .jar, .xml permissions file) yet everytime I do an adb install
on the PlatformLibraryClient I continue to get a
INSTALL_FAILED_SHARED_LIBRARY error.  I even 'make clean' a couple of
times and tried to retrace my steps, but nothing worked!  The only
thing I managed to work is having the client code recognize the APIs
from the PlatformLibrary class without throwing a compile error in
Eclipse.

Anyway, I hope this is not too much to ask, but if anyone out there
has gotten it to work, can someone post the correct steps on how to do
it from the moment we do a 'repo sync' on the branch, including what
make commands to invoke, what proper files to push to the emulator,
etc?  I'm working on cupcake at the moment, and as I mentioned, I
started on a clean build first, it didn't work, then followed the
steps I've seen on the other group postings, that didn't work (pushing
the client on the emulator that is), redo everything using make clean,
etc.

Thanks.  Really appreciate this.  I hope someday soon these steps/
tutorial will be posted on the developer.android.com site.

MB


-- 
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: 

3. Animating a ViewGroup without Clipping

4. selection random string from strings.xml

5. Is there any book on rails?

6. Fwd: Adding a new package to the source

7. Trackball Light