Questions tagged [android-3.0-honeycomb]

Android 3.0 (codename Honeycomb) is API level 11 of the mobile operating system developed by Google. This version is an adaptation for larger screens to better support tablets.

3.0 (codename Honeycomb) is API level 11 of the mobile operating system developed by Google. This version is an adaptation for larger screens to better support tablets.

The SDK was released in the beginning of 2011. For details about features etc see: http://developer.android.com/sdk/android-3.0.html

893 questions
104
votes
11 answers

Unable to resolve host "" No address associated with hostname

I tried following this tutorial: Getting Data from the Web I tried implementing it on Android 3.0, the latest platform for tablets, however, I get this error: Unable to resolve host "www.anddev.org" No address associated with hostname. You can…
82
votes
3 answers

How to add a Dropdown item on the action bar

In my Android Honeycomb application I use Tabs as the navigation style. I would like to add one item next to the overflow button, but I want that item to be a dropdown list, and the user will be able to select an option there, but not related to…
81
votes
12 answers

MapView in a Fragment (Honeycomb)

now that the final SDK is out with google apis - what is the best way to create a Fragment with a MapView? MapView needs a MapActivity to work right. Having the Activity managing the Fragments inherit from MapActivity (bad solution because it goes…
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…
71
votes
16 answers

How to dismiss keyboard in Android SearchView?

I have a searchView in the ActionBar. I want to dismiss the keyboard when the user is done with input. I have the following queryTextListener on the searchView final SearchView.OnQueryTextListener queryTextListener = new…
CACuzcatlan
  • 5,407
  • 8
  • 41
  • 59
63
votes
7 answers

Is there a way to get references for all currently active fragments in an Activity?

I haven't found a simple way to get all currently active (visible, currently in Resumed state) Fragments in an Activity. Is it possible without custom bookkeeping in my Activity? It seems that the FragmentManager doesn't support this feature.
Zsombor Erdődy-Nagy
  • 16,864
  • 16
  • 76
  • 101
62
votes
3 answers

How to add submenu items to ActionBar action in code?

Via xml I can add submenu items to my action in the ActionBar. main_menu.xml:
Mathias Conradt
  • 28,420
  • 21
  • 138
  • 192
61
votes
15 answers

Is it possible to display icons in a PopupMenu?

I really like the new PopupMenu we got in 3.0, but I just can't display any icons next to the menu items in it. I'm inflating the menu from the .xml below:
Zsombor Erdődy-Nagy
  • 16,864
  • 16
  • 76
  • 101
59
votes
8 answers

Remove application icon and title from Honeycomb action bar

How can I remove the application icon & title which comes by default in an action bar? There is a similar question here: Can i hide the App Icon from the Action Bar in Honeycomb?, but it doesn't talk about how to do it?
prashant
  • 3,570
  • 7
  • 40
  • 50
57
votes
7 answers

Android replace the current fragment with another fragment

I just started with fragment design for HoneyComb. I created two fragments. When i click a button in the left side fragment, a new fragment is created in right side. Meanwhile when i click a button in the right fragment(ie. DetialsFragment in my…
Santhosh_pulliman
  • 2,119
  • 6
  • 30
  • 47
56
votes
11 answers

Fragment already added IllegalStateException

I use this method on my container Activity to show a BFrag public void showBFrag() { // Start a new FragmentTransaction FragmentTransaction fragmentTransaction = mFragmentMgr.beginTransaction(); if(mBFrag.isAdded()) { …
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…
53
votes
4 answers

Updating an ongoing notification quietly

I have a service which connects to other devices wirelessly. When the service is enabled, I have an ongoing notification which states it is enabled. After the service is enabled, the user then connects to another device. At this point, I would…
howettl
  • 12,419
  • 13
  • 56
  • 91
48
votes
6 answers

Retain the Fragment object while rotating

I have developed an app in Honeycomb and I am using fragments. This is my app I have an Activity (Say A1) and in that there is a fragment Initially this fragment hold the object one fragment object say (F1) Then depending on the user actions it…
Jithin
  • 1,745
  • 4
  • 18
  • 25
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
59 60