Re: [android-developers] Unexpected SecurityException

2013-09-30 Thread elio
Thanks guys, I confirm Nexus 4 is the only one with version 4.3 installed. On Monday, September 30, 2013 8:53:16 AM UTC+2, Piren wrote: > > As far as i know, it's not the device, it's the OS. It fails on 4.2 and > above. > > On Sunday, September 29, 2013 8:25:40 PM UTC+3, Harri Smått wrote: >> >>

Re: [android-developers] Unexpected SecurityException

2013-09-29 Thread Piren
As far as i know, it's not the device, it's the OS. It fails on 4.2 and above. On Sunday, September 29, 2013 8:25:40 PM UTC+3, Harri Smått wrote: > > Hi, > > I would be more interested why other devices you've ran this code on (?) > have not caused similar exception. According to docs > Intent.

Re: [android-developers] Unexpected SecurityException

2013-09-29 Thread Harri Smått
Hi, I would be more interested why other devices you've ran this code on (?) have not caused similar exception. According to docs Intent.ACTION_AIRPLANE_MODE_CHANGED should be protected for system usage only. -- Harri On Sun, Sep 29, 2013 at 6:06 PM, elio francesconi < elio.francesc...@gmail.co

[android-developers] Unexpected SecurityException

2013-09-29 Thread elio francesconi
Hi all, I wrote an application it controls dynamically the AIRPLANE_MODE, this is the piece of code: * // toggle airplane mode android.provider.Settings.System.putInt( mContext.getContentResolver(), android.provider.Settings.System.AIRPLANE_MODE_ON, on ? 1 : 0); // Post an inten