Android :: Froyo 2.2 Disables RequestWindowFeature - Window.FEATURE NO TITLE
May 26, 2010
Just trying to get a confirmation, has anyone else found that since updating to 2.2 the following line has no effect: requestWindowFeature(Window.FEATURE_NO_TITLE);. Is there a new permission required?
Just FYI my co-worker has upgraded his Evo to run Froyo today. The update takes quite a while to execute so be patient, but one thing I noticed was that the USB tethering no longer works. On my phone (still running 2.1) I can plug in the USB cable, enable the 4G radio, and then go to Menu -> Settings -> Wireless & networks and click on the "Internet sharing" option. Once I do this, my computer automatically picks up the new USB device and can use it for internet access (it shows up as "usb0" in my ifconfig on Ubuntu 10.04). Note that this USB tethering ONLY works when the phone has a connection to the 4G network, otherwise tapping the "Internet sharing" option will produce an error 67 message.
I tested on my co-worker's phone after he upgraded to 2.2 and found that:
1) The "Internet sharing" option has been renamed to "USB tethering" 2) Tapping the "USB tethering" option will immediately disconnect your phone from the 4G network. Consequently, this means that you cannot tether.
Anyone else notice this issue after moving to Froyo? I have downloaded the update but I haven't applied it yet (for this and other horror stories I have heard). If you do lose the ability to perform USB tethering after the upgrade, have you been successful with tethering the Evo to a Linux machine? I have tried these two tutorials and been unsuccessful:
Linux + GNU = Humans Enabled: How to Tether your Android to Ubuntu(or Fedora) GNU+Linux for Internet Connectivity
James Titcumb Blog Archive Tethering your HTC Magic Android Phone in Ubuntu 9.04 (Jaunty Jackalope)
Is it possible to remove a title bar in a window after content has been set? Calling the method Activity.requestWindowFeature (Window.FEATURE_NO_TITLE) ends up in the exception: "requestFeature() must be called before adding content".
I am using a custom title view in my application for each activity. In one of the activities, based on button clicks I need to change the custom title view. Now this works fine every time when I make a call to setFeatureInt.
But if I try to update any items in the custom title (say change the text of a button or a text view on the title), the update does not take place.
Debugging through the code shows that the text view and button instances are not null and I can also see the custom title bar. But the text on the text view or the button is not updated. Has anyone else faced this problem? How do I resolve it?
I have a custom title bar that I would like to apply to all my activities. I have searched online and found a few ways of doing that however I have ran into a problem. It seems that despite the fact I have a TextView in my titlebar with id @android:id/title, Android will not use the value defined in the manifest in android:label for each activity. I tried also calling setTitle(R.string.myTitle) but it still will not render it! If I manually put some text in my TextView in the xml it shows up fine. How can I have a custom title bar that is linked and makes Android use my manifest values for labels? I do not want to lose the setTitle() or the XML attributes functionality.
I am using a custom title view and would like to show/hide a progressbar in the title view when a thread is working.But there is no change to the progress bar. It is never displayed. Can someone please tell me what is wrong with the code?Is it possible to display the title progressbar in a custom title?
I'm setting up an app to use a custom title so I can get the proper logo into the title instead of just text, and to make it clean (since the logo has a flat black background), I also want the whole title bar to be black. My xml for the title is a framelayout to hold the logo inside of a linearlayout to change the background color, and I'm setting the title in OnCreate() as follows:
With this setup, the old gray from the old title bar still exists around the edge of my custom title. Appears to be on the order of 3-4 px on the bottom and 8-10 px on each side. Any ideas about how to get the black background to cover the entire area?
What is the basic difference between the PhoneWindow and MidWindow policies? I found that the emulator version takes the implementations of the PhoneWindow.When the MidWindow implementations will be used? Also, I found that PhoneWindow handles the call settings implementation and the same is not there in MidWindow? Please someone help me pointing out the differences between both the policies and under which circumstances which one will be used.
I have been applying a simultaneous rotate and alpha animation to an ImageView using AnimationSet. It was working fine when I set a Bitmap as the image with Image.setImageBitmap(my_bitmap).
I then extended the Drawable class with my own drawing routine. In my custom drawable I do some porter-duff compositing on the bitmap i was using earlier. I set the image with Image.setImageDrawable( new MyCustomDrawable( my_bitmap ) Now my animation rotates but no longer performs the alpha transition!
One of the things I have tried is returning different values from getOpacity() in my Drawable. None of PixelFormat.TRANSLUCENT, PixelFormat.TRANSPARENT, PixelFormat.OPAQUE, or PixelFormat.UNKNOWN work.
I have an AbsoluteLayout which has an OnTouchListener. Inside this layout there is a much smaller LinearLayout positioned dynamically. The OnTouchListener works as expected.
Now the problem comes when I add a LongClickListener to my LinearLayout. That disables my OnTouchListener if the touch hits the LinearLayout but it is still triggered, if the LinearLayout was not hit by the touch.
How can I delegate the touch on the LinearLayout where the OnLongClickListener is registered, to the parent?
I drive a VW Jetta with bluetooth, which has easily paired with my last two phones (Bionic and S4, respectively). While Google map's turn-by-turn map navigation works fine with my phone's bluetooth on, in so far as I can see directions on the map, the navigation voice is disabled. Only when my phone's bluetooth is off do I hear a voice. I'm not sure if this is a function of my phone or my car.
I got an Otterbox (IMPACT) case for my wife's Droid Eris. I have verified that when the case is on, the proximity sensor does not operate at all. Take case off, works fine. Case is on correctly (there's not a whole lot of ways to have it on wrong). Pressing it harder onto my head (which one shouldn't have to do) or holding it farther away don't help, either. Does the other Otterbox case do this?
What is "window.demo.clickOnAndroid()"? I know that clickOnAndroid is a method in my Android application. But what is window and demo? My file is called demo.html. Is that it?
In one of my Android Application I need to keep the title bar same but the view that is shown in the rest of the screen changes. So, I have taken different Activity for all the views that I need to show and set the title bar in every Activities onCreate method. Now, the problem is that I have a button in the title bar and need to perform certain action on its click event. Writing the same event handling code in every Activity class is very cumbersome. Is there any other way out that whenever there is a click event on that button of the title bar then we can have the same functionality without writing the same code in all the Activity classes. Can we use ViewGroup for that? I don't have much idea about ViewGroup. Is that possible with ViewGroup?
When my application starts, I call: this.requestWindowFeature(Window.FEATURE_NO_TITLE); to get rid of the title bar. I then create a custom ViewGroup and when set that view to be the content view via a call to 'setContentView', the 'onLayout' method of my ViewGroup is called. However, the top position is set to 25, even though I have turned off the title. How can I set my ViewGroup to take up all of the space, including the space formally occupied by the title bar?
I have a possible simple layout questions. My activity content view contains a title bar, a webview and a status bar. I put these three views into a linearlayout and each has height as WRAP_CONTENT.
The problem is, when first displays, webview doesn't take much space because the page is not loaded. The status bar is showed right under title bar. When the page is loaded, webview expands over the screen size and the status bar is not shown even when scroll down to the button. (I tried to set webView's height to FILL_PARENT, but status bar is not shown)
What is the correct way I can layout this so the title bar always at the top, the status bar always at the bottom and webview always take the remaining middle space and have scroll bar when contents takes larger space?
I have below requirement : App name is App1.Activity name is Activity1. But I want to display title bar of the Activity1 as "MyTitle" If i try to do that one , App1 appears for few seconds after that "MyTitle" is displaying in the title bar. I don't want to display App1 in my title bar.Any one of us can help me to do above one.