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
17
votes
4 answers

CookieManager and CookieSyncManager not syncing cookies to webview in ICS (works on all previous API levels)

Background: I'm acquireing cookies through my app and use them internally by making requests to http. Users can switch to webview any given time, in which case I sync/inject cookies to webView. Code for synchronizing cookies to webview using…
17
votes
2 answers

How to use a function only if the version is 11+

in my code i'm using the a function with "query text change" but it's only supported from android 11 this is a simple search bar. how to verify the current version of android, and show a different activity? thanks!
Lele
  • 703
  • 3
  • 15
  • 34
17
votes
2 answers

Android ICS Launcher 4.0.x cannot keep screen orientation

I've got a strange case for Android ICS Launcher 4.0.x. Pre-condition: A ICS device with root permission Download Android ICS Launcher 4.0.3/4 source code (to modify and run) Procedure: Go to market (Play Store), download "Go Task Manager" Open…
Pete Houston
  • 14,931
  • 6
  • 47
  • 60
16
votes
2 answers

Does “Clear Data” also kill the app?

When (in Gingerbread, 2.3.x) I hit “Clear Data” button in Menu => Manage Apps => App, “Force Close” button also becomes disabled. Does it mean that “Clear Data” also kills the app? Also, I noticed that in Ice Cream Sandwich this doesn’t happen. So,…
16
votes
2 answers

Android 4.0 org.apache.http.conn.ConnectTimeoutException: Connect to ... timed out

I am facing a weird problem since I test my applications on ICS. Using the following code on Android 2.X works well (sometimes timeouts happen but very few times) : HttpParams httpParameters = new BasicHttpParams(); …
Seynorth
  • 686
  • 2
  • 8
  • 22
16
votes
1 answer

Add contact intent doesn't return data onActivityResult under ICS

I want my application to prompt the user to create a new contact, through the standard Contacts interface on Android. Then I want to be able to read the information back from the newly created contact. My code is based on the "Adding A New Contact"…
getekha
  • 2,495
  • 3
  • 18
  • 20
16
votes
1 answer

Android Studio: Ice Cream Sandwich (API Level 15) Device Configuration not showing up even though system image is installed

I am attempting to test an app on an ice cream sandwich device. To achieve this, I was hoping to run an emulator in android studio running API Level 15. I have made sure to install the system image through the sdk manager and it correctly displays…
16
votes
1 answer

How to attach an animation to an object in layout XML in Android?

I've got an animation defined in an XML resource, and I want to attach that animation to a view. I know how to perform this in code manually, but I was wondering if it's possible to attach that animation to a view directly in layout declaration.…
Can Poyrazoğlu
  • 33,241
  • 48
  • 191
  • 389
16
votes
2 answers

accessibility service is not started

I want to log all toasts events in android ics (4.0.3), but I was unable to log any system event. Service is just not started! According to this question: onAccessibilityEvent(AccessibilityEvent event) not intercepting…
POMATu
  • 3,422
  • 7
  • 30
  • 42
16
votes
5 answers

Activity URL callback not working in 4.0.3 ICS

I am using OAUTH in a twitter app which sends you to the twitter page within the app where you then sign in and are redirected back to the app where the tokens are handled. This works perfectly in android 2.0.x and 3.0.x but in 4.0 I get "Web page…
16
votes
4 answers

Appwidget size calculation

It might be me, but when I calculate minimum app widget sizes according to the formula given on the android page I don't get the right widget widths; The formula is as follows: width(n) = (70 x n) - 30 When I want to have a 5x1 widget, the…
15
votes
1 answer

On/Off Toggle Button in Preferences & Action Bar - Ice Cream Sandwich Style

I am referring to the blue ON/OFF styling as seen in the default Android Settings app on ICS phones. It can also be seen here: http://android-developers.blogspot.com/2012/02/android-design-v2-now-with-stencils.html I want to put them in a Preference…
15
votes
1 answer

Why is Android 4.0 / Ice Cream Sandwich allocating so much heap memory?

I noticed that on my Galaxy Nexus that android.content.res.Resources is allocating about 11MB. I discovered this as I was in the process of profiling things using DDMS and the "Dump HPROF file" option. So, I spent two hours trying to see if the…
user656698
15
votes
4 answers

Android ICS emulator camera

I am trying to get a look at the Gallery application in ICS, using the emulator. So, I launch an AVD and snap a couple of pictures with the Camera then launch the Gallery. When I click any collection in the Gallery, I get an error, "Unfortunately,…
15
votes
1 answer

android app screen flashing at launch

Hi I have searched everywhere here and on Google, without getting a correct answer. So I post a new question: I have several Android Apps that were working perfectly with 1.6 up to 2.3... BUT now, with Android 4.0 (ICS), I have users reporting that…