Android :: Prevent An App From Going To Home Screen When Orientation Is Changed?

Nov 18, 2010

I snap a photo, and it gets placed onto an ImageView. When the user sees the page where the Image View is, and I turn the phone sideways where the orientation is horizontal, the app immediately returns to the app's main screen.

Android :: Prevent an app from going to home screen when orientation is changed?


Android :: Prevent Custom Views From Losing State Across Screen Orientation Changes

Aug 22, 2010

I've successfully implemented onRetainNonConfigurationInstance() for my main activity to save and restore certain critical components across screen orientation changes.

But it seems, my custom views are being re-created from scratch when the orientation changes. This makes sense, although in my case it's inconvenient because the custom view in question is an X/Y plot and the plotted points are stored in the custom view.

Is there a crafty way to implement something similar to onRetainNonConfigurationInstance() for a custom view, or do I need to just implement methods in the custom view which allow me to get and set its "state"?

View 1 Replies View Related

Sony Ericsson Xperia X10 :: Changed Home Screen

Jul 14, 2010

My home screen has changed to where there are 4 buttons across the bottom of the screen. I cannot get my phone back to the way it worked originally , don't know why it changed either.

View 8 Replies View Related

HTC Incredible :: Changed Title Of Widget / Icon On Home Screen?

May 2, 2010

Is there a way to change the title of the widget/icon located on the Home screens?

View 2 Replies View Related

HTC Desire :: Changed The Icons On Home Screen And Mail One Keeps Turning Back

Aug 17, 2010

Ive changed the icons on my home screen and the mail one keeps turning back when i receive a email.

View 10 Replies View Related

Android :: How To Detect Orientation Change In Home Screen Widget?

Mar 15, 2010

I am writing a home screen widget and want to update (modify) the home screen widget when the device orientation changes from portrait to landscape or the other way. How can I make it? Currently, I tried to register to CONFIGURATION_CHANGED action like the code below ...

View 3 Replies View Related

Samsung Fascinate :: Home Screen Orientation

Oct 1, 2010

To anyone who has the SF do your home screens switch from portrait to landscape automatically when you hold the phone sideways? Mine does in just about all other screens but not the home.

View 5 Replies View Related

HTC Magic :: Auto Orientation Not Working On Home Screen

May 12, 2009

I'm the proud owner of the HTC Magic on Vodafone UK. I'm loving the Android.I have to say that after 5 days of owning this device I'm only left scratching my head on one point the auto-orientation of the home screen.I've seen videos of rooted G1's running the hacked 1.5 firmware and the recently posted video of the Samsung i7500 with the 1.5 firmware all CLEARLY show that when the device is on home screen, the desktop (read home screen) auto-rotates depending on the orientation of the device. The Samsung video shows it working in ALL FOUR orientations!This doesn't happen on my Magic . Flip the orientation in an application? Works fine. Flip it back in an application? Works fine. Do it on the home screen?Am I missing something? Is this a feature that is disabled in the offical 1.5 Cupcake release? If that's the case - fine with me. I'll stop scratching my head and move on.

View 9 Replies View Related

Android :: Progress Dialog And Orientation Changed

Jul 28, 2010

I'm facing some problems with the progress dialogs. I use a managed progress dialog to show the user that an operation is being carried out with the following code written in the onCreateDialog(int id) function.When the operation completes I call dismissDialog(PROGRESS_DIALOG). The problem is that if I rotate the phone while the progress dialog is displayed then when the operation completes the dismiss call has no effect and the progress remains showing. And this I cannot understand why.

View 1 Replies View Related

Android :: Reload Layout - Xml - When Orientation Changed

Feb 27, 2009

I have a program with two layouts: - layout/main.xml - layout-land/main.xml

Also, i have some images en drawable and drawable-land...

My problem is: When i change the orientation of the emulator (for examplo: portrait to landscape) i don't know how reload the main.xml layout to update the screen with the new positions....

If I launch the emulator in portrait the application load the portrait layout, and if I launch the emulator in landscape mode the application load the landscape layout, but if I change the orientation in execution mode the application don't load the new layout...

How can I reload the layout?

View 3 Replies View Related

Android :: Layout Problem When Orientation Changed

Jun 23, 2010

My activity use the same RelativeLayout as it's content view whatever the orientation is. In this RelativeLayout, there is a FrameLayout align to it's bottom, and a TextView above this FrameLayout, just like :

CODE:...........

on android 1.5 device when orientation changed, the TextView lies in the wrong place, middle when portrait, bottom when landscape. on android 1.6 device It is ok.

