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
7
votes
2 answers

Android 4 software buttons in emulator?

Android 4 ICS is supposed to have virtual menu, home and back buttons at the bottom. I don't see this in the emulator. Do I have to do something to enable that?
RajV
  • 6,860
  • 8
  • 44
  • 62
7
votes
2 answers

Http Live Streaming on Android 4 (Ice Cream Sandwich)

I would like to play a http live steaming link(.m3u8) on android. Can you please let me know how to write code for that (snippet)? I tried the following(on Activity's onCreate event) but it wouldnt work (says Cant play video) : VideoView vv = new…
7
votes
1 answer

How to override home button in android 4.0

I want to override the home button in my android activity. I have tried out few things related to this which are working for 2.3 and below but not for 4.0 above @Override public boolean onKeyDown(int keyCode, KeyEvent event) { if(keyCode ==…
7
votes
3 answers

How to keep expanded SearchView on the right side of ActionBar (while using custom icon)?

My question is closely related to SearchView wrong alignment and SearchView positions when expanded in ActionBar but the answers posted there do not work. So, I'm using a SearchView in the Action Bar:
7
votes
4 answers

Galaxy Nexus slow with animations

I've edited this code to move the Rect instantiations out of the onDraw method. I've tested it on several devices. public class BallBouncesActivity extends Activity { BallBounces ball; @Override public void onCreate(Bundle…
boo-urns
  • 10,136
  • 26
  • 71
  • 107
7
votes
1 answer

Video Recording Not Working in ICS

I have implement code Record video in Android Phone . This code is working in 2.2 , 2.3 . But when I checked in ICS code is not working ? here I posted code and xml file. videorecord.java import java.io.File; import java.io.IOException; import…
7
votes
1 answer

How to set in-call volume programmatically on android?

I've been searching through the questions but can't find a similar one. I'm trying to set the volume of the phone while on a call from my program. I'm using Java and Eclipse. I want this to run on ICS. The ultimate goal is to make an app that lets…
7
votes
1 answer

Horizontally center Views inside Android GridLayout

We are writing an app targeting ICS+ and believe a GridLayout is the best layout paradigm, but it seems very little has been written about it, and we are having some alignment issues.
7
votes
3 answers

Catch toast event (from any app) and get toast message

As I understood this is possible, from here Detecting toast messages But I am unable to catch any event with code snippet from the link. MyAccessibilityService.java package com.test.toasts2; import…
POMATu
  • 3,422
  • 7
  • 30
  • 42
7
votes
1 answer

Invalid indirect reference on NewObject call

OK, so I have the native code below. I'm trying to return an array of FilePermissionInfo from it, populated with some data returned by stat(). The problem is that I get the following error when NewObject is called the first time: 06-15…
Marcel N.
  • 13,726
  • 5
  • 47
  • 72
6
votes
4 answers

Android Full Width ICS style Minimalist Bottom ButtonsViews

I want to make some buttons that look like this the following: I've looked pretty hard for preset ICS ones in the android.widget package, but I can't find any. I figure there's got to be an easy way, since they seem to be thematic of the entire OS…
6
votes
2 answers

In ICS is it possible to set the "Restrict background data" setting from code (programmatically)?

In ICS there is now the "Restrict background data" setting in the Network -> Data usage settings screens. Is there a way to programmatically set "Restrict background data" for my application? OR Is there a way to bring up the "Data usage"…
pzulw
  • 1,716
  • 15
  • 22
6
votes
2 answers

Set textview fading in Android 4.0.3

I've just tried to implement the fade effect for TextView in Android 4.0.3; however, it doesn't work. fadingEdge="horizontal" singleLine="true" ellipsize="marquee" This code works perfectly for 2.3.7 and below, but not working for 4.0.3. I'm…
Pete Houston
  • 14,931
  • 6
  • 47
  • 60
6
votes
1 answer

TimePicker NullPointerException on ICS

Alright so I just switched my TimePickerDialog to a TimePicker widget directly visible in the Activity I'm working on because of customer demand. The problem is when I press any of the arrows on said TimePicker, I get a NullPointerException. Just to…
6
votes
2 answers

Disable screenshots in android ics

For one of our secure apps, there is a requirement to disable the screenshot capability for the app in Android ICS. Is this possible on a non-rooted device? Thanks, Rajath
Rajath
  • 11,787
  • 7
  • 48
  • 62