Re: [android-developers] Still trying to get my head around permissions - can anybody help?

2010-06-15 Thread Mark H. Nichols
Richard,

On Jun 15, 2010, at 11:11 AM, Richard C. Cox wrote:

 I've sent the message numerous times, but I assume it's being moderated from 
 some reason.  I'll try again:
 
 I'm not sure if I completely grasp the Android permissions model.  I recently 
 started working on a simple widget to put the phone to sleep.  Of course, it 
 always gets a security exception because an ordinary user app isn't allowed 
 to 
 call the PowerManager method 'goToSleep' because it's requires the 
 'signature' 
 level permission DEVICE_POWER.  But I could find nowhere in the docs or on 
 Google that officially says that.
 
 Is there some document that lists the permission levels of android platform 
 defined permissions?
 
 Or, am I looking at permissions completely wrong?

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 
goToSleep(). 

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?
Mark

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


Re: [android-developers] get IP and MAC address

2010-06-13 Thread Mark H. Nichols

On Jun 13, 2010, at 5:39 PM, shakeel wrote:

 How to get IP address and MAC address.

A quick Google search for get ip address in android app led me to this tread:

http://osdir.com/ml/AndroidDevelopers/2009-03/msg02701.html

And the android.net.wifi.getMacAddress() returns a string with the device MAC 
address.

Mark

P. S. You might consider not replying to an existing thread with a new topic. 
Better, perhaps, to start a new thread so your question doesn't get lost or 
ignored.

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

Re: [android-developers] Problem with app after update to 2.2

2010-06-07 Thread Mark H. Nichols

On Jun 1, 2010, at 3:23 PM, Kiril Nedialkov wrote:

 
 
 problem 2:
 I have two apps in the workspace. Every time when I launch Eclipse, both 
 projects dont have any errors. However rebuilding all projects always results 
 in build error in the second project:
 
 The project cannot be built until build path errors are resolved

Did you update the Android preferences in Eclipse to point to the 2.2 SDK 
properly?

Mark

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