Android :: API To Temporarily Disable Orientation Changes?

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?

Android :: API to temporarily disable orientation changes?


Android :: Need To Temporarily Disable Orientation Changes In An Activity

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

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 View Related

Android :: Application To Disable SMS Temporarily?

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

General :: App To Temporarily Disable Radio?

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

HTC Incredible :: How To Disable Google Voice Temporarily?

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

HTC Incredible :: Disable Froyo Update Prompt Temporarily?

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

Android :: How Do I Temporarily Disable / Bypass Android OnTouchEvent

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

Android :: Disable / Enable Orientation Changes At Runtime?

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

Android :: Disable Orientation Change In Android?

Oct 2, 2009

I have an application that I just would like to use in portrait mode, so I have defined
android: screenOrientation="portrait" in the manifest xml. This works ok for the htc magic phone. But I have a problem with the HTC G1 phone as i open the hardware qwerty keyboard (not the virtual keyboard). My activity stays in portrait mode, but seems to get restarted and looses all its states. This does not happen with the hero version. My application is quite big so i dont want it to restart and loose all its states when the keyboard is opened.

View 1 Replies View Related

Android :: Orientation Change - Dialog Above Activity With Fixed Orientation

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

Android :: Store Password Temporarily In Memory

Jun 13, 2010

I'm looking for a way in an Android application to store a password within the memory as long as the application is running (cf. different activities). I was first thinking about the SharedPreferences, but then it's saved in the flash memory, which isn't that good for a password, I guess.

I'm unsure, what's the best way. What would you recommend me?

View 1 Replies View Related

Android :: Can Force A Specific Layout Orientation - But Have An Opposite Keyboard Orientation Android

Aug 19, 2010

I understand how to force a specific orientation per activity in the android manifest. I would like to know if it is possible to allow the keyboard to change orientation even though the activity(the layout really) must remain unchanged.

View 1 Replies View Related

Android :: Make Temporarily Non-rotatable Droid Activities?

Dec 3, 2009

Is it possible to make an Activity temporarily not rotatable (like, turning it on/off in code, not in the manifest)?

One of my old apps crashes if you rotate while it's doing an HTTP lookup as the views are no longer attached when it returns. One of these days I'll fix it proper, but in the mean time it'd be useful if I could just make the thing not-rotatable while it's doing the lookup.

View 1 Replies View Related

Android :: App To Temporarily Unlock Pattern Then Lock It Back Without Going Through Settings?

Nov 14, 2010

Is there an app that allows you to temporarily unlock your pattern then lock it back without going through settings? Because its gets real annoying to keep putting in my pattern when I'm home alone..

View 22 Replies View Related

Android :: Using Orientation Sensor To Get 360 Orientation

Jul 17, 2009

I have a problem with working with the ORIENTATION values of the SensorManager. I would like to have some kind of 360-value which directly shows me if the phone is in normal portrait (0), landscape, portrait turned around (180) or anything in between. So I could have, for example, an arrow that points to the floor (like gravity would do with a plummet) all the time, no matter how I tilt (sidewards) the phone. I thought this would be easy, but I'm pretty confused at the moment.

First of all, the X value of the orientation-array seems to correspondent with how I turn the phone, BUT: if it's completely uprightly standing, this value is about 60 ... why not 0 (or 90, 180, 270), as I would expect?

Second: The value resets if I turn the phone and Android automatically changes screen orientation. So both in Portrait and in Landscape mode it will be sth. like 60 when the phone is in a 0 angel in real world. I set "android:screenOrientation" to "landscape" but this doesn't help anything :/

I want the app NOT to change orientation when I turn the phone, but I want it to get a continuous orientation value when I tilt the phone.

View 4 Replies View Related

Android :: Missing Gen Folder When Clean The Eclipse Temporarily Destroys Project

Sep 29, 2010

I am experiencing an annoying problem with an Android project in Eclipse. All my other Android projects are okey (at the moment). Whenever I perform a clean (Menu:Project->Clean...) the project gives an error and I can't compile/run the app. The error is: Project 'Project Name' is missing required source folder: 'gen'

As soon as I edit some code the problem disappears until I perform a clean again. I can also right-click on the gen-folder and delete it. Eclipse will recreate the gen-folder and the problem disappears until I perform a clean. This is not a showstopper but it is really annoying since I sometimes have to do a clean before I run the app.

View 1 Replies View Related

HTC EVO 4G :: Turn An Email Account Off Temporarily?

Jul 6, 2010

I tried doing a search but couldn't find anything. Does anyone here know how to turn an email account off temporarily? I use my phone primarily for work so when I am at work I don't want to have to delete emails throughout the day. I only want to be able to turn if on when I am out of the office.

Anyone know how to do this?

View 4 Replies View Related

HTC Incredible : Verizon Temporarily Unavailable

Apr 19, 2010

Looks like they finally put up the banner on there website and signing in to your account is temporarily unavailable. ALSO, maybe this was there before but it states 4/16-4/19 Activation is FREE ONLY during that period.

View 35 Replies View Related

HTC Magic :: Google Maps Location Temporarily Unavailable

Jul 20, 2009

When ever I try to use the feature "My location" in google maps, everytime, no matter when or where I am I always get the error "location temporarily unavailable" Is there a setting I'm missing?

