On Wed, Apr 14, 2010 at 3:46 PM, Deva R <[email protected]> wrote: > Note that in android (for that matter, universally in java) java > applications cant access system resources (sys/power/state file in this > case) directly, as they have to bypass VM (dalvik in android). >
Sorry, that isn't true. If the process running the VM has permission to access the file, then the Java code can access it. Android doesn't use the VM to enforce this (or most) kinds of security. -- Dianne Hackborn Android framework engineer [email protected] Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

