Hi, you can't change secure settings with SDK applications. On Mon, Jul 13, 2009 at 10:09 AM, Eric Tsai <[email protected]> wrote:
> > Hi, > I'm using cupcake. > I set Secure.ADB_ENABLED to 0 by using Settings.Secure.putInt in > Settings.java to disable ADB daemon first then try to re-enable it by > setting Secure.ADB_ENABLED to 1. > > Accordint to my log, the value passed to NameValueTable.putString is 1 > when I try to enable ADB daemon. > But surprisingly, AdbSettingsObserver tryies to dieable ADB daemon > again instead of enable it, because Settings.Secure.getInt got the > wrong value (0), this make enableAdb false. > > How could this problem happen? > Maybe some cache or delay? > > > > -- 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 -~----------~----~----~----~------~----~------~--~---