View 7 Replies View Related

General :: WiFi Only Works Temporarily On Phone (HTC Raider)

Jun 7, 2012

I got an HTC Raider on the weekend, and while using the 3G/4G/LTE networks, it's amazing. Super fast and wonderful. Also, generally, while using wifi it's the same thing - fast and works perfectly.

However, when I'm at work, and I connect to the wifi network at my office, it will typically only work for 3 or 4 minutes, and then just stops working. It still displays maximum signal strength, but won't load any page on the internet, and any apps that send/receive data do not work. My work computer is also on the same wifi network and it always works no problem, so I know the wifi network is fine.

View 2 Replies View Related

General :: ME172V - Temporarily Avoiding Poor Connection

Feb 27, 2014

I have a ME172V tablet I'm trying to connect to my PC via wi-fi.

I got an PQI Air Pen Express WAP and when I first connected with my tablet all was fine. Since then I'm getting a "Temporarily avoiding poor connection" error. My Motorola Edge phone connects with no problem. I've reset the WAP and the tablet, the signal strength is excellent, and I've disconnected & reconnected.

From the number of posts I found when searching this is a common Android problem. One suggested solution is to uncheck the "Avoid Poor Connection" option in wi-fi settings. Unfortunately there appears to be no such option on the ME172V. Other proposed solutions involved flashing or other techniques I'm not familiar with.

View 4 Replies View Related

General :: Temporarily Make Available Playlist Offline For Google Music?

May 12, 2012

Google Music. My only caveat is making a playlist available offline temporarily, and then deleting it once I'm done.

It makes sense for the subway, etc.

I'll load up a new album, and I normally listen to the album as a whole and then get rid of it to free up space (and to decide which songs make it to my main playlist).

I'm using a HTC One X, so 16gb is a bit limiting and I can't have it full of music.

View 4 Replies View Related

HTC Hero : Use Google Maps With GPS Enabled - Message - Your Location Is Temporarily Unavailable

Feb 28, 2010

Everytime i use google maps with just the GPS enabled i get this message, if i allow wireless networks then i get a location but it's far from accurate.

View 2 Replies View Related

Samsung Moment :: Error On Sprint Update Site - Service Temporarily Unavailable

Apr 9, 2010

Service Temporarily Unavailable. The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.

View 2 Replies View Related

Android :: Set Screen Orientation Of A Tab

Mar 18, 2009

I would a Tab (in a TabHost) to have a Landscape orientation while the activity with the TabHost is in Portrait orientation, is that possible (if so how)? I tried setting the orientation of the Activity displayed in the tab in the Manifest but it didn't work.

View 7 Replies View Related

Android :: Orientation Changes And Layout

Apr 14, 2010

I figured that I can have custom layout for each orientation just by making two folders layout-port and layout-land. So I put different views in these folders. Worked well.

Now, I have a webview in my activity and it reloads whenever there is any change in orientation. So to prevent that I put android:configChanges="orientation" in my manifest file.

After putting this the reloading stopped but the contents in the layout-port started getting selected for landscape mode as well.

View 6 Replies View Related

Android :: Orientation Changes For Layouts

Oct 16, 2009

i have a layout folder with 2 layouts. layout1 and layout2 i have another folder layout-land that has layout1 in it. i would like to be able to get to all the layouts so i could create a set of layout like this: {layout1, layout2, layout1(from layout-land folder)}is there any way i can use the existing android mechanisim to do that? if not, what would be the impact of creating my own definition of the layout folder (for example to have under the layout folder layout1, layout2 and layout_land1 and have my code do getOrientation to diffrentiate whcih one should be presented).

View 9 Replies View Related

Android :: App Widget And Orientation Changes

Sep 1, 2009

I've built an app widget a fairly simple one that draws an image inside a frame. (If that sounds familiar, that's because it's very similar to the built-in one, but it's a start to something else.)The RemoteView consists of little more than a FrameView and an ImageView. I have a second FrameView that may display or not depending on some certain state awareness.The Image updates on an Alarm schedule rather than the built-in mechanism so the user can adjust this value after installation. The image is set on the RemoteView using a drawable ID from included resources in the package. They've been resized to approximately a quarter of the screen size, but might still be scaled a little by the ImageView.All of this has been working fine. There is one issue that I've been unable to diagnose even the root of the problem.

After an orientation change when the home screen redraws, the ImageView doesn't always draw. The rest of the RemoteView does draw just as it was set during the most recent Update.The mystery is that the ImageView does, in fact, draw if the Alarm is currently set. If it's not currently set, it doesn't draw. Nothing else seems to affect whether it draws or not. It doesn't matter if the widget process is running or not, either (killing it via DDMS and then rotating has the same effect).This occurs in the emulator as well as the G1. During a rotate, the widget gets no update event at all.I could set it to listen for configuration changed broadcasts, but since it works in one of the cases, I suspect something else is going on and that's just an unnecessary piece of duct tape.

View 12 Replies View Related

Android :: Orientation And Webview

Jun 15, 2010

I have a webview and I am using android:configChanges="orientation" to restrain the webview from reloading everytime the orientation changes.I also have two different folders layout-port and layout-land to define the layouts for different orientations.If I use android:configChanges="orientation" then the above two folders are ignored. Can I have both working at the same time?

View 6 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved