android-4.0-ice-cream-sandwich

Android app auto reset on minimize

房东的猫 提交于 2019-12-22 00:23:48
问题 We have designed an hybrid app which is a bit heavy (9 MB). Problem is that at times, minimizing this app (home button) makes the app reset in background i.e. its app cache is lost and app reloads from splash screen. After minimizing we worked with other apps in tablet (Galaxy 800). We saw this problem only if we tried to launch app from the icon in launcher. This problem did not happen when we tried to launch it from the minimized list(recent apps button). This problem is not specific to the

How can i change the textcolor of my timepicker and datepicker?

你离开我真会死。 提交于 2019-12-21 22:41:12
问题 Currently I am working on one of my first applications. In this application I have a TimePicker and a DatePicker . My current Activity has a dark background. Now I want a white textcolor in my TimePicker / DatePicker . In my layout I have defined my pickers: <DatePicker android:id="@+id/dpDateOfValue" android:calendarViewShown="false" /> <TimePicker android:id="@+id/tpTimeOfValue" /> The solution should work on 2.3 - 4.1 回答1: Use: <style name="MyHolo" parent="android:Theme.Holo.NoActionBar">

Color values for Buttons (Normal state) in holo dark theme ICS

放肆的年华 提交于 2019-12-21 20:58:52
问题 Need help regarding the color codes for buttons in HOLO DARK theme ICS. This question throws light into all the color codes for Holo theme except for the buttons in normal state. Thanks in advance. basic buttons holo theme ics. 回答1: Ive got it now. If you want the default colors of Android ICS; you just have to go to your Android SDK and look after platforms\android-15\data\res\values and then colors. There you go: <!-- For holo theme --> <drawable name="screen_background_holo_light">

SectionIndexer with GridView in Android

半腔热情 提交于 2019-12-21 19:47:48
问题 Is it possible to use a SectionIndexer with a GridView in Android? Fast scroll is working fine, and I'm using a custom adapter that extends BaseAdapter . The adapter is currently implementing SectionIndexer and seems to be identical to the examples shown online and on Stack Overflow. This made me think if it's even possible to do with a GridView and a custom adapter. 回答1: static class YOUR_ADAPTER extends SimpleCursorAdapter implements SectionIndexer { private AlphabetIndexer mIndexer; YOUR

Need help correctly emulating the Samsung Galaxy Nexus with AVD

风流意气都作罢 提交于 2019-12-21 17:24:12
问题 I'm working to ensure my app is getting tested on ICS properly using the popular Galaxy Nexus as a basis. I'd like to emulate it as faithfully as possible. I've created an AVD with the following parameters (from config.ini). This was mostly created using the GUI (disk.dataPartition.size is a hand-edited param based on other articles I've read). The memory values may be on the low side but that's not causing a problem for me at the moment. Since the device had no external sdcard I've said "no"

How set ICS theme for application with minSDK 7?

懵懂的女人 提交于 2019-12-21 05:56:25
问题 could anybody tell me how can I set a theme for my application which will change when version of Android will change. For example if anybody will use my app on Android 2.1 theme will look like this: http://daily-money.googlecode.com/svn/wiki/img/prefs.png But if anybody will use my app on for example Android 4.0.3 theme will look like this: http://img.tapatalk.com/dcff019c-27ba-1e1a.jpg I have used minSDK 7. Thank you. 回答1: What you want is detailed in on this page: http://android-developers

No software buttons for the ICS emulator?

孤人 提交于 2019-12-20 12:06:26
问题 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

No software buttons for the ICS emulator?

試著忘記壹切 提交于 2019-12-20 12:05:08
问题 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

Getting selected text in a WebView via a contextual action bar

让人想犯罪 __ 提交于 2019-12-20 09:25:08
问题 It's known to be difficult to get selected text in a WebView because WebView text selection is actually handled by a private class, WebTextView. However, with the recently released Android 4.0 Design guidelines, there seems to be a glimmer of hope of achieving this through contextual action bars (CABs). It says: Use CABs whenever you allow the user to select data via long press. You can control the action content of a CAB in order to insert the actions you would like the user to be able to

Bluetooth Smart (4.0) / GATT support in Android 4.0?

我与影子孤独终老i 提交于 2019-12-20 08:26:12
问题 I'm trying to find way to work with Bluetooth 4.0 (AKA Bluetooth Smart) devices using modern Android smartphones, namely - HTC One V. As I understood, there is some issues using GATT profile even in Android 4.0 with Bluetooth 4.0 hardware because of API limitations. I saw Motorola released it's own API for BT LE, but not sure it will work for other vendors. My goal is to get universal support for all smartphones with appropriate hardware. Any suggestion for solution are highly appreciated.