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
24
votes
1 answer

Why are INSERTs and UPDATEs slower on Android 4.0?

When Android 4.0 became available for Nexus S back in December 2011, we did some performance testing: http://greendao-orm.com/2011/12/17/sql-performance-in-android-4-0/ Surprisingly, UPDATE and INSERT performance dropped by half (!) after the…
24
votes
6 answers

Why does EditText retain its Activity's Context in Ice Cream Sandwich

In Ice Cream Sandwich, when there's an Activity containing an EditText, the EditText will retain the Activity's Context even after the user leaves the Activity. To demonstrate this I've created TestLeakActivity, which allocates a large byte array.…
Tony Wong
  • 5,444
  • 5
  • 22
  • 18
24
votes
2 answers

Samples/tutorial for DRM framework in Android

Android 4.0 brings drm framework to smartphones. I'm interested to write a code that plays video protected by the DRM, but can't find enough information. Are there any tutorials on using the DRM framework? Sample code? How to set up an environment…
Moshe Kravchik
  • 2,341
  • 2
  • 16
  • 18
23
votes
4 answers

Fragment onHiddenChanged not called

I recently added Fragments to my applications. For a new application i'll need to get notified as soon as my fragment is shown. So i can do some calculations as soon as my fragment is shown again. My Fragment is used with a TabIndicator and it's…
mikepenz
  • 12,708
  • 14
  • 77
  • 117
23
votes
5 answers

ErrnoException: isConnected failed: EHOSTUNREACH (No route to host) when changing the wifi network using ICS

When using my app on ics, after I change my wifi network from networkA to networkB all the requests for images start coming back with an exception. failed with exception > org.apache.http.conn.HttpHostConnectException: Connection to >…
David
  • 231
  • 1
  • 2
  • 5
23
votes
5 answers

No software buttons for the ICS emulator?

So I'm working on an update for my application from 3.0 to 4.0 and I'm having issues with the emulator. Specifically, the software buttons do not appear when using the Galaxy Nexus~ish skin (I'm not sure its exact, but it should be close enough).…
smith324
  • 13,020
  • 9
  • 37
  • 58
23
votes
5 answers

How to control ActionBar split programmatically?

The android ActionBar may split into a top and bottom bars if activity's parameter "uiOptions" is set to "splitActionBarWhenNarrow", note this parameter is only valid in ICS. Honeycomb has introduced a new approach to multi-select list items using…
23
votes
8 answers

how to turn speaker on/off programmatically in android 4.0

I play a file through media player and I want to give options like speaker on/off, play though headset, bluetooth ,etc. I tried the below code which works well for android 2.2 but I want something that can also work for 2.2 and 4.0 both. Can you…
Mayuri Khinvasara
  • 1,437
  • 1
  • 16
  • 12
23
votes
4 answers

How do I get IP_ADDRESS in IPV4 format

I am trying to get the IP address of an device i.e using WIFI or 3G connection. I am getting the ip address in IPV6 format which is not understandable. I want in IPV4 format IP address.I have done google but dint found any proper solutions. here is…
23
votes
2 answers

Set a VPN connection programmatically on android 4.0

I'm working on programmatically setting a VPN connection on android devices. I was successfully able to do so for devices using OS 2.3.5 and before (I used reflection to get to the hidden classes). But with android 4.0 they got rid of the old…
Ahmad
  • 438
  • 1
  • 6
  • 10
22
votes
1 answer

What's the real purpose of Android's contentDescription tag?

One of the latest updates for the Android SDK plugin in Eclipse introduced a lot of new warnings for your layouts and such. One of these is an accessibility warning that appears if you don't have the android:contentDescription tag set. This resulted…
Michell Bak
  • 13,182
  • 11
  • 64
  • 121
22
votes
9 answers

MediaRecorder.stop() hanging with Android 4.0 (ICS)

When calling stop() within my Video Capture activity, on occasion, the software will hang and will not come back to life. Only triggering an ANR by hitting "Back" will allow me to kill the activity. Within the log, I see the following line repeated…
22
votes
3 answers

Options menu not showing in ICS using compatibility library

I can't get an options menu to show in a Fragment in ICS in a project which uses the android-support-v4.jar library. I'm testing on a Galaxy Nexus handset. We aren't using the action bar, and need the app to be 2.2+ compatible. We aren't seeing…
22
votes
1 answer

Force action Bar show search view

I am able to expand search view by action like this But…
22
votes
3 answers

Android app doesn't call "onDestroy()" when killed (ICS)

I'm developing an android app using bluetooth communication (using a propetary protocol) and I need to catch the moment when the app is killed. I wanted to use the "onDestroy()" method but it isn't called every time the app is killed. I noticed that…
The Good Giant
  • 1,740
  • 2
  • 19
  • 35