Still trying to get my head around permissions - can anybody help?

by Mark H. Nichols » Wed, 16 Jun 2010 08:14:40 GMT

Sponsored Links

I'm brand new to Android development myself, so I could be completely wrong 
here. I suspect that it isn't a permissions issue as much as it is a restrict 
API issue. As you state above, ordinary applications aren't allowed to call the 

What I think you want is the list of restricted API calls, or rather a list of 
the "internal to Google" content providers. By examining the source code you 
could discover these and perhaps utilize them, but at your own peril. 

Was a widget to put the phone to sleep a learning exercise or part of an 
application you wanted to develop?


Still trying to get my head around permissions - can anybody help?

by Richard C. Cox » Thu, 17 Jun 2010 03:54:08 GMT

 Hi Mark,

Thanks for the response.

Yeah, goToSleep may be restricted in the API, but it says nothing about that 
in the SDK Documentation.  I based my assumptions about it being a permission 
issue on a comment I saw over at the Stack Overflow forums.  Somebody mentioned 
that they got a security exception when they tried to call one of the Power 
Manager functions and the response's a level 2 permission, which 
effectively makes it off limits to user programs.

So, I'm not sure.  I guess I was wondering if there was any documentation 
available to definitively states what API object methods an ordinary 3rd party 
application can and can't use.  

Oh, and the app I was writing was a bit of both.  Learning the API and trying 
some practical code bits to see what my app can and can't do.  




Sponsored Links

Other Threads

1. Status bar style

Hi all,

my application uses RemoteViews to create a custom status bar
notification, containing, among others, a title and a small subtitle,
similarly to all other standard notifications.
I would like this title and subtitle to look exactely like all others
in the notification list.

Does anyone know what android style should I use for them?



2. Camcorder on eclair-x86

I'm running the camcorder application on eclair-x86 platform.

It can take pictures but the video recorder does not work.

I am using the Logitech {*filter*} and the pic size is 352*288

The following are the log messages caused by using camcorder:

W/AudioSystem( 2538): AudioFlinger server died!
W/Camera  ( 2538): Camera server died!
W/AudioSystem( 2538): AudioPolicyService server died!
W/Camera  ( 2538): ICamera died
I/ServiceManager( 2158): service 'media.audio_flinger' died
I/ServiceManager( 2158): service 'media.player' died
I/ServiceManager( 2158): service '' died
I/ServiceManager( 2158): service 'media.audio_policy' died
W/AudioSystem( 2182): AudioFlinger server died!
W/AudioSystem( 2182): AudioPolicyService server died!
E/Camera  ( 2538): Error 100

It seems that the camera server and media server died.

Does anyone face the same problem or have the solution for eclair-x86


With Best Regards!


3. Samsung Galaxy S Contacts Sync problem to CYNCZ Server

4. Adb protocol and framebuffer depth dependency ?

5. How to read font from File?

6. Application Manager & Force Close

7. Regarding error Missing shared library