Android :: Can I Temporarily Disable Automatic Orientation Changes In My Activity
May 26, 2010
Can I temporarily disable automatic orientation changes in my Activity? I want to do this when my app does some background internet communication.
View 1 Replies
Aug 31, 2010
My main activity has some code that makes some database changes that should not be interrupted. I'm doing the heavy lifting in another thread, and using a progress dialog which I set as non-cancellable. However, I noticed that if I rotate my phone it restarts the activity which is REALLY bad for the process that was running, and I get a Force Close.
What I want to do is programatically disable screen orientation changes until my process completes, at which time orientation changes are enabled.
View 3 Replies
View Related
Jan 14, 2010
Users of my application will engage a feature that temporarily uses the accelerometer. I would like to disable support for orientation changes while this feature is active. Is there an API for this?
View 2 Replies
View Related
Apr 11, 2010
Any app that kills sms texting not just when driving (there's more than one for that) but that disables it period or has a toggle that works to stop texting all the time. Especially receiving texts.
View 1 Replies
View Related
Nov 27, 2012
Im looking for an app to temporarily disable all cellular functions of the phone. For example, when Im with my girlfriend, I want to play youtube streamed music via wifi but dont like to be disturbed with work calls. Of course, airplane mode is not for me ...
View 2 Replies
View Related
Jun 2, 2010
I have Google Voice, which I recently discovered counts against my minutes when it sends me a transcript/recording of my voicemails (this is because VZ forwards calls to GV and charges for the time). I am leaving the country and the cost of calls overseas is $2/minute. I need to avoid charges for calls where people leave me voicemail messages, so I need to disable GV for the time I'm overseas. I can't figure out how to temporarily disable GV.
View 6 Replies
View Related
Sep 2, 2010
I'm getting the system update prompt every time I turn on my damn phone; I need to follow the guide that shows you how to keep root when going to 2.2:
Stock 2.1 to Fully Rooted Froyo 2.2
But I probably won't have time to do that until next weekend. In the meantime, is there a way to temporarily disable this update notice?
View 3 Replies
View Related
May 14, 2009
I have created an activity for my game which handles all orientation changes by itself and has a fixed "portrait" layout. Actually it uses the accelerometer and is rendered using 2D canvas methods. If the level has been completed I show up a highscore dialog in which the user can enter his name. The dialog is floating above the underlying level screen which gets blurred out nicely. This generally works.
Problem is that the dialog does not get rotated if the orientation of the phone changes. So even if the keyboard is exposed the dialog is shown in portrait mode instead of landscape. I have tried to use an activity with dialog theme instead but the behavior didn't change. After several tries it seems that I have found the reason for this: Once there's an activity with fixed orientation in the activity stack then all subsequent activities keep this orientation, too. They will not react on orientation changes anymore (e.g. if the keyboard gets exposed).
After upgrading to 1.5 SDK the described behavior changed a little bit. Now at subactivities indead react on orientation changes like expected. However, the need to have an opaque background! That means that neither dialogs nor activities with dialog theme will work. Those will stick with the orientation of the underlaying activity. So my workaround is to first start a sub-activity with an opaque black background. This activity then shows my highscore dialog on top. It looks quite okay but I wonder if there's a better solution? Is it possible to show a dialog above a fixed portrait or landscape activity which automatically adapts to orientation changes?
View 3 Replies
View Related
Sep 6, 2010
Since downloading 2.2 my phone sometimes switches to landscape by itself. Especially with Handcent. I have to shake the phone a few times to get it to not be landscape.
View 14 Replies
View Related
Oct 2, 2010
To provide feedback from the user for game I'm writing.This event fires off some game control events that take some time to complete (because there is animation involved).The problem I'm having is during the animation if I keep touching the screen (AKA firing this event),Basically while the animation is running, I do not need this event, although it would be nice to queue it.What can I do to prevent the timeout and either queue the event, or temporarily disable it?
View 2 Replies
View Related
Jan 21, 2010
When views with different type have same id and screen orientation changes,
either java.lang.ClassCastException: android.view.AbsSavedState$1 or java.lang.IllegalArgumentException: Wrong state class -- expecting View State will occur. (depends on the view's order)
Because View.dispatchRestoreInstanceState() checks id only.
You may wonder why anyone would make views with different type to have same id.
But it can happen when you use tab activity.
Imagine you have tab activity with two children activity.
Tab1 is ListActivity and Tab2 is ExpandableListActivity.
Both activity have id of "@android:id/list" but the type of view is different.
This means we cannot use ListActivity & ExpandableListActivit at the same in one tab activity.
View 4 Replies
View Related
Nov 2, 2010
I have a TabActivity, and each Tab corresponds to its own Activity. In one of them, in the onCreate method, I use startActivityForResult to show a dialog (specifically, Bump's BumpAPI activity).
code:...............
The problem is that when the screen orientation changes, it tries to create the tab's activity again which makes another BumpAPI dialog, resulting in multiple stacked on top of each other. Do I have a hook into the started activity to cancel the previous one when the orientation changes?
A workaround seems to be to add a button that when clicked, starts the second activity, but that adds an unnecessary step.
Also, I can't fix the screen orientation for the entire tabActivity because some of them require typing and users may want to use their physical keyboards.
View 1 Replies
View Related
Jun 11, 2009
As I understand by default HttpClient automatically handles Redirect replies from server (follows the redirect link included in the answer from a server). I wonder if and how is it possible to disable this behaviour and handle redirects manually, meaning that I can get redirect link from the reply, modify it and issue a new http request. In a "desktop" version of HttpClient/HttpMethod one can do it as follows:
HttpMethod method = new GetMethod(requestUrl); method.setFollowRedirects(false);
How can I do the same under Android?
View 2 Replies
View Related
Mar 18, 2014
I frequently get unsolicited notifications that one or more apps have been updated. Is there a way to disable automatic app updates? I like to check for myself to see if I really want a specific app update. Examples: some apps want to enable new permissions that I don't necessarily want; some irreversibly change or even do away with the app - e.g., Currents.
Phone is a new Nexus 5. (Great phone, by the way)
View 6 Replies
View Related
Sep 26, 2012
I have this problem with cyanogenmod 9 and miui 4 (based on cm9) I only need the phone to be in 2G mode, but everytime i select "only 2G" under settings - after an hour or two it siwtches back to 3G - and it's annoying as hell. how to force the phone to work in 2G.
View 4 Replies
View Related
Jun 11, 2010
I'm running into an issue, that I'm sure many of you have ran into at some point and found a way around. When I have my Phone Plugged into the Charger (For example when in my car) after a set amount of time (I think it's around 30 seconds) my screen will Dim to only about 25% brightness(But never shut off completely). As you can imagine, this is horribly inconvenient when I'm running Google maps or sprint navigation. How can I make it, so that when I'm charging the phone, the screen just always stays on and does not dim at all? And then when I'm on battery the screen resumes the normal behavior of shutting off after 30 seconds. I've tried setting the "Stay Awake" option under "Applications > Development" to on, I've also tried setting the "Automatic Brightness" option under "Sound & Display > Brightness" to off. Neither of these worked.
View 3 Replies
View Related
Apr 7, 2014
Disable the automatic firmware-update/reminder.
how to disable this with a command, or through java-code?
View 5 Replies
View Related
Jun 16, 2011
I have recently bought a Samsung Galaxy S, and Google Maps came installed on the phone. Now if I enter Android Market, then Google Maps is automatically updated, if there is an update. I have checked it under My apps, but there is no Automatic update checkbox as for other programs I downloaded from the market. Is there a way to disable this automatic update for Google Maps? I would be great, if I could choose when it should be updated, because its not funny, when my 3G limit is exceeded with Google Maps updates.
View 16 Replies
View Related
Nov 3, 2010
Just got my new Vibrant delivered yesterday so now the questions start.
1. Is there a way to disable the automatic screen locking and allow me to just press the on/off switch to lock? There are many cases where I don't want the screen to lock automatically - eg. listening to music. But then when I put the phone in my pocket, case, whatever, I'd like to press a button to lock it.
View 1 Replies
View Related
Sep 21, 2010
Is there a way to enable / disable orientation changes at runtime?
i know you can force a screen orientation in your manifest using android:screenOrientation="portrait" or ="landscape"
but I would like a way to enable / disable it at runtime.
View 2 Replies
View Related
Nov 6, 2010
How do i disable automatic brightness adjustment? I can adjust the brightness through settings->screen options->brightness, but the phone still automatically adjust brightness according to ambient light.
View 2 Replies
View Related
Mar 10, 2010
Wondering if there is a way to disable the automatic music player every time I insert my ear-buds.
I usually start google listen, but It seems If I don't...the music player starts up.
This also occurred when I tried to watch a video.
I would prefer to start the music player manually, if I want to listen to music.
View 8 Replies
View Related
Feb 18, 2010
have an activity which launches another activity, via a button click. By default, on newer OS versions of android, the OS will animate the new activity sliding in from right to left.Is there a way to disable this animation? I just want the new activity to appear without any sort of animation.
View 5 Replies
View Related
Aug 9, 2010
I am writing an activity, that loads data from a server and displays it as a list using ArrayAdapter. For that I'm showing a progress dialog i.e loading, while it loads all data from the server. Then i dismiss the dialog in a handler. My problem is that when ever i change the orientation, the progress dialog is again shown, which is not needed, because all the data is displayed already?
View 1 Replies
View Related
Sep 20, 2010
How does my android activity know (is there a callback) when there is a change in screen orientation?
View 1 Replies
View Related
Aug 16, 2010
I know on screen orientation changes activity restarted, but suppose i don't want to restart the activity then what should I do? I had tried it by adding in manifest.xml. android:configChanges="keyboardHidden|orientation"
and override public void onConfigurationChanged(Configuration newConfig) { super.onConfigurationChanged(newConfig); }
But still activity restarted each time when I change screen orientation.
View 17 Replies
View Related
Jun 3, 2010
I am having an interesting problem and would appreciate any advice. My app uses WebView as its primary view. Using a javascript hook, it can launch the camera so the user can take a picture. The camera is launched using: Intent i = new Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE);
When the camera starts, it makes sense to use landscape mode, so the user naturally turns the phone on its side. After the user takes a picture, control returns to my launching Activity (actually, my Acitivity gets restarted because it usually gets destroyed to free up memory for the camera on my Moto Droid). When my WebView gets recreated, I restore its state from the Bundle I saved in onSaveInstanceState().
Now everything looks ok, except the phone is still in landscape mode. However, when the user turns the phone upright bringing back into portrait mode, my WebView takes up only half of the screen. Somewhere along the way, the scale of my WebView got lost. This seems like such a minor issue, but it is driving me crazy.
Does anyone have an idea why this might be happening? What is the correct way to preserve the scale of my WebView? I am hesitant to hard code any scale factors because what looks good on my device may not be the same for another.
View 8 Replies
View Related
Jul 7, 2009
I finally got to the point where I was ready to deploy my app to my G1 and test it out and the first thing I noticed was that when I change my phone to landscape view my main activity restarts and resets all of my variables to their default settings. How can I avoid this?
View 7 Replies
View Related
Nov 24, 2010
It is possible to set the orientation of an activity in the manifest file. but is it also possible to do it from code? if so, how?
View 2 Replies
View Related
May 6, 2010
I m currently working on landscape mode for android app in which i want to know how to maintain the state of the activity and views displayed on orientation change i.e from portrait mode to landscape mode ?
View 3 Replies
View Related