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
324
votes
32 answers

INSTALL_FAILED_UPDATE_INCOMPATIBLE when I try to install compiled .apk on device

I've compiled Trebuchet launcher from CyanogenMod 9, and trying to install it with adb: $ adb install out/target/product/generic/system/app/Trebuchet.apk 3986 KB/s (7870141 bytes in 1.928s) pkg: /data/local/tmp/Trebuchet.apk Failure…
148
votes
4 answers

Difference between android-support-v7-appcompat and android-support-v4

I wanted to know the difference between android-support-v4.jar and android-support-v7-appcompat.jar. If I want to add appcompat Action Bar in my application do I need to add both android-support-v7-appcompat.jar and android-support-v4.jar or only…
112
votes
7 answers

Changing overflow icon in the action bar

Is it possible to change the overflow icon in the action bar? I have blue icons for all ActionBar items and I also want to change the overflow icon when it appears.
109
votes
19 answers

SearchView's OnCloseListener doesn't work

I'm trying to add support for the SearchView in the Android 3.0+ ActionBar, but I can't get the OnCloseListener to work. Here's my code: @Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.menu, menu); …
107
votes
5 answers

Fragment onCreateView and onActivityCreated called twice

I'm developing an app using Android 4.0 ICS and fragments. Consider this modified example from the ICS 4.0.3 (API level 15) API's demo example app: public class FragmentTabs extends Activity { private static final String TAG =…
Dave
  • 6,504
  • 4
  • 30
  • 37
78
votes
18 answers

Disable keyboard on EditText

I'm doing a calculator. So I made my own Buttons with numbers and functions. The expression that has to be calculated, is in an EditText, because I want users can add numbers or functions also in the middle of the expression, so with the EditText I…
77
votes
2 answers

How to use Holo.Light theme, and fall back to 'Light' on pre-honeycomb devices?

I'd like to use the Holo.Light theme on devices that support it, and fall back to the regular Light theme on other devices. At the moment, referencing Holo.Light works fine on 3.0+, but older APIs simply revert to the default 'dark' theme. Can I…
74
votes
2 answers

What are the default color values for the Holo theme on Android 4.0?

Does anyone have access to a list of the default colours used in the Holo them (light and dark) on Android 4.0? I'm looking for things like list backgrounds, primary and secondary text, ActionBar, etc. Google gives some examples at the Themes and…
selsine
  • 2,813
  • 2
  • 21
  • 22
65
votes
5 answers

Determine addAction click for Android notifications

I'm trying to use the new notifications interface. I've added 3 buttons to the notifications, and I want to save something to my database once each of them is clicked. The notification itself works well and is shown when called, I just don't know…
63
votes
6 answers

getView returning null when fragment has been created from an activity

I have a working tablet application which I am now trying to make work on phones too. On a table there is two fragments on the screen a list fragment and a details fragment. When on a phone the list fragment appears and creates a new activity when a…
60
votes
8 answers

android 4.0, text on the action bar NEVER shows

I am trying to use the new api's from google, specifically the action bar. When the build was set at api 10, if I pressed the menu button, I got nice looking menu options, each with a picture and icon. When using api 14, No matter what I try, it…
58
votes
12 answers

Check for navigation bar

I am trying to check to see whether the android navigation bar is present on load so that I can adjust a layout accordingly, does anyone have any suggestions? This is the navigation bar I am trying to detect: P.S. All I have found so far are 'bad'…
54
votes
7 answers

Custom Translucent Android ActionBar

I've been scouring the interwebs (e.g. Android documentation, answers here, etc.) for the answer to what I thought would be a fairly trivial question. How do you achieve a translucent action bar like the ones in Google Music and YouTube (links are…
50
votes
19 answers

How to disable/hide three-dot indicator(Option menu indicator) on ICS handsets

How to disable/hide three-dot indicator(Option menu indicator) on ICS handsets which does't have menu button. ? I am running application as in Manifest, code is compiled with 4.0. Three-dot indicator shows on…
Subba
  • 637
  • 1
  • 7
  • 13
47
votes
7 answers

WebView "flashing" with white background if hardware acceleration is enabled (Android 3.0+)

I have an issue with the WebView (Android 3.0+), which the WebView always displays a white background before display my black background ("flashing"). Here is my simple test code: @Override public void onCreate(Bundle savedInstanceState) { …
1
2 3
83 84