android-3.0-honeycomb

Android 3.0 CalendarView

我怕爱的太早我们不能终老 提交于 2019-11-30 13:36:45
I'm trying to implement a CalendarView , it takes an absurd amount of time (about 10 seconds) to appear on screen and it only loads the month and weekday headers, it does not display any calendar content. Using the same code from this video but not seeing the same result. I'm trying to launch it in a dialog: CalendarView calendarView = new CalendarView(this); dialog.setContentView(calendarView); but when I tried to embed it in an activity it took the screen the same amount of time to load and similarly failed to display correctly. The tracing helped reveal that GregorianCalendar was being

Change ListView choiceMode from singleChoice to multipleChoiceModal

亡梦爱人 提交于 2019-11-30 12:43:26
I have a ListView that normally is the singleChoice choiceMode . When the user long presses on an item, I want to enter an action mode that allows selecting multiple items so they can perform an action on any selected items. I am able to configure the ListView so that it is in singleChoice mode and the user is able to select list items to display a details fragment next to it and have the list item itself shown in its activated state. I am also able to configure the ListView so that it is in the multipleChoiceModal choiceMode and performing a long press on an item starts the action mode and

listview gets out of memory exception, but with no memory leaks?

穿精又带淫゛_ 提交于 2019-11-30 09:21:44
问题 After Honeycomb, Google said that bitmaps are managed by the heap (talked about here), so if a bitmap is no longer accessible, we can assume that GC takes care of it and frees it. I wanted to create a demo that shows the efficiency of the ideas shown for the listView lecture (from here), so I made a small app. The app lets the user press a button, and then the listview scrolls all the way to the bottom, while it has 10000 items, which their content is the android.R.drawable items (name and

android honeycomb menu button target

梦想的初衷 提交于 2019-11-30 09:06:58
I am trying to get my app to be backward compatible so i need to show the menu button since we used the menu button in our app on previous versions. So I was reading and it says that if your target is 11 (3.0) than you don't get the menu button but it your target is 10 they you do. But the issue is I am using fragments so my target has to be 11. Any thoughts. Ordinary options menus will appear regardless of Android version. If you have: android:targetSdkVersion="11" then the options menu will appear in the action bar on Android 3.0+ devices. All items in the options menu will be available when

Android ActionBar tab style for Honeycomb

邮差的信 提交于 2019-11-30 08:40:24
问题 I am using the HoneycombGallery sample app in the SDK and attempting to change the style of the ActionBar tabs (i.e., "Balloons", "Bikes", "Androids", "Pastries"). Using the "light" theme, the tabs have a blue underline. I simply want to make this red to match the style of an application I'm working on. I've tried researching styles in the SDK documentation (http://developer.android.com/guide/topics/ui/actionbar.html) and other sources on the web, but I'm not quite certain that I understand

How can I get android Honeycomb system's screen width and height?

╄→尐↘猪︶ㄣ 提交于 2019-11-30 07:44:02
问题 my code: Display display = activity.getWindowManager().getDefaultDisplay(); DisplayMetrics displayMetrics = new DisplayMetrics(); display.getMetrics(displayMetrics); System.out.println("screen width:"+displayMetrics.widthPixels); System.out.println("screen heigth:"+displayMetrics.heightPixels); when I run this program in android Honeycomb system,the output is 800 and 1232 but the device's screen is 800_1280,hao can I get it? thanks. 回答1: This piece of code works for me (if you don't mind to

Android AppWidget does not show up in the menu in honeycomb until reboot

笑着哭i 提交于 2019-11-30 07:37:04
I have created an AppWidget for Honeycomb which is working well, except that when first installed, it does not show up in the Widgets menu so it can not be added to a home screen. Rebooting the device will allow it to show up, or during development, sending it twice from Eclipse will cause it to show up. Any ideas? Thanks! Appearently EboMike was right, setting android:installLocation="internalOnly" did fix the issue. Without specifying an install location, it should have defaulted to internalOnly, but did not seem to for me. Perhaps something changed in Honeycomb? Also, even with internalOnly

Using Multiple Fragments in an single activity

不羁岁月 提交于 2019-11-30 07:32:16
I want to develop an android application using Honey Comb 3.0 in which I want to display a list , clicking on any item in a list should display another list beside that list item in the form of Fragment. Can any one provide me sample code in sorting out this issue? Thanks in Advance, Ollie C Have a look at these two blog posts from Google's Reto Meier: http://blog.radioactiveyak.com/2011/02/android-app-surgery-earthquake-redux.html http://blog.radioactiveyak.com/2011/02/strategies-for-honeycomb-and-backwards.html He has lots of code examples in there for handling fragments. 来源: https:/

What does Bitmap#recycle() in Android Honeycomb actually DO?

对着背影说爱祢 提交于 2019-11-30 07:07:21
问题 I am writing a very memory intensive application for Android Honeycomb, and I've been very careful to recycle() unused Bitmap s wherever possible; indeed, this is necessary for the application to work at all, as Bitmap s are constantly being cycled in and out of memory. However, I have just implemented onConfigurationChanged() in the Activity , and so (for a number of reasons) I am trying to put memory freeing routines in onStop() . Currently my onStop() method: sets some View s to display a

Enable hardware acceleration in Android app, targeting Honeycomb AND prior versions

人盡茶涼 提交于 2019-11-30 06:56:49
问题 To enable hardware acceleration in an Android 3.0+ app I can do this: <application android:hardwareAccelerated="true" ... /> But the app won't build with that attribute present if I target an OS version pre-11. Is there a way to enable hardware acceleration in an app that targets both Honeycomb and prior, or is hardware acceleration only available for those creating apps that only work on 3.0+? I had a look for a method on Activity but I don't see one. 回答1: Try to set build target to the 3.0