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:
>>
>> 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 
>> <[email protected]>wrote:
>>
>>> 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 intent to reload
>>>  Intent intent = new Intent(Intent.ACTION_AIRPLANE_MODE_CHANGED);
>>> intent.putExtra("state", on);
>>>  mContext.sendBroadcast(intent);
>>> *
>>>  
>>> I noticed a call stack exception on Nexus 4 only, 
>>>
>>> Full Stack Trace:
>>>
>>> java.lang.SecurityException
>>> android.os.Parcel.readException(Parcel.java:1431)
>>>
>>> android.os.Parcel.readException(Parcel.java:1385)
>>> android.app.ActivityManagerProxy.broadcastIntent(ActivityManagerNative.java:2224)
>>>
>>> android.app.ContextImpl.sendBroadcast(ContextImpl.java:1046)
>>> android.content.ContextWrapper.sendBroadcast(ContextWrapper.java:344)
>>>
>>>
>>> Have you experience on such kind of exceptions?
>>>
>>> Thanks 
>>>
>>> Elio
>>>
>>>  -- 
>>> 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
>>> --- 
>>> You received this message because you are subscribed to the Google 
>>> Groups "Android Developers" group.
>>> To unsubscribe from this group and stop receiving emails from it, send 
>>> an email to [email protected].
>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>
>>
>>

-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to