android-4.0-ice-cream-sandwich

Does Android's large heap option work for older phones upgraded to ICS?

浪尽此生 提交于 2019-12-03 09:04:27
问题 I've got a Galaxy Nexus myself, and I know that the android:largeHeap="true" manifest option works on this phone, but I was wondering if it's working on older phones that are being upgraded to Ice Cream Sandwich, i.e. the Samsung Nexus S. The reason why I'm asking is that I've built an application that makes heavy use of large bitmaps and the application was originally designed for tablets with 48 MB of heap size. The Galaxy Nexus also features 48 MB of available heap size for each

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

北城以北 提交于 2019-12-03 08:29:38
问题 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 over and over: W/CameraSource(YYYYY): Timed out waiting for incoming camera video frames: XXXXXX us Has anyone else seen this behavior? Any workarounds? 回答1: We've been struggling for this issue for a long time too. We have just copied the code

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

℡╲_俬逩灬. 提交于 2019-12-03 06:12:44
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 screen, would I have to use a custom preference widget? Also, is it easy to put toggle buttons in the Action Bar? It seems to be possible since it is done for Wifi Settings in the default Android Settings on ICS, but it is probably a custom menu item? Any help is greatly appreciated. As easy as: My xml-v14/preferences.xml <SwitchPreference android

Is it possible to get the resolution of a video in Android?

▼魔方 西西 提交于 2019-12-03 05:53:21
问题 I'm looking for a way to get the resolution of any given video in Android. It doesn't have to work with other formats than the ones supported in Android, but it'd be great if it did. If you're unsure of the supported formats in Android, please refer to this page: http://developer.android.com/guide/appendix/media-formats.html I think it's possible to do what I want using the MediaPlayer class, but that seems incredibly stupid and inefficient. Also, I'd like a way that's relatively fast. I'm

How to make full screen in Android 4.0

夙愿已清 提交于 2019-12-03 05:17:56
问题 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. android:theme="@android:style/Theme.NoTitleBar.Fullscreen" or requestWindowFeature(Window.FEATURE_NO_TITLE); this.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN); do not cover the virtual buttons. Here is an example that

How can I get the same undefined ProgressBar as ICS with 2 rotating circles?

半腔热情 提交于 2019-12-03 04:14:32
问题 I am currently writing an open source project that aims to port the famous Holo theme to previous versions of Android (since 1,6!!!) Everything works fine and I am really proud of my work, but the problem I am facing now is to get the ProgressBar totally looking like the ICS one. I used the same xml code than Android source: (progress_medium_holo.xml) <layer-list xmlns:android="http://schemas.android.com/apk/res/android"> <item> <rotate android:drawable="@drawable/spinner_48_outer_holo"

Android loaders, the way to go?

↘锁芯ラ 提交于 2019-12-03 02:20:32
问题 I am used to building lists in android using adapters. If I need some long-to-get data, I use an asynctask, or a simple runnable, to update the data structure on which the adapter rely, and call notifyDataChanged on the adapter. Although it is not straightforward, I finally find this is a simple model and it allows a good separation of logic presentation (in the asynctask, update a data structure) and the view (an adapter acting as a view factory, mostly). Nevertheless, I read recently about

No software buttons for the ICS emulator?

谁说胖子不能爱 提交于 2019-12-03 01:20:36
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). This is the WXGA720, its values: Hardware Back/Home keys = no Abstracted LCD Density = 320 Keyboard Lid Support = no Max VM Heap = 48 Device Ram Size = 1024 The first line is the most important, because it tells the emulator we need software keys for back/home. This works using the WXGA800 skin (tablet) - even using API level 14 (ICS). (Don't mind the

Android not acknowledging TTS Engine

亡梦爱人 提交于 2019-12-03 00:08:35
I am developing a very simple app in here. It's for my Cerebral Palsy daughter. It's just a big YES and NO buttons, so she can press them when requested. Well... I am using SVOX Classic TTS Engine. Everything was running smoothly until my tablet upgraded to ICS. Now, everytime I run the app, it opens the Market asking for me to install TTS. I hit "back" and then, my app speaks. This is VERY annoying. Here is what Google API says: *A successful check will be marked by a CHECK_VOICE_DATA_PASS result code, indicating this device is ready to speak, after the creation of our TextToSpeech object. If

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

不羁的心 提交于 2019-12-02 23:56:10
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 over and over: W/CameraSource(YYYYY): Timed out waiting for incoming camera video frames: XXXXXX us Has anyone else seen this behavior? Any workarounds? We've been struggling for this issue for a long time too. We have just copied the code from android developer site for capturing video but the application hangs before mediarecorder.stop() is called