How could I make it lies in the place where it should be on 1.5 device?

View 2 Replies View Related

Sprint HTC Hero :: Home Screen Orientation To Go Into Landscape Mode?

Feb 19, 2010

I searched for this but couldn't find a solution. Is there anyway to get the home screen and subsequent side screens to go into landscape mode? I've seen some other Android Phones/Tablets doing this and would like to be able to do so. Or does anyone know if this will be an option in the 2.1 update? I heard that the Droid used to do this, and then some update messed it up, but then saw it going into landscape mode on the video they posted today of the Droid running 2.1.

View 5 Replies View Related

Motorola Droid :: Any Way To Make Home Screen Change Orientation?

Nov 11, 2009

Is there a way to make the home screen change orientation with the accelerometer? On my phone, it will only change when I pull out the physical keyboard, which is not really what I'm looking to do most of the time.It changes just fine in all other applications, but the home screen doesn't. Is this a flaw with my phone or a design decision?

View 6 Replies View Related

Android :: Configuration Changed / Orientation From Portrait To Landscape?

Nov 10, 2010

While working on orientation change I have found that the onConfigurationChanged is not getting called when changing the orientation from portrait to landscape.But when I am changing from landscape to portrait the method is getting called. Is it the correct behavior because the onConfigurationChanged should by called whenever we are changing the orientation. (android:configChanges="orientation")? I have also found one strange behavior or error, When we are changing from portrait to landscape orientation the string value is displayed correctly(automatically by android system) but when in am changing the orientation from landscape to portrait the same string is displayed(i.e the string in landscape mode).The expected behavior is the string id specified in the portrait mode should be displayed.Is it an platform bug or something wrong in my code/programming.

View 2 Replies View Related

Android :: How To Get A Widget To Recognize When Phones Orientation Has Changed

Apr 9, 2010

I want my widget to update when the phones orientation has changed. Before android 2.0 you could register your widget to get the intent on orientation change. Code...

View 1 Replies View Related

Android :: Result Disappeared When Mobile Orientation Is Changed / What To Do

Jun 21, 2010

In my application result displayed in Text view is disappeared when mobile orientation is changed,for this what can i do.i want my application in both modes means portrait and landscape.for this what can i do.

View 2 Replies View Related

Android :: Java.lang.OutOfMemoryError After Orientation Changed

Oct 1, 2009

I get an OutOfMemoryError in my app after changing the orientation. I have read, that if have to use Context.getApplicationContext() instead of a normal activity context??

My java file looks like:

CODE:.....................

View 11 Replies View Related

Android :: List View Width Not Adjusted When Orientation Changed

Aug 16, 2010

I am having a listview in my App which shows perfectly in Portrait mode. But when I change orientation to landscape, sometimes the width remains as that of Portrait mode. Even the scrollbar for the list comes at the center and remaining part of the screen remains blacked out. This happens only with the list view. Other views show perfectly. I have designed the layouts such that the Portrait layouts look feel proportionate in landscape mode. I want to avoid restarting the activity so I have not put the layouts in the landscape folder. I tried invalidating the listview in onConfigurationChanged() but of no use. When I navigate in the list in landscape mode, the width automatically gets adjusted.

View 2 Replies View Related

Android :: Why Are OnCreate() OnStart() Etc Called When Handset Orientation Is Changed

Dec 14, 2009

I got my hands on Android which is really fun. But at some point I don't seem to understand the concept. I've got a Main class which reads like this:

CODE:....

