JELLY_BEAN constant

int const JELLY_BEAN

June 2012: Android 4.1.

Applications targeting this or a later release will get these new changes in behavior:

  • You must explicitly request the {@link android.Manifest.permission#READ_CALL_LOG} and/or {@link android.Manifest.permission#WRITE_CALL_LOG} permissions; access to the call log is no longer implicitly provided through {@link android.Manifest.permission#READ_CONTACTS} and {@link android.Manifest.permission#WRITE_CONTACTS}.
  • {@link android.widget.RemoteViews} will throw an exception if setting an onClick handler for views being generated by a {@link android.widget.RemoteViewsService} for a collection container; previously this just resulted in a warning log message.
  • New {@link android.app.ActionBar} policy for embedded tabs: embedded tabs are now always stacked in the action bar when in portrait mode, regardless of the size of the screen.
  • {@link android.webkit.WebSettings#setAllowFileAccessFromFileURLs(boolean) WebSettings.setAllowFileAccessFromFileURLs} and {@link android.webkit.WebSettings#setAllowUniversalAccessFromFileURLs(boolean) WebSettings.setAllowUniversalAccessFromFileURLs} default to false.
  • Calls to {@link android.content.pm.PackageManager#setComponentEnabledSetting PackageManager.setComponentEnabledSetting} will now throw an IllegalArgumentException if the given component class name does not exist in the application's manifest.
  • {@link android.nfc.NfcAdapter#setNdefPushMessage NfcAdapter.setNdefPushMessage}, {@link android.nfc.NfcAdapter#setNdefPushMessageCallback NfcAdapter.setNdefPushMessageCallback} and {@link android.nfc.NfcAdapter#setOnNdefPushCompleteCallback NfcAdapter.setOnNdefPushCompleteCallback} will throw IllegalStateException if called after the Activity has been destroyed.
  • Accessibility services must require the new {@link android.Manifest.permission#BIND_ACCESSIBILITY_SERVICE} permission or they will not be available for use.
  • {@link android.accessibilityservice.AccessibilityServiceInfo#FLAG_INCLUDE_NOT_IMPORTANT_VIEWS AccessibilityServiceInfo.FLAG_INCLUDE_NOT_IMPORTANT_VIEWS} must be set for unimportant views to be included in queries.

Implementation

static const int JELLY_BEAN = 16;