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 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
--- 
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 android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to