In the onCreate(...) I set the layout to setContentView(R.layout.main); and add an OnTouchEvent Listener to the sole View in main.xml: myView.setOnTouchListener(new OnTouchListener() {@Override public boolean onTouch(View v, MotionEvent event){...

As you can see I also implemented a SensorEventListener which is used if required. All works fine so far.

But my problem is this (at this point my misunderstanding kicks in): whenever I rotate the device the onCreate(), onStart() etc. methods are called, causing my app to act as if it just started. Furthermore, I feel unable to implement an onSizeChanged(int w, int h, int oldw, int oldh) { ... } Listener.

Can anyone please explain where my error in reasoning is? I am working on a tiny app which is more or less done, except for the just mentioned bug(s). Maybe I got it all wrong but it does what it is supposed to do (i.e. sending touch positions and accelerometer data over the network via UDP).

View 14 Replies View Related

Android :: Prevent Orientation Change At Runtime

Apr 15, 2010

Well, preventing an orientation change is easy. But what about doing it at run time.

Say, I have an activity which supports orientation change in normal situations. It has say three Edit Texts.

There's also a button, which when clicked would do some processing in a thread while showing a ProgressDialog which is not cancellable.

Ok, so till the user hits the Button, I want the activity to be able to adapt the orientation changes. I have two layouts files for each orientation with different layout schemes.

What I want is this. Once the user clicks on the button, and the ProgressDialog is showing, I don't want the activity now to be re- created again when the orientation changes. So, before showing the ProgressDialog, is there any way to tell the Activity not to handle Orientation change?

Also, once the process is complete, and the ProgressDialog is removed, I want the Activity again to be able to handle orientation changes.

View 6 Replies View Related

Android :: Change Android Home Screen Orientation By Program

Nov 25, 2009

I got a question about screen orientation in Android Home screen. The scenario is as following. A G-sensor detects the movement on the device. Then it rotates the screen. If the device is portrait mode, the system sets to landscape mode. With G-sensor, theres is a SensorService to detect that and do some things to reach the function. I want to know how to reach that? Is there a API or a event to do that? I means that hall system, not a activity!

View 4 Replies View Related

Android :: Prevent Rotation/change Of Orientation In Certain Tab/activity

Sep 11, 2010

My MainActivity (the one that is started by the android application) is a TabActivity which contains several tabs (which are implemented as activities as well). In a certain tab/activity I want to prevent the change of orientation/rotation when the phone is turned. What is the easiest way to achieve this?

View 2 Replies View Related

Android :: Prevent Orientation Change On Keyboard Flip Until Thread Execution Completes

Oct 25, 2009

When I flip the keyboard, the layout changes from portrait to landscape, activity is recreated but any background thread keeps running. How can I prevent orientation change/activity from being recreated until my background thread finishes.

View 2 Replies View Related

Android :: Lock Phone Orientation In Android To Prevent Landscape Mode

Sep 4, 2010

Is this possible to do? Landscape mode distorts the background image, and therefore I would like to lock orientation to vertical on phones with accelerometers.

View 2 Replies View Related

Android :: Prevent Home Key From Going Back To Launcher?

Sep 3, 2010

If I want to write a Screensaver or Lockscreen. Is there a way to prevent the home key from going back to the launcher?

View 1 Replies View Related

Android :: Random Numbers Changed / When Orientaion Changed

Aug 14, 2010

I am generating the random numbers and do some functionality with that .but when i change the orientation new random numbers are coming.But I want portrait random numbers.For this give me some suggestions.

View 1 Replies View Related

Android :: Launch The Same Activity From Widget With Different Extras - Prevent Same Instance Show Up After Returned From HOME Button?

Nov 5, 2010

I have a widget that contains 4 buttons to show 4 stock prices, each of them will launch into the same activity Quote.class to show stock details. In onUpdate(), it will set up the pendingIntent with extras with stock symbol. After I hit button A, it goes to Quote activity that shows stock A. Then I hit the BACK button to the homescreen, Quote activity calls onDestroy() and when I hit button B, stock B will show properly. However, when i hit HOME button after it shows stock A, the Quote activity only calls onStop without calling onDestroy(), then as i hit button B, it will call onStart() and it shows the same instance that shows stock A.

CODE:............

Originally I thought adding a flag in the Intent should solve this problem. But I have tried
i.setFlags(Intent.FLAG_ACTIVITY_MULTIPLE_TASK or FLAG_ACTIVITY_NEW_TASK or FLAG_ACTIVITY_NO_HISTORY), none of them makes any difference.

So is there any ways to make it work? How can i remove the history stack from HOME button? How can I call onCreate in Quote activity and get new extras when i hit button B?

View 4 Replies View Related

Motorola Droid X :: How To Prevent Landscape Mode When On Home Screens?

Jul 25, 2010

I was wondering if there is a way to prevent landscape mode when on the home screens. love launcherpro, but it would be perfect if this could be disabled.

View 7 Replies View Related

Android :: How To Check Screen Orientation While Call On Screen?

Dec 16, 2009

Is it possible to check the screen orientation (I mean whether the screen in landscape or portrait mode) while the outgoing call is going on.If it possible please suggest me how to achieve that.

View 2 Replies View Related

Samsung Moment :: Under - System Select - Does - Home Only - Prevent Roaming For Voice Calls

Dec 7, 2009

Under "System select", does "home only" prevent roaming for voice calls?

View 1 Replies View Related







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