Questions tagged [android-4.0-ice-cream-sandwich]

Android 4.0 (codename Ice Cream Sandwich) is API level 14 of the mobile operating system developed by Google. This version delivers a refined, unified UI for phones and tablets and introduces innovative features for users and developers.

Android 4.0 (codename Ice Cream Sandwich) is API level 14 of the mobile operating system developed by Google.

This version delivers a refined, unified UI for phones and tablets and introduces innovative features for users and developers.

It was released on 19th October 2011.

More info:

1251 questions
11
votes
5 answers

Reading all of today's events using CalendarContract - Android 4.0+

I'm trying to use Android's new calendar API to read all of today's calendar events. I'm have trouble finding the right selection on the database query to return all of the events. It seems that all recurring and all day events are left out of the…
10
votes
2 answers

What is the best way to handle updates when the calendar syncs new events?

With ICS, we now have APIs for the Calendar! :) My question is, how do we determine if an event has been updated. Ideally this could be done with a BroadcastReceiver, but I don't think there is one that is publicly accessible. There is some event…
runor49
  • 3,870
  • 1
  • 21
  • 18
10
votes
5 answers

App not Ice Cream Sandwich compatible

I've developed an application for Android that cannot be download to Android ICS devices from the Market. Browsing the market with a 4.x device people see a "not compatible warning" and cannot proceed with the download. The app has a minSdkVersion…
Jeroen Peeters
  • 1,974
  • 1
  • 20
  • 24
10
votes
2 answers

AssertionFailedError in ApplicationTestCase.createApplication() in newer Android versions when using MockContext

I am writing an Android ApplicationTestCase (TemperatureConverterApplicationTests example found in Android Application Testing Guide by Diego T. Milano on page 171). The example was written for Android 2.3 and it doesn't seem to work for Android 4.…
Omar Kohl
  • 1,372
  • 2
  • 15
  • 32
10
votes
6 answers

How to change Android DatePicker Dialog's "Dividers" Colors

I'm trying to create a custom dialog, basically I'm using DatePickerDialog.THEME_HOLO_DARK but I want to change the "divider" color and the text color. I want to change the blue lines and the text color to red. Thanks in advance! EDIT: Using this…
Robin.v
  • 719
  • 3
  • 8
  • 16
10
votes
2 answers

Retrieve a non cached Picasa image from Gallery. 3.0 and 4.0

My app is calling the gallery with an intent that looks like this: Intent intent = new Intent(Intent.ACTION_PICK, android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI); startActivityForResult(intent, SELECT_IMAGE_FROM_GALLERY); In…
10
votes
2 answers

Capture media button on Android >=4.0 (works on 2.3)

I wrote some service which uses BroadcastReceiver to capture one of media buttons ("play button" from a headset), and it works perfectly on android 2.3.x (HTC Nexus One or HTC Desire) When I tried to run in on Android 4.0.3 (Samsung Nexus S) it…
10
votes
8 answers

Easy way to hide system bar on Android ICS

I will give my ICS tablets for users to complete a survey so I would like the user to work with my app only. They should not be able to switch to the home screen, press back buttons etc., so I would like to hide the system bar completely. My tablet…
9
votes
2 answers

IllegalArgumentException thrown by requestLocationUpdate()

We recently tested our application against android API level 14 and 15. We started development targeting minimal SKD Version 8 and excluding tablets (3.x). With 2.x everything works well but when running the app on a 4.x droid it crashes at the…
9
votes
3 answers

android EditText blends into background

My app uses Theme.Holo.Light.DarkActionBar as the parent theme. When I use my Android 3.2 tablet emulator, the EditText shape is almost impossible to see. It looks like it is trying to draw white on white. Seen here: When I use it on my Android 4.0…
9
votes
2 answers

How to avoid having my app shown in the list of recently used apps

On Ice Cream Sandwich the user can see a list of the recently used applications with a screenshot of the the last status of the UI. I'm working on an application that shows confidential information that should not be kept in memory in any way. Is…
user1175011
9
votes
2 answers

Program different layouts for different versions in android

I have to program my Android app with the best compatibility to different screen sizes (tablets and smartphones) and to the versions 2.3, 3.2 and 4.0. I know about the possibliy to name the folders of the layout like res/layout-sw600dp/. to match…
10ff
  • 813
  • 4
  • 16
  • 31
9
votes
4 answers

"body background-color: transparent" did not affect on webview of android 4.0.3

I want to display webView on static image on imageView. I set transparent color to webView like this webview.setBackground(0); I set background-color as transparent
9
votes
4 answers

How to make full screen in Android 4.0

Android 4.0 phones only have virtual buttons, which actually go invisible when playing youtube/video at fullscreen (the video portion takes over where the buttons are). I want to do this, but haven't found a way.…
Darcy
  • 5,228
  • 12
  • 53
  • 79
9
votes
2 answers

Showing DialogFragments crashes ICS

After the Fragments API being released, I started porting all my deprecated dialogs into DialogFraments using the compatibility package. Everything was working well, until I notice that my dialogs are causing crashes to ICS only: E/AndroidRuntime